NovaRain
e5d14ff845
Minor edit to FixCharScrnBack() in HeroAppearance.cpp.
2018-05-14 21:16:44 +08:00
NovaRain
9b67db7208
Fixed broken get_attack_type function (from Mr.Stalin and Crafty)
...
Replaced some SafeWriteX usages with SafeMemSet for writing serial NOPs.
Minor edits to documents.
2018-05-08 15:39:39 +08:00
NovaRain
e92ded34e4
Added "floor2" script function to work with ceil ( #109 )
...
Added the missing description of ceil to notes.txt.
Disabled ceil marco in lib.math.h.
Removed duplications in Utils.h.
2018-04-28 11:16:10 +08:00
NovaRain
1689542165
Fixed the last additional notification boxes to the interface being missing ( #140 )
2018-04-26 10:11:22 +08:00
NovaRain
2c86201db9
Updated README.txt for info about additional headers/libraries.
...
(cherry picked from commit e474ba1660 )
2018-04-21 09:19:20 +08:00
NovaRain
d7c9acf713
Added set_ini_setting to documents, and updated info for get_ini_setting.
...
Updated credits.
Replacing a couple of strcpy usages with strcpy_s.
2018-04-21 08:49:56 +08:00
NovaRain
774adaa3b0
Revert "Fixed a bug when using HOOK_ITEMDAMAGE and calling item_w_damage_ engine function at the same time. It would result in player self-damaging when attacking targets."
...
This reverts commit b4d174d91b .
2018-04-13 20:43:33 +08:00
NovaRain
b4d174d91b
Fixed a bug when using HOOK_ITEMDAMAGE and calling item_w_damage_ engine function at the same time. It would result in player self-damaging when attacking targets.
...
Set DataLoadOrderPatch to be enabled by default, for preventing partial of a game crash issue due to unusual game folders setup. #136
2018-04-13 11:09:37 +08:00
NovaRain
3291f6fe17
Added a fix for being at incorrect hex after map change when the exit hex in source map is at the same position as some exit hex in destination map (from Crafty) #134
2018-04-02 23:22:46 +08:00
NovaRain
84f442ca08
Rewrote the fix for player's base EMP DR as an engine-level fix (from Crafty)
2018-04-01 12:48:13 +08:00
NovaRain
f5c35eb639
Fixed typos in hookscripts.txt.
2018-03-23 23:10:17 +08:00
NovaRain
514894ed59
Fixed typos in sfall function notes.txt.
2018-03-23 22:06:02 +08:00
NovaRain
204810d067
Fixed the long existing slotdat.ini function in ExtraSaveSlots.
...
Reduced duplication in ExtraSaveSlots code.
Unified the indent style in ExtraSaveSlots.cpp.
Updated version number.
2018-03-16 12:49:39 +08:00
NovaRain
ec4ba13a28
Fixed add_mult_objs_to_inven only adding 500 of an object when the value of "count" argument is over 99999. #129
2018-01-17 07:37:03 +08:00
NovaRain
14a6ef7fc6
Made sure the value of player's base EMP DR is set correctly.
2018-01-02 23:25:27 +08:00
NovaRain
c3a74070ca
Updated version number and the year.
...
Set the copyright string in the same way as 4.0 build.
2018-01-02 10:26:32 +08:00
NovaRain
302fd4bb51
Condensed the code in ApplyHeaveHoFix a bit.
2018-01-02 10:02:04 +08:00
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