Page 1 of 1

Help creating new railway lines

Posted: Fri Nov 09, 2012 11:54 pm
by Moriety
Using the info Pocus provided I tried to create a test line.

In the map file I added (in a random location, but in the railway section) a new line.

So, in the Russia game I added this rail line; (shown in the map.ini file like this)

Borisov-Bobruisk-Bylchov
34630|2996|0|34831|3046|0|35130|3145|0|
{/AGE_Lanes}
{AGE_Lanes}
1

Borisov is one of the towns on the existing Minsk to Kiew (Kiev?) line.

If I loaded the game with the debug mode active I get the following message:
TRegionCmns.AgeLanesUpdates Exception caught: Indice de liste hors limites (-1) Step;

But, really strange, the original Minsk-Borisov-Mozyr-Kiew line has now vanished, and my new one isn't showing either. (Removing my line from the map file restores the Minsk-Kiew line though).

I tried a few other lines (all where I have built a railway within the game, but the province has no rails allocated in the map.ini file), but they never appear.
Would it require a new game, or a province that only has roads, before new lines added in the map file would appear on the map?
Should you start the xy point just outside of the province structure or is it fine to choose coordinates inside the town/fort etc as a start point?

Can anyone offer any guidance and advice on what I need to do and what I'm doing wrong? :)
Thanks!

Posted: Sat Nov 10, 2012 3:14 pm
by HappyBanker
http://forum.paradoxplaza.com/forum/showthread.php?634346-Method-for-adding-missing-railroad-graphics

An small tutorial I wrote about this precise subject on the paradox forum.

From what I see here I would guess that the 34831 and 3145 coordinates should be 34830 and 3144 but you should really check the link and verify that coordinates were taken with 100% zoom level on.

Posted: Sat Nov 10, 2012 3:17 pm
by sagji
Looking at the map.ini the last entry is

Code: Select all

{AGE_Lanes}
1
Tashkent-Kokand
20700|2460|0|20716|2472|0|20724|2512|0|20728|2544|0|20760|2556|0|20788|2560|0|
{/AGE_Lanes}


{AGE_Lanes} is the start of the entry and the {/AGE_Lanes} is the end - these need to match and not be one inside another.

Also your numbers look wrong - I think 34630 is east of NZ and almost certainly off the map, 3000 .
The region file for Borisov (256) puts it at
x = 17176
y = 1388
and I would expect the map.ini to use the same scale so would expect to see similar numbers.

Posted: Sat Nov 10, 2012 3:21 pm
by sagji
HappyBanker wrote:http://forum.paradoxplaza.com/forum/showthread.php?634346-Method-for-adding-missing-railroad-graphics

An small tutorial I wrote about this precise subject on the paradox forum.

From what I see here I would guess that the 34831 and 3145 coordinates should be 34830 and 3144 but you should really check the link and verify that coordinates were taken with 100% zoom level on.


I suspect the divide by two step was also omitted.

Posted: Sat Nov 10, 2012 6:51 pm
by Moriety
Excellent!
Thank you all for your help.
Your tutorial was perfect Happy Banker :)
Now I can start to get to work on filling the missing provinces on the map.

One other thing;
The structures in the Eastern Seaboard provinces of Siberia are mostly poorly located. Is there a guide on how to move them? (I'd like to shift most slightly inland away from the coast).

[ATTACH]20632[/ATTACH]

Posted: Sun Nov 11, 2012 12:15 pm
by Pocus
the modding forum might be the place to ask such things, more traffic.

Posted: Sun Nov 11, 2012 1:55 pm
by Moriety
Pocus wrote:the modding forum might be the place to ask such things, more traffic.


I'm now wondering if the reason only pieces of each provinces structure is showing is because no city has been founded there yet? (In which case the locations are fine).

I'll look for the modder forum :)

Posted: Mon Nov 12, 2012 2:40 pm
by Moriety
Pocus,

If you read this, can you confirm if it is okay to create long lines over several provinces/cities? I've actually created quite a few, but all are in provinces where I've already played the railway card so I don't know if it is okay when the player is starting to build them in a new game.

I've also merged a few of the small lines in the file to create longer lines, or to tidy them up, another reason why I'm concerned that your lines may be short for a reason?

Finally, is there anyway I can force the AI to display all the lines contained within the map.ini file so I can get an overview of them on the world map?
Thanks!

PS:
1) Is it okay to start a new railway line at the exact coordinates another line ends?
2) I'd like to organise the railway lines (not sea lanes) into geographic regions in the map file. Is it possible to use headers in the file? I think you put a # to comment out a line if it is okay?

Posted: Tue Nov 13, 2012 11:38 am
by Pocus
It is better to make short legs, because a leg will only appears if both cities have a railway. If you make a long one, then it can lead to weirdness. Plus long railways can have a problem being displayed if one of the end city is not shown on the screen. I would suggest not more than 6 regions long.

In 1.03c you will be able to use DebugShowAllLanes to show them all.

1. yes
2. yes (I think)

Posted: Tue Nov 13, 2012 1:56 pm
by Moriety
Great info, thanks Pocus.

I replied to the RUS Lt Upgrade in the mod forum, the problem is possibly unique to my game install/Cache file as I believe Certz2 has no problems.

Posted: Fri Nov 16, 2012 12:48 pm
by nemethand
Pocus wrote:In 1.03c you will be able to use DebugShowAllLanes to show them all.


And just how to 'use' (=what necessary steps to take) it?

Thx in advance.