Hi,
Running Kernel Panic 4.6 on SpringRTS 95 on Ubuntu 12.04.
When I start a game of Kernel Panic I have a pop-up in the middle of the screen saying it is the first time I'm playing Spring and asking whether I want the "game" to adjust Spring Settings.
That pop-up is always there, every game.
Clicking either of the buttons won't make it go away.
The buttons appear to recognize the mouse, since they change appearence on mouse-hover.
The window/buttons might be not accepting clicks, though, since I can order units into the play-area by clicking over the window.
---
I'm playing around with Kernel Panic to play with AI, so this isn't a show-stopper. Still, a huge annoyance! I reckon there's some setting somewhere Kernel Panic loads to make the verification of whether to load that pop-up?
"Spring settings" warning won't go away
Moderator: Content Developer
Re: "Spring settings" warning won't go away
I had the same problem.
It turns out gadget:MousePress is not called when LoadingMT = 0
http://springrts.com/phpbb/viewtopic.php?f=11&t=30338
Suggested solutions:
- Edit springsettings.cfg to manually add: KPHasForceSettingRanOnce = 1
- Disable safemode, and set LoadingMT to 1 in your springsettings.cfg
- Ask engine devs if it's a bug or a normal behavior that gadget:MousePress isn't called
- Blame new engine version for buginess and rever to ancient engines
Of course maybe I could remove that gadget, since people are unlikely to have unknowingly disabled LuaUI nowadays. But eh, easier for me to do nothing and blame others!
It turns out gadget:MousePress is not called when LoadingMT = 0
http://springrts.com/phpbb/viewtopic.php?f=11&t=30338
Suggested solutions:
- Edit springsettings.cfg to manually add: KPHasForceSettingRanOnce = 1
- Disable safemode, and set LoadingMT to 1 in your springsettings.cfg
- Ask engine devs if it's a bug or a normal behavior that gadget:MousePress isn't called
- Blame new engine version for buginess and rever to ancient engines
Of course maybe I could remove that gadget, since people are unlikely to have unknowingly disabled LuaUI nowadays. But eh, easier for me to do nothing and blame others!
Last edited by zwzsg on 04 Oct 2014, 23:46, edited 1 time in total.
Reason: Forgot the KPHasForceSettingRanOnce = 1
Reason: Forgot the KPHasForceSettingRanOnce = 1
Re: "Spring settings" warning won't go away
Seems like a bug, but on another note, why do you even have gadget:MousePress? Is there a reason you insist that mouse handling is done in a gadget instead of a widget?
Re: "Spring settings" warning won't go away
Yes, it was made a time when LuaUI was optional, and had to be enabled in SpringSettings. This gadget was initially made to remind people to switch on LuaUI.
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
Re: "Spring settings" warning won't go away
That did the trick, thanks. I was pretty sure there would be a work-around like that.zwzsg wrote:...
- Edit springsettings.cfg to manually add: KPHasForceSettingRanOnce = 1
...
Though now it's poping me up a message saying that LuaUI is off, and is requesting me whether to turn it on or just leave it off (which of course still doesn't work). And after the game starts it disappears and new "window" appears saying «press any key» (or similar).
It's still an improvement, since the box is much smaller and not so intrusive :)
---
EDIT
I don't know how to try that alternative...zwzsg wrote:...
- Disable safemode, and set LoadingMT to 1 in your springsettings.cfg
...
"Disable safemode"?
"LoadingMT to 1" = adding the line «LoadingMT = 1»? (doesn't currently exist)
Re: "Spring settings" warning won't go away
Is LuaUI really off? That would be annoying. Did you want it off?PauloMorfeo wrote:Though now it's poping me up a message saying that LuaUI is off
Anyway, with KPHasForceSettingRanOnce = 3 (yay, unguessable magick values!) the gadget should disable itself and show neither messages.
If it doesn't exist, it defaults to the default value, which isPauloMorfeo wrote:"LoadingMT to 1" = adding the line «LoadingMT = 1»? (doesn't currently exist)
Maybe my theory about how gadget:MousePress is not called when in safemode or LoadingMT = 0 is wrong, and you found another case where gadget:MousePress isn't called? Idk.
95? But latest stable engine version is 96, and according to mantis, this bug was fixed in 96.PauloMorfeo wrote:Running Kernel Panic 4.6 on SpringRTS 95 on Ubuntu 12.04.
By the way, related mantis issue: http://springrts.com/mantis/view.php?id=4091
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
Re: "Spring settings" warning won't go away
I know. I had been trying to install and use somewhere v96 even by source code, unsuccesfully.zwzsg wrote:...95? But latest stable engine version is 96, and according to mantis, this bug was fixed in 96.PauloMorfeo wrote:Running Kernel Panic 4.6 on SpringRTS 95 on Ubuntu 12.04.
...
http://springrts.com/phpbb/viewtopic.php?f=11&t=32593
I think the problem was not just to do with Spring's engine. I'm in a laptop with Optimus and at the time I was using the Intel GFX card. When I managed to force spring to run on the Nvidia one, the buttons were working fine.PauloMorfeo wrote:https://answers.launchpad.net/ubuntu/+q ... 378/+index
I can confirm that I'm running v96 now with the NVidia card and everything runs fine as (apparently) expected.
Re: "Spring settings" warning won't go away
Ok, I found out why you get the message saying that LuaUI is off.
I used Spring.GetConfigInt("LuaUI")==0 to check if LuaUI is off.
A long time this worked, but nowadays, LuaUI is just a custom config key, without any signification to the engine.
I have no idea how to check if LuaUI is disabled on current engine version.
I used Spring.GetConfigInt("LuaUI")==0 to check if LuaUI is off.
A long time this worked, but nowadays, LuaUI is just a custom config key, without any signification to the engine.
I have no idea how to check if LuaUI is disabled on current engine version.