niffiwan
b5f75af66e
Allow tint shader to be controlled by sexp & lua
...
i.e. the RGB values can be set/changed
2017-03-19 12:52:51 +10:00
asarium
772a02f56f
Disallow to use non-trivial types as scripting handles
...
As described in #1278 , the current scripting system has issues with
handling non-trivial C++ types. Since fixing that deficiency is too much
work, especially since we are in a feature freeze, I decided to simply
enforce the usage of trivial types for scripting handles. Fortunately,
only two handles used non-trivial types so it was relatively easy to fix
those instances by dynamically allocating those and only storing the
pointers in the lua memory.
This fixes a bug in JAD-XA where the game would crash at the last boss.
Also, I noticed that the HudGauge handle used a copy of the hud gauge
rather than a pointer to the actual instance so I'm pretty sure that any
scripting changes to a custom HUD gauge simply didn't work before.
2017-03-04 16:16:22 +01:00
asarium
842858f9b8
Adjust object_h validity check to avoid assertion failure
...
I found this issue while debugging the JAD gauntlet where a script calls
getSignature() on an invalid object. However, object_h does not see the
object as invalid even though its signature is 0 which is defined to be
an invalid sigature. This should fix that by making sure that
object_h::isValid returns false if the saved signature is not valid.
2017-03-03 17:46:00 +01:00
asarium
4a9f1a2d56
Fix the rest of the string conversion warnings
2017-01-05 00:15:01 +01:00
asarium
9bbff82c73
Fix definition of scripting testing library
...
Also fixed an unresolved external error.
2016-12-30 22:56:52 +01:00
asarium
c17dcb1835
Move source files into category directories
2016-12-30 19:13:39 +01:00
asarium
6e5531adcc
IT IS DONE! Moved testing library into separate file
2016-12-30 18:59:19 +01:00
asarium
ad6ab9b95b
Move tables scripting library into separate file
2016-12-30 18:52:34 +01:00
asarium
ad6cbfb328
Move mission scripting library to separate file
2016-12-30 18:48:21 +01:00
asarium
9b8b7e0dce
Move Hook variables library into separate folder
2016-12-30 18:33:02 +01:00
asarium
46116362c5
Move graphics scripting library into separate file
2016-12-30 12:57:03 +01:00
asarium
2c85c93136
Move hud scripting library into separate file
2016-12-30 12:33:32 +01:00
asarium
9251ec56ce
Move controls scripting library to separate file
2016-12-30 12:33:32 +01:00
asarium
deff6c9ec1
Remove now unused lua.h file
2016-12-30 12:33:32 +01:00
asarium
3fa4a8dbdc
Move cfile scripting library into separate file
2016-12-30 12:33:32 +01:00
asarium
bf2d996bd0
Move base scripting library to separate file
2016-12-30 12:33:32 +01:00
asarium
79709b2372
Move audio library into separate file
2016-12-30 12:33:32 +01:00
asarium
584b9cadd7
Move particle scripting class into separate file
2016-12-30 12:33:32 +01:00
asarium
2f1057f3c3
Move control_info scripting class into separate file
2016-12-30 12:33:32 +01:00
asarium
374bcacddd
Move camera scripting class into separate file
2016-12-30 12:33:32 +01:00
asarium
94c7fbda6b
Move player scripting class into separate file
2016-12-30 12:33:32 +01:00
asarium
a049152e99
Move beam scripting class into separate file
2016-12-30 12:33:32 +01:00
asarium
7686163957
Move weapon scripting class into separate file
2016-12-30 12:33:32 +01:00
asarium
4cb0ca42e3
Move ship scripting class into separate file
2016-12-26 15:16:15 +01:00
asarium
3737249459
Move wing scripting class to separate file
2016-12-26 15:00:52 +01:00
asarium
fecca89447
Move message scripting classes into separate file
2016-12-26 14:40:53 +01:00
asarium
080e40d1da
Move sound scripting classes into separate file
2016-12-26 14:27:14 +01:00
asarium
4c77bc7edf
Move CockpitDisplays scripting class into correct file
2016-12-26 14:14:52 +01:00
asarium
334e9d4abf
Move ShipTextures scripting class into separate file
2016-12-26 14:12:31 +01:00
asarium
b1404d8bbf
Move order scripting classes into separate file
2016-12-26 14:02:17 +01:00
asarium
6b9b2a45ab
Move subsystem scripting class into separate file
2016-12-25 19:09:47 +01:00
asarium
698e49d595
Move weapon bank scripting classes into own files
2016-12-25 18:49:12 +01:00
asarium
15886a64b1
Move waypoint classes into separate file
2016-12-25 18:33:03 +01:00
asarium
417b12129d
Move debris scripting class into separate file
2016-12-25 13:08:43 +01:00
asarium
fc391736ec
Move shipclass and cockpit display classes into separate files
2016-12-24 23:51:25 +01:00
asarium
c42fc4fc6f
Move asteroid scripting class into separate file
...
This also adds a macro for specifying from which class a scripting class
derives.
2016-12-24 19:36:42 +01:00
asarium
4360340bd4
Move object scripting class into separate file
2016-12-24 19:08:08 +01:00
asarium
72ffa6a052
Move mc_info scripting class into own folder
2016-12-24 18:04:44 +01:00
asarium
d6a556cd31
Move weaponclass scripting file into separate file
2016-12-21 17:57:26 +01:00
asarium
1c36ff40ba
Move material scripting class into separate file
2016-12-21 17:52:05 +01:00
asarium
60fc558a3b
Move texture scripting class into separate file
2016-12-21 17:42:59 +01:00
asarium
ce5dfe148d
Move streaminganim scripting class into separate file
2016-12-21 17:37:26 +01:00
asarium
9a8e3ba09c
Move team scripting class into own file
2016-12-21 17:30:39 +01:00
asarium
06066e0c52
Move species scripting class into own file
2016-12-21 17:25:14 +01:00
asarium
f10cee9f58
Move shiptype scripting class into own file
2016-12-21 16:47:23 +01:00
asarium
5f6fe0288c
Move shields scripting class to separate file
2016-12-20 17:58:27 +01:00
asarium
d5973346ec
Move sexpvar scripting class
2016-12-20 17:58:27 +01:00
asarium
c23c65596f
Move physics_info scripting class into own file
2016-12-20 17:58:26 +01:00
asarium
eb6295e375
Move model scripting class into own file
...
This also includes the various associated classes.
2016-11-26 14:21:47 +01:00
asarium
45fa09d9cb
Move eye scripting class into own file
2016-11-23 18:57:52 +01:00