NovaRain
c7520c71cf
Fixed player's base EMP DR isn't properly initialized when creating a new character and then starting the game.
2017-12-15 07:34:10 +08:00
NovaRain
45632d6887
Changed sneak_success to call is_pc_sneak_working_ engine function, which takes player's current sneaking status into account as well, instead of only returning the result of last sneak attempt.
2017-12-05 10:25:11 +08:00
NovaRain
866c9165c0
Replaced hex values with proper VAR_TYPE_* defines for code readability.
2017-12-03 23:29:28 +08:00
NovaRain
813abbf452
Added missing entry of block_combat script function in opcode list.
2017-12-03 02:40:36 +08:00
NovaRain
c6864e01f6
Added the damage type offset of weapon proto to define_extra.h.
...
Fixed a typo in hookscripts.txt.
Added a new example mod gl_autodoors (by Mr.Stalin) to modderspack. #19
2017-11-28 00:30:29 +08:00
NovaRain
0eab48932a
Tweaked the way DebugMode works, now only DebugMode=2 sends debug output to a debug.log file. Any other non-0 value sends debug output to the screen. #123
2017-11-07 10:44:57 +08:00
NovaRain
6c3efc5b84
Replaced some SafeWrite* usages in old code with corresponding HookCall/MakeCall/MakeJump for code readability.
...
Edited code style in Perks.cpp.
2017-11-06 15:21:08 +08:00
NovaRain
cb8d7dc94a
Enabled mouse scroll control in barter and loot screens when the cursor is hovering over other lists, also enabled scrolling through the display monitor (from Crafty) #120
...
Rearraged the code style in dinput.cpp.
Updated version number.
2017-10-25 11:40:46 +08:00
NovaRain
5786cfb267
Fix crash when calling partyMemberGetCurLevel_ on a critter that has no data in party.txt.
...
Updated version number.
2017-10-18 14:56:38 +08:00
NovaRain
78dfb530a9
Moved LoadHeroAppearance() from MainMenuHook to NewGame2. No reason to run it on the main menu where player appearance can't display.
2017-09-19 15:27:08 +08:00
NovaRain
d588f2e691
Edited code style in HeroAppearance.cpp/h, also removed some redundant blank lines.
2017-09-19 10:43:31 +08:00
NovaRain
daf7a82997
Added descriptions for the variables in Perks.ini.
...
(cherry picked from commit 848f29b468 )
2017-09-12 15:39:39 +08:00
NovaRain
9ad2b19e1a
Removed the redundant LoadHeroAppearance calling.
...
(now it's called during LoadGame_, which is earlier than LoadGame2_After)
2017-09-09 18:59:21 +08:00
NovaRain
4b66dd3682
Reverted LoadGame to previous revision, but also kept EndLoadHook and changed it to only call LoadHeroAppearance.
...
(attempted to fix issue #117 and #94 )
2017-09-05 09:21:22 +08:00
NovaRain
4899aeece1
Changed new function names in the previous commit to PascalCase style.
2017-09-01 09:45:33 +08:00
NovaRain
438ea071fc
Removed the backported new modes for get_game_mode in commit a93ad5a9ba.
2017-08-24 21:46:42 +08:00
NovaRain
89760235c7
Removed unimplemented HEROWIN game mode from header files.
...
Cleared some obsoleted/unused code from main.cpp & LoadGameHook.cpp.
2017-08-23 13:42:58 +08:00
NovaRain
321f1c6034
Fixed the double damage effect of Silent Death perk not being applied to critical hits (from Crafty)
2017-08-21 23:18:32 +08:00
NovaRain
513338f160
Fixed incorrect argument description for get/set_proto_data in sfall opcode list.txt.
...
Removed incorrect PROTO_CR_FLAGS value in define_extra.h (was actually critter's IN), and renamed PROTO_CR_ACTION_FLAGS to its correct name #112
(cherry picked from commit ad17773ace )
2017-08-21 11:33:37 +08:00
NovaRain
08b92542f4
Fixed the incorrect description in HOOK_COMBATDAMAGE.
...
(cherry picked from commit 85cdd8973e )
2017-08-19 08:49:56 +08:00
NovaRain
46013c94b0
Added SSL library files and define_lite.h (from 4.0 development branch)
2017-08-18 15:52:14 +08:00
NovaRain
7a4ab59089
Added missing description for set_car_current_town.
...
Removed trailing spaces in MetaruleOp.hpp.
2017-08-13 11:38:18 +08:00
NovaRain
e505e204cb
Two bug fixes from Crafty:
...
1. Fixed the displayed message when the attack randomly hits a target that is not a critter and has a script attached.
2. Fixed damage_p_proc being called for misses if the target is not a critter.
2017-08-07 13:24:11 +08:00
NovaRain
7343754d53
Fixed Bonus Move APs being replenished when you save and load the game in combat (from Crafty)
...
Replaced all usages of MakeCall with 3 arguments with either MakeJump or MakeCall (2 arguments) to improve code readability (ref. commit 96fa2668cc )
2017-07-26 23:13:40 +08:00
NovaRain
ae1e17d359
Added a note for argnum in set_sfall_arg().
...
Fixed incorrect set_sfall_arg usage in the example.
Removed a redundant line in sfall opcode list.txt.
2017-07-25 23:14:50 +08:00
NovaRain
32dbe5581d
Replaced hs_*.int scripts in example mods with normal global scripts with register_hook.
...
(cherry picked from commit e7e286013f )
2017-07-06 21:04:51 +08:00
NovaRain
a93ad5a9ba
Added new modes for get_game_mode to match Crafty's (backported from 4.0 development branch, commit c32dc7664e)
2017-06-22 09:41:05 +08:00
NovaRain
874b047ce1
Added Attack Type argument for HOOK_COMBATDAMAGE (from Crafty) #100
2017-06-14 12:45:13 +08:00
NovaRain
afa590c5a8
Minor edits to ddraw.ini.
2017-06-02 11:49:02 +08:00
NovaRain
b89c52fcec
Added DontTurnOffSneakIfYouRun option to prevent the player from running while sneaking without Silent Running perk (from Crafty)
...
Added sfall log text for DisablePipboyAlarm.
2017-05-26 10:10:16 +08:00
NovaRain
ec2d323f75
Changed LoadGame2_After to be called before LoadGame state is ended (backported from 4.0 development branch, commit c2e6d743a3)
...
Updated version number.
Minor edits to scripting documents.
2017-05-23 21:05:04 +08:00
NovaRain
31834fdfea
Added OutlineColor option to set the color of outlines for items/containers.
2017-05-07 20:27:30 +08:00
NovaRain
7405e3cb52
Updated version number in ddraw.ini.
2017-05-07 01:22:00 +08:00
NovaRain
771230f9b4
Fixed a crash when calling destroy_object or destroy_mult_objs.
...
Updated some structs, using commit 75c7ab647f as the reference.
Updated version number.
2017-05-07 01:08:28 +08:00
NovaRain
e7d03fc60a
Fixed a bug that caused the game to crash upon entering combat mode if AnimationsAtOnceLimit is set to negative values by accident.
...
Used static const for the value of animation record size.
2017-03-23 13:03:20 +08:00
NovaRain
50c91db5ea
Moved part of AnimationsAtOnceInit code from main.cpp to AnimationsAtOnceLimit.cpp.
...
Changed the if condition for ProcessorIdle to make sure out-of-bounds values not resulting in unexpected but valid values.
2017-03-21 21:05:44 +08:00
NovaRain
b1624e5acf
Fixed vanilla to-hit calculation being broken by the previous TOHIT hook commit.
2017-03-20 13:57:11 +08:00
NovaRain
024b1dbf6f
Backported the fix for TOHIT hook from 4.0 development branch (commit 7bbe84feef)
...
Updated credits.
2017-03-19 08:29:27 +08:00
NovaRain
659da227f4
Fixed incorrect "\r\r\n" being printed in sfall-log.txt.
...
Simplified Jet Antidote fix.
Unified the wording of some log entries.
Changed sprintf to _snprintf_s for SimplePatch.
2017-03-18 22:42:19 +08:00
NovaRain
bf61051887
Updated documentation on hook scripts.
...
Minor edits to missing d3dx9 dll message.
2017-03-16 22:03:33 +08:00
NovaRain
158234438b
Fixed inconsistent behavior of motion sensor flag 2; now motion sensor truly does not require any charges to work.
2017-03-14 22:56:19 +08:00
NovaRain
eb4998ced6
Fixed an error in the previous commit.
2017-03-14 22:02:52 +08:00
NovaRain
9631e08db4
ExplosionEmitLight: Skip setting light level if object was already lit #78 (from commit b0dc6ff182)
2017-03-14 14:07:26 +08:00
NovaRain
52072e29c0
Removed the obsolete WorldMapFPS, ForceLowResolutionTimer, and WorldMapDelay.
...
Fixed global scripts not running on the world map (mode 2) when disabling the world map speed patch.
2017-03-13 13:37:46 +08:00
NovaRain
28c18c1925
Updated hook script document for new arguments of hs_barterprice.
...
Changed BarterPriceHook() to be in line with the version in 4.0 branch.
Fixed incorrect GlobalVar struct size leading to load game crashes and corrupted saves (from 4.0 development branch)
2017-03-13 13:08:15 +08:00
NovaRain
77349cbaec
Fixed Sequence stat value not being printed correctly when using "print to file" option.
...
Updated credits.
2017-03-13 10:33:31 +08:00
NovaRain
d8e2e6f1ca
Added a missing function to prevent the player starting the game with zero or negative SPECIAL values (from Crafty)
...
Added a log entry for the bag/backpack fix.
2017-03-12 21:02:19 +08:00
NovaRain
ec0baf3065
Greatly increased compilation speed using precompiled header (from 4.0 development branch)
...
Changed SkipSizeCheck and ExtraCRC to not require enabling sfall debugging mode.
2017-03-11 20:14:25 +08:00
NovaRain
229a5516e0
Unified the style of merged code.
2017-03-09 10:18:16 +08:00
NovaRain
cb84700bfc
Fixed metarule2_explosions not being reset properly.
2017-03-09 09:10:21 +08:00
NovaRain
6b7a10130d
Improved the functionality of ScrollMod: now the minimum is scrolling 1 inventory slot per click; before setting ScrollMod too high or negative values will result in scrolling not working.
2017-03-08 22:56:48 +08:00
NovaRain
061302585b
Updated version number.
2017-03-06 00:43:39 +08:00
NovaRain
c3acd1af3e
Changed ExtraGameMsgFileList to read its setting from generic INI file, which can be set by UseCommandLine, instead of the fixed ddraw.ini.
...
Added a comment to karma frm options to explain things better.
2017-03-05 00:31:35 +08:00
NovaRain
411c0a6e98
Backported the fix for a crash when pressing reload weapon key while in the main menu from 4.0 development branch (commit 5b10d9e786)
2017-03-03 11:45:06 +08:00
NovaRain
4cc1235dbc
Backported the fix for bug #70 from 4.0 development branch (commit 72bde84d92)
...
Fixed a minro typo in Inventory.cpp.
2017-02-28 21:22:00 +08:00
NovaRain
00d4e188d6
Fixed a crash if calling reg_anim_obj_run_to_tile after reg_anim_combat_check.
...
Implemented some changes of Explosions.cpp from commit ce21fdab79 to make the code a bit more understandable.
2017-02-24 15:47:37 +08:00
NovaRain
38438d1e9c
More minor edits to ddraw.ini.
2017-02-21 23:15:26 +08:00
NovaRain
94e4a2043a
Some minor edits to ddraw.ini.
2017-02-21 23:01:21 +08:00
NovaRain
42f70f920e
Removed unused code in LoadGame().
...
Revert the change of OverrideArtCacheSize.
2017-02-21 14:37:18 +08:00
NovaRain
f56af79c16
Set the valid range of NPCsTryToSpendExtraAP to be non-0 positive values, and removed a redundant/unused constant.
...
Changed the valid range of EncounterTableSize.
2017-02-21 00:15:24 +08:00
NovaRain
955733270c
Added a fix for the engine not checking player's inventory properly when putting items into the bag/backpack in the hands (from Crafty)
...
Removed BagBackpackFix from ddraw.ini.
2017-02-20 12:23:51 +08:00
NovaRain
9804902af6
Fixed a crash when trying to open bag/backpack on the table in the bartering interface (from Crafty)
...
Added a tweak to move items to player's main inventory instead of the opened bag/backpack when confirming a trade.
2017-02-17 00:21:16 +08:00
NovaRain
cfb546ce8a
Added a fix to ignore player's equipped items when opening bag/backpack (from Crafty)
2017-02-15 22:39:31 +08:00
NovaRain
de2549eeaa
Added the ability to move items out of bag/backpack and back into the main inventory list by dragging them to character's image (similar to Fallout 1 behavior) (derived from Crafty's code)
...
Added a fix for losing items from inventory when you try to drag them to bag/backpack in the inventory list and are overloaded (from Crafty)
Removed gdBarterDispFix from ddraw.ini.
2017-02-15 12:56:37 +08:00
NovaRain
cc00a2c162
Replaced PID number in ScannerAutomapHook() with its define name for better understandability.
2017-02-13 15:46:49 +08:00
NovaRain
16be32d284
Replaced some address hacks with simplified ones (e.g. using jumps instead of multiple NOPs)
...
Changed code style in main.cpp with Astyle.
2017-02-13 14:02:28 +08:00
NovaRain
16f19824d1
Replaced hex addresses with proper engine defines for ViewXPos and ViewYPos, and replaced two instances of SafeWrite32 with HookCall.
2017-02-12 22:28:37 +08:00
NovaRain
535b7edc55
Limited the range of values for StartYear/Month/Day to prevent errors when setting them to negative values, and added a clarification in ddraw.ini.
2017-02-12 00:11:21 +08:00
NovaRain
573e5324f4
Updated ddraw.ini for the change in previous commit.
...
Updated version number.
2017-02-07 15:59:59 +08:00
NovaRain
e17b722f16
Changed BodyHit_Torso to BodyHit_Torso_Uncalled because it sets both body_torso and body_uncalled hit modifiers.
2017-02-04 21:20:33 +08:00
NovaRain
7a6e15bae1
Fixed OverrideMusicDir not using the correct path string.
...
Updated the year showed in the credits and file properties.
2017-01-31 13:03:09 +08:00
NovaRain
df34f6c994
Fixed broken call_offset_* functions.
2017-01-24 22:24:53 +08:00
NovaRain
26874a709e
Edited the format of LoadGameHook.cpp to be more in line with the one in 4.0 branch, and replaced a hex address with proper engine function.
2017-01-20 00:28:09 +08:00
NovaRain
45724aa6b3
Moved sfall additional save game file reading from LoadGame2_After to LoadGame2_Before to make saved arrays available in start functions of ssl scripts.
...
(cherry picked from commit 6bd7d4f05c )
2017-01-19 23:59:05 +08:00
NovaRain
b477a43bd0
Added more details to the description of WorldMapEncounterFix/Rate, and changed the default value of WorldMapEncounterRate to its internal default.
2017-01-12 00:08:10 +08:00
NovaRain
ca86b5f930
Fixed display issues when calling gdialog_mod_barter with critters with no "Barter" flag set (from Crafty)
2017-01-09 16:35:03 +08:00
NovaRain
f05ec714e7
Made WorldMapEncounterFix/Rate independent from WorldMapFPSPatch. ( #62 , with the simplified code from Crafty)
2016-12-27 14:19:54 +08:00
NovaRain
ad1f08378b
Fixed issue #57 .
...
Updated version number.
2016-11-14 09:40:01 +08:00
NovaRain
11dfb3e94a
Added MainMenuOffsetX/Y and MainMenuCreditsOffsetX/Y settings back to ddraw.ini.
...
Corrected document file name in README.txt.
2016-11-08 10:25:41 +08:00
NovaRain
3668a1c94f
Improved the functionality of ProcessorIdle (from Crafty)
2016-11-07 15:04:55 +08:00
NovaRain
5cb3ca2a59
Removed queue9x and vector9x.
...
Disabled ComputeSprayMod by default.
Updated version number.
2016-11-07 10:16:57 +08:00
NovaRain
d276da3d68
Added VS2008 compatibility (vsnprintf_s uses 4 args by C11 standard, which is supported in VS2010 but not VS2008)
2016-11-03 14:56:32 +08:00
NovaRain
e3739ba7aa
Initialized scriptDialog pointer properly and deleted it on game exit.
2016-11-02 08:59:02 +08:00
NovaRain
e78e76e35d
Edited a couple of log entries.
...
Simplified the memory address edits of MultiPatches.
2016-10-31 15:56:19 +08:00
NovaRain
47783c802e
Added a C++11 emulator for compiling with VS2008.
2016-10-26 11:38:57 +08:00
NovaRain
dbdf414cd9
Tweaked the style of global/hook script log entries a bit.
2016-10-18 11:45:00 +08:00
NovaRain
3e2a22fad8
Fixed bugs in set*_stat_min functions that set max values instead of min.
...
Unified the style of global/hook script log entries.
Updated the code of "reading global/hook scripts from DAT files" with Crafty's newer code base.
2016-10-18 10:59:10 +08:00
NovaRain
13ee06dee2
Improved the 'print to file' fix and added the ability to use long filenames in dat files (from Crafty)
2016-10-17 11:58:22 +08:00
NovaRain
2d3031e583
sfall can now load global/hook scripts from dat files (from Crafty's mod)
2016-10-14 13:57:20 +08:00
NovaRain
de5c12484d
Added DataLoadOrderPatch option to use a modified data load order for the engine to find game data (from Crafty's mod)
...
Updated version number.
2016-10-11 11:58:17 +08:00
NovaRain
c880ae93a9
Removed unused code in ScriptExtender.cpp and rename obj_outline_all_items_* functions slightly to prevent using the same names as game engine functions.
...
Minor edits on main.cpp and Bugs.cpp.
2016-10-07 10:31:46 +08:00
NovaRain
295a5d1437
Replaced NumberPatchLoop with a simple toggleable MultiPatches. Reason: While NumberPatchLoop allows even larger patch numbers, the built-in valid range of patch numbers of 000 ~ 999 is more than enough already.
2016-10-05 16:09:22 +08:00
NovaRain
e726ee54ba
Tweaked set_bodypart_hit_modifier function to follow the removal of BodyHit_Uncalled from ddraw.ini, e.g. setting modifier for torso (3) will also set for uncalled (8), and vice versa.
2016-10-04 10:23:17 +08:00
NovaRain
712eafc241
Now sfall loads global/hook scripts, shaders, 32-bit talking heads images, and avi movies according to the paths variables in the cfg file, instead of from the fixed "Data\".
...
Removed GainStatPerkFix from ddraw.ini.
Removed BodyHit_Uncalled from ddraw.ini. Now "uncalled" shares the same modifier with "torso", because separating them would result in some illogical setups.
2016-10-03 14:46:51 +08:00
NovaRain
d1bf22ec8d
Expanded DisableHorrigan to also skip the forced encounter check, to compatible with old saves that are not started with DisableHorrigan=1.
...
Changed the description of PipBoyAvailableAtGameStart=2 to be more precise.
Simplified the skipping code in PerkSetup(), because it's redundant to change two bytes that the same effect can be done with changing the conditional jump next to them.
2016-09-29 13:37:58 +08:00
NovaRain
21d496f392
Added a new setting to PipBoyAvailableAtGameStart to skip the vault suit movie check and make the PipBoy always available.
...
Improved the functionality of PipBoyAvailableAtGameStart (from Crafty's mod)
2016-09-26 16:05:18 +08:00
NovaRain
07948206fb
Removed CarryWeightLimit option, because it can be scripted with set_stat_max function.
2016-09-21 09:33:11 +08:00
NovaRain
6a71bf086d
Added a partial fix for incorrect positioning after exiting small locations (e.g. Ghost Farm) (from Crafty's mod)
2016-09-19 13:15:57 +08:00
NovaRain
ec585529c8
Changed BodypartHitMod# to BodyHit_(part names) in ddraw.ini, to make them easier for users to understand.
2016-08-31 10:27:03 +08:00
NovaRain
e6aad27e44
Moved ImportedProcedureFix to Bugs.cpp and added comments to it.
...
Added more descriptions to options in ddraw.ini, especially DebugMode, to make things clearer and save the trouble to look up debug patch readme.
2016-08-30 13:11:06 +08:00