Search found 2 matches
- 23 Sep 2016, 09:36
- Forum: Lua Scripts
- Topic: Placing a lua script to have access to UnitDefs and to lua libraries
- Replies: 3
- Views: 1519
Re: Placing a lua script to have access to UnitDefs and to lua libraries
Hey, much thanks for the response! Unfortunately I need to save to file before LuaRules gadgets are loaded (to modify squads and their production order) so "widget<->gadget communication" solution won't work. Now I see only one solution for my problem: I put the script in LuaIntro (where l...
- 23 Sep 2016, 00:04
- Forum: Lua Scripts
- Topic: Placing a lua script to have access to UnitDefs and to lua libraries
- Replies: 3
- Views: 1519
Placing a lua script to have access to UnitDefs and to lua libraries
Hi there! I'm working on a AI optimization project for Spring:1944. I plan to run a genetic algorithm to optimize squad (i.e. unit in s44) production. I have a problem with placing/loading my lua script. In this script I need simultaneously: io lua library (for savetable io.open) and UnitDefs table ...