Page 1 of 1

need help creating the xml, for my new trucks trailers

Posted: 23 Jan 2006 18:04
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?

Posted: 23 Jan 2006 19:03
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.

Posted: 23 Jan 2006 19:13
by mayday
the xml code is one copy from OILTrailer and her goes for my Flatbed Trailers.

Posted: 23 Jan 2006 19:30
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.)

Posted: 23 Jan 2006 19:47
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

Posted: 23 Jan 2006 20:37
by Illegal_Alien
There is a flatbed truck did you look on that one ? (Got Steel / Lumber and Paper ) ?

Posted: 23 Jan 2006 21:03
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

Posted: 24 Jan 2006 20:18
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

Posted: 25 Jan 2006 07:09
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.

Posted: 25 Jan 2006 17:57
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.