Moriety
Major
Posts: 211
Joined: Thu Nov 20, 2008 1:23 pm
Location: London, UK

Help creating new railway lines

Fri Nov 09, 2012 11:54 pm

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!
"Whether it's the best of times or the worst of times, it's the only time you've got" Art Buchwald, U.S. Journalist and humourist

HappyBanker
Conscript
Posts: 11
Joined: Mon Jul 16, 2012 9:08 am

Sat Nov 10, 2012 3:14 pm

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.

sagji
Lieutenant
Posts: 148
Joined: Sat Apr 03, 2010 6:33 pm

Sat Nov 10, 2012 3:17 pm

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.

sagji
Lieutenant
Posts: 148
Joined: Sat Apr 03, 2010 6:33 pm

Sat Nov 10, 2012 3:21 pm

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.

Moriety
Major
Posts: 211
Joined: Thu Nov 20, 2008 1:23 pm
Location: London, UK

Sat Nov 10, 2012 6:51 pm

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]
Attachments
Rails.jpg
"Whether it's the best of times or the worst of times, it's the only time you've got" Art Buchwald, U.S. Journalist and humourist

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Sun Nov 11, 2012 12:15 pm

the modding forum might be the place to ask such things, more traffic.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Moriety
Major
Posts: 211
Joined: Thu Nov 20, 2008 1:23 pm
Location: London, UK

Sun Nov 11, 2012 1:55 pm

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 :)
"Whether it's the best of times or the worst of times, it's the only time you've got" Art Buchwald, U.S. Journalist and humourist

Moriety
Major
Posts: 211
Joined: Thu Nov 20, 2008 1:23 pm
Location: London, UK

Mon Nov 12, 2012 2:40 pm

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?
"Whether it's the best of times or the worst of times, it's the only time you've got" Art Buchwald, U.S. Journalist and humourist

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Nov 13, 2012 11:38 am

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)
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Moriety
Major
Posts: 211
Joined: Thu Nov 20, 2008 1:23 pm
Location: London, UK

Tue Nov 13, 2012 1:56 pm

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.
"Whether it's the best of times or the worst of times, it's the only time you've got" Art Buchwald, U.S. Journalist and humourist

User avatar
nemethand
Colonel
Posts: 315
Joined: Wed Dec 28, 2005 11:00 am
Location: Budapest

Fri Nov 16, 2012 12:48 pm

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.

Return to “Pride of Nations”

Who is online

Users browsing this forum: No registered users and 2 guests