LocoTool V0.4.3 [30 Oct 2004]

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

Moderator: Locomotion Moderators

User avatar
Rens2Sea
Engineer
Engineer
Posts: 109
Joined: 13 Sep 2004 10:22
Location: Holland
Contact:

Post by Rens2Sea »

btw, any eta on a version wich allows encoding xml files back to dat?
Oh, and decoding the train tracks so i/others can start working on maglev :P

And another thing, can't you release compiled versions instead of source files only? :? No idea how to compile them let alone wich programs to use to compile them.
CmdKewin
Traffic Manager
Traffic Manager
Posts: 227
Joined: 09 Aug 2003 17:31
Location: Lugano, Switzerland

Post by CmdKewin »

Patchman wrote: The only other language I'd consider writing this in is Perl... it'd be my preferred language, but it'd make it kind of hard for other people without Perl to run it...

plus the fact that parsing in perl is really an easy thing to do... ;)
smallboy
Engineer
Engineer
Posts: 5
Joined: 15 Sep 2004 14:36

Post by smallboy »

I was thinking: wouldn't it be possible to edit a saved game to make all your trains' age 0 years? Or wouldn't that have any effect on the reliability?
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Rens2Sea wrote:btw, any eta on a version wich allows encoding xml files back to dat?
Oh, and decoding the train tracks so i/others can start working on maglev :P

And another thing, can't you release compiled versions instead of source files only? :? No idea how to compile them let alone wich programs to use to compile them.
a) no ETA
b) a few days later, but you'll have to figure the structure out yourself... you'll just see a bunch of "field_##" entries
c) Only if they actually work, otherwise I only publish the source
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Ok, the first working version of LocoTool is done.

Download http://www.ttdpatch.net/loco/locotool_v0.1.zip and unzip it anywhere you like.

To use
  • Drag&drop a vehicle .dat file onto LocoTool. Other .dat files will not work at the moment!
  • Edit the resulting .xml file with Notepad, or better yet with a proper XML editor
  • Modify the .png graphics files if you like
  • Drag&drop the .xml back onto LocoTool to encode the changes back into a .dat file
LocoTool will keep a backup of the original .dat file, with the extension .bak. This backup won't ever be overwritten.

Please report any crashes, error messages or other problems here or by email. I've tested the tool with all of Locomotion's .dat files, and it reproduces them all identically, so in theory it should work for all vehicles.
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Updated LocoTool, now also works for cliff faces (class 04), tunnels (class 0D), bridges (class 0E), train tracks (class 11) and snow (class 19).

Download http://www.ttdpatch.net/loco/locotool_v0.2.zip

One change is that it now puts all png files in a separate folder for each .dat file, to avoid having thousands and thousands of png files in the objdata folder. Also, some more fields in the vehicle structure are now known and I've added them to the .xml output.

Warning: I'll hold further releases of LocoTool hostage (and with that support for changing industries, houses/buildings and other classes) until someone makes me a nice new bridge with the following properties:
  • unlimited speed
  • max height one or two height levels
  • supports slopes and sloped curves
  • looks like grass or earth
Basically it should be like a railroad embankment, that is a gently sloped wall of earth overgrown with grass. I just want my trains to be able to climb one height level without slowing down so much :mrgreen:

Like this:

Image
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

that's evil

Pitty I don't have the full game yet, can only make 'demo' .dat files. ;)

:evil:
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
User avatar
Zimmlock
Tycoon
Tycoon
Posts: 2112
Joined: 02 Dec 2003 16:01
Location: Belgium

Post by Zimmlock »

Hope to be able to edit the house grafix soon, don't like all those black windows. :twisted:
Hodie Mihi Cras Tibi
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

you can
Image
Bloodnok
Engineer
Engineer
Posts: 74
Joined: 11 Sep 2004 19:08
Contact:

Post by Bloodnok »

Patchman wrote:Warning: I'll hold further releases of LocoTool hostage (and with that support for changing industries, houses/buildings and other classes) until someone makes me a nice new bridge with the following properties:
  • unlimited speed
  • max height one or two height levels
  • supports slopes and sloped curves
  • looks like grass or earth
Basically it should be like a railroad embankment, that is a gently sloped wall of earth overgrown with grass. I just want my trains to be able to climb one height level without slowing down so much :mrgreen:
That, sounds like a challenge. :twisted:

Having said that, I've never made anything for TTD or RCT before, only fully 3D simulations. What is the creation procedure for this kind of game? What do I need to know? (And is there anything simpler I should be starting with?)
User avatar
Jak
Engineer
Engineer
Posts: 10
Joined: 17 Sep 2004 06:59
Location: Berlin, Germany

Post by Jak »

hi there

first, i have a small request, can someone make a list of the files in the objdata folder with descriptions (example: concor.dat - Concorde ... and so on), please ?

second, i have modified all engines, trucks, buses, planes, ships (i hope i don't missed one) that there are no breakdowns anymore. (+changes of capacity of the Concorde and the A380)
if someone has webspace to host it (the rar is 8.840.198 Bytes big), all that want it can have it.
all the changes were made with locotool 0.1 (thx for Patchman programming it)

greets from Germany
Jak
There are only 10 types of people in this world: Those who understand binary and those who don't.
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

rens2sea has already done that.
Image
User avatar
Jak
Engineer
Engineer
Posts: 10
Joined: 17 Sep 2004 06:59
Location: Berlin, Germany

Post by Jak »

Born Acorn wrote:rens2sea has already done that.
ohh... i didn't see that. my mistake. :roll:
There are only 10 types of people in this world: Those who understand binary and those who don't.
Dark Rain
Engineer
Engineer
Posts: 4
Joined: 20 Sep 2004 22:30

Post by Dark Rain »

Well, and here I thought I had found myself a new target game to reverse engineer. I hope you left me some file formats :P

I suppose I could started to work on a gui version of the tool but that's always the most time consuming thing for me when making tools for games. You would'nt by any chance have written down the file format description? ^_^. I'll look at the code and get familiar with the file format tonight.
Tyrell
Traffic Manager
Traffic Manager
Posts: 137
Joined: 10 Aug 2003 23:09

Post by Tyrell »

Tyrell wrote:(I'll look at some of the early models tomorrow)
A little later than anticipated (forum downtime).
Looked at a bunch of the early 1900 vehicles (train,bus,etc).
But found no deviations in reliability decay rate's.
Think its save to say that the decay rate is object independent.
Last edited by Tyrell on 21 Sep 2004 07:10, edited 1 time in total.
ampz
Traffic Manager
Traffic Manager
Posts: 158
Joined: 09 Sep 2004 15:03

Post by ampz »

Patchman wrote:Updated LocoTool, now also works for cliff faces (class 04), tunnels (class 0D), bridges (class 0E), train tracks (class 11) and snow (class 19).

Download http://www.ttdpatch.net/loco/locotool_v0.2.zip

One change is that it now puts all png files in a separate folder for each .dat file, to avoid having thousands and thousands of png files in the objdata folder. Also, some more fields in the vehicle structure are now known and I've added them to the .xml output.

Warning: I'll hold further releases of LocoTool hostage (and with that support for changing industries, houses/buildings and other classes) until someone makes me a nice new bridge with the following properties:
  • unlimited speed
  • max height one or two height levels
  • supports slopes and sloped curves
  • looks like grass or earth
Basically it should be like a railroad embankment, that is a gently sloped wall of earth overgrown with grass. I just want my trains to be able to climb one height level without slowing down so much :mrgreen:

Like this:

Image
I would really love such a bridge.
Only slopes and sloped curves need to be supported by the "bridge". The rest can be done by simply raising the land and then lay regular track. But it would be practical to have a "auto raise/lower land to track level" option when you build track... It could be implemented as a new bridge type, only instead of building any bridges, it just raises the land.
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

ampz wrote:I would really love such a bridge.
Only slopes and sloped curves need to be supported by the "bridge". The rest can be done by simply raising the land and then lay regular track. But it would be practical to have a "auto raise/lower land to track level" option when you build track... It could be implemented as a new bridge type, only instead of building any bridges, it just raises the land.
Well, but you can't raise the land by a half height unit, so you can't lay tracks on it without building a bridge. And the only sloped bridge at the moment (brick) has a very low speed limit that even the steam engines hit early on.

I want something reasonably realistic so that my trains can go up or down by a height level without being slowed down as much.

(I now realize that asking for unlimited is perhaps a bit unbalancing, but a reasonably higher speed limit shouldn't be...)
Dark Rain
Engineer
Engineer
Posts: 4
Joined: 20 Sep 2004 22:30

Post by Dark Rain »

I'm looking at the code right now, trying to write down the file format and get a feel of things and I mean holy s*** you worked out a lot of things. Great job, was knowledge of the other TTD any help? I'm wondering if perusing documents about TTD or roller coaster (if there is any) will help.

I'll admit it took me a while to get the hang out of things mainly because I'm a C++ guy and we just don't do things that way ^_^. Well, it's all the same syntax so it's not too bad. Props for using uint8_t, uint32_t and such, few do.
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

The format itself is the same as in RCT2, well documented at the RCT TID (see link in first post). However, the objects all have slightly different structures and so on.
ampz
Traffic Manager
Traffic Manager
Posts: 158
Joined: 09 Sep 2004 15:03

Post by ampz »

Patchman wrote:
ampz wrote:I would really love such a bridge.
Only slopes and sloped curves need to be supported by the "bridge". The rest can be done by simply raising the land and then lay regular track. But it would be practical to have a "auto raise/lower land to track level" option when you build track... It could be implemented as a new bridge type, only instead of building any bridges, it just raises the land.
Well, but you can't raise the land by a half height unit, so you can't lay tracks on it without building a bridge. And the only sloped bridge at the moment (brick) has a very low speed limit that even the steam engines hit early on.

I want something reasonably realistic so that my trains can go up or down by a height level without being slowed down as much.

(I now realize that asking for unlimited is perhaps a bit unbalancing, but a reasonably higher speed limit shouldn't be...)
That's what I meant. The new embankment type bridge only need to support slopes.
I don't think unlimited speed is unbalancing. It is realistic. In reality, the only thing limiting the speed on such a slope is the power of the locomotive. It takes a powerful locomotive to climb a slope at high speed with a heavy load.
Post Reply

Return to “Locomotion Graphics, Modifications & Tools”

Who is online

Users browsing this forum: No registered users and 3 guests