Page 1 of 1

Prerequisites gadget is borked...

Posted: 17 Dec 2007, 05:55
by Forboding Angel
Look there is some kind of problem with it. It can intercept move orders, forcefire orders etc etc etc. It is very very bad.

It's kind of random too

Relevant Code

Code: Select all

-- a = "b" is the same as "Naughty player you cant build a till youve built b!"
-- Evolution RTS
local prerequisiteDefs = {

    tmissilesiloemp={"tresearch"},
    emissilesiloemp={"eresearch"},

    tspecialfactory={"tresearch"},
    especialfactory={"eresearch"},

    efusion={"eresearch"},
    emexmoho={"eresearch"},
    eheavylaserplatform={"eresearch"},
    eantiairtower2={"eresearch"},
    eannihilator={"eresearch"},
    eexecutioner={"eresearch"},


    tfusion={"tresearch"},
    tmexmoho={"tresearch"},
    theavylaserplatform={"tresearch"},
    tantiairtower2={"tresearch"},
    tannihilator={"tresearch"},
    tdecimator={"tresearch"},

}
return  prerequisiteDefs
AF could you please fix this? Or someone? Maybe something you did conflicts with the new spring version.

Posted: 17 Dec 2007, 11:08
by AF
I have no idea what your issue is, could you be more specific?

Posted: 17 Dec 2007, 17:02
by Noruas
If you make one typo, the whole thing aborts, i also remember something with the Capslock and such, I am not sure.

Posted: 17 Dec 2007, 17:06
by KDR_11k
Don't put a , before }.

Posted: 17 Dec 2007, 20:53
by AF
That sort of error should generate a message in the console as soon as the gadget is loaded.

Posted: 17 Dec 2007, 22:08
by KDR_11k
I bet you he didn't read the infolog.

Posted: 18 Dec 2007, 01:01
by Forboding Angel
yes I did. There is nothing in there. It's always the first place I look. Try not assuming things. Not much sense to post if there is nothing there.
SDL: 1.2.12
GL: 2.0.3
GL: NVIDIA Corporation
GL: GeForce 7600 GT/PCI/SSE2/3DNOW!
GLEW: 1.4.0
Using script Empty script
Map: Deserted_Gully-v05.smf
Mod: "Evolution Development" from Evolution.sdd
Became player 0
Using script Empty script
Using script Empty script
Map: Deserted_Gully-v05.smf
Mod: "Evolution.sdd" from Evolution.sdd
Client connected on slot 0
Loading all definitions: 0.230000
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
Creating projectile texture
Number of damage types: 13
Loading weapon definitions
Loading unit definitions
Loading feature definitions
Generating trees
Parsing unit icons
Creating unit textures
Initializing map features
Reading estimate path costs
Creating sky
Loading LuaCOB
Loading LuaRules
AI Improver ENABLED
LUARULES-MAIN (GADGETS)
LUARULES-DRAW (GADGETS)
Loading LuaGaia
Finalizing...
Spring 0.75b2+svn5014
Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
LuaUI: bound F11 to the widget selector
LuaUI: bound CTRL+F11 to tweak mode
false
Error in Initialize(): [string "LuaUI/Widgets/dbg_unitheight_prebuffer.lua"]:50: Attempt to write UnitDefs[1].height
Removed widget: _UnitHeightPrebuffer
LuaUI v0.2
Player no name joined as 0
GameID: 34026647e908abc27d4cdf26bc0edacf
<no name> .cheat
Cheating!
<no name> .give 1 ebomb @1507,128,2752
Giving 1 ebomb to team 0
User exited
Path cache hits 0 0%
Path cache hits 0 0%

Posted: 18 Dec 2007, 03:17
by quantum
KDR_11k wrote:Don't put a , before }.
You can, actually. I do that all the time so I don't forget the comma if I add another item in the table.