You are viewing a potentially older version of this package. View all versions.
VladasZ-Railroads-0.1.1 icon

Railroads

Stone railroads for Valheim. A coal locomotive, wagons, stations and switches. Trains keep running when nobody is near.

By VladasZ
Date uploaded 3 days ago
Version 0.1.1
Download link VladasZ-Railroads-0.1.1.zip
Downloads 35
Dependency string VladasZ-Railroads-0.1.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351

README

Railroads

Vikings had ships. Now they have trains.

You lay stone track with the hammer, put a station on it, give the station a name and send a locomotive there. Or sit on the bench and drive it yourself, like in Factorio.

It is made for a dedicated server. Trains keep going when nobody is near, and the server plans the routes, so 2 trains never get the same track.

What you get:

  • 24 track pieces: straights from 1 to 32 m, curves, slopes, switches, a crossing, a turning loop, a T and an X junction
  • stations with a name board
  • a locomotive that burns coal, with a speed lever and a switch lever
  • wagons with 18 slots of storage, a bench for 2 and a sign you write yourself
  • a wagon restaurant with a table that shows the food you put on it
  • a portal wagon, a portal that travels with the train
  • track, stations and trains on the map

Everything is in the Transport tab of the hammer. A train at full speed hits whatever stands on the track, so don't stand on the track.

The server and every player need the same version. With another version you get a message and no rail pieces.

Settings are in BepInEx/config/vladasz.railroads.cfg. The Server section counts only on the server:

  • TopSpeed, 4 to 15 m/s, default 10
  • CoalPer100Meters, 0 to 5, default 1. With 0 trains need no coal
  • MaxCoal, 20 to 500, default 100
  • MaxWagons, 0 to 8, default 4
  • Hits: Everything, MobsOnly or Nothing
  • SureKill: a train at 9.5 m/s kills any mob it hits, a boss too
  • PortalWagon: on or off
  • MapTrack, MapStations, MapTrains: what players may see on the map

This is the first public version, so if something does not work please tell me.

CHANGELOG

Changelog

0.1.9

New settings for the flatbed wagon, all in the Server section. DeckHeight: how high you can build over the deck, 2 to 12 m, default 4. DeckReachLeftRight and DeckReachFrontBack: how far a piece can reach past the edges of the deck, 0 to 2 m, default 0.5. DeckPiecesIndestructible: what is built on a flatbed takes no damage. Off by default. DeckSmelters: a smelter, a blast furnace, a kiln and an obliterator can be built on a flatbed. Off by default. DeckFires: a campfire, a hearth and a brazier can be built on a flatbed. Off by default. Torches always can. A cauldron on a flatbed keeps its fire after the train moved. CoalPer100Meters is CoalPer1000Meters now, default 10. A value you set before is kept, 2 becomes 20. TopSpeed goes from 2 to 40 m/s now.

0.1.8

The rail pieces are in the build menu right after you join. Before you had to pick something up first.

0.1.7

A new wagon, the flatbed. It is an empty deck and you build on it.

0.1.6

The settings of the mod show in a config manager in the game now. The 3 map settings count at once when you change them there. The others count from the next start of a world.

0.1.5

The portal wagon works with TargetPortal now. The torches of the locomotive are no longer pixelated.

0.1.4

In a hosted game the host can drive again while another player is near the train. A train you send no longer stops on the way when you go far from it, like through a portal. One popup for the new pieces, not 24. A few smaller fixes for trains with 2 players near.

0.1.3

No more warning in the log at the first use of the hammer when you don't have Craft From Containers.

0.1.2

Single player and hosted games work now, I tested both. Also a new icon and a Discord server for the mod.

0.1.1

A new icon and a new page text. The mod itself is the same.

0.1.0

The first version.