
Units LUA support
#1
Posted 03 September 2007 - 06:23 PM
#2
Posted 03 September 2007 - 07:07 PM

#3
Guest_Azrael Strife_*
Posted 03 September 2007 - 08:55 PM
Is the plan to have a single LUA file for all units or have different "unitsets" like we do with weapons?Yes, we all did a splendid job I must say!
Prepare to see some (6) TFTD units in the near future! (Yes Guruluas2000, we will have Calcinites.)
Time to stop adding them hardcoded however.
We'd rather have a LUA API for units, it's been trailing behind for too long now.
We will have to rebuild the old ones to LUA too.
#4
Posted 03 September 2007 - 09:10 PM
If you're talking about categories where you must pick a certain set to play only (like ufo2k weapons only), I think we want to be able to use ALL units at the same time, not specific ones (like xcom units only, or TFTD units only).
#5
Guest_Azrael Strife_*
Posted 03 September 2007 - 09:14 PM
So, you want to use ALL unit LUA files at once? I'm not really sure that's so easy... but then again, I could be mistaken, nachtwolf?
#6
Posted 03 September 2007 - 10:34 PM
(topic split)
So, you want to use ALL unit LUA files at once? I'm not really sure that's so easy... but then again, I could be mistaken, nachtwolf?
The LUA API first. Units that can be loaded like others are (not just chameleon variants) from LUA.
Each unit will be loadable independently from one another but stock units can be provided in a single file (multiple LUA function calls).
Also, the API should pave the way for HWP support.
Units will then be unhardcoded once the LUA API works and is fully operationnal.
And no, not unitsets. All units (common between both players) should be available.
I might take this issue on my shoulders if needed.
Edited by nachtwolf, 03 September 2007 - 10:58 PM.
#7
Guest_Azrael Strife_*
Posted 04 September 2007 - 07:42 AM
Just wanted to know how we wanted it to be, I'll start working on the LUA API, I guess it should be similar to the one that handles items.(topic split)
So, you want to use ALL unit LUA files at once? I'm not really sure that's so easy... but then again, I could be mistaken, nachtwolf?
The LUA API first. Units that can be loaded like others are (not just chameleon variants) from LUA.
Each unit will be loadable independently from one another but stock units can be provided in a single file (multiple LUA function calls).
Also, the API should pave the way for HWP support.
Units will then be unhardcoded once the LUA API works and is fully operationnal.
And no, not unitsets. All units (common between both players) should be available.
I might take this issue on my shoulders if needed.
edit: if you want to handle this yourself, just let me know.
Edited by Azrael Strife, 04 September 2007 - 07:42 AM.
#8
Posted 04 September 2007 - 06:52 PM
#9
Guest_Azrael Strife_*
Posted 04 September 2007 - 06:56 PM
All stats and basically everything customisable about an unit will be in the LUA file, the idea is to move away completely from hardcoded.any chance we can have the ability to set custom stats via the LUAs? that way we can force units like the muton to act as they do in Xcom.
#10
Posted 05 September 2007 - 06:37 AM