Kernel Panic 4.2

Kernel Panic 4.2

Moderator: Content Developer

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7031
Joined: 16 Nov 2004, 13:08

Kernel Panic 4.2

Post 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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Kernel Panic 4.2

Post 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!
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7031
Joined: 16 Nov 2004, 13:08

Re: Kernel Panic 4.2

Post by zwzsg »

But, as an engine dev, it's the automated pathfinder test that was supposed to catch your attention!
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Kernel Panic 4.2

Post by hoijui »

indeed.. sounds interesting!
as maybe Kloot can make use of it.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7031
Joined: 16 Nov 2004, 13:08

Re: Kernel Panic 4.2

Post by zwzsg »

abma
Spring Developer
Posts: 3655
Joined: 01 Jun 2009, 00:08

Re: Kernel Panic 4.2

Post 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)
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7031
Joined: 16 Nov 2004, 13:08

Re: Kernel Panic 4.2

Post 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. :?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Kernel Panic 4.2

Post 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.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Kernel Panic 4.2

Post 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.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7031
Joined: 16 Nov 2004, 13:08

Re: Kernel Panic 4.2

Post 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.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Kernel Panic 4.2

Post by knorke »

kp4.2 also uses Spring.SetUnitLineage (removed in 0.83) in game_spawn.lua
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7031
Joined: 16 Nov 2004, 13:08

Re: Kernel Panic 4.2

Post 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.
darvit
Posts: 20
Joined: 28 Jan 2010, 14:02

Re: Kernel Panic 4.2

Post by darvit »

For some reason the whole screen turns green when I try to build a window/any other building. What gives?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Kernel Panic 4.2

Post by knorke »

darvit
Posts: 20
Joined: 28 Jan 2010, 14:02

Re: Kernel Panic 4.2

Post by darvit »

Excellent. Solved the problem. The geovent highlighter in particular.
Post Reply

Return to “Kernel Panic”

cron