Has anyone identified the file and line that controls the distance units can move by rail?
Thanks.
Rail Movement Question
Moderators: Slitherine Core, The Lordz
Re: Rail Movement Question
Off the top of my head, the destination has to be within 30 hexes following the tracks.
-
xriz
- Administrative Corporal - SdKfz 251/1

- Posts: 148
- Joined: Tue Oct 21, 2008 2:17 am
- Location: Los Angeles
Re: Rail Movement Question
I think its in the "game.lua" file, 3rd line down the line is "gameplay.RailmoveEfficiencyLoss = 30", the number is the movement points I believe.
-
avoran
- Sergeant Major - Armoured Train

- Posts: 589
- Joined: Wed Feb 02, 2011 1:45 pm
- Location: Veliki Novgorod
Re: Rail Movement Question
that doesn't sound like the movement points - it sounds like how many efficiency points a unit loses after moving by rail
CEAW Grand Strategy fan
Commander: The Great War beta tester
Commander: The Great War beta tester
Re: Rail Movement Question
That's right.that doesn't sound like the movement points - it sounds like how many efficiency points a unit loses after moving by rail
-
xriz
- Administrative Corporal - SdKfz 251/1

- Posts: 148
- Joined: Tue Oct 21, 2008 2:17 am
- Location: Los Angeles
Re: Rail Movement Question
Yes I stand corrected, I didn't test it out and I have no one to blame but my self for the wrong suggestion.
I did go a little further into the problem:
The range of moving your ground units by train is 20 hexes, between city hexes, not counting the originating city hex but counting the destination hex. Given you only need to be adjacent to a city hex to use the rail system you can move up to 22 hexes not including the hex the unit occupies.
I submit the screen shots below,
The unit at Vilina can use the train transport to Kursk, 19 hexes away by rail hexes, not counting adjacent hexes you can deploy. The unit at Minsk can use the train transport to Kharkov, 19 hexes away by rail hexes, again 19 hexes but I think the number is actually 20 since most programmers abhor prime numbers above 5. The file at:
Data/Scripts/game/game_railmoves.lua
has about line line 43, near the end, its a small file;
local cost = 20 * (currentAmount + 1)
This would seem the file and place to change 'strategic' rail movement for the game, but I did test it out and changing the numbers does nothing.
Maybe My ddraal can enlighten us on whats going on with rail movement.
I did go a little further into the problem:
The range of moving your ground units by train is 20 hexes, between city hexes, not counting the originating city hex but counting the destination hex. Given you only need to be adjacent to a city hex to use the rail system you can move up to 22 hexes not including the hex the unit occupies.
I submit the screen shots below,
The unit at Vilina can use the train transport to Kursk, 19 hexes away by rail hexes, not counting adjacent hexes you can deploy. The unit at Minsk can use the train transport to Kharkov, 19 hexes away by rail hexes, again 19 hexes but I think the number is actually 20 since most programmers abhor prime numbers above 5. The file at:
Data/Scripts/game/game_railmoves.lua
has about line line 43, near the end, its a small file;
local cost = 20 * (currentAmount + 1)
This would seem the file and place to change 'strategic' rail movement for the game, but I did test it out and changing the numbers does nothing.
Maybe My ddraal can enlighten us on whats going on with rail movement.
Re: Rail Movement Question
In my experience the railway movement range is 20 hexes between cities (not between the unit and the destiantion hex).
However, I don't know if enemy's zone of control influences that move...
However, I don't know if enemy's zone of control influences that move...
Re: Rail Movement Question
on that note, why does a unit lose 30% efficiency when it uses the rail? i find it quite alot :S
Check out Project: IMBA, the balance mod for the multiplayer section of Commander: the Great War. Your input is appreciated! viewtopic.php?f=218&t=39677
Re: Rail Movement Question
We did some testing with lower rail efficiency drops. It was found that it was very easy to rail units up and down the frontline every turn, shuffling units from one side of a frontline to another. Full strength units could be railed in to protect salients from miles away. Without any penalty this felt very odd (and unrealistic). It's also a more interesting gameplay choice if there is more a penalty to using rail to transport troops.



