Loading...
  OR  Zero-K Name:    Password:   

update broke a mod

8 posts, 174 views
Post comment
Filter:    Player:  
sort
19 days ago
Broken since last zero-k update:

{
striderdetriment = {
customParams = {
ploppable = 1,
},
},
}

this nolonger functions placed on detriment..

any help appreciated as this was a popular mod

making metalcost 0 doesnt solve the problem as engi can make detriment even if i remove it from build options
+0 / -0


18 days ago
Whatever you were doing sounds like unsupported behaviour. Factories are ploppable.
+1 / -0
thanks for the reply Googlefrog your help is much apreciated.

this is now solved thanks bro MmmmM

i would like to take this oppertunity to ask if you like mods googlefrog?
i realize ZK is your own mod and my favourite spring mod. even more then techa.. no offence hakora/senna techa is great fun.

so im really just asking if you like other people mutating the game? not just if its possible or supported.. but the principle of having your own vision of perfection inpire others to dream there own dreams..

i personaly do not see my mods as improvements or in conflict with the zk base game but rather i try to create wierd experamental things that aim to change the feel (originaly inspired by chickens and zombies) =P

+0 / -0
In September a method was added that iterates over all factories. It does so by selecting all units that are 'ploppable' or are named "striderhub". When the iterated unit has no buildoptions an error is thrown.

So, that change formalized the assumption/assertion/expectation that '[only] factories are ploppable'.


for name, ud in pairs(UnitDefs) do
	if ud.customparams.ploppable or name == "striderhub" then
		for i = 1, #ud.buildoptions do
			local unit = ud.buildoptions[i]
			UnitDefs[unit].customparams.from_factory = name
		end
	end
end



Try giving the detri buildoptions.
+2 / -0
yes! thats it! tested and working.

all i needed to do was add:
buildoptions = {
},

where can i post a beer that you can collect? =D
+1 / -0


17 days ago
Mods are good AUrankSmokeDragon. We'd probably need more frequent technical feedback and work from modders to keep things stable though.
+3 / -0
17 days ago
wonderful. i agree with what you said.

i want to help too but even though im the most prolific modder im not very good at it yet. so i tend to need more help then i can yet provide.. but i wont give up. in a few years time i can start to help the next generation.
+0 / -0
I want that beer to go to you. So get one for yourself. Or give one to GF.

Also a tip: get in the habit of scanning the zero-k-repo for changes. I just did a search for 'ploppable' and saw a new method was recently introduced. And then the error is obvious.

If you're stuck of have no clue, do always make a post. People are happy to help.
+2 / -0