Prerequisites gadget is borked...

Prerequisites gadget is borked...

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Prerequisites gadget is borked...

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I have no idea what your issue is, could you be more specific?
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Post by Noruas »

If you make one typo, the whole thing aborts, i also remember something with the Capslock and such, I am not sure.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Don't put a , before }.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

That sort of error should generate a message in the console as soon as the gadget is loaded.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I bet you he didn't read the infolog.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post 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%
User avatar
quantum
Posts: 590
Joined: 19 Sep 2006, 22:48

Post 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.
Post Reply

Return to “Lua Scripts”