Page 1 of 1

Kernel Panic 4.2

Posted: 18 May 2011, 00:55
by zwzsg
Kernel Panic 4.2 out!
Image


4.1 -> 4.2 changes:
  • Added KingOfTheHill gamemode
  • Merged with Invasion
  • Fixed invasion structure spawning on already occupied spots
  • Limited invasion error spam when maxing unit count
  • Fixed issue with HostIP=localhost;
  • Fixed null texture still showing rectangle on some explosions
  • Added maps Memory Bank, Pacman, Hex Farm
  • Added support for triggers in my mission system
  • Added a new single player mission, about avoiding NX flags on HexFarm
  • Added a mission that is an automated pathfinder test
  • Fixed unitsync unitlist crash (so Quantum's mission builder can be used)
  • ColorWars now doesn't grow diagonally if it can't grow adjacently
  • Metal2Geo spawn less datavents on metal map
  • Preplaced can now also be a custom team mod option, in which case it override the modoption
  • DoS beam refreshes four time quicker
  • The Obelisk infection cloud now only affect enemies
  • Now flows speed gets properly updated when they're given to another team
  • Added support to modify via modoptions almost any property of any Unit/Weapon/Feature

Re: Kernel Panic 4.2

Posted: 18 May 2011, 13:32
by hoijui
wow.. that image is perfect!
that alone wants me to play KP. love the logo!
You should definitely put that picture everywhere where people might read about KP, and use the logo everywhere!

Re: Kernel Panic 4.2

Posted: 18 May 2011, 16:52
by zwzsg
But, as an engine dev, it's the automated pathfinder test that was supposed to catch your attention!

Re: Kernel Panic 4.2

Posted: 18 May 2011, 19:03
by hoijui
indeed.. sounds interesting!
as maybe Kloot can make use of it.

Re: Kernel Panic 4.2

Posted: 24 May 2011, 02:59
by zwzsg

Re: Kernel Panic 4.2

Posted: 23 Jun 2011, 04:38
by abma
doesn't work with current spring master:

[f=0000824] LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/luacob.lua"]:51: attempt to index field '?' (a nil value)
stack traceback:
[string "LuaRules/Gadgets/luacob.lua"]:51: in function 'GameFrame'
[string "LuaRules/Gadgets/hotfixes.lua"]:43: in function <[string "LuaRules/Gadgets/hotfixes.lua"]:40>
(tail call): ?

http://springrts.com/phpbb/viewtopic.php?f=14&t=26302

(if not already known)

Re: Kernel Panic 4.2

Posted: 24 Jun 2011, 00:55
by zwzsg
Line51 of LuaCob.lua?

Code: Select all

Spring.Echo("Error: Failed to replace team["..u.team.."] "..UnitDefs[Spring.GetUnitDefID(u.unit)].humanName.." with "..UnitDefNames[u.target].humanName)
Sure you don't mean Line46?

Code: Select all

for i = 1, c.n do
And aowww, I thought KP was free of .n, but seems not, I'll still have to make a new version for new Spring. :?

Re: Kernel Panic 4.2

Posted: 24 Jun 2011, 12:07
by hoijui
as the change is backwards compatible, you can just release a new bug-fixed version right away, which would still work with the release version.

Re: Kernel Panic 4.2

Posted: 25 Jun 2011, 10:26
by KDR_11k
zwzsg wrote:Line51 of LuaCob.lua?

Code: Select all

Spring.Echo("Error: Failed to replace team["..u.team.."] "..UnitDefs[Spring.GetUnitDefID(u.unit)].humanName.." with "..UnitDefNames[u.target].humanName)
Sure you don't mean Line46?

Code: Select all

for i = 1, c.n do
And aowww, I thought KP was free of .n, but seems not, I'll still have to make a new version for new Spring. :?
Attempt to index field "?" means an index that's not the first (then it knows the name) nor the last (then it just returns nil) in the chain was nil. My guess is that one of the parts in [] is invalid so you get a nil out of one of the UnitDefs maps and then attempt to get an entry from them which triggers the message. So either u.target or GetUnitDefID(u.unit) is not a valid entry.

Re: Kernel Panic 4.2

Posted: 01 Jul 2011, 19:59
by zwzsg
abma wrote:doesn't work with current spring master:

[f=0000824] LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/luacob.lua"]:51: attempt to index field '?' (a nil value)
stack traceback:
[string "LuaRules/Gadgets/luacob.lua"]:51: in function 'GameFrame'
[string "LuaRules/Gadgets/hotfixes.lua"]:43: in function <[string "LuaRules/Gadgets/hotfixes.lua"]:40>
(tail call): ?

http://springrts.com/phpbb/viewtopic.php?f=14&t=26302

(if not already known)
I don't manage to replicate this particular error. Do you have a replay and the Spring version you used, or can you tell me what you were doing, or what happened using?


Note: There do is a bug around there, related to .n, which happens when a unit is morphing, and which comes out in infolog as:
[f=0004364] LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/luacob.lua"]:46: 'for' limit must be a number
stack traceback:
[string "LuaRules/Gadgets/luacob.lua"]:46: in function 'GameFrame'
[string "LuaRules/Gadgets/hotfixes.lua"]:43: in function <[string "LuaRules/Gadgets/hotfixes.lua"]:40>
(tail call): ?

However, the bug you had, while happening in close proximity code source wise, is different, and I wonder what triggered your bug.

Re: Kernel Panic 4.2

Posted: 02 Jul 2011, 03:32
by knorke
kp4.2 also uses Spring.SetUnitLineage (removed in 0.83) in game_spawn.lua

Re: Kernel Panic 4.2

Posted: 02 Jul 2011, 16:38
by zwzsg
Yeah, but it redefines the function to one that does nothing if it doesn't exist, in some of the earliest executed part of the Lua. So that (at least in theory) it's retrocompatible with older Spring engine.

Re: Kernel Panic 4.2

Posted: 29 Jul 2011, 22:34
by darvit
For some reason the whole screen turns green when I try to build a window/any other building. What gives?

Re: Kernel Panic 4.2

Posted: 29 Jul 2011, 22:41
by knorke

Re: Kernel Panic 4.2

Posted: 30 Jul 2011, 00:17
by darvit
Excellent. Solved the problem. The geovent highlighter in particular.