Page 1 of 1

Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 17:52
by thewick3d
Hello, I'm not sure where to put this, so I'll put this here..

When I'm trying to play certain mods (like zero-k, the cursed or BA) the game starts normally, but the start units are not deploying/appearing. The console outputs something about lua/lups failing to load.

It worked fine on my older pc with win XP, gforce 7600 gs.
My new pc has windows 7, Geforce G210. And now the maps load, without anything else happening. (no other error messages, no crashes) But mods like kernal pannik do not give any complications and run normally.

Spring version and lobby are both up to date, so are my gforce drivers.

I hope somebody can help me.

Re: Lua not loading/fail to load

Posted: 07 Feb 2011, 18:51
by knorke
Hi
Bug forum would probally have been better:
http://springrts.com/phpbb/viewforum.php?f=11
[f=0000000] LUPS: Can't parse config! Error is:
[string ""]:1: unexpected symbol
LUPS is a lua particle system.
Dont know why it could fail but you might want to edit topic to include "LUPS" so that somebody who knows more notices the thread.

Also you can try pressing F11 and turning LUPS off (green=on, red=off), then restart the game and see if it works now. You will miss some effects though.

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:09
by thewick3d
Thanks for the reply :)

Yeah, I posted it here because I was not sure it is an engine bug.

I already tried to turn it to off. But the game still doesn't spawn my startunits. Hence nothing happens..

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:16
by smoth
thewick3d wrote: doesn't spawn my startunits. Hence nothing happens..
when this happens it means there was a gadget level failure

Code: Select all

[f=0000000] LUPS: Can't parse config! Error is:
[string ""]:1: unexpected symbol
[f=0000000] error = 2, LuaRules/draw.lua, error = 2, LuaRules/gadgets.lua, [string "lups/loadconfig.lua"]:23: bad argument #1 to 'setfenv' (number expected, got nil)
see how it killed gadgets.lua.

What version of cursed are you running? I am about go run errands but I can look at it when I return.

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:20
by thewick3d
The most recent version of the cursed: 1.0
Also note that I experience the exact same error with BA and Zero-K.
I have not tested more mods yet. Kernal Panic works, because it probably does not use that sorts of gadgets.

Any thoughts why it does not work anymore?

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:21
by smoth
not sure and if I can reproduce it, it may take me a bit to track down. I will take a look as soon as I get back

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:22
by thewick3d
Thank you Smoth, it is much appreciated :)

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:22
by jK
It means that the lups.cfg contains invalid data caused either by a dieing PC (HDD, PSU, RAM) or your PC crashed while writing to the file.
Just delete the file (it gets recreated) and check your PC for stability issues (prime95 & a SMART disk checking tool).

PS: or you opened it in a texteditors which like to add UTF informations at the top of the file (Lua dislike those!).

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:23
by knorke
Error opening C:\Games\Spring\maps\Grts_Northernmountains_008.sd7: Unexpected end of file (truncated?)
Unable to open archive: C:\Games\Spring\maps\Grts_Northernmountains_008.sd7
Also whats with this? Broken folder structure or bad installation maybe?

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 19:30
by thewick3d
That map stopped downloading without finishing it. I redownloaded it, and it worked.

I deleted the lups.cfg file. And guess what, you were right :) It now works perfectly :)

Thanks for the quick responses everyone :)
Quite a nice welcome for a newcomer as myself ;)

Re: Lua Particle System fails to load on startup

Posted: 07 Feb 2011, 21:33
by smoth
wow hey glad you got it fixed.