NovaRain
72e370117e
Expanded get/inc_npc_level functions to accept party member PIDs (from Mr.Stalin)
...
Some code correction in Skills.cpp.
2019-02-24 20:14:36 +08:00
NovaRain
6ab45bbc3c
Fixed incorrect skill point cost for negative skill levels when using a skills ini file (from Mr.Stalin)
2019-02-23 22:21:37 +08:00
NovaRain
7bcf06c227
Fixed the negative skill points of a skill not being taken into account when calculating the skill level (from Mr.Stalin, #202 )
...
Fixed the return value of has_skill function for incorrect skill numbers.
2019-02-21 10:57:53 +08:00
NovaRain
bc8f7477c7
Fixed the reserved item FRM being displayed in the top-left corner when in the loot/barter screens.
2019-02-20 10:04:54 +08:00
NovaRain
f5c570ddc1
Removed MultiPatches from ddraw.ini, now it's always enabled.
...
Minor edits to main.cpp and Arrays.cpp.
Updated version number.
2019-02-19 12:07:40 +08:00
NovaRain
504f66f002
Moved DontDeleteProtos option from main.cpp to DebugEditor.cpp.
...
Updated Auto Doors script mod from Mr.Stalin and ddraw.ini.
2019-02-11 13:59:37 +08:00
NovaRain
76f2301b6c
Minor edits to speed tweak and documents.
2019-02-10 09:56:28 +08:00
NovaRain
4788ac757b
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:55:43 +08:00
NovaRain
a71b33aab1
Fixed crash when saving the game with speed tweak enabled.
2019-02-09 08:09:25 +08:00
NovaRain
222f3eaf68
Refactored and fixed speed patch related code (from Mr.Stalin)
...
Rewrote ASM code of WorldMapFpsPatch functions.
2019-02-08 12:53:13 +08:00
NovaRain
823d2b92f7
Minor refactoring of ScriptValue and some script function handlers.
2019-02-06 12:00:30 +08:00
NovaRain
f478e9a1f9
Changed sfall to stop loading save if there's error on data files.
...
Minor simplified a couple of assembly in LoadGameHook.cpp.
2019-02-06 09:33:02 +08:00
NovaRain
8718b86440
Refactored error handling of saving/loading sfall save data files.
2019-02-05 11:11:56 +08:00
NovaRain
67adb9b592
Revert the change of get_year code to pure assembly.
...
Minor edits to main.cpp.
2019-02-04 17:55:16 +08:00
NovaRain
ca5781a44a
Refactored world map related code/funcs in main.cpp (from Mr.Stalin)
...
Fixed TimeLimit option and removed the pointless value of -2 (now it works the same as -3).
Fixed the slow mouse cursor on the world map when WorldMapFPSPatch is enabled.
2019-02-03 09:32:16 +08:00
NovaRain
4edf36a1dc
Removed some more unnecessary memset code.
...
Added note on effect flags to CriticalOverrides.ini.
2019-01-31 09:12:15 +08:00
NovaRain
4a5f556cd3
Removed some unnecessary memset code.
...
Minor code corrections.
2019-01-30 00:15:12 +08:00
NovaRain
2b7754746c
Refactored code in Books.cpp.
...
Increased the maximum number of books in BooksFile to 50.
Moved scattered Cpp11_emu.h includes from various cpp files to main.h.
2019-01-29 11:11:03 +08:00
NovaRain
8a4a83c8f8
Added HideObjIsNullMsg option to [Debugging].
...
Moved DebugEditor option from MiscPatches.cpp to DebugEditor.cpp.
2019-01-27 10:43:54 +08:00
NovaRain
c04df22c48
Added two bug fixes for loading a game saved in combat mode (from Mr.Stalin)
2019-01-27 09:22:03 +08:00
NovaRain
8e0ccc576c
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:31:23 +08:00
NovaRain
42566cc9da
Added AttackComplexFix option (from Mr.Stalin)
2019-01-23 09:33:54 +08:00
NovaRain
9e1c68e78d
Fixed bugs in attack_complex and critter_mod_skill script functions.
2019-01-22 17:06:36 +08:00
NovaRain
9765396b08
Fixed set_self function for use_obj_on_obj, attack, attack_complex vanilla functions (from Mr.Stalin) ( #214 )
2019-01-22 09:47:19 +08:00
NovaRain
b008502e13
Added error message when the name for sfall global variable is not equal to 8 characters.
...
Fixed error in FileSystem.cpp from the previous commit.
Updated version number.
2019-01-21 13:55:42 +08:00
NovaRain
d71efe5b82
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:16:38 +08:00
NovaRain
120888e5ed
Added "art_cache_clear" script function.
2019-01-20 09:10:58 +08:00
NovaRain
7b5075042d
Fixed and refactored code in FileSystem.cpp (from Mr.Stalin)
2019-01-20 00:20:51 +08:00
NovaRain
12ad41043d
Refactored ASM code in FileSystem.cpp (from Mr.Stalin)
2019-01-17 10:10:38 +08:00
NovaRain
e509932add
Added support for returning integer values to abs math function.
...
Minor code refactoring in Skills.cpp.
2019-01-16 11:38:49 +08:00
NovaRain
ba3ad33587
Fixed a bug that broke the calculation of the skill point cost for increasing skill levels ( #226 )
...
Updated version number for hot fix.
2019-01-14 09:34:19 +08:00
NovaRain
6e74c3166a
Refactored ASM code in Sound.cpp (from Mr.Stalin)
...
Minor fix for "path_find_to" script function.
Changed the two wrapper functions in ObjectsOps.hpp using dev branch as ref.
Changed some code in ObjectsOps.hpp for edited wrapper functions.
Moved obj_under_cursor to ObjectsOps.hpp.
Reformatted Karma/Worldmap related code in main.cpp as in dev branch.
2019-01-08 13:28:00 +08:00
NovaRain
e320acce0b
Expanded create/temp_array functions to allow creating a new "lookup" type of associative array (from Mr.Stalin)
2019-01-08 06:52:00 +08:00
NovaRain
4f48926105
Added support for sorting associative arrays by keys or values (from Mr.Stalin)
2019-01-07 15:13:22 +08:00
NovaRain
5611931063
Fixed a crash bug when using sorting functions on an associative array(map) (from Mr.Stalin)
2019-01-06 11:59:09 +08:00
NovaRain
f00022fed6
Moved ModifiedIni to main.cpp.
2019-01-04 21:08:30 +08:00
NovaRain
78815425e2
Refactored ASM code in KillCounter.cpp.
...
Reformatted and tweaked code in Explosions.cpp.
2019-01-03 11:07:57 +08:00
NovaRain
9ddddcc120
Changed INVENTORYMOVE hook to be called before displaying the 'Move Items' window for drag and drop ammo on weapons.
2019-01-03 09:35:26 +08:00
NovaRain
11c15cec93
Refactored some ASM code in BurstMods.cpp, Inventory.cpp, Credits.cpp, AnimationsAtOnceLimit.cpp.
2019-01-01 10:27:40 +08:00
NovaRain
f36bd6fb61
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:10:06 +08:00
NovaRain
26ab38c6c3
Changed critical table to be loaded before global scripts.
...
Removed redundant ClearGlobals() in LoadGameHook.cpp (already run in ResetState(1) above)
Updated version number and year.
2018-12-30 10:08:47 +08:00
NovaRain
9b50e6be1e
Added UseWalkDistance option (from Mr.Stalin) ( #46 )
2018-12-28 20:06:55 +08:00
NovaRain
2427634ee8
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
2018-12-28 10:04:22 +08:00
NovaRain
36d1d0a5fc
Refactored HeroAppearance.cpp (from Mr.Stalin)
2018-12-27 16:03:13 +08:00
NovaRain
486f00cdf4
Refactored assembler code in Skills.cpp.
2018-12-26 10:23:21 +08:00
NovaRain
b6fd424665
Added missing return values for HOOK_INVENWIELD.
2018-12-25 10:02:39 +08:00
NovaRain
3d679db758
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 pushadc/popadc ASM macros.
2018-12-25 01:25:37 +08:00
NovaRain
92e1f919d9
Refactored SafeWrite.cpp.
2018-12-20 09:37:47 +08:00
NovaRain
d259e8c903
Formatted code in HeroAppearance.cpp.
2018-12-18 07:54:19 +08:00
NovaRain
dea0e596c3
Minor code edit on main.cpp.
2018-12-17 09:44:36 +08:00
NovaRain
90b39f3dde
Replaced some values with constants in Perks.cpp.
2018-12-16 11:39:56 +08:00
NovaRain
c80224f661
Simplified and reformatted code in Perks.cpp (from Mr.Stalin)
...
Replaced some 'strcpy_s' usages to 'strncpy_s' in Perks.cpp.
2018-12-15 18:55:40 +08:00
NovaRain
d7d8de5e1a
Added "get/set_object_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:17:26 +08:00
NovaRain
0a21e4abfa
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.
2018-12-04 09:45:55 +08:00
NovaRain
1340eeb0d3
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.
2018-12-03 20:43:03 +08:00
NovaRain
a350fed4d1
Added a fix for unable to sell/give items 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:35:14 +08:00
NovaRain
402d4f40f2
Changed some MakeJump usages to MakeCall in Stats.cpp, Knockback.cpp, and main.cpp.
...
(see Mr.Stalin's comments in commit c990b6701d )
2018-11-29 09:56:41 +08:00
NovaRain
0f49c7f68d
Refactored the code in Knockback.cpp.
...
Edited part of HookScripts.cpp (ref. commit 0a3745f8f5 )
Minor edits to some code files.
2018-11-28 21:35:47 +08:00
NovaRain
deb0299776
Added an option to fix AI not taking chem_primary_desire in AI.txt as drug use preference when using drugs in their inventory (from Mr.Stalin)
...
Minor edits to some code files.
2018-11-26 09:59:14 +08:00
NovaRain
4bb3fa0275
Merged two Glovz's fix functions and reorganized Glovz's/YAAM code layout a bit.
...
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:44:27 +08:00
NovaRain
da31455cef
Fixed missing AC/DR mod stats when examining ammo in barter screen.
...
Added an option to display full item description for weapon/ammo in barter screen.
Minor code correction in ScriptExtender.cpp.
Minor edits to document.
Updated version number.
2018-11-20 07:23:25 +08:00
NovaRain
4da10e2fdb
Fixed the missing return value of -1 for HOOK_USEOBJON.
2018-11-16 06:34:47 +08:00
NovaRain
5426d043c1
Fixed unable to click the pop-up message box when death from radiation was triggered during resting.
2018-11-14 07:14:39 +08:00
NovaRain
719cec74d1
Added a fix to display a pop-up message box about death from radiation.
2018-11-13 21:37:48 +08:00
NovaRain
627fe11c29
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:14:07 +08:00
NovaRain
dcca405b89
Added an additional mode to SpeedInterfaceCounterAnims (from Mr.Stalin)
...
Refactored the code of Stats.cpp.
Unified stat_level_ usages in Inventory.cpp, LoadGameHook.cpp and skills.cpp.
2018-11-10 10:08:08 +08:00
NovaRain
cce9437d19
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 10:01:10 +08:00
NovaRain
09b3bf3aed
Added DisplaySwiftLearnerExp option (from Crafty)
...
Minor edits to some documents/code.
2018-11-07 09:39:11 +08:00
NovaRain
08a891a0fc
Added "obj_under_cursor" script function.
...
Backported some script functions from 4.0: lock_is_jammed, unjam_lock.
2018-11-04 09:14:02 +08:00
NovaRain
e9df81ac78
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:49:14 +08:00
NovaRain
3e982be4b6
Removed RemoveWindowRounding option because it doesn't affect anything.
2018-11-01 09:54:37 +08:00
NovaRain
8a888f387d
Adjusted the position of ExtraSaveSlots page buttons a bit.
2018-10-31 07:16:17 +08:00
NovaRain
712b4de5f7
Changed the debug editor to require sfall debugging mode.
...
Some minor code edits.
2018-10-29 11:14:30 +08:00
NovaRain
a3b456cf0a
Added a new return value to HOOK_KEYPRESS to override the pressed key (from Crafty)
...
Added check for map being loaded to KeyPress/MouseClick hooks.
2018-10-28 08:51:01 +08:00
NovaRain
9f689863d7
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 disabled.
2018-10-27 09:46:35 +08:00
NovaRain
b5306406b3
Replaced some __cdecl calling conventions with __fastcall.
...
(from Mr.Stalin - Reason: The compiler can use the arguments for its own purposes, which can spoil the stored value on the stack.)
Added extra notes for some options to ddraw.ini.
2018-10-26 06:51:52 +08:00
NovaRain
ce3b9c172c
Minor edit to the fade patch.
2018-10-24 12:00:52 +08:00
NovaRain
b8a77d77fb
Added missing functions from the source library ddraw.dll to export from sfall (from Mr.Stalin)
...
Simplified the code in SuperSave.cpp.
Minor edits to ddraw.ini.
2018-10-23 11:50:55 +08:00
NovaRain
a01da656c7
Fixed showing game movies and subtitles for DX9 mode when not using the hi-res patch, and added logging messages for DX9 mode (from Mr.Stalin)
...
Changed DisplayNPCExtraInfo to PartyMemberExtraInfo.
2018-10-19 11:07:30 +08:00
NovaRain
5eda8dd7a0
Backported a new mode of metarule2_explosions from 4.0.
2018-10-17 22:30:07 +08:00
NovaRain
c05babeda7
Added DisplayNPCExtraInfo option to ddraw.ini for previous commit.
2018-10-17 09:34:14 +08:00
NovaRain
cc2b95d64e
Added displaying party member's current level & AC & addict flag info to the combat control panel (from Mr.Stalin)
...
Added additional notes to HOOK_COMBATDAMAGE in hookscripts.txt (#204 )
2018-10-16 10:14:32 +08:00
NovaRain
fb62bd51b5
Simplified some byte writing in a few options.
2018-10-15 09:57:55 +08:00
NovaRain
f4d7ccef40
Fixed typo in the previous commit.
2018-10-14 10:15:02 +08:00
NovaRain
85bb34377c
Added missing argument validation to refactored fs_* opcodes.
...
Minor edits to Criticals.cpp.
2018-10-14 10:06:06 +08:00
NovaRain
af24c6eae4
Fixed the exploit that allows you to gain excessive skill points from Tag! perk before leaving the character screen (from Mr.Stalin)
2018-10-12 19:27:04 +08:00
NovaRain
930f463000
Backported expanded is_iface_tag_active function from 4.0, and refactored show/hide_iface_tag functions as well.
...
Minor edits to a couple of documents.
2018-10-11 23:56:11 +08:00
NovaRain
e1aefcc1ed
Refactored BonusHtHDamageFix/DisplayBonusDamage code in AmmoMod.cpp (from Mr.Stalin)
...
Fixed DisplayBonusDamage not being applied on Melee Damage stat in the character screen when BonusHtHDamageFix is enabled.
Reimplemented INTFACEUSE/INTFACELOOT/BARTER game mode flags, and backported inventory_redraw script function from 4.0.
2018-10-11 11:19:22 +08:00
NovaRain
25554ff0b2
Added FastMoveFromContainer as the auxiliary option for ItemFastMoveKey (from Mr.Stalin)
...
Refactored the code of StackEmptyWeapons.
Added missing argument validation for backported script functions.
2018-10-10 18:27:54 +08:00
NovaRain
dad0860d6e
Changed implementation of StartGDialogFix, additionally fixed the game crash if calling start_gdialog function outside of talk_p_proc procedure for talking heads.
...
Fixed "Heave Ho!" perk increasing strength stat above 10 when determining the max range of thrown weapons.
Moved SpecialUnarmedAttacksFix to BugFixes.cpp and simplified the code.
Added comments to old ApplyHeaveHoFix in Perks.cpp.
Backported some non-hook related script functions from 4.0: item_weight, get/set_outline, get/set_flags, tile_refresh_display, outlined_object, get/set_cursor_mode, display_stats, get/set_map_enter_position, attack_is_aimed.
2018-10-10 17:24:05 +08:00
NovaRain
a7e492a80f
Backported get/set_proto_data changes and LoadProtoMaxLimit option from the develop branch.
...
Added more definitions to define_extra.h.
2018-10-08 21:45:16 +08:00
NovaRain
d9b748c261
Backported UseScrollingQuestsList imporvements from 4.1.
...
Added sound effect to ExtraSaveSlots page buttons (from Mr.Stalin)
2018-10-06 23:18:07 +08:00
NovaRain
0aad511e3e
Refactored ASM code in ScriptExtender.cpp according to the develop branch, and edited the code style.
...
Moved NegateFix to Bugs.cpp and simplified its code.
2018-10-05 10:13:01 +08:00
NovaRain
d117296990
Backported "create_win" script function and InterfaceDontMoveOnTop option from the developt branch.
...
Updated version number.
2018-10-02 12:15:48 +08:00
NovaRain
e672db53c7
Backported AllowDShowSound improvements from the develop branch:
...
* Added volume control support for alternative sound files.
* Added mode 2 to play alternative music files even if original acm files are not present in the music folder.
* Added AllowDShowMovies option to separate avi files playback from enabling DX9 mode.
* Fixed initialization bug when DX9 mode is disabled.
* Small refactoring on ASM code.
Added missing FadeMultiplier option to ddraw.ini.
2018-10-01 12:16:42 +08:00
NovaRain
25bbd91fc5
Fixed the mood argument of start_gdialog function being ignored for talking heads (from Crafty)
...
Fixed the broken obj_can_hear_obj script function (from Mr.Stalin)
Simplified the code of disabling losing unused perks.
2018-09-30 16:31:29 +08:00
NovaRain
8db528330b
Fixed the max text width of player name in inventory.
...
Added an 8 lines limit to the underline position fix.
Some minor ASM code edits.
Minor edit to document.
2018-09-25 14:17:45 +08:00
NovaRain
f761f7834e
Refactored fs_* opcodes with ASM macros and opcode handlers.
2018-09-25 12:29:33 +08:00
NovaRain
f6c4e5133c
Fixed ai_retrieve_object_ engine function not returning the requested object when there are different objects with the same ID (from Mr.Stalin)
...
Added info about map_*_p_proc procedures to the global script section in notes.txt.
2018-09-23 08:15:52 +08:00
NovaRain
2e30c86467
Added "get_current_inven_size" script function.
2018-09-21 19:27:57 +08:00