Category | Farming Simulator 22 |
Created | 15.02.2022 14:38 |
Christian Flatebø (Smurfenstein) | 15.02.2022 14:38 |
---|---|
I'm trying to make climate mod like Seasons GEO mods in FS19. I need to make the game use my environment.xml and maps_growth.xml without having to replace files. Anyone got any ideas on how to do that? |
Colin Smith (WrinkleysRule) | 15.02.2022 15:42 |
---|---|
Simply change the file paths in the map.xml |
Christian Flatebø (Smurfenstein) | 15.02.2022 15:48 |
---|---|
Tried that , but then you can't use for multiplayer. Your not allowed to modify and redistribute other modders work without permission. |
Colin Smith (WrinkleysRule) | 15.02.2022 20:30 |
---|---|
" I need to make the game use my environment.xml and maps_growth.xml" "Tried that , but then you can't use for multiplayer. Your not allowed to modify and redistribute other modders work without permission." So what your'e now saying is that it isn't your mod of the ingame enviroment and maps_growth.xml but someone else's or are you talking about the map you are using Anyway I see no problem in using any alterations to a map it for multiplayer as long as all players have the exactly the same spec map and mods |
Christian Flatebø (Smurfenstein) | 15.02.2022 20:39 |
---|---|
Of course its my maps_growth.xml and environment.xml. I can't just modify the maps to use my two xml. I need to make the game load my xml instead of the one that the map.xml from the map tells it to. Want to make it easy to use without having to modify or replace any files. |
Colin Smith (WrinkleysRule) | 15.02.2022 20:54 |
---|---|
Then you will need to create a custom script suggest you check the dataS_scripts in the debugger zip |
Christian Flatebø (Smurfenstein) | 15.02.2022 21:01 |
---|---|
Where do I find debugger.zip? |
Christian Flatebø (Smurfenstein) | 15.02.2022 21:02 |
---|---|
Found it |
Christian Flatebø (Smurfenstein) | 15.02.2022 21:33 |
---|---|
Guess it's this script I Need ---Load data on map load -- @return boolean true if loading was successful else false function TypeManager:loadMapData() local xmlFile = loadXMLFile("typesXML", self.xmlFilename) local i = 0 while true do local key = string.format("%s.type(%d)", self.rootElementName, i) if not hasXMLProperty(xmlFile, key) then break end g_asyncTaskManager:addSubtask(function() self:loadTypeFromXML(xmlFile, key, nil, nil, nil) end) i = i + 1 end g_asyncTaskManager:addSubtask(function() delete(xmlFile) end) g_asyncTaskManager:addSubtask(function() print(" Loaded " .. self.typeName .. " types") end) return true end |
Christian Flatebø (Smurfenstein) | 15.02.2022 21:36 |
---|---|
Patrick Diephout (Petje81) | 01.05.2022 13:37 |
---|---|
Did you ever get this to work? |
Note: Log in to post. Create a new account here.