Commit Graph
65 Commits
Author SHA1 Message Date
Wanderer e1c5a018b7 zookeeper's addition of new scripting hook that runs right before entering mission. 2011-11-29 21:32:57 +00:00
The_E bb9d7ae3f9 Fix for the $On Weapon Fired: scripting hook 2011-09-14 12:21:45 +00:00
The_E 4eadbc3487 A few fixes for the $Weapon Class scripting hook and associated actions 2011-09-12 12:35:08 +00:00
IssMneur 247052efdf PVS-Studio: These are not false positives. Variable args can only be PODs, changing the "class" to a structure makes ade_odata a POD which should stop PVS-Studio from flagging this. 2011-09-08 05:38:21 +00:00
The_E 6e17a7f6ae PVS Studio related: Mark false alarms as such. 2011-08-30 17:46:49 +00:00
Echelon9 74bce78b0f PVS-Studio fix: V803 Decreased performance. In case 'tvs' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator.
For further discussion see, http://www.viva64.com/en/b/0093/

The scenarios where it will improve performance are under Debug builds. This improvement will however allow quicker use of other profiling tools that need to run on Debug builds.

Note. Code with size_t does not see the performance improvement comparison to iterators due to absence of array overrun check.
2011-08-28 08:31:25 +00:00
Echelon9 e3c11859a8 PVS-Studio fix: Duplicate comparison check for stricmp('FRED2_Open', scp->data.name). Instead use the second comparison to check for the same naming format as stricmp('FS2Open', scp->data.name) 2011-08-13 08:22:51 +00:00
The_E 8c81e1c220 Valathil's code cleanup patch. 2011-07-20 18:04:43 +00:00
Wanderer b7a89e21d8 adding blank scripting state to the game 2010-10-23 19:54:39 +00:00
The_E 584c7a44ed Thank you code analysis. This could have been ugly.... 2010-10-20 20:06:55 +00:00
The_E 83097efa86 Adding the "On Weapon Selected", "On Weapon Deselected", "On Weapon Equipped" and "On Weapon Fired" scripting actions. 2010-09-25 19:43:45 +00:00
Wanderer e509bf65b2 better handling of 'dying' weapons for lua scripting.cpp
added lua controls for accessing beams
2010-06-09 16:49:20 +00:00
Goober5000 8955d3ac02 commit the revision patch originally inspired by Zacam 2009-12-05 22:53:04 +00:00
portej05 6bc7f30d78 safe_strings - from Antipodes build #1 2009-07-27 16:06:24 +00:00
portej05 68bce55db3 Python Stripping. Can't promise to have gotten the whole lot though. 2009-07-13 14:11:24 +00:00
taylor 0cab4aae17 only load tbls from tables/ (Mantis #1725) 2008-10-13 06:34:48 +00:00
WMCoolmon f1f4084de1 Final scripting, camera code updates. 2008-08-30 11:05:48 +00:00
WMCoolmon 76ebe01fb5 The new scripting hooks for mouse/keyboard. 2008-06-23 07:50:47 +00:00
WMCoolmon b8b64e3352 Scripting:
- Add On Mission Start, On Mission End hooks; swap Warpin and Warpout to Warp In and Warp Out
- Safer handle helper structs
- Improved math, eg matrix interpolation and vector multiply/divide
- Filesystem read AND write support
- Initial scripting orders support
- Better waypoints support
- Assorted requested scripting functions
bmpman:
- Safer bm_get_filename
cfile:
- Support for RW, rather than just R or W, file modes.
model:
- Safer texture_info struct. Taylor, I know we talked about this, but I realized that it was just a lot better for what it does and it shouldn't be too much trouble to replace with the new system (operations tend to be much more concise and clear). Let me know if any unexpected difficulties arise.
2008-05-25 22:52:05 +00:00
WMCoolmon 4d3de425ae $Application hook for mantis 0001574 2008-03-23 07:00:54 +00:00
taylor adf99d86a7 update to newest FS2NetD client code 2008-03-20 21:29:41 +00:00
taylor 11ca1ef4a8 move stable branch to the primary under trunk 2008-03-16 16:25:19 +00:00
taylor eb8c44c2a0 move HEAD to it's own dir under trunk 2008-03-16 16:21:11 +00:00
Goober5000 4811257f31 revert the directory move 2008-02-09 21:33:46 +00:00
Goober5000 8909d048b3 remove extraneous fs2_open folder from all branches and tags 2008-02-09 19:21:05 +00:00
wmcoolmon 88e0ed924a Fix script-eval and script-eval-num 2007-11-24 08:55:21 +00:00
wmcoolmon 708aa238d1 - Asteroid, debris, and ship collision damage type support
- Scripting system variable-setting optimizations
- Standardize override style
- Reinstate "Self" variable for HUD
- Automatic drawString moving-to-next-line
- Visible subsystem name can be changed through scripting; will not be changed in the log
- Fix many for-loop signed/unsigned warnings related to size()
- Asteroid, debris scripting collision handling
- Many, many additional Lua functions and variables
- Fix the dreaded random-Lua-parse-crash bug
- Fix struct array malf-ups due to flag_def_list change
2007-11-23 23:49:42 +00:00
Goober5000 46b0d001fb added fixes for #1415 and #1483, made sure every read_file_text had a corresponding setjmp, and sync'd the parse error messages between HEAD and stable 2007-09-02 02:10:29 +00:00
Goober5000 a00e8549df revert Bobboau's commits for the past two months; these will be added in later in a less messy/buggy manner 2007-02-18 06:17:48 +00:00
wmcoolmon d614604355 Lua - fix one thing so you can break another. 2007-01-15 09:24:14 +00:00
wmcoolmon c8dc3bd950 Fix HookVariables-related stuff, and add errors in case it ever gets broken again. 2007-01-15 09:20:54 +00:00
bobboau 1b530c113c ok, something aparently went wrong, last time, so I'm commiting again
hopefully it should work this time
damnit WORK!!!
2007-01-14 14:03:40 +00:00
wmcoolmon aad898bd35 Fix +Override, attempted fix for code adjacent to [] causing crash in scripting.tbl (Unreproducable), and (Untested) fix for script-eval. 2007-01-14 12:06:56 +00:00
wmcoolmon ea164eb959 Attempt to remove various warnings under MSVC 2003, mostly related to casting, but also some instances of inaccessible code. 2007-01-14 10:26:39 +00:00
wmcoolmon 7366176e79 WMC codebase commit. See pre-commit build thread for details on changes. 2006-12-28 00:59:54 +00:00
taylor 84c5044f8e fix some stuff_string()'s that got missed previously 2006-09-13 03:57:00 +00:00
taylor 8c5276c067 fixes for stuff_string() bounds checking 2006-09-11 06:51:17 +00:00
wmcoolmon 1cd84d8e82 enumerations; drawImage update; subsystem orientation and fireWeapon() member objects; many new weapons.tbl data variables; conditional hooks; modular scripting table support (*-sct) 2006-09-04 06:11:50 +00:00
taylor 2f132c4662 fix various compiler warnings and things that Valgrind complained about 2006-06-27 05:07:49 +00:00
wmcoolmon 18b471111b Scripting system prep for 3.6.9 2006-06-07 03:23:15 +00:00
taylor f73633677f if in freecamera mode, or the hud is disabled, the don't draw scripted hud elements
(this is almost hackish, but the bug never got a comment from WMC, so he can fix it later if this is wrong)
2006-05-09 09:23:05 +00:00
wmcoolmon 7e6bab7efc Maneuvering hruster scaling, gun convergence 2006-04-04 11:38:07 +00:00
wmcoolmon fc54469c0a Removed resize fields; fixed silly bug with RunBytecode 2006-02-09 05:07:02 +00:00
wmcoolmon fb23f6d361 Removed USE_LUA; Simulation hook; better debug messages for Lua; swapped out mounted weapon functions for variables 2006-01-31 06:46:14 +00:00
Goober5000 48b4f603ac ugh; these scripting #defines really need to be kept up-to-date 2006-01-26 02:26:17 +00:00
wmcoolmon 8d0031dcd6 Texture replacement stuff 2006-01-21 09:36:58 +00:00
wmcoolmon 7a40fe7cdc Scripting updates; Special scripting image list; Better operator meta; Orientation type; Wing type; Texture type. Fix for MSVC7 compiling. 2006-01-21 02:22:05 +00:00
wmcoolmon f4f8d28209 More Lua checks; added Lua vector object; better operator support. 2006-01-19 20:18:12 +00:00
wmcoolmon d5425998f9 Lua debugging stuff; gr_bitmap_ex stuff for taylor 2006-01-19 16:00:04 +00:00
wmcoolmon 5c51bb7c9e Various scripting updates 2006-01-18 06:13:18 +00:00