NovaRain
6fdf3ac0b0
Merge branch 'develop'
2019-02-12 09:22:18 +08:00
NovaRain
fe5a148d7f
Moved DontDeleteProtos option from MiscPatches.cpp to DebugEditor.cpp.
...
Updated Auto Doors script mod from Mr.Stalin and ddraw.ini.
2019-02-11 13:58:21 +08:00
NovaRain
d64b33a946
Minor edits to SpeedPatch and documents.
2019-02-10 09:53:03 +08:00
NovaRain
1294d27a96
Formatted code in Arrays.cpp and added checks for the integrity of sfallgv.sav when loading a saved game.
...
Fixed unregistering hook procedure.
2019-02-09 09:36:57 +08:00
NovaRain
41171bbb87
Fixed crash when saving the game with speed tweak enabled.
2019-02-09 08:08:34 +08:00
NovaRain
170322648e
Reverted the change of DataType values in ScriptValue.h.
...
(reason: inefficiency)
2019-02-09 02:12:57 +08:00
NovaRain
af531a3e1d
Refactored and fixed SpeedPatch module (from Mr.Stalin)
2019-02-08 10:31:03 +08:00
NovaRain
d13f33e2ff
Refactored OpcodeContext/ScriptValue and some script function handlers (from Mr.Stalin)
2019-02-06 11:28:50 +08:00
NovaRain
0ed346380f
Refactored error handling of saving/loading sfall data files.
2019-02-05 10:43:17 +08:00
NovaRain
664643d83c
Rewrote ASM code of WorldMapFpsPatch functions.
...
(with fix for infinite loop of elapsed time)
2019-02-04 10:19:46 +08:00
NovaRain
89dbbb9238
Refactored code in Worldmap module (from Mr.Stalin)
...
Fixed TimeLimit option and removed the pointless value of -2 (now it's the same as -3).
Fixed the slow mouse cursor on the world map when WorldMapFPSPatch is enabled.
2019-02-03 00:57:00 +08:00
NovaRain
5daebd18d8
Added note on effect flags to CriticalOverrides.ini.
...
Minor edits to Criticals/Elevators.cpp.
2019-01-31 09:18:24 +08:00
NovaRain
4e38eab905
Removed some unnecessary memset code.
...
Minor code corrections.
2019-01-30 00:09:11 +08:00
NovaRain
7f8d805a9f
Refactored code in the Books module.
...
Increased the maximum number of books in BooksFile to 50.
2019-01-29 06:32:12 +08:00
NovaRain
0e91aed2e2
Added HideObjIsNullMsg option to [Debugging].
...
Moved DebugEditor option from MiscPatches.cpp to DebugEditor.cpp.
2019-01-27 10:39:59 +08:00
NovaRain
3eba5c3054
Added two bug fixes for loading a game saved in combat mode (from Mr.Stalin)
2019-01-27 09:20:44 +08:00
NovaRain
80afdae7ba
Fixed pickup_obj/drop_obj/use_obj script functions (from Mr.Stalin)
...
Fixed a crash when calling use_obj/use_obj_on_obj functions without using set_self in global scripts.
2019-01-25 00:30:34 +08:00
NovaRain
9db3c79c40
Added AttackComplexFix option (from Mr.Stalin)
2019-01-23 09:32:28 +08:00
NovaRain
274223a4ce
Fixed bugs in attack_complex and critter_mod_skill script functions.
...
Minor edits to ScriptExtender.cpp.
2019-01-22 16:53:08 +08:00
NovaRain
7dbbb8230e
Added error message when the name for sfall global variable is not equal to 8 characters.
...
Updated version number.
2019-01-21 11:24:54 +08:00
NovaRain
a95f26a02d
Fixed set_self function for use_obj_on_obj, attack, attack_complex vanilla functions (from Mr.Stalin) ( #214 )
2019-01-21 09:56:06 +08:00
NovaRain
46850a353b
Corrected code in FileSystem.cpp (from Mr.Stalin)
...
Added fix for db_freadInt_ engine function from BugFixes.cpp when enabling UseFileSystemOverride.
2019-01-20 22:13:30 +08:00
NovaRain
e379e71410
Added "art_cache_clear" script function.
2019-01-20 08:54:33 +08:00
NovaRain
774e31b9f6
Fixed and refactored code in FileSystem.cpp (from Mr.Stalin)
2019-01-20 00:18:32 +08:00
NovaRain
82f068c3e7
Refactored ASM code in FileSystem.cpp (from Mr.Stalin)
2019-01-17 10:06:04 +08:00
NovaRain
68e8ce8d41
Added support for integer values to abs() math function.
...
Minor code refactoring in Skills.cpp.
2019-01-16 11:07:56 +08:00
NovaRain
a0437304a9
Merge branch 'develop'
2019-01-14 09:37:58 +08:00
NovaRain
34caa1cbbd
Fixed a bug that broke the calculation of the skill point cost for increasing skill levels ( #226 )
...
Removed /Gw option from the release configuration.
Updated version number for hot fix.
2019-01-14 09:32:59 +08:00
NovaRain
924288a22c
Merge branch 'develop'
2019-01-09 11:26:04 +08:00
NovaRain
11ae4f5078
Refactored ASM code in Sound.cpp (from Mr.Stalin)
...
Minor fix for "path_find_to" script function.
Implemented WRAP_WATCOM_FCALL# wrappers from Mr.Stalin.
Changed some code in Objects script handler for new wrapper functions.
Moved obj_under_cursor to Objects script handler.
Reformatted code in Karma.cpp/Worldmap.cpp.
Minor edits to documents.
2019-01-08 14:11:52 +08:00
NovaRain
c1107e16a8
Expanded create/temp_array functions to allow creating a new "lookup" type of associative array (from Mr.Stalin)
2019-01-08 00:05:48 +08:00
NovaRain
49ef1aec9f
Fixed a crash bug when using sorting functions on an associative array(map) (from Mr.Stalin)
...
Added support for sorting associative arrays by keys or values.
2019-01-06 11:37:02 +08:00
NovaRain
14d6d36172
Moved ModifiedIni to main.cpp.
2019-01-04 21:06:39 +08:00
NovaRain
d2c8667c22
Refactored ASM code in KillCounter.cpp.
...
Fixed the broken ExtraKillTypes option.
Reformatted and tweaked code in Explosions.cpp.
2019-01-03 11:05:15 +08:00
NovaRain
edbf777b63
Changed hs_inventorymove hook script to be triggered before displaying the 'Move Items' window for drag and drop ammo on weapons.
2019-01-03 00:28:59 +08:00
NovaRain
26c032379e
Fixed stack in InventoryHs.cpp (from commit 7b92d0f939)
...
Refactored some ASM code in BurstMods.cpp, Inventory.cpp, Credits.cpp, AnimationsAtOnceLimit.cpp.
2019-01-01 10:24:51 +08:00
NovaRain
5a455ab942
Fixed input argument names in structure constructor for Combat/Perks/Skills modules.
2019-01-01 02:03:17 +08:00
NovaRain
d89603e56d
Improved the functionality of ElevatorsFile to allow to change the FRM images of the elevator panel and create new elevator types (from Mr.Stalin)
2018-12-31 10:05:59 +08:00
NovaRain
7b92d0f939
Corrected/improved code of some hooks.
...
Changed critical table to be loaded before global scripts.
Updated version number and year.
2018-12-30 09:59:39 +08:00
NovaRain
b89663174f
Added new HOOK_SETLIGHTING (from Mr.Stalin) ( #215 )
2018-12-30 08:01:13 +08:00
NovaRain
267d8694c9
Added UseWalkDistance option (from Mr.Stalin) ( #46 )
2018-12-28 20:04:19 +08:00
NovaRain
641ae67a7a
Added a fix to the following script functions to ensure they set the correct object: (from Mr.Stalin)
...
set_critter_burst_disable, set_critter_pickpocket_mod, set_critter_skill_mod, set_critter_hit_chance_mod, set_*_knockback
Added WeaponAnims info to npcarmor.ini.
2018-12-28 09:37:30 +08:00
NovaRain
5d483214e6
Refactored HeroAppearance.cpp (from Mr.Stalin)
2018-12-26 21:11:25 +08:00
NovaRain
62e6c41620
Refactored assembler code in Skills.cpp.
...
Moved PickpocketMod function from Combat.cpp to Skills.cpp module.
Refactored structs in Skills.cpp and Combat.cpp.
2018-12-26 10:20:22 +08:00
NovaRain
6cce07991e
Added missing return values for HOOK_INVENWIELD.
...
Updated NPC armor appearance mod.
2018-12-25 09:28:30 +08:00
NovaRain
9813d4ae74
Added a fix to prevent sfall from loading global scripts with an extension that exceeds three characters (from Mr.Stalin)
...
Replaced some pushad/popad opcodes with the newly added pushadc/popadc ASM macros.
Renamed Knockback module to Combat.
2018-12-24 12:21:45 +08:00
NovaRain
10c557ad59
Refactored SafeWrite.cpp.
2018-12-19 07:19:34 +08:00
NovaRain
a2a24918a6
Formatted code in HeroAppearance.cpp.
2018-12-18 07:50:22 +08:00
NovaRain
ca5c383767
Minor code edits on main.cpp and Perks.cpp.
2018-12-17 09:25:09 +08:00
NovaRain
ce338fa5d0
Added a procedure to search for alternative weapons to NPC armor appearance mod ( #222 )
2018-12-16 19:37:06 +08:00
NovaRain
48ac68b66f
Refactored some modules in Perk.cpp.
2018-12-16 11:33:16 +08:00
NovaRain
ecae724411
Added AlwaysFindScripts option to [Debugging].
...
Added log message for InjectAllGameHooks.
2018-12-16 09:04:30 +08:00
NovaRain
f33f356b7a
Fixed NPC armor appearance mod preventing other critters from using weapons due to incorrect return value in check_weapon_change() ( #222 )
2018-12-16 08:57:38 +08:00
NovaRain
651f23aa5b
Simplified and formatted code in Perks.cpp (from Mr.Stalin)
...
Replaced some 'strcpy_s' usages to 'strncpy_s' in Perks.cpp.
2018-12-15 18:13:38 +08:00
NovaRain
68022f415a
Merge branch 'develop'
2018-12-05 22:01:20 +08:00
NovaRain
b0fe927bfb
Added missing function handlers to Metarule.cpp.
...
Minor edits to hookscripts.txt.
2018-12-05 21:47:01 +08:00
NovaRain
cedfce37be
Changed AutoQuickSave to use the current selected page if AutoQuickSavePage is disabled.
2018-12-05 13:35:37 +08:00
NovaRain
4249006ba9
Added "get/set_object_data" and "get_object_ai_data" script functions (from Mr.Stalin)
...
Changed read_byte, read_short, read_int, and read_string functions to not require AllowUnsafeScripting.
2018-12-05 10:14:10 +08:00
NovaRain
65755911f4
Fixed a bug in the hero appearance mod that caused the player to disappear after saving the game when player's base FID is greater than 255.
...
Replaced old SafeWrite usages with corresponding Hook/MakeCall functions in HeroAppearance.cpp.
Prevented HOOK_SUBCOMBATDAMAGE from being injected w/o the script when setting InjectAllGameHooks=1.
2018-12-04 09:36:20 +08:00
NovaRain
5473b0e4d9
Corrected some hooks code for the previous fix commit (from Mr.Stalin)
2018-12-03 10:12:40 +08:00
NovaRain
c1b6e35a3f
Fixed the return values of a hook getting corrupted if another hook was called during the execution of the current hook (from Mr.Stalin)
...
Added a fix to prevent hook scripts from being executed when the depth limit is exceeded, or the hook is called recursively.
2018-12-01 22:09:18 +08:00
NovaRain
db2c366376
Added a fix for unable to sell/give items to the other in barter screen when the player/party member is overloaded (from Mr.Stalin)
...
Added a variant of MakeCall/Jump with 3 arguments to replace some SafeWrite 0x90 code for trailing NOPs.
2018-11-30 11:25:11 +08:00
NovaRain
17be216a11
Fixed the previous commit, forgot to remove the obsoleted line in win_debug_hook().
2018-11-29 10:04:52 +08:00
NovaRain
770aca0cd2
Changed some MakeJump usages to MakeCall in Stats.cpp, Knockback.cpp, and MiscPatches.cpp.
...
(see Mr.Stalin's comments in commit c990b6701d )
2018-11-29 09:50:40 +08:00
NovaRain
c990b6701d
Refactored the code in Knockback.cpp.
2018-11-28 14:41:28 +08:00
NovaRain
3da7c2d0a6
Changed the implementation in commit c220e133a2 (with bug fix for HOOK_SETGLOBALVAR, #220 )
2018-11-28 09:59:14 +08:00
NovaRain
0a8c5d704c
Added missing CombatHs.cpp/.h for the previous commit.
2018-11-27 17:20:18 +08:00
NovaRain
922cdefce6
Added new HOOK_SUBCOMBATDAMAGE and refactored damage formulas code in AmmoMod.cpp (from Mr.Stalin)
2018-11-27 12:27:48 +08:00
NovaRain
180e743d31
Added an option to fix AI not checking chem_primary_desire setting in AI.txt for drug use preference (from Mr.Stalin, #219 )
2018-11-25 23:58:13 +08:00
NovaRain
950f6b8a1c
Changed sfall to only search for global scripts in folders at the game start instead of every time the game loads.
2018-11-22 20:38:54 +08:00
NovaRain
b3a4f2c19e
Reorganized and fixed the order of loading global scripts from multiple paths (from Mr.Stalin)
2018-11-21 10:52:12 +08:00
NovaRain
8dbe5921ba
Merged two Glovz's fix functions and reorganized Glovz's/YAAM code layout a bit.
...
(in preparing for larger code refactoring in AmmoMod.cpp)
Fixed a bug in Stats.cpp that caused critical hits to ignore critical table roll value and only have the lowest level effect.
Minor edits to MainMenu.cpp.
2018-11-20 23:39:33 +08:00
NovaRain
c220e133a2
Don't execute hook code for HOOK_ADJUSTFID/KEYPRESS/MOUSECLICK/GAMEMODECHANGE/SETGLOBALVAR when their scripts are not loaded (from Mr.Stalin)
2018-11-20 11:03:09 +08:00
NovaRain
d8bdf785d5
Minor code correction in MainLoopHook.cpp.
...
Minor edits to document.
Updated version number.
2018-11-20 07:20:44 +08:00
NovaRain
d569666447
Fixed the missing return value of -1 for HOOK_USEOBJON.
2018-11-16 06:33:30 +08:00
NovaRain
31b36f0c69
Fixed unable to click the pop-up message box when death from radiation was triggered during resting.
2018-11-14 07:11:00 +08:00
NovaRain
ab7be3501a
Simplified ASM code for process_rads_hook() in BugFixes.cpp.
...
Added missing initialization to ScriptExtender.h (Closes #217 )
2018-11-13 21:19:28 +08:00
NovaRain
043c90f71e
Added a pop-up message box for death from radiation sickness message.
2018-11-13 12:52:07 +08:00
NovaRain
5146b46da3
Fixed determine_to_hit_func_ engine function taking distance into account when called from determine_to_hit_no_range_ (from Mr.Stalin)
2018-11-12 13:12:22 +08:00
NovaRain
95f2bbfc1f
Removed redundant stat_level() in Skills.cpp.
2018-11-10 10:18:59 +08:00
NovaRain
8d8522d227
Refactored the code of Stats.cpp.
2018-11-09 23:49:23 +08:00
NovaRain
5a03db932e
Added an additional mode to SpeedInterfaceCounterAnims (from Mr.Stalin)
2018-11-09 12:29:07 +08:00
NovaRain
6e9a87b897
Removed the pop-up message box about not finding the original ddraw.dll, now the error is reported in the log file.
...
Added a note about setting a custom background for the character screen to the hero appearance mod.
2018-11-09 09:56:13 +08:00
NovaRain
de055cd8ec
Changed the implementation of HOOK_FINDTARGET so you don't have to specify all 4 targets to override normal sorting (from Mr.Stalin)
...
Added "loot_obj" script function.
2018-11-06 11:11:44 +08:00
NovaRain
4ae4d6dff0
Fixed broken return values in HOOK_FINDTARGET.
...
Changed the two arguments for obj_under_cursor to bool.
2018-11-04 09:06:31 +08:00
NovaRain
60054c9977
Added "obj_under_cursor" script function ( #207 )
2018-11-03 22:11:02 +08:00
NovaRain
3c9d5f7cb4
Changed PartyMemberExtraInfo to not show "Addict" text (in dark green) on the combat control panel if the party member is not addicted to drugs.
2018-11-02 22:48:17 +08:00
NovaRain
f44db1730c
Merge branch 'develop'
2018-11-01 19:28:08 +08:00
NovaRain
fbdb9777c7
Updated NPC combat control mod to prevent Marcus and non-biped critters from equipping armor when controlled by the player.
2018-11-01 17:25:29 +08:00
NovaRain
0f1e648e1a
Fixed isCheck argument (arg1) for HOOK_ONEXPLOSION hook (from Mr.Stalin)
...
Removed RemoveWindowRounding option because it doesn't affect anything.
2018-11-01 09:51:27 +08:00
NovaRain
7bd93af696
Adjusted the position of ExtraSaveSlots page buttons a bit.
2018-10-31 07:15:11 +08:00
NovaRain
6319017186
Added new HOOK_ONEXPLOSION and a new mode "set_explosion_max_targets" to metarule2_explosions (from Mr.Stalin) ( #35 )
2018-10-30 11:19:19 +08:00
NovaRain
29ad288f52
Fixed SwitchHandHook not being injected for controlled critters if there's no script using HOOK_INVENTORYMOVE.
2018-10-29 11:35:31 +08:00
NovaRain
a10196e2ca
Corrected the key overriding mechanism and removed unused vKey argument from KeyPressedDelegate (from Mr.Stalin)
...
Changed the debug editor to require sfall debugging mode.
Some minor code edits.
2018-10-29 11:04:51 +08:00
NovaRain
88779c10e0
Added a new return value to HOOK_KEYPRESS to override the pressed key (from Crafty)
2018-10-27 22:30:01 +08:00
NovaRain
919384bac7
Added a new setting to DebugMode to send debug output to both the screen and the debug log (from Crafty)
...
Simplified the code for ObjCanSeeObj_ShootThru_Fix a bit (from Mr.Stalin)
Changed sfall to not to create sfallfs.sav when UseFileSystemOverride is not enabled.
Updated item highlighting mod to be disabled while in the loot screen.
2018-10-27 09:43:12 +08:00
NovaRain
a60f58c0eb
Reverted some changes in the previous commit.
2018-10-26 06:46:24 +08:00
NovaRain
558e654dbf
Replaced some __cdecl calling conventions to __fastcall.
...
(from Mr.Stalin - Reason: The compiler can use the arguments for its own purposes, which can spoil the stored value on the stack.)
Simplified the code for ObjCanSeeObj_ShootThru_Fix and added extra note to ddraw.ini (#208 )
2018-10-25 11:16:39 +08:00
NovaRain
5ab389a51a
Added new HOOK_USESKILLON and PartyMemberSkillFix option ( #191 )
2018-10-24 12:19:30 +08:00
NovaRain
3203152ca4
Added missing functions from the source library ddraw.dll to export from sfall (from Mr.Stalin)
...
Simplified the code in ExtraSaveSlots.cpp.
2018-10-23 11:45:38 +08:00