I get a crapload of these. So what does all that mean? At least now it's saying somehting in infolog, that's progress.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)
Buildpic Generator
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Buildpic Generator
Re: Buildpic Generator
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"
An alternate to disabling is to alter IsCoreOrChicken to "return a and a.core or a.chicken"
Re: Buildpic Generator
Have you tried my version yet? I got rid of all of that stuff...
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Buildpic Generator
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
Oh. D'uh.... here.
And don't forget, you need to have a bitmap here:
LuaRules/Images/IconGenBkgs/bg_ground.png
And don't forget, you need to have a bitmap here:
LuaRules/Images/IconGenBkgs/bg_ground.png
- Attachments
-
- icon_generator.lua
- (4.5 KiB) Downloaded 116 times
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Buildpic Generator
YAY ARGH I LOVE YOU!!!!!!!!!!
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Buildpic Generator
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.
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.
