Page 2 of 5

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 30 Oct 2010 10:13
by CCMRT
Hi,

After changing the <useobject desc="station[0]" class="15">TRSTAT1 </useobject> to <useobject desc="station[0]" class="15">MSTAT1 </useobject>
the Locotool says cant read C\:Users\ABC\Desktop\trackst\000.png : No such file or directory
Please help! :bow:

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 30 Oct 2010 10:24
by Illegal_Alien
Add another space.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 30 Oct 2010 10:31
by CCMRT
Hi,
Thanks a lot! I finally got it to work.
:D

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 05 Dec 2010 19:38
by Badger
Illegal_Alien wrote:Before you continue
Be warned: I am not responsible for any damage to your Locomotion installation, or your mariage. Make sure you have a full copy of your working objdata folder.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 05 Dec 2010 21:30
by SD89MAC
IT WONT WORK! wrote:
Badger wrote:
Illegal_Alien wrote:Before you continue
Be warned: I am not responsible for any damage to your Locomotion installation, or your mariage. Make sure you have a full copy of your working objdata folder.
But does it like break your disk? I don't understand it.
No, it means if you do something wrong, you'll have to re-install Locomotion.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 23 Dec 2010 11:35
by Martoon
Hi guys.

I have a quick question :

I'd like to install zimms depots to my Locomotion.
I putted all the files into the ObjData folder
Then I opened the trackst.xml
I added them in lines:

Code: Select all

	<useobject desc="station[0]" class="15">TRSTAINV</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>
	<useobject desc="station[5]" class="15">TRSTATFR</useobject>
	<useobject desc="station[6]" class="15">TRSTAFRT</useobject>
	<useobject desc="station[7]" class="15">DEPOT00 </useobject>
	<useobject desc="station[8]" class="15">DEPOT40 </useobject>
	<useobject desc="station[9]" class="15">DEPOT80 </useobject>
But then I was realized that there is just only 7 statiuons possible in locomotion.
But ok then there is just five and the first (Depot00) is just the seventh of them
Everything is in the scenario editor - I selected them, but nothing.
The stations menu can't have them :roll:
Then I searched the savegame in the Locomotion savegame editor and I found that the railway track dont uses these stations ._. Why? What can I do? Please reply :(

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 24 Dec 2010 09:56
by Emperor Darth Sidious
Best thing to do is make a choice wich depot's you want to use...I only use 2 myself, because I want to use some other stations as well.

Since you can only use 7 stations the game wont read more of them...

<variable name="numstations" size="1">7</variable>

If you change this line to a higher number the game will crash...so you have to leave it untouched.

So pick on or two you like and replace them with one of the original stations like this, this is how my TRACKST.xml looks like:

<useobject desc="station[0]" class="15">TRSTAINV</useobject>
<useobject desc="station[1]" class="15">TRSTAT2 </useobject>
<useobject desc="station[2]" class="15">DEPOT00 </useobject>
<useobject desc="station[3]" class="15">DEPOT80 </useobject>
<useobject desc="station[4]" class="15">TRSTAT5 </useobject>
<useobject desc="station[5]" class="15">TRSTATFR</useobject>
<useobject desc="station[6]" class="15">TRSTAFRT</useobject>


Number 0 counts as a number as well...so DEPOT00 being number 7 (in you're XML file, not mine) is actually number 8, and therefore cannot be used. The game will see them and you'll see them in the editor, but you will only be able to use the first 7 from the XML.file...(numbers 0 to 6)

Hope this helped !

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 03 Jan 2011 00:15
by Badger
Off topic guff is here.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 12 Jan 2011 21:16
by Hyronymus
IT WONT WORK! wrote:"Edit the .XML file
Find in the XML the following lines: (Example of the trackng.dat (Narrow gauge))"

What do you mean by this? I dragged the bridge over to the locotool. Opened the XML file in notepad and i dont get this part...
Please read again and use some imagination.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 13 Jan 2011 03:02
by SD89MAC
IT WONT WORK! wrote:
Hyronymus wrote:
IT WONT WORK! wrote:"Edit the .XML file
Find in the XML the following lines: (Example of the trackng.dat (Narrow gauge))"

What do you mean by this? I dragged the bridge over to the locotool. Opened the XML file in notepad and i dont get this part...
Please read again and use some imagination.
That didn't help at all so why bother responding? I read it like 5 times! It doesn't make sense. When i open the XML file in notepad it doesn't show "useobject"
That's because "useobject" won't be found in a bridge XML. It's found in a road or track XML, which is the example used.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 13 Jan 2011 10:13
by Illegal_Alien
Yes *points at first post*.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 13 Jan 2011 11:44
by Hyronymus
Illegal_Alien wrote:[...]or people here realy lacking something.
Tact?

Anyhow people, read through the whole topic carefully before jumping to the conclusion it isn't there.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 13 Jan 2011 22:00
by Plastikman
Ugh!

As instructed by everyone else.. not to mention the 800 other people that asked this question already if we tried search...

lets read the first post together shall we?
Illegal_Alien wrote:Add things to Road, Normal Gauge & Narrow Gauge? (like bridges, stations and signals)
now lets stop there for a moment... ok. caught the key word? lets go on shall we?
Illegal_Alien wrote:Decompile the .dat file of the Road (road.dat) or Normal Gauge (trackst.dat or Narrow Gauge (trackng.dat) with LocoTool
Drag the file over the LocoTool.exe and drop, you will see an .XML file with the same name as the .dat file you just dragged and dropped.

Edit the .XML file

OK.. now.. if you kept reading you would have read this?
Illegal_Alien wrote: Add the following line (I used the example .dat filename as mentioned.) for a new bridge:

Code: Select all

<useobject desc="bridge[5]" class="14">NEWBRDG1</useobject>
OK.. that should point you in the right direction.....


@admins. you do not see screaming red. that is just your eyes tired. that is a good indication that you should ignore this post and get a pint to relax and refresh yourself..

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 13 Jan 2011 22:50
by Hyronymus
IT WONT WORK! wrote:If im adding them to road. Where do i find road?
Ok. So let me get this through my head. I have to replace the bridge or station with (road.dat) or (trackst.dat or narrow gauge (trackng.dat)?
For the last time before issueing a warning: read the whole topic carefully and use your imagination. What's been written here may not apply litterally, find the concept / the generic idea behind it.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 13 Jan 2011 23:35
by Plastikman
it has been answered.

there are hundred posts out there of people complaining that bridges, signals and stations dont work...

those are advanced mods because you have to EDIT your TRACK file....

Look at what i put in red.

here is one example of someone asking the exact same question about zimmlocks sheds.....
http://www.tt-forums.net/viewtopic.php?p=789755#p789755

there are many more.. hints* search for bridge, station, trackst, etc.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 16 Jan 2011 03:44
by JOVillamor
i tried it and it didnt work

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 03 Mar 2011 17:19
by cartographer29
From http://www.tt-forums.net/viewtopic.php?f=40&t=53219
I've successfully installed Earth Slopes, the Steel Bridge, and am now trying for the Arch Bridge. However, it seems as though the 3rd and final bridge, in whatever combination I try and install them, makes all others become unavailable.

In the scenario creator, all bridge types, including the custom ones, show up and can be selected. However, when I try and play the game, one of two things happens ...

- If only 2 custom bridges are installed and referenced in the TRACKST.DAT, then they will show properly in the list of bridge options when laying track, and can be used willingly.
- If all 3 custom bridges are installed and referenced in the TRACKST.DAT, NONE will show in the list of bridge options and only the game default bridges are available. However, if I build anything but standard track (road, tram, etc.), the Arch bridge is an available option (it's the only custom bridge installed for every mode other than standard rail).
Posting my XML here to see if anyone can find the error. Haven't been able to find the problem and I've gone through the process at least 3 times. Obviously missing something.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 03 Mar 2011 18:28
by Plastikman
cartographer29 wrote:From http://www.tt-forums.net/viewtopic.php?f=40&t=53219
I've successfully installed Earth Slopes, the Steel Bridge, and am now trying for the Arch Bridge. However, it seems as though the 3rd and final bridge, in whatever combination I try and install them, makes all others become unavailable.

In the scenario creator, all bridge types, including the custom ones, show up and can be selected. However, when I try and play the game, one of two things happens ...

- If only 2 custom bridges are installed and referenced in the TRACKST.DAT, then they will show properly in the list of bridge options when laying track, and can be used willingly.
- If all 3 custom bridges are installed and referenced in the TRACKST.DAT, NONE will show in the list of bridge options and only the game default bridges are available. However, if I build anything but standard track (road, tram, etc.), the Arch bridge is an available option (it's the only custom bridge installed for every mode other than standard rail).
Posting my XML here to see if anyone can find the error. Haven't been able to find the problem and I've gone through the process at least 3 times. Obviously missing something.
Plastikman wrote:Two big problems with this tutorial. as is, It wont work.

1 You fail to mention the maximum number of mods you can add to a road/track, 7 for stations and bridges. and 16 for signals and only 1 for tunnels.

2 You have to tell the XML how many Mods for each type to look for in the mods section.

Snipped from Trackst.dat. the same lines are valid for the other track/road types.

Code: Select all

  	</bitmask>
	<variable name="numcompat" size="1">7</variable>
	<variable name="nummods" size="1">2</variable>
	<variable name="numsignals" size="1">14</variable>    <===========<<< You need to change this line to reflect how many signals You have. (Max 16)
	<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>     <===========<<< You need to change this line to reflect how many bridges You have. (Max 7)
	<variable name="numstations" size="1">7</variable>    <===========<<< You need to change this line to reflect how many stations You have. (Max 7)
	<variable name="displayoffset" size="1">3</variable>
	<description num="0" language="0">Railway Track</description>
You exceeded the maximum number of bridges per track file.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 03 Mar 2011 18:56
by cartographer29
Plastikman wrote:You exceeded the maximum number of bridges per track file.
Could have sworn I read it was 8 somewhere. Perhaps it is because it lists 8 in the scenario creator. Hmmm ... such a pain. Oh well.

Is it possible to remove any of the "in game" bridges to create room for any extra custom ones? Suspension bridge never tickled my fancy really.

Edit: Trial and error answered my question. Yes, I can. So now I have my custom bridges, and the never used suspension bridge has been removed for rail use.

Re: [HOWTO]Add things to Road, Normal Gauge & Narrow Gauge?

Posted: 29 Apr 2011 16:35
by LocoDeltic
This has probably been asked A LOT but I've only just joined and couldnt find the search option.

I've downloaded a set of locomotion sheds, installed them. They do come up to select for availablity to use when making a custom scenario and I've selected them, but when I play that scenario they don't appear.

Do I have to use all this coding stuff to get them to work?