Kernel Panic 4.4
Moderator: Content Developer
Kernel Panic 4.4 not working with Spring 87?
Hi, I am trying to run KP 4.4 with Spring 87 on Linux (spring from Ubuntu PPA).
The game loads but just does not start after the 3,2,1 countdown. It just says something like "AI taking over..." and the units/bases just don't spawn.
The game loads but just does not start after the 3,2,1 countdown. It just says something like "AI taking over..." and the units/bases just don't spawn.
Re: Kernel Panic 4.4
Thanks for the bug report.
- A change in the engine resulted in WeaponDefs entries somehow losing their pairs method.
- This broke one of KP gadget (specialattack.lua line 35)
- This failure somehow brought down every following gadget.
- The gadget responsible for spawning start units is thus absent.
- Nobody gets any start unit!
I will probably have to release a version 4.5 of Kernel Panic. Might take me between a week and a month.
Meanwhile, I hope you can downgrade your Spring to version 85.0.
- A change in the engine resulted in WeaponDefs entries somehow losing their pairs method.
- This broke one of KP gadget (specialattack.lua line 35)
- This failure somehow brought down every following gadget.
- The gadget responsible for spawning start units is thus absent.
- Nobody gets any start unit!
I will probably have to release a version 4.5 of Kernel Panic. Might take me between a week and a month.
Meanwhile, I hope you can downgrade your Spring to version 85.0.
Re: Kernel Panic 4.4
not sure if is that. When you add an echo:WeaponDefs entries somehow losing their pairs method.
Code: Select all
for id,weaponDef in pairs(WeaponDefs) do
for name,param in weaponDef:pairs() do
Spring.Echo (name)
end
end
Code: Select all
[f=0000000] accuracy
[f=0000000] false
[f=0000000] Error in Initialize(): ERROR_TYPE in WeaponDefs __index
Maybe the WeaponDefs table is somehow corrupted?
Re: Kernel Panic 4.4
FLOZi, your link is inconsistent with your words.
We have had some other threads on Spring forum about how .areaOfEffect, .maxVelocity, .onlyTargetCategories fields have been removed from weapon definitions, and even explanations from developpers on the why.
The dev also decided to make errors caused by trying to use those missing fields less serious, which is what your link is about. It's somehow related to the issue I mentioned above as the error would cascade less.
But we still don't know if the removal of :pairs was intentional or "accidental oversight".
I'm also curious to know why was :pairs added in the first place, why it was removed, ...
We have had some other threads on Spring forum about how .areaOfEffect, .maxVelocity, .onlyTargetCategories fields have been removed from weapon definitions, and even explanations from developpers on the why.
The dev also decided to make errors caused by trying to use those missing fields less serious, which is what your link is about. It's somehow related to the issue I mentioned above as the error would cascade less.
But we still don't know if the removal of :pairs was intentional or "accidental oversight".
I'm also curious to know why was :pairs added in the first place, why it was removed, ...
Re: Kernel Panic 4.4
Removal of fields was intended.
Error on :pairs() is clearly (mind-bogglingly obviously) unintended and has therefore now been rectified (see link).
Error on :pairs() is clearly (mind-bogglingly obviously) unintended and has therefore now been rectified (see link).
Re: Kernel Panic 4.4
Then I just fail at seeing 'pairs' in your link.
knorke says 'pairs' loops a couple times before the error, which would indicate pairs was not removed, just made wonky.
knorke says 'pairs' loops a couple times before the error, which would indicate pairs was not removed, just made wonky.
Re: Kernel Panic 4.4
It fails specifically on those fields which were removed, my interpretation of the commit message is that those fields can now be safely iterated over again.zwzsg wrote:Then I just fail at seeing 'pairs' in your link.
knorke says 'pairs' loops a couple times before the error, which would indicate pairs was not removed, just made wonky.
Re: Kernel Panic 4.4
Does it mean latest KP from git repo will work?FLOZi wrote:https://github.com/spring/spring/commit ... 5f76782346
accidental oversight it looks like
Re: Kernel Panic 4.4
Doubtful. I'll try to update this weekend. This fix is small, but I'm afraid there's more.
Kernel Panic 4.4 on Spring 87.0.1-54-g5df3e5b
Just built Spring from git sources, version 87.0.1-54-g5df3e5b.
Now KP gets stuck at "Choose Start Position", no matter what the configuration is.
Will try rolling spring back to 85...
Now KP gets stuck at "Choose Start Position", no matter what the configuration is.
Will try rolling spring back to 85...
Re: Kernel Panic 4.4
The bad new is that I haven't released a 4.5 yet.
The good new is that the missing weapon def field crash was made less severe in Spring 88, so Kernel Panic 4.4 works again in Spring 88.
The good new is that the missing weapon def field crash was made less severe in Spring 88, so Kernel Panic 4.4 works again in Spring 88.
Re: Kernel Panic 4.4
Anything else that might make it into 4.5?
Re: Kernel Panic 4.4
Waffle: a new unit that can only be defeated by either eating it or attacking it's top with syrup.
Re: Kernel Panic 4.4
The only changes I've gathered so far are:Neddie wrote:Anything else that might make it into 4.5?
- Removed the debug code in specialattack.lua that caused issue to Spring 87
- Update the flows speed often, as an attempt to override max speed change getting reset
- Changed carrier animation script to detect cancel differently
But I'm not even sure they're worth making a 4.5, considering the speed change still isn't properly fixed, and that Spring 88 prints errors but don't crash on the for name,param in weaponDef:pairs()
Re: Kernel Panic 4.4
I doubt this'll get read any time soon, but theres a major bug with kernel panic.
It doesn't run! I can get it as far as the menus, with the units battling in the background, but once I try to run the game, it quits to the desktop. no popup message no nothing! I use windows 7 btw.
It doesn't run! I can get it as far as the menus, with the units battling in the background, but once I try to run the game, it quits to the desktop. no popup message no nothing! I use windows 7 btw.
Re: Kernel Panic 4.4
(try to) play a game of KP, then post the infolog.txt file
http://springrts.com/wiki/Infolog.txt
http://springrts.com/wiki/Infolog.txt
Re: Kernel Panic 4.4
here it is. before you ask, I've tried installing it as a separate game with its own version of spring, but that didn't work either.
- Attachments
-
- infolog.txt
- (25.65 KiB) Downloaded 554 times
Re: Kernel Panic 4.4
Code: Select all
[f=0000000] Error: LuaUI::RunCallIn: error = 2, DrawScreenEffects, [string "LuaUI/widgets.lua"]:1292: attempt to index local 'w' (a nil value)
[f=0000000] User exited