Teardown

Teardown

Piano Fall Weapon
Jiffy UP  [developer] 30 Apr, 2022 @ 3:35pm
Cloning objects in-game
Title says it all. Found a mod on steam, but that is waaay above my league. Does anybody have any suggestions? As in maybe how to create a .xml file from object with lua? Any other approaches you might think of?
< >
Showing 1-8 of 8 comments
Zigbert 6 May, 2022 @ 6:18am 
You should be able to create an XML string from a script, and if you want to make it spawn objects from other mods, there is a way but I don't know how, I'll try to figure it out
Zigbert 6 May, 2022 @ 6:18am 
As in you should be able to just get the file path and put it into the XML file string thing
Jiffy UP  [developer] 6 May, 2022 @ 6:40am 
I'm there with you on method, but maybe you are more experienced in lua to be able to actually create a script. So firs we need to find a body that is being targeted, find it's base group and SOMEHOW convert it to .xml. The first part is kind of doable, but the second; what command do we use to make a prefab? Any luck yet?
Zigbert 6 May, 2022 @ 5:00pm 
Well making an XML would be super easy, you could just make it with a string from Lua, the only thing is that things with tags and special properties would not be kept
Zigbert 6 May, 2022 @ 5:03pm 
We are in different time zones but I can talk to you about it in a about 6 hours
Zigbert 6 May, 2022 @ 5:05pm 
If you trust me you could send me the main.lua of the mod on discord, then I could send it back with the XML stuff working
(Zigbert on Teardown discord)
Jiffy UP  [developer] 7 May, 2022 @ 1:33am 
Had a talk with modder Murdoc through Discord yesterday where he brought to my attention that even with .xml in your MOD folder, there'd be a problem with accessing .vox for models.
So - bullet dodged. Anyways, he said it should be possible via "Spawn(modID:prefabPath/prefab.xml, position) " command, but the ID part is currently bugged.
BUT i'd like to thank you for the offer, because if the problem wasn't exposed, i'd gladly take it ;).
Fatal Frame 28 Jun, 2022 @ 9:42am 
ghost and pals
< >
Showing 1-8 of 8 comments
Per page: 1530 50