With 84.0 new spring version, BA Chicken 2.25 based on BA 7.50 no-loger works.
Because I didn't see anyone doing a fix on it except dcore that did some // job with me, I'm preparing a BA Chicken 2.30 based on BA 7.62.
I took old BA Chickens 2.25 with BA 7.50
- I change it to use BA 7.62
- I did the following :
<<1st job >>
In /LuaRules/Gadgets/unit_spawner_defense.lua
Code: Select all
for i=1,vicinity['n'],1 do
Code: Select all
for i=1,proximity['n'],1 do
Code: Select all
for i=1,#vicinity,1 do
Code: Select all
for i=1,#proximity,1 do
In /LuaRules/Gadgets/unit_spawner_defense.lua
Code: Select all
for i=1,vicinity['n'],1 do
if (GetUnitTeam(vicinity[i]) ~= chickenTeamID) then
Code: Select all
for i=1,proximity['n'],1 do
if (GetUnitTeam(proximity[i]) ~= chickenTeamID) then
Code: Select all
for index,value in ipairs(vicinity) do
if (GetUnitTeam(vicinity[index]) ~= chickenTeamID) then
Code: Select all
for index,value in ipairs(proximity) do
if (GetUnitTeam(proximity[index]) ~= chickenTeamID) then
1/ Running MOD on spads autohost
- Game stop immediately after comgate
The spads autohost returns :
.../var/infolog.txt
.../var/log/spads.log .../var/log/spads.log (1 players vs 1 chicken kbot)[DedicatedServer] starting server...
Binding UDP socket to IP (v6) :: port 8453
[UDPListener] successfully bound socket on port 8453
[DedicatedServer] recording demo: demos/20111204_111557_Chicken_Nuggets_v4_84.0.sdf
[DedicatedServer] using mod: BA Chicken Defense V2.35 (BA7.62)
[DedicatedServer] using map: Chicken_Nuggets_v4
[DedicatedServer] GameID: 6c48db4e0b9bc7dc23e9dbf0f270f133
.../var/log/spads.log (2 players vs 1 chicken kbot)20111204111612 - INFO - [SPADS] Game started
20111204111617 - WARNING - [PerlAutoHostInterface] Control character #0 encountered while parsing a string received from spring server
20111204111617 - WARNING - [PerlAutoHostInterface] Control character #0 encountered while parsing a string received from spring server
20111204111617 - INFO - [SPADS] End of game
20111204111619 - INFO - [SPADS] Spring server shutting down (running time: 23 seconds)...
20111204154206 - INFO - [SPADS] Spring server started
20111204154236 - INFO - [SPADS] Game started
20111204154241 - WARNING - [PerlAutoHostInterface] Control character #1 encountered while parsing a string received from spring server
20111204154241 - WARNING - [PerlAutoHostInterface] Control character #0 encountered while parsing a string received from spring server
20111204154241 - INFO - [SPADS] End of game
20111204154241 - WARNING - [PerlAutoHostInterface] Control character #0 encountered while parsing a string received from spring server
20111204154241 - WARNING - [PerlAutoHostInterface] Control character #0 encountered while parsing a string received from spring server
20111204154241 - INFO - [SPADS] End of game
20111204154246 - INFO - [SPADS] Spring server shutting down (running time: 40 seconds)...
NEXT ARE PLAYED IN 32 bits mode
2/ Running MOD on SpringLobby SinglePlayer MODE
Game seems working well (tested with low time chicks values), I have time to see chickens & queen.
However, at the end of the game when com died :
.../Spring/infolog.txt
After, this following message is repeating 3 times :[f=0000000] small digital clock is disabled!
[f=0000000] frames-per-second indicator is disabled!
[f=0000000] Connection attempt from Player
[f=0000000] -> Version: 84.0
[f=0000000] -> Connection established (given id 0)
[f=0000000] Player Player finished loading and is now ingame
[f=0000000] GameID: d675db4ecb38f1745964e77a1cdf4421
[f=0000001] Skirmish AI "Bot1" (ID:0, Short-Name:"Chicken: Very Hard", Version:"<not-versioned>") took over control of team 0
[f=0000002] Player added point: Start 0
[f=0000239] Buildings set to face South
[f=0001335] Arm has taken the lead with 1 kills.
[f=0002504] Error: LuaRules::RunCallIn: error = 2, UnitIdle, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:508: Bad unitID parameter in GetUnitDefID()
After, this message repeats, until game stops :stack traceback:
[C]: in function 'GetUnitDefID'
[string "LuaRules/Gadgets/unit_spawner_defense.lua"]:508: in function 'ChooseTarget'
[string "LuaRules/Gadgets/unit_spawner_defense.lua"]:832: in function 'UnitIdle'
[string "LuaRules/gadgets.lua"]:1266: in function <[string "LuaRules/gadgets.lua"]:1264>
(tail call): ?
[f=0002504] Error: LuaRules::RunCallIn: error = 2, UnitIdle, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:508: Bad unitID parameter in GetUnitDefID()
And when game stopped :stack traceback:
[C]: in function 'GetUnitDefID'
[string "LuaRules/Gadgets/unit_spawner_defense.lua"]:508: in function 'ChooseTarget'
[string "LuaRules/Gadgets/unit_spawner_defense.lua"]:832: in function 'UnitIdle'
[string "LuaRules/gadgets.lua"]:1266: in function <[string "LuaRules/gadgets.lua"]:1264>
(tail call): ?
[C]: in function 'GiveOrderToUnit'
[string "LuaRules/Gadgets/unit_spawner_defense.lua"]:1081: in function 'GameFrame'
[string "LuaRules/gadgets.lua"]:931: in function <[string "LuaRules/gadgets.lua"]:929>
(tail call): ?
[f=0002510] Error: LuaRules::RunCallIn: error = 2, UnitIdle, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:508: Bad unitID parameter in GetUnitDefID()
3/ Running MOD on SpringLobby by creating a host[f=0002512] Team 1 (lead by Player) is no more
[f=0002512] Ecostats: widget now in spectator mode.
[f=0002520] <DefenseRange> Spectator mode. Widget removed.
[f=0002520] <GhostRadar> Spectator mode. Widget removed.
[f=0002520] <Ghost Site> Spectator mode. Widget removed.
[f=0002528] <autoquit> Automatically exiting in 5 seconds. Move mouse to cancel.
[f=0002529] <autoquit> Autoquit canceled.
[f=0002692] Statistics for RectangleOptimizer: 18%
[f=0002692] Path cache hits 49 28%
[f=0002692] Path cache hits 232 31%
[f=0002692] Statistics for local connection:
Received: 6213 bytes
Sent: 29853 bytes
Game seems working well (tested with low time chicks values), I have time to see chickens & queen.
However, at the end, see :
.../Spring/infolog.txt
I really regret BA Chickens dying, that why I make a request to those who wants to help.[f=0000000] Finalizing
[f=0000000] small digital clock is disabled!
[f=0000000] frames-per-second indicator is disabled!
[f=0000000] Connection attempt from [ACE]FabriceFABS
[f=0000000] -> Version: 84.0
[f=0000000] -> Connection established (given id 0)
[f=0000000] Player [ACE]FabriceFABS finished loading and is now ingame
[f=0000000] GameID: b17adb4e31d5b077026794791cdf4421
[f=0000001] Skirmish AI "Bot1" (ID:0, Short-Name:"Chicken: Very Hard", Version:"<not-versioned>") took over control of team 0
[f=0000002] [ACE]FabriceFABS added point: Start 0
[f=0000036] Buildings set to face West
[f=0003647] Arm has taken the lead with 1 kills.
[f=0004124] Error: LuaRules::RunCallIn: error = 2, UnitIdle, [string "LuaRules/Gadgets/unit_spawner_defense.lua"]:508: Bad unitID parameter in GetUnitDefID()
stack traceback:
[C]: in function 'GetUnitDefID'
[string "LuaRules/Gadgets/unit_spawner_defense.lua"]:508: in function 'ChooseTarget'
[string "LuaRules/Gadgets/unit_spawner_defense.lua"]:832: in function 'UnitIdle'
[string "LuaRules/gadgets.lua"]:1266: in function <[string "LuaRules/gadgets.lua"]:1264>
(tail call): ?
[f=0004128] Team 1 (lead by [ACE]FabriceFABS) is no more
[f=0004128] Ecostats: widget now in spectator mode.
[f=0004140] <DefenseRange> Spectator mode. Widget removed.
[f=0004140] <GhostRadar> Spectator mode. Widget removed.
[f=0004142] <Ghost Site> Spectator mode. Widget removed.
[f=0004144] <autoquit> Automatically exiting in 5 seconds. Move mouse to cancel.
[f=0004145] <autoquit> Autoquit canceled.
[f=0004392] Statistics for RectangleOptimizer: 13%
[f=0004392] Path cache hits 167 9%
[f=0004392] Path cache hits 264 12%
[f=0004392] Statistics for local connection:
Received: 10170 bytes
Sent: 49101 bytes
I can't continue, lua is not too hard to understand but I can't learn spring game structure in 1 hour or 1 day or 1 month...
MOD Available here : http://springfiles.com/spring/games/ba- ... 230-ba-762
You can also have a try on (spads) [ACE]Serveur_II
Good luck & thx