Community Forum

Deleting animated objects on someone else's map.

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created13.03.2017 13:14


Nick Breidigan (Unknown) 13.03.2017 13:18
Hi. I am rather new at modding and I want to get rid of some of the animated (American) railroad crossings on someone else's map. I have already tried deleting the crossings and after I did the map would not load. Then I remembered that they probably have coding. Do they have any sound files that would be specific to each crossing that I would also have to find and delete? The thing is, I have no idea if I deleted the wrong crossing's coding or not. After I deleted the coding, the map loaded in a weird state were everything was a very dark gray and I was not allowed to move at all.

Does anyone know how to remove these crossings safely?

Emil Drefers (Unknown) 13.03.2017 16:53
Hi,

you need to ajdust the .xml file of the corresponding "train system".

e.g.
map01_trainSystem01.xml
in the folder data/maps

you can check which xml file is the right one, if you analyze the "user attributes" of the train system

In this xml file you have a section which defines "railroadCrossings".
You have to delete the whole section or only corresponding entries depending on the objects you've removed.

Cheers,
Emil



Nick Breidigan (Unknown) 16.03.2017 02:53
The XML files are labed for each train system on this map. My only problem is after I delete the coding, the map usually will not load then. I really don't understand why the map will not load. I delete the crossing on the i3d map and then I delete the detection and sound coding in each train system's XML file. Am I doing something wrong OR am I missing something?

Emil Drefers (Unknown) 16.03.2017 07:00
Hi,

by principal that sounds good to me.

So, let's use an example everybody can follow:

<railroadObject className="RailroadCrossing" index="1" startDistance="125" endDistance="125" >
<gate index="1|0|0" .... />
<gate index="1|1|0" ... />
<signals index="1|0|1" .. . />
<signals index="1|1|1" .... />
<crossingSound ... />
</railroadObject>

You only deleted the some elements inside the <railroadObject> but not everything shown here?
Might be that there are some dependencies in the script which cause an error if an element is not given.
(I can check that later on)

Try to delete the complete section, just to check if that works and if your doing things right.

Cheers,
Emil

Ted Fanning (wickedset) 16.03.2017 09:13
Hi

As Emil has shown above the "index" must run from 1 to the number of crossings you have on the map, so you must delete the highest "index", which should be the bottom one.

If the "index" numbers don't run in order, 1 2 3 4 etc. the map will not load.

The xml file is not worried where the crossings are on the map, just the number, if you have more crossings in the xml than on the map, it won't load but if you have more crossings on the map than the xml, it will load, but the extra ones will not work.

<railroadObject className="RailroadCrossing" index="1" startDistance="125" endDistance="125" >
<gate index="1|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" />
<gate index="1|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/>
<signals index="1|0|1" alternatingLights="true" />
<signals index="1|1|1" alternatingLights="true" />
<crossingSound file="data/maps/sounds/trainCrossingBell.wav" radius="50" innerRadius="20" />
</railroadObject>

<railroadObject className="RailroadCrossing" index="2" startDistance="125" endDistance="125" >
<gate index="2|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" />
<gate index="2|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/>
<signals index="2|0|1" alternatingLights="true" />
<signals index="2|1|1" alternatingLights="true" />
<crossingSound file="data/maps/sounds/trainCrossingBell.wav" radius="50" innerRadius="20" />
</railroadObject>

<railroadObject className="RailroadCrossing" index="3" startDistance="125" endDistance="125" >
<gate index="3|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" />
<gate index="3|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/>
<signals index="3|0|1" alternatingLights="true" />
<signals index="3|1|1" alternatingLights="true" />
<crossingSound file="data/maps/sounds/trainCrossingBell.wav" radius="50" innerRadius="20" />
</railroadObject>

First 3 of my xml file above, if you need to delete one, it must be index="3" complete as Emil said above.

Hope this helps

Nick Breidigan (Unknown) 16.03.2017 13:06
So I was right about the crossings having to be in order in the XML. What if I wanted to delete the second railroad crossing in your list Ted? If I did that would I need to re-number the third one to 2 and I would not have to change the third crossing's name in the i3d file because there would be enough coding for all the crossings in that train system?

Ted Fanning (wickedset) 16.03.2017 19:48
Hi Nick

Just delete the second crossing from the map and delete the bottom, or highest index, <railroadObject> to </railroadObject> in the xml file, it doesn't matter as number 3 on the map will automatically become number 2 in the xml file.

Hope I helped

Nick Breidigan (Unknown) 16.03.2017 20:10
Really? It just automaticly changes the XML so all I have to do is just get rid of the third set of code?

Nick Breidigan (Unknown) 17.03.2017 20:26
OH, NOW I UNDERSTAND what I did wrong!

<railroadObject className="RailroadCrossing" index="1" startDistance="125" endDistance="125" >
<gate index="1|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" />
<gate index="1|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/>
<signals index="1|0|1" alternatingLights="true" />
<signals index="1|1|1" alternatingLights="true" />
<crossingSound file="data/maps/sounds/trainCrossingBell.wav" radius="50" innerRadius="20" />
</railroadObject>

My problem was I was deleting the "</railroadObject>" at the END of the previous crossing's code thinking it was the start of the one I was trying to delete. (This shows how much experience I have with coding, LOL)

Nick Breidigan (Unknown) 18.03.2017 19:14
After I tried getting rid of F9, I couldn't by the way, I have decided that I am not too great at modding and changing many things in Giants Editor because it is just too complex for me. I might just get rid of the crossings, but that is it. I have no idea how to remove PART of a field. If anyone knows how to do that, please tell me.


Note: Log in to post. Create a new account here.