Category | Farming Simulator 19 |
Created | 04.02.2019 19:44 |
Steven Wrubel (oldman102) | 04.02.2019 19:44 |
---|---|
Does anyone have a video or a tutorial on how to add a train system to a new map being made. I have the tracks laid out, but dont know how to add the train. |
Bruce Jensen (dakotatech) | 17.02.2019 17:21 |
---|---|
I have the same issue. I also have tracks laid out and even created a spline, and then I imported the US map TrainSystem.i3d . I can't recall everything I did biut I did have the USmap train high above my terrain following the USmap spline. I 'assume' one needs to have script callback and the correct xml files {edited xml?} in the modmap folder...any help would be appreciated. Thanks in advance. |
Bilbo Beutlin (BBeutlin) | 17.02.2019 23:49 |
---|---|
Take the default maps (mapDE|mapUS/trainSystem) as template. You may export your map's train spline as separate "trainSystem.i3d" to be inserted later via 'defaultItem'. In the associated "trainSystem.xml" you define <train> components and <railroadCrossings> |
Bruce Jensen (dakotatech) | 19.02.2019 02:43 |
---|---|
Bilbo, thanks for your response. I poured through the mapDE/mapUS/mapSA/trainSystems; exported the trainSysten.i3d (defined to my track with spline and placed crossings, then deleted it from my map.i3d) to my maps/placeables file; copied, added, and edited the TrainPlaceable entry to the defaultItems.xml; zipped it up and tested in game....here are my logs applicable train entries, and trafficSystem.xml....(do I need a .lua and which one? I know nothing about scripting) thanks again. GIANTS Engine Runtime 8.0.0 (18307) 64bit (Build Date: Feb 6 2019) Copyright (c) 2008-2019, GIANTS Software GmbH (giants-software.com), All Rights Reserved. Copyright (c) 2003-2019, Christian Ammann and Stefan Geiger, All Rights Reserved. Application: FarmingSimulator2019 Main System CPU: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz Memory: 12210 MB OS: Windows NT 10.0 64-bit Physics System Version: 5.9.5 Thread(s): 2 Input System Keyboard enabled Mouse enabled Gamepad/Joystick enabled Force Feedback disabled Devices: Saitek Side Panel Control Deck (VID: 0738 PID: 2218 VER: 0001 Cat: FARMSIDEPANEL) Logitech Dual Action (VID: 046D PID: C216 VER: 0300 Cat: GAMEPAD) Audio System Driver: SoftMixer WASAPI Stereo Version: 2018.11 Frequency: 48000 Max. active sources: 256 Render System Driver: Direct 3D 11 Card Vendor: NVIDIA Corporation Renderer: NVIDIA GeForce 940M Version: 20.19.15.5058 (16.8.2018) Revision: 162 Feature level: DirectX 11 Windowed Mode : on V-Sync : on Effective Window Resolution: 1920 x 1080 Started 2 threads for threadpool 'Render threadpool' Hardware Profile Level: Custom Very High View Distance Factor: 1.300000 Shadow Quality: 2.000000 Base-Size: 2048 Filter-Size: 16 Shadow Focus Box true Shader Quality: 3 Skip Mipmaps: 0 LOD Distance Factor: 2.000000 Terrain LOD Distance Factor: 2.000000 Terrain Normal Mapping: Yes Foliage View Distance Factor: 1.600000 Volume Mesh Tessellation Factor: 0.750000 Tyre Tracks Segments Factor: 4.000000 Max. Number of Shadow Lights: 8 Max. Number of Lights: 512 Max. Number of Lights Per Cluster: 32 MSAA: 4 Bloom Quality: 5 SSAO Quality: 15 DOF: Enabled Cloud Quality: 4 Setting 'Master Volume': 0.40000000596046 Setting 'Is Train Tabbable': false Setting 'Radio Vehicle Only': true Setting 'Radio Active': false Setting 'Use Colorblind Mode': false Setting 'Easy Arm Control': true Setting 'Show Trigger Marker': true Setting 'Show Field-Info': true Setting 'Invert Y-Look': false Setting 'Show Help Icons': true Setting 'Radio Volume': 0 Setting 'Vehicle Volume': 0.30000001192093 Setting 'Environment Volume': 0.69999998807907 Setting 'GUI Volume': 0.40000000596046 Setting 'Master Volume': 0.40000000596046 Setting 'Music Volume': 0 Farming Simulator 19 Version: 1.3.0.0 b3693 Available Languages: en de jp pl cz fr es ru it pt hu nl cs ct br tr ro kr Language: en Time: 2019-02-18 19:06:33 2019-02-18 19:06 Loaded specializations 2019-02-18 19:06 Loaded vehicle types 2019-02-18 19:06 Loaded placeable types 2019-02-18 19:07 data/vehicles/train/locomotive04/locomotive04.i3d (136.88 ms) 2019-02-18 19:07 data/vehicles/train/wagonGrain/wagonGrain.i3d (111.78 ms) 2019-02-18 19:07 data/vehicles/train/wagonWoodChips/wagonWoodChips.i3d (13.82 ms) 2019-02-18 19:07 data/vehicles/train/wagonTimber/wagonTimber.i3d (11.70 ms) 2019-02-18 19:07 data/vehicles/train/wagonSugarbeets/wagonSugarbeets.i3d (24.34 ms) 2019-02-18 19:07 data/vehicles/train/wagonVehicles/wagonVehicles.i3d (9.76 ms) 2019-02-18 19:07 C:/Users/bjens/Documents/My Games/FarmingSimulator2019/mods/DakotaPlains/maps/placeables/trainSystem/trainSystem.i3d (8.62 ms) 2019-02-18 19:07 Error: Running LUA method 'update'. 2019-02-18 19:07 dataS/scripts/trainSystem/TrainPlaceable.lua(172) : attempt to call method 'setTrainSystem' (a nil value) 2019-02-18 19:07 dataS2/character/humans/player/player01.i3d (609.39 ms) 2019-02-18 19:07 dataS2/character/humans/player/player02.i3d (633.21 ms) 2019-02-18 19:07 Error: Running LUA method 'update'. 2019-02-18 19:07 dataS/scripts/vehicles/specializations/Locomotive.lua(404) : attempt to index field 'trainSystem' (a nil value) 2019-02-18 19:07 Error: Running LUA method 'update'. ---on and on and on until I forced application exit--- {trainSystem.xml} <placeable> <storeData> <name>TrainSystem</name> <image>data/placeables/mapUS/store_trainSystem.png</image> <price>1</price> <canBeSold>false</canBeSold> <showInStore>false</showInStore> <lifetime>1000</lifetime> <rotation>0</rotation> <brand>LIZARD</brand> <species>placeable</species> <category>placeableMisc</category> <vertexBufferMemoryUsage>1366808</vertexBufferMemoryUsage> <indexBufferMemoryUsage>7680</indexBufferMemoryUsage> <textureMemoryUsage>393384</textureMemoryUsage> <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage> <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage> </storeData> <placeableType>trainPlaceable</placeableType> <filename>maps/placeables/trainSystem/trainSystem.i3d</filename> <placement testSizeX="7.5" testSizeZ="10" sizeX="3" sizeZ="3" useRandomYRotation="false" useManualYRotation="true" /> <trainSystem> <spline node="0" splineYOffset="0.155" /> <train> <vehicle xmlFilename="$data/vehicles/train/locomotive04/locomotive04.xml" /> <vehicle xmlFilename="$data/vehicles/train/wagonGrain/wagonGrain.xml" /> <vehicle xmlFilename="$data/vehicles/train/wagonWoodChips/wagonWoodChips.xml" /> <vehicle xmlFilename="$data/vehicles/train/wagonTimber/wagonTimber.xml" /> <vehicle xmlFilename="$data/vehicles/train/wagonSugarbeets/wagonSugarbeets.xml" /> <vehicle xmlFilename="$data/vehicles/train/wagonVehicles/wagonVehicles.xml" /> </train> <railroadCallers> </railroadCallers> <railroadCrossings> <railroadCrossing rootNode="2"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="2|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="2|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="2|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="2|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="2|0|2" alternatingLights="true" /> <signal node="2|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="2" /> </sounds> </railroadCrossing> <railroadCrossing rootNode="3"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="3|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="3|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="3|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="3|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="3|0|2" alternatingLights="true" /> <signal node="3|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="3" /> </sounds> </railroadCrossing> <railroadCrossing rootNode="4"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="4|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="4|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="4|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="4|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="4|0|2" alternatingLights="true" /> <signal node="4|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="4" /> </sounds> </railroadCrossing> <railroadCrossing rootNode="5"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="5|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="5|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="5|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="5|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="5|0|2" alternatingLights="true" /> <signal node="5|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="5" /> </sounds> </railroadCrossing> <railroadCrossing rootNode="6"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="6|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="6|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="6|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="6|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="6|0|2" alternatingLights="true" /> <signal node="6|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="6" /> </sounds> </railroadCrossing> <railroadCrossing rootNode="7"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="7|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="7|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="7|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="7|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="7|0|2" alternatingLights="true" /> <signal node="7|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="7" /> </sounds> </railroadCrossing> <railroadCrossing rootNode="8"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="8|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="8|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="8|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="8|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="8|0|2" alternatingLights="true" /> <signal node="8|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="8" /> </sounds> </railroadCrossing> <railroadCrossing rootNode="9"> <activation startDistance="125" endDistance="125" /> <gates> <gate node="9|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" /> <gate node="9|0|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> <gate node="9|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/> <gate node="9|1|1" startTrans="0 0 0" endTrans="0 1.2 0" duration="2"/> </gates> <signals> <signal node="9|0|2" alternatingLights="true" /> <signal node="9|1|2" alternatingLights="true" /> </signals> <sounds> <crossing template="TRAIN_CROSSING_BELL_01" linkNode="9" /> </sounds> </railroadCrossing> </railroadCrossings> </trainSystem> </placeable> |
Bilbo Beutlin (BBeutlin) | 19.02.2019 04:06 |
---|---|
How about your entry in "defaultItems.xml"? It should look like <item mapBoundId="trainSystem" className="TrainPlaceable" filename="$moddir${myMapName}/{filePath}/trainSystem.xml" position="0 0 0" rotation="0 0 0" /> -- or you use (may require game v1.3) <item mapBoundId="trainSystem" className="TrainPlaceable" filename="$mapdir$/{filePath}/trainSystem.xml" position="0 0 0" rotation="0 0 0" /> |
Bruce Jensen (dakotatech) | 19.02.2019 20:48 |
---|---|
Bilbo, yes I'm running v1.3.0.0 so I used the later <item />. But I'm still getting error: 2019-02-19 13:21 Error: Running LUA method 'update'. 2019-02-19 13:21 dataS/scripts/vehicles/specializations/Locomotive.lua(404) : attempt to index field 'trainSystem' (a nil value) I imported the train vehicles into the map.i3d but did not align the locomotive04 (US map) to the S point of the spline...The y rot is aligned to the spline direction. I then copied the xyz pos of each vehicle to put in the defaultVehicles.xml. I then deleted the train vehicles from the map.i3d. {defaultVehicle entry. copied from Ravenport with my coordinates}{the other vehicles are similar and attached to each other} <vehicle id="" filename="data/vehicles/train/locomotive04/locomotive04.xml" isAbsolute="true" age="0.000000" price="164000.000000" farmId="0" propertyState="0" operatingTime="1758.791016"> <component1 position="-877.53 50.25 -200.105" rotation="0.0000 0.0000 0.0000"/> <configuration name="wheel" id="1"/> <configuration name="motor" id="1"/> <boughtConfiguration name="motor" id="1"/> <boughtConfiguration name="wheel" id="1"/> <drivable cruiseControl="80.000000"/> <attacherJoints comboDirection="-1"/> </vehicle> I' missing something and still wonder if I need a lua somewhere. Thanks again |
Bilbo Beutlin (BBeutlin) | 19.02.2019 22:05 |
---|---|
You can only insert the complete train - not single vehicles. The <train> you must define in the "trainSystem.xml". What you have copied is an entry from your savegame's "vehicle.xml" - that won't work at all. |
Bruce Jensen (dakotatech) | 20.02.2019 03:55 |
---|---|
Thank you, thank you, thank you!!! That was what I was missing, or, what I did wrong! |
Peter Cooper (Unknown) | 26.03.2019 01:05 |
---|---|
Hi to all is anybody able to tell me about railroadCaller I have all trains Line01 and Line02 up and running But when i import railway crossings eg line01 I loose that particular train the error in my log is Error: Failed to find child 3 from node trainSystem01, only 3 childs given I have edited trainSystem XML with railway crossing 1 to 7 the number of crossing on that line I have searched the internet for a week and no luck Any help would be gratefully accepted THANKS |
Bruce Jensen (dakotatech) | 26.03.2019 15:16 |
---|---|
Peter, I believe you need to import your trainSystems.i3d into your map, copy a crossing and place it where you want it, export your trainSystems back to your file (replace: yes) and then remove same from your map. Hope this helps. |
Paul Sid (gizman) | 20.05.2019 11:38 |
---|---|
i have no luck at all adding train to new map i dont understand nothing |
Onkel Yogi (onkelyogi) | 21.07.2019 07:36 |
---|---|
anybody got an idea how to define the railroadCallers section inside the trainsystem.xml ? |
Note: Log in to post. Create a new account here.