BA750 includes a new gadget for spawning initial commanders. game_initial_spawn.lua by Niobium. Chickens also includes the old spawn gadget ending up in spawning two commanders. You will probably want to modify chickens to also use Nio's new spawn gadget. Just my guess though...
Can someone tell me if ba/ba chickens is using a modified unitdefs parsing lua? because that could explain why he is getting no errors with the chickens unit defs. IIRC chickens should not have any gamedata/unitdefs*.lua
Can someone tell me if ba/ba chickens is using a modified unitdefs parsing lua? because that could explain why he is getting no errors with the chickens unit defs. IIRC chickens should not have any gamedata/unitdefs*.lua
There is no such file inside bachickens215ba720.sdz In BA720.sdz (dependency of bachickens215) there is gamedata/unitdefs_post.lua.
thanks bad_soldier that worked it fixed player resources too :]
i have fixed the bad units and everything seems to be working, the only thing is the chicken commander self destroying at the start if we can fix that think it will be ready for testing
the error has been fixed with some help, it is now possible to play but i get this error mid-game any ideas?
Code:
[f=0071700] LuaRules::RunCallIn: error = 2, UnitDestroyed, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:1201: DestroyUnit() recursion is not permitted stack traceback: [C]: in function 'DestroyUnit' [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:1201: in function 'UnitDestroyed' [string "LuaRules/gadgets.lua"]:1248: in function <[string "LuaRules/gadgets.lua"]:1245> (tail call): ? [C]: in function 'DestroyUnit' [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:358: in function 'KillOldChicken' [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:1037: in function 'GameFrame' [string "LuaRules/gadgets.lua"]:931: in function <[string "LuaRules/gadgets.lua"]:929> (tail call): ?
when you want to destroy a unit when an other unit was destroyed, i think you have to set a flag, and actually delete it the next time update is called (or something like that).
Didn't realise the changes to BA would make updating this a pain in the ass however I have spent this afternoon fixing it (plus a few small changes), see OP for download link.
Didn't realise the changes to BA would make updating this a pain in the ass however I have spent this afternoon fixing it (plus a few small changes), see OP for download link.
Changelog 2.25 (BA750) - Bit more variation in chicken size / colour - A few new chicken types! - Rebalanced most waves with various tweaks to squads/types - Queen is larger, more effective against Air (2.20 failed to include BA's new air classes on her weapons) - Queen behaviour & squad spawning altered - Possibly more changes I forgot (also added an easter egg..!)
[f=0046912] LuaRules::RunCallIn: error = 2, UnitDestroyed, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:1234: DestroyUnit() recursion is not permitted stack traceback: [C]: in function 'DestroyUnit' [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:1234: in function 'UnitDestroyed' [string "LuaRules/gadgets.lua"]:1248: in function <[string "LuaRules/gadgets.lua"]:1245> (tail call): ? [C]: in function 'DestroyUnit' [string "LuaRules/Gadgets/teamcomends.lua"]:45: in function 'GameFrame' [string "LuaRules/gadgets.lua"]:931: in function <[string "LuaRules/gadgets.lua"]:929> (tail call): ?
[f=0008400] Error: LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:621: 'for' limit must be a number stack traceback: [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:621: in function 'SpawnBurrow' [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:1139: in function 'GameFrame' [string "LuaRules/gadgets.lua"]:931: in function <[string "LuaRules/gadgets.lua"]:929> (tail call): ? [f=0008410] Error: LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:621: 'for' limit must be a number
Code:
616 if (blocking == 2) and (burrowSpawnType == "avoid") then 617 local proximity = GetUnitsInCylinder(x, z, minBaseDistance) 618 local vicinity = GetUnitsInCylinder(x, z, maxBaseDistance) 619 local humanUnitsInVicinity = false 620 local humanUnitsInProximity = false 621 for i=1,vicinity['n'],1 do
Code:
1136 if (burrowCount < minBurrows) or (burrowSpawnTime < (t - timeOfLastSpawn) and burrowCount < maxBurrows) then 1137 if firstSpawn then 1138 for i = 1,math.min(math.ceil((SetCount(humanTeams) * 1.5)) + gracePenalty, 40),1 do 1139 SpawnBurrow() 1140 end
Code:
927 if (unitDefID == LOBBER) then 928 local nSpawn = false 929 if ((GetUnitHealth(unitID) < 2475) and (damage < (2000 + 930mRandom(1,500)))) then nSpawn = true end 930 if ((JUNO[weaponID]) and (mRandom(1,2) == 1)) then nSpawn = true end 931 if nSpawn then
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum