KainMorgen Posted November 14, 2018 Share Posted November 14, 2018 Hey modders, I will just leave this here and hope someone of you takes over. I replaced some lines in the gamefiles of pigman_city.lua and citypigbrain.lua so the Royal Pig Guards don't have torches in their inventory anymore but candlehats instead. When the daytime changes to dusk, their helm will be hidden and they equip the candlehat while keeping the halberd in their hands. Yes, this means that they will no longer burn the city or your base by setting monsters on fire! That's perfect, right? So what is left to improve: Right now, this writes directly into the gamefiles. You could change it to overwrite as few as possible with the correct postinits. Have fun to improve it and feel free to upload it to the workshop. NoTorches.rar NoTorches.zip Link to comment Share on other sites More sharing options...
Rabot1234 Posted November 16, 2018 Share Posted November 16, 2018 So i downloaded the file but couldn't open it, it said that the file was damaged or on a unsupported file type. I'm using Winrar by the way. Link to comment Share on other sites More sharing options...
KainMorgen Posted November 16, 2018 Author Share Posted November 16, 2018 Some improvements in the code. Still overwriting the gamedata files. Modmain has to add the proper AddComponentPostInit and AddPrefabPostInits. Containers include the current and original pigman_city.lua and citypigbrain.lua as well as a nice png to use as the modicon later on. Reuploaded the container as a .rar and a .zip but the previous container worked for me, so probably just an error during your download. Link to comment Share on other sites More sharing options...
noobyt2 Posted November 18, 2018 Share Posted November 18, 2018 okay now this is something hamlet needs or something like that Link to comment Share on other sites More sharing options...
KainMorgen Posted November 18, 2018 Author Share Posted November 18, 2018 12 hours ago, noobyt2 said: okay now this is something hamlet needs or something like that https://steamcommunity.com/sharedfiles/filedetails/?id=1566480214 This may break on future updates. So I'd be happy if someone else improved on the code. But for now, use it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.