How to add a new bridge to the game?

Discuss, get help with, or post new modifications, graphics or related tools for Locomotion in this forum.

Moderator: Locomotion Moderators

Post Reply
nanth_abc
Engineer
Engineer
Posts: 11
Joined: 06 Jun 2011 01:38

How to add a new bridge to the game?

Post by nanth_abc »

I've tried to add a new bridge by copy the bridge file and trackst file to objdata folder.
Then I opened locomod that I could see the new bridge in the list, I've check for that bridge.
But when I open the game, the new bridge type is still not shown when I select building bridge button.
How should I do?
Is there other ways to add the bridge.
Thank you for you help.
User avatar
Illegal_Alien
Tycoon
Tycoon
Posts: 7824
Joined: 29 Sep 2004 20:07
Location: Kingdom of Far Far Away
Contact:

Re: How to add a new bridge to the game?

Post by Illegal_Alien »

Read this topic carefully, it can be tricky: http://www.tt-forums.net/viewtopic.php?f=37&t=29348
:: Looking for the Locomotion section? Scroll down on the forum index or click here. :: See all releases in Locomotion section? Clicky here! :: Click here for the best tool ever! :: .datCrawler try it! ::
Following roadmap for releases: Whats a roadmap?
Releases of LocoTrains can be found by checking the posts of: LocoTrains - Goold old AMI Trains member of the first hour.
I have Private Messaging disabled, because of the stupid questions i get in my PM box.
Want to talk to me? Get on the #tycoon and #locomotion channel on OFTC thingy. :: Evolution of men: Loosing more braincells, everytime you post...
User avatar
Zakos
Tycoon
Tycoon
Posts: 3980
Joined: 15 Mar 2012 02:48
Contact:

Re: How to add a new bridge to the game?

Post by Zakos »

I recommend keeping the topic open while you make the changes, and taking it one step at a time. It can get overwhelming if you try to remember everything the first time.
nanth_abc
Engineer
Engineer
Posts: 11
Joined: 06 Jun 2011 01:38

Re: How to add a new bridge to the game?

Post by nanth_abc »

I've done as suggest in viewtopic.php?f=37&t=29348
but there was no new selected bridge show when I opened the game.
how can I do?
User avatar
Zakos
Tycoon
Tycoon
Posts: 3980
Joined: 15 Mar 2012 02:48
Contact:

Re: How to add a new bridge to the game?

Post by Zakos »

Perhaps you made an error. Remember to change the value for "numbridges" near the top, or the new line won't be read.

Also note that you can only have up to 7 bridges per track type. If you add any more, then the .dat file will be recompiled with only 7, leaving off the others.
nanth_abc
Engineer
Engineer
Posts: 11
Joined: 06 Jun 2011 01:38

Re: How to add a new bridge to the game?

Post by nanth_abc »

I've change the "numbridge" to 7 which is the max value.
And my selected bridge is 0 to 7.
So could you suggest me what wrong?
I've go to locomod and edit the savegame but no change
User avatar
Zakos
Tycoon
Tycoon
Posts: 3980
Joined: 15 Mar 2012 02:48
Contact:

Re: How to add a new bridge to the game?

Post by Zakos »

If it goes from 0 to 7, then there are 8 bridges in total (because the numbers start at 0 instead of 1), and you have gone over the limit for bridges. Unfortunately, this means that you have to choose which 7 bridges you prefer to use.
User avatar
Lighthouse
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 29 Jul 2009 17:51
Location: ´s-Hertogenbosch (AKA "The Duke´s Forest") , the Netherlands

Re: How to add a new bridge to the game?

Post by Lighthouse »

Post the part of the code you have edited, maybe we see the problem.
Looks like a small error has been made while edditing the file.
The only thing that is not very successful in the wireless version : Bungee Jumping 8o
Just fold at the dotted line and cut it out with a pair of scissors. If you are under the age of 16 please ask one of your parents or an adult supervisor if she/he can help you.
Image........................................................................................
ImageImage
User avatar
Zakos
Tycoon
Tycoon
Posts: 3980
Joined: 15 Mar 2012 02:48
Contact:

Re: How to add a new bridge to the game?

Post by Zakos »

He changed numbridges to 7, and had 8 bridges (0-7). Ergo, #8 was omitted.
nanth_abc
Engineer
Engineer
Posts: 11
Joined: 06 Jun 2011 01:38

Re: How to add a new bridge to the game?

Post by nanth_abc »

Here is my trackst file.
Is there any wrong code?
</bitmask>
<variable name="numcompat" size="1">7</variable>
<variable name="nummods" size="1">2</variable>
<variable name="numsignals" size="1">10</variable>
<variable name="buildcostfact" size="2">11</variable>
<variable name="sellcostfact" size="2">-10</variable>
<variable name="tunnelcostfact" size="2">49</variable>
<variable name="costind" size="1">1</variable>
<variable name="curvespeed" size="2">400</variable>
<unknown name="field_1E[4]" size="1">1</unknown>
<variable name="numbridges" size="1">7</variable>
<variable name="numstations" size="1">5</variable>
<variable name="displayoffset" size="1">3</variable>
<description num="0" language="0">Railway Track</description>
<description num="0" language="1">Railroad Track</description>
<description num="0" language="2">Voie de chemin de fer</description>
<description num="0" language="3">Eisenbahngleise</description>
<description num="0" language="4">Vํa de ferrocarril</description>
<description num="0" language="5">Binario ferroviario</description>
<description num="0" language="9">ผฑทฮ</description>
<description num="0" language="11">ลKธ๔ญyนD</description>
<useobject desc="compatible[0]" class="17">TRACKNG </useobject>
<useobject desc="compatible[1]" class="20">ROADTMC </useobject>
<useobject desc="compatible[2]" class="20">ROADONE </useobject>
<useobject desc="compatible[3]" class="20">ROADUS2 </useobject>
<useobject desc="compatible[4]" class="20">ROADUS1 </useobject>
<useobject desc="compatible[5]" class="20">ROADRGH </useobject>
<useobject desc="compatible[6]" class="20">ROADTRAM</useobject>
<useobject desc="trackmod[0]" class="16">TREX3RL </useobject>
<useobject desc="trackmod[1]" class="16">TREXCAT1</useobject>
<useobject desc="signal[0]" class="10">SIGS </useobject>
<useobject desc="signal[1]" class="10">SIGSL </useobject>
<useobject desc="signal[2]" class="10">SIGSD </useobject>
<useobject desc="signal[3]" class="10">SIGSDL </useobject>
<useobject desc="signal[4]" class="10">SIGC3 </useobject>
<useobject desc="signal[5]" class="10">SIGC4 </useobject>
<useobject desc="signal[6]" class="10">SIGSW </useobject>
<useobject desc="signal[7]" class="10">SIGCSW </useobject>
<useobject desc="signal[8]" class="10">SIGSUS </useobject>
<useobject desc="signal[9]" class="10">SIGCUS </useobject>
<useobject desc="tunnel" class="13">TUNNEL1 </useobject>
<useobject desc="bridge[0]" class="14">BRDGBRCK</useobject>
<useobject desc="bridge[1]" class="14">BRDGSTAR</useobject>
<useobject desc="bridge[2]" class="14">BRDGGIRD</useobject>
<useobject desc="bridge[3]" class="14">BRDGSUSP</useobject>
<useobject desc="bridge[4]" class="14">BRDGWOOD</useobject>
<useobject desc="bridge[5]" class="14">BRDGEART</useobject>
<useobject desc="bridge[6]" class="14">BRDGCONC</useobject>
<useobject desc="station[0]" class="15">TRSTAT1 </useobject>
<useobject desc="station[1]" class="15">TRSTAT2 </useobject>
<useobject desc="station[2]" class="15">TRSTAT3 </useobject>
<useobject desc="station[3]" class="15">TRSTAT4 </useobject>
<useobject desc="station[4]" class="15">TRSTAT5 </useobject>
User avatar
Zakos
Tycoon
Tycoon
Posts: 3980
Joined: 15 Mar 2012 02:48
Contact:

Re: How to add a new bridge to the game?

Post by Zakos »

There are no errors there, but it sounds like you also wanted bridge[7], which isn't there.

That's because numbridges only goes up to 7 (and thus allows 0-6).
nanth_abc
Engineer
Engineer
Posts: 11
Joined: 06 Jun 2011 01:38

Re: How to add a new bridge to the game?

Post by nanth_abc »

I want bridge[6] which wasn't shown when I opened the game.
The bridge construction menu was only shown other bridges, but not BRDGCONC.
How should I do?
User avatar
Zakos
Tycoon
Tycoon
Posts: 3980
Joined: 15 Mar 2012 02:48
Contact:

Re: How to add a new bridge to the game?

Post by Zakos »

Did you drag the edited .xml back onto LocoTool to recompile the .dat file?
nanth_abc
Engineer
Engineer
Posts: 11
Joined: 06 Jun 2011 01:38

Re: How to add a new bridge to the game?

Post by nanth_abc »

I've edited the file into trackst.dat file and place it objdata folder already.
But it's still not work.
User avatar
Lighthouse
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 29 Jul 2009 17:51
Location: ´s-Hertogenbosch (AKA "The Duke´s Forest") , the Netherlands

Re: How to add a new bridge to the game?

Post by Lighthouse »

the signals don´t have 8 characters
for example [signs ]= only 5 characters, you have to add a few spaces there
Check also the other ones

edit see example code here in first topic
http://www.tt-forums.net/viewtopic.php?f=37&t=29348
The only thing that is not very successful in the wireless version : Bungee Jumping 8o
Just fold at the dotted line and cut it out with a pair of scissors. If you are under the age of 16 please ask one of your parents or an adult supervisor if she/he can help you.
Image........................................................................................
ImageImage
Post Reply

Return to “Locomotion Graphics, Modifications & Tools”

Who is online

Users browsing this forum: No registered users and 1 guest