Page 2 of 2
Re: Buildpic Generator
Posted: 13 Aug 2009, 13:00
by Forboding Angel
infolog wrote:[ 146] /luarules buildicons all
[ 147] gl.ActiveFBO: error(2) = [string "LuaRules/Configs/icon_generator.lua"]:68: attempt to index local 'a' (a nil value)
[ 147] LuaRules::RunCallIn: error = 2, DrawGenesis, [string "LuaRules/Configs/icon_generator.lua"]:68: attempt to index local 'a' (a nil value)
I get a crapload of these. So what does all that mean? At least now it's saying somehting in infolog, that's progress.
Re: Buildpic Generator
Posted: 13 Aug 2009, 14:15
by lurker
You need to include factions.lua in your gadget handler or disable the sorts using factions.
An alternate to disabling is to alter IsCoreOrChicken to "return a and a.core or a.chicken"
Re: Buildpic Generator
Posted: 13 Aug 2009, 20:55
by Argh
Have you tried my version yet? I got rid of all of that stuff...
Re: Buildpic Generator
Posted: 13 Aug 2009, 22:56
by Forboding Angel
Argh you didn't give me a copy of your config, and just inserting your unit_icongenerator causes me to get the exact same error.
Re: Buildpic Generator
Posted: 13 Aug 2009, 23:26
by Argh
Oh. D'uh.... here.
And don't forget, you need to have a bitmap here:
LuaRules/Images/IconGenBkgs/bg_ground.png
Re: Buildpic Generator
Posted: 14 Aug 2009, 00:06
by Forboding Angel
YAY ARGH I LOVE YOU!!!!!!!!!!
Re: Buildpic Generator
Posted: 14 Aug 2009, 02:11
by Forboding Angel
And for all those who need it in the future:
All you have to change is in the config file, where it says per unitdef settings, change the unitname.
For example:
[UnitDefNames.
eartytank.id] = { wait = 30 },
The part in red is the unitname.
Then to run it, just start up spring.exe, and in the chat type:
/cheat /luarules buildicons all
The buildicons will be placed in your man spring folder under a folder called "buildicons". Hopefully this saves someone else from all the trouble I went through.