need help creating the xml, for my new trucks trailers

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

Moderator: Locomotion Moderators

Post Reply
mayday
Engineer
Engineer
Posts: 70
Joined: 23 Jan 2006 17:23
Contact:

need help creating the xml, for my new trucks trailers

Post by mayday »

first can not good english i com from the german loco fanpage, and i have new trailers created for trucks. there is the link for 3 Flatbed Trailers for the Flatbed Trucks
http://www.locomotion-fanpage.net/forum ... eadid=1514
the problem what i have, I want to load those of trailer with and without a load function outer-did. but white at which do not place I that to change must in xml, and which rates to be registered must.
have the pics png for the flatbed trailers with lumber, paper and stole ready

here is the xml code for the flatbed trailers:

<?xml version="1.0" encoding="ISO-8859-1"?>
<object class="0x97" subclass="0x118281" name="FTRAIL1 "><chunk compression="1">
<variable name="class" size="1">1</variable>
<variable name="type" size="1">2</variable>
<unknown name="field_4" size="1">1</unknown>
<variable name="nummods" size="1">0</variable>
<variable name="costind" size="1">8</variable>
<variable name="costfact" size="2">6</variable>
<variable name="reliability" size="1">0</variable>
<variable name="runcostind" size="1">0</variable>
<variable name="runcostfact" size="2">1</variable>
<variable name="colourtype" size="1">8</variable>
<variable name="numcompat" size="1">1</variable>
<structure name="field_24[0]" size="6">
<variable name="length" size="1">12</variable>
<unknown name="field_1" size="1">12</unknown>
<unknown name="field_2" size="1">255</unknown>
<unknown name="field_3" size="1">255</unknown>
<variable name="spriteind" size="1">0</variable>
</structure>
<structure name="field_24[1]" size="6">
<variable name="length" size="1">0</variable>
<variable name="spriteind" size="1">0</variable>
</structure>
<structure name="field_24[2]" size="6">
<variable name="length" size="1">0</variable>
<variable name="spriteind" size="1">0</variable>
</structure>
<structure name="field_24[3]" size="6">
<variable name="length" size="1">0</variable>
<variable name="spriteind" size="1">0</variable>
</structure>
<structure name="sprites[0]" size="30">
<variable name="numdir" size="1">32</variable>
<unknown name="field_1" size="1">4</unknown>
<unknown name="field_2" size="1">1</unknown>
<variable name="vehtype" size="1">1</variable>
<variable name="numunits" size="1">1</variable>
<unknown name="field_5" size="1">1</unknown>
<variable name="bogeypos" size="1">32</variable>
<bitmask name="flags" size="1">
<bit name="hassprites">1</bit>
<bit name="bit_3">1</bit>
<bit name="bit_4">1</bit>
<bit name="reversed">1</bit>
</bitmask>
<variable name="spritenum" size="1">0</variable>
</structure>
<structure name="sprites[1]" size="30">
<variable name="numdir" size="1">0</variable>
<variable name="vehtype" size="1">0</variable>
<variable name="numunits" size="1">0</variable>
<variable name="bogeypos" size="1">0</variable>
<bitmask name="flags" size="1">
<bit name="hassprites">0</bit>
<bit name="reversed">0</bit>
</bitmask>
<variable name="spritenum" size="1">0</variable>
</structure>
<structure name="sprites[2]" size="30">
<variable name="numdir" size="1">0</variable>
<variable name="vehtype" size="1">0</variable>
<variable name="numunits" size="1">0</variable>
<variable name="bogeypos" size="1">0</variable>
<bitmask name="flags" size="1">
<bit name="hassprites">0</bit>
<bit name="reversed">0</bit>
</bitmask>
<variable name="spritenum" size="1">0</variable>
</structure>
<structure name="sprites[3]" size="30">
<variable name="numdir" size="1">0</variable>
<variable name="vehtype" size="1">0</variable>
<variable name="numunits" size="1">0</variable>
<variable name="bogeypos" size="1">0</variable>
<bitmask name="flags" size="1">
<bit name="hassprites">0</bit>
<bit name="reversed">0</bit>
</bitmask>
<variable name="spritenum" size="1">0</variable>
</structure>
<variable name="power" size="2">0</variable>
<variable name="speed" size="2">25</variable>
<variable name="rackspeed" size="2">0</variable>
<variable name="weight" size="2">3</variable>
<bitmask name="flags" size="2">
<bit name="rackrail">0</bit>
<bit name="bit_8">1</bit>
<bit name="anytrack">1</bit>
<bit name="cancouple">0</bit>
<bit name="dualhead">0</bit>
<bit name="refittable">0</bit>
<bit name="noannounce">1</bit>
</bitmask>
<variable name="visfxheight" size="1">0</variable>
<variable name="visfxtype" size="1">0</variable>
<variable name="wakefxtype" size="1">0</variable>
<variable name="designed" size="2">1900</variable>
<variable name="obsolete" size="2">1950</variable>
<variable name="startsndtype" size="1">0</variable>
<variable name="numsnd" size="1">0</variable>
<description num="0" language="0">Flatbed Trailer 1</description>
<description num="0" language="1">Flatbed Trailer 1</description>
<description num="0" language="2">Remorque-citerne</description>
<description num="0" language="3">Flach-Anhänger</description>
<description num="0" language="4">Remolque cisterna</description>
<description num="0" language="5">Rimorchio cisterna</description>
<description num="0" language="9">ÿÅÊÿÄ¿ ÿÆ®ÿ·¹ÿÀÏÿ·¯</description>
<description num="0" language="11">ÿªoÿÅøÿ©ìÿ¨®</description>
<cargo num="0" capacity="5">
<cargotype id="5">0</cargotype>
<cargotype id="6">512</cargotype>
<cargotype id="7">1024</cargotype>
</cargo>
<useobject desc="compatible" class="23">FTRUCK1 </useobject>

------------------------------------------------------------------------------------

this is momentary pictures stood with flatbed trailers
png.000 first flatbed trailer pic
png.001 first flatbed trailer pic with stop light, aber is not activated
png.002 tow flatbed trailer pic
........
........

like that then the pictures would be lined up with wood paper and stole

png.000 first flatbed trailer pic
png.001 first flatbed trailer pic with stop light, aber is not activated
png.002 first flatbed trailer pic full with lumber
png.003 first flatbed trailer pic full with paper
png.004 first flatbed trailer pic full with stole
png.005 two flatbed trailer pic
png.006 two flatbed trailer pic with stop light, aber is not activated
png.007 two flatbed trailer pic full with lumber
png.008 two flatbed trailer pic full with paper
png.009 two flatbed trailer pic full with stole
......
......

how xml does the code have to be changed now and at which to place to have pays is changed, and which be paid must is at all registered?
Last edited by mayday on 23 Jan 2006 21:12, edited 1 time in total.
natethegreat
Engineer
Engineer
Posts: 76
Joined: 15 Mar 2005 14:04

Post by natethegreat »

Can you post the above as a .XML file, not text? It will be easier to work on that way. I have done several different things with trucks and trams. I would love to help you on this.
There are 10 types of people in the world, those who understand binary and those who don't.
mayday
Engineer
Engineer
Posts: 70
Joined: 23 Jan 2006 17:23
Contact:

Post by mayday »

the xml code is one copy from OILTrailer and her goes for my Flatbed Trailers.
Attachments
FTRAIL1.xml
(37.02 KiB) Downloaded 183 times
natethegreat
Engineer
Engineer
Posts: 76
Joined: 15 Mar 2005 14:04

Post by natethegreat »

mayday wrote:the xml code is one copy from OILTrailer and her goes for my Flatbed Trailers.
If the only changes you made were in the cargo section, then you have made a good start. One problem you may have with the .xml is that the OIL Trailer does not have three sets of .png files. Your trailer has three cargos, and three sets of pictures. Please post all the pictures as a folder. If I have both the pictures and the .XML I should be able to make it work.

P.S. I can not do much about this right now because my computer is at home and I am not. I will look it over when I get home around midnight.

P.P.S. I don't really understand the trouble you are having, and I want to help. Would you describe your problem in German or whatever langauge you prefer? (My German is bad, but I should be able to figure it out.)
There are 10 types of people in the world, those who understand binary and those who don't.
mayday
Engineer
Engineer
Posts: 70
Joined: 23 Jan 2006 17:23
Contact:

Post by mayday »

if i make the cargo pics in the xml, and creat a new xml with new cargo pics and copy the OILtrailer xml code in my new Flatbed Trailer xml with included the new cargo pics, than have i pictures salad. the trailer crossing than in teach was entitled with full loading pics and not with teach pics. the xml code must rewritten for the new pictures for the new pictures. so that the trailer the cargo pics first indicates, if her full loading is
User avatar
Illegal_Alien
Tycoon
Tycoon
Posts: 7824
Joined: 29 Sep 2004 20:07
Location: Kingdom of Far Far Away
Contact:

Post by Illegal_Alien »

There is a flatbed truck did you look on that one ? (Got Steel / Lumber and Paper ) ?
:: 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...
mayday
Engineer
Engineer
Posts: 70
Joined: 23 Jan 2006 17:23
Contact:

Post by mayday »

when i make this fladbet trucks xml code in my fladbet trailer xml

<structure name="field_24[0]" size="6">
<variable name="length" size="1">16</variable>
<unknown name="field_2" size="1">255</unknown>
<unknown name="field_3" size="1">255</unknown>
<variable name="spriteind" size="1">0</variable>
<unknown name="field_5" size="1">192</unknown>
</structure>



<structure name="sprites[0]" size="30">
<variable name="numdir" size="1">32</variable>
<unknown name="field_1" size="1">4</unknown>
<unknown name="field_2" size="1">1</unknown>
<variable name="vehtype" size="1">2</variable>
<variable name="numunits" size="1">4</variable>
<unknown name="field_5" size="1">1</unknown>
<variable name="bogeypos" size="1">30</variable>
<bitmask name="flags" size="1">
<bit name="hassprites">1</bit>
<bit name="bit_3">1</bit>
<bit name="bit_4">1</bit>
<bit name="reversed">0</bit>
</bitmask>


that goes not than is by my trailer pictures salad
mayday
Engineer
Engineer
Posts: 70
Joined: 23 Jan 2006 17:23
Contact:

Post by mayday »

here is that what i mean, if i the cargo pics with integrated in the xml than crossing my trailer completly in wrong position and the trailer load the cargo pics. but her have not loaded
Attachments
3.jpg
3.jpg (159.14 KiB) Viewed 467 times
2.jpg
2.jpg (158.26 KiB) Viewed 482 times
User avatar
TheGrew
Tycoon
Tycoon
Posts: 1726
Joined: 25 Jul 2004 19:25
Location: Warrington UK

Post by TheGrew »

You might find this useful for code http://www.tt-forums.net/viewtopic.php?t=11015
A guy made a trailer for a tram I presume with some editing that this will be suitable.
mayday
Engineer
Engineer
Posts: 70
Joined: 23 Jan 2006 17:23
Contact:

Post by mayday »

alistairgrew wrote:You might find this useful for code http://www.tt-forums.net/viewtopic.php?t=11015
A guy made a trailer for a tram I presume with some editing that this will be suitable.
that help not really, because the tram wagon has only 64 pics and my trailer has 127 pics without cargo pics including, with cargo pics has my trailers than 350 pics.
Attachments
Flatbed Trailer.rar
her my 3 Flatbed Trailers with no cargo pics, an she goes perfectly
(142.79 KiB) Downloaded 88 times
Post Reply

Return to “Locomotion Graphics, Modifications & Tools”

Who is online

Users browsing this forum: No registered users and 16 guests