Commit Graph
100 Commits
Author SHA1 Message Date
NovaRain 321f8e1ab2 Changed string_pos to return -1 on arg error
Added a check to PartyControl::OrderAttackPatch().
Updated function documents.
2023-07-05 22:14:04 +08:00
NovaRain 9f6ca9d55d Updated some documents 2023-07-03 15:39:56 +08:00
NovaRain f42b232e19 Moved sfall-mod.ini into mods\ folder
Packed item highlighting and NPC combat control mods into sfall.dat.
2023-07-02 20:40:35 +08:00
NovaRain 0926ace899 Use explicit GetFileAttributesA function 2023-07-02 08:28:15 +08:00
NovaRain b2023b7e51 Removed capping of console window position and size
* for multi-monitor setup, leaving only minimum size of 640x480.
2023-06-29 21:32:32 +08:00
NovaRain 1f962458cd Added file check for books/drugs/enginetweaks ini files
Fixed possible array index out of bound error in BarBoxes.
Added trimming to custom unarmed attack names.
Edits to ddraw.ini and function docs.
2023-06-27 21:19:36 +08:00
NovaRain ece95a95e9 Updated docs for improved string_format
Edited error messages for a few functions.
ConsoleWindow: disallowed negative window position.
2023-06-25 16:16:23 +08:00
NovaRain d7a974c50b Fixed the display after switching back in NPC combat control mod
* player's active "sneak" notification box wasn't shown when switching
back after the combat.

Replaced numbers with defines in item highlighting mod.
2023-06-24 14:17:38 +08:00
NovaRain 3b29088818 Edited the log messages in LoadOrder.cpp
Cleaned up some module headers.

Updated version number in documents.

Updated changelog in sslc document, and removed the mention about
empty statements (it never worked).
2023-06-21 22:21:12 +08:00
NovaRain b619ea3fba Updated function docs for get_ini_config 2023-06-19 12:15:17 +08:00
NovaRain ae7921fe26 Some format/textual edits to code
* line indents.
* remove trailing spaces.
* use nullptr instead of NULL for pointers.

Edited the error messages of get_ini_config.
2023-06-19 12:14:31 +08:00
NovaRain 97c2b111ff Updated the description of ConsoleWindow
Simplified ASM code in Premade.cpp a bit.
2023-06-17 21:40:11 +08:00
NovaRain f9dc7a3e25 Added code page setting for the console window 2023-06-15 23:27:07 +08:00
NovaRain 23d1e3b9c8 Updated the description in [ExtraPatches] for mods_order.txt
Tweaked the error log entry for mods_order.txt.
Removed unnecessary Inject_SwitchHandHook (unused since 4.2.1)
2023-06-15 13:38:04 +08:00
NovaRain 7baa6de014 Reduced buffer flush in Logging.cpp
Edited some description in ddraw.ini.
2023-06-15 13:24:02 +08:00
NovaRain 7939924257 Removed debug message about missing critter art from displaying in-game
* to prevent unnecessary annoyance to generic players.

Added a safeguard to get_tile_fid.
2023-06-14 09:26:28 +08:00
NovaRain 46a80fdb6a Added get_tile_fid and macros to function notes
Some misc edits to documents.
2023-06-13 12:32:49 +08:00
NovaRain 492e31410c Fixed the mode 2 of get_tile_fid
Minor code/comment/format edits.
2023-06-13 10:15:02 +08:00
NovaRain ab0c373a9b Minor edits to code and documents
Commented out unused combat related functions.
2023-06-09 11:20:47 +08:00
NovaRain b317ed71ce Added options to override the names of sound files for game modes
Remove the worldmap/credits music override from Fallout1Behavior.
(was added in commit 00b85be)

Minor edits to ddraw.ini.
2023-06-05 11:37:58 +08:00
NovaRain 9197966993 Some grammar correction in function document 2023-06-05 10:54:36 +08:00
NovaRain 3d88304777 Added a new example mod gl_rest_encounter
Added a burst control example script.
2023-06-02 15:14:25 +08:00
NovaRain 4e37fb0228 Fixed crash when using NumbersInDialogue
(revert commit a4d6687)

Added more accurate description for div function in DamageMod.cpp.
2023-06-01 15:56:43 +08:00
NovaRain 0de7614c53 Minor edits to ddraw.ini and define_extra.h 2023-05-29 15:21:21 +08:00
NovaRain 19db722948 Decoupled hook type 2 of HOOK_AMMOCOST from CheckWeaponAmmoCost
Edits to documents to reflect the hook change.
Changed CheckWeaponAmmoCost to be enabled by default.
Updated version number.
2023-05-20 10:56:39 +08:00
NovaRain c2dde7485a Added back postbuild.cmd for github action 2023-05-19 10:35:59 +08:00
NovaRain c73f311b22 Randomized one extra bullet for side groups in burst attacks
* idea from phobos2077.

Added minimum value check to multipliers.
2023-05-19 09:45:15 +08:00
NovaRain 000816acb5 Merge branch 'scriptable-burst' into develop 2023-05-19 08:27:46 +08:00
NovaRain 37e7af2a17 Added documentation for set_spray_settings 2023-05-18 22:52:00 +08:00
NovaRain befea69909 Fixed "divided by zero" error when returning 0 in AMMOCOST hook
* with CheckWeaponAmmoCost=1

Added a value check to the return value of AMMOCOST hook.
Updated hookscripts.md to reflect this change.
2023-05-18 10:01:49 +08:00
NovaRain c9034f917b Added "set_spray_settings" function for scriptable burst (#36)
* Current implementation works similar to metarule2_explosions.
documentation will come later.
2023-05-17 00:14:44 +08:00
NovaRain 5b9e90100d Changed AttackSubType enum "GUNS" to "RANGED"
* to be in line with define_extra.h, the naming is from RE/CE.

Minor textual edits to code.
2023-05-15 12:06:53 +08:00
NovaRain 00b85bec49 Expanded the functionality of Fallout1Behavior
* change the world map music and the credits music to match FO1 files.

Increased the maximum value of the combat speed slider.
Some minor code edits.
2023-04-30 09:18:51 +08:00
NovaRain 571955fbcb Tweaked set_pc/critter_base/extra_stat script functions
* before they didn't update derived stats when setting SPECIAL, for
the player it requires accessing the char screen to update.

Replaced some proto_ptr() usages with GetProto().
2023-04-22 23:45:57 +08:00
NovaRain f4e3049a0f Code edits to PartyControl.cpp
* use roll_random function from the engine instead of making a new one.

Updated version number.
2023-04-19 10:41:20 +08:00
NovaRain 184af43928 Attempt for reproducible builds
* ducible.exe is built with v140_xp toolset and /arch:SSE.
2023-04-17 10:06:46 +08:00
NovaRain 32e9642f90 Replaced deprecated set-output command in action
Removed Debug Directory "coffgrp" from PE header of release builds.
2023-04-14 14:04:41 +08:00
NovaRain a4d6687aab Minor code edits to MiscPatches.cpp 2023-04-12 10:02:26 +08:00
NovaRain 29ad2bf3b8 Recompressed sfall resource files 2023-03-31 21:54:55 +08:00
NovaRain 4fc282fa61 Minor edit to the changelog 2023-03-29 14:31:50 +08:00
NovaRain 5b4e165368 Fixed assorted typos in documents
Added an example ini to Ammo INI Loader mod.
Updated the changelog.
2023-03-27 20:30:36 +08:00
NovaRain b69e4e0eeb Fixed being able to call multiple exit msg boxes with Alt+F4 2023-03-16 10:44:58 +08:00
NovaRain 254473cf1c Added support for closing the game by Alt+F4 (#457) 2023-03-15 12:09:52 +08:00
NovaRain c4efe78661 Updated readme and added changelog (#451) 2023-03-13 14:22:35 +08:00
NovaRain 656b122f3e Removed deprecated "register" keyword
Minor edits to documents.
2023-03-10 21:01:21 +08:00
NovaRain 30802e8e21 Changed the copyright text format in the credits 2023-03-06 22:41:37 +08:00
NovaRain 56150d572a Renamed some object flags 2023-03-05 10:18:59 +08:00
NovaRain a75886a020 Added a tweak to the ammo info for Glovz's/YAAM
* to display correct ammo stats based on the formulas w/o editing
proto.msg manually.

Updated translation ini files.

Set the maximum number of screenshots to 10k (was 100k)

* 100k is impractical because the max files per directory on FAT32 is
65535 (only if all files are in 8.3 format) when the game came out.
2023-03-01 09:13:48 +08:00
NovaRain 64dc30d922 Removed CreditsAtBottom from ddraw.ini
* sfall built-in credits will be shown at the beginning when from the
main menu and at the end during the ending.
2023-02-26 23:29:17 +08:00
NovaRain a6a2285ffe Fixed incorrect death endings being shown
* can happen in vanilla FO2 when the player is lv10 or higher,
with a low chance.
2023-02-15 21:05:25 +08:00
NovaRain 381032a246 Removed redundant "Done" strings from sfall log
* only when there are alternative states or for graphics/sound/scripting
2023-02-10 08:42:02 +08:00
NovaRain b6ee7bebf2 Tweaked how disabled unsafe opcodes work
* now disabled opcodes will just do nothing instead of causing the
script terminated.
2023-02-09 15:04:41 +08:00
NovaRain dd73cbea9c Removed StackEmptyWeapons from ddraw.ini (always enabled) 2023-02-02 12:38:33 +08:00
NovaRain 5c5df4ef64 Added a tweak to allow premade characters to have less than two traits
Fixed the player's traits not being displayed in certain unusual cases.
(with save editing or hex-edited GCD file)
2023-01-10 10:31:35 +08:00
NovaRain ad137896c9 Increased the upper limit of ProcessorIdle 2023-01-07 23:06:07 +08:00
NovaRain 9bdd633fcd Cosmetic edits: updated/unified the copyright header years 2022-12-31 10:13:41 +08:00
NovaRain 48e2a63cdf Edits to sfall_ver_* script functions
* they take no arguments and only return constants, simpler structure
in ASM is enough.
2022-12-26 08:43:40 +08:00
NovaRain 33e6cb0cb8 Fixed broken read_string script function
* actually it has never worked.
2022-12-22 09:34:52 +08:00
NovaRain 52e796815a Fixed a crash bug in FullItemDescInBarter
* when weapon/ammo has no description, it'd trigger UB from strncpy_s.
2022-12-17 10:35:39 +08:00
NovaRain 05f2fb4001 Minor edits to Functions_def.h 2022-12-03 13:18:06 +08:00
NovaRain 024a13c6a8 Minor edits to code and documents 2022-12-01 08:40:39 +08:00
NovaRain 9ecd598544 Fixed args for HOOK_RESTTIMER 2022-11-26 09:58:13 +08:00
NovaRain 8521c1772b Minor edits to a few ASM hacks
(Changed 2-bytes null jcc to just 2 nop)
2022-11-16 12:19:04 +08:00
NovaRain f7d94e16c9 Tweaked HOOK_INVENTORYMOVE for dropping caps
* before the amount was set in the dropped object only after the hook.

Edits to hook script documents.
2022-10-29 11:32:25 +08:00
NovaRain 3b8d2a4527 Edited the format for window title
Reorganized RMOBJ_* defines in define_extra.h.
2022-10-27 17:20:41 +08:00
NovaRain db7419a2f7 Some format edits to documents
Updated version number.
2022-10-25 21:23:21 +08:00
NovaRain 007fa7314b Minor edit to hookscripts.md 2022-10-18 08:58:51 +08:00
NovaRain 87f5a5f081 Fixed incorrect critter names for corpses
* happens when multiple critters based on the same proto with
different scripts attached are killed.

Tweaked the fix for create_object_sid function.
2022-10-09 23:25:15 +08:00
NovaRain 5d5da0a471 Code correction to LoadOrder.cpp
Updated version number.
2022-09-28 10:17:11 +08:00
NovaRain bd15cf2b9e Fixed the order of autoloaded dat files on FAT file system 2022-09-27 16:14:38 +08:00
NovaRain ea2a4bfdfa Edited [ExtraPatches] description in ddraw.ini 2022-09-22 10:49:16 +08:00
NovaRain ec5874a3c4 Fixed HOOK_REMOVEINVENOBJ to match RMOBJ_* defines
Edits to define_extra.h for RMOBJ_* defines
2022-08-14 11:04:17 +08:00
NovaRain 8b3a2bcead Expanded set_pipboy_available function for mode 2 2022-08-11 21:24:47 +08:00
NovaRain 13cf81e151 Code edits to SpeedInventoryPCRotation
Updated version number.
2022-08-09 21:32:59 +08:00
NovaRain efdd6afa34 Fixed the lighting of critters in gl_partycontrol 2022-08-09 08:43:39 +08:00
NovaRain c878d17a2b Added support for editor.msg to message_str_game
Edits to header files.
2022-08-09 08:12:54 +08:00
NovaRain 050af07b3b Corrected the language path for loading art files 2022-08-08 22:08:24 +08:00
NovaRain 1e5fd7fd13 Combined AllowDShowSound=2 with mode 1
Removed MoreTiles from ddraw.ini (always enabled)
Minor edits to documents.
2022-08-08 09:08:05 +08:00
NovaRain c1475ba453 Dropped support for old pre-SSE processors
Changed buf_to_buf function to SSE implementation.

* affected old processors:
Intel - Pentium II, older Celeron (Covington/Mendocino)
AMD - older K7 (Athlon Classic/Thunderbird)
2022-07-30 00:41:07 +08:00
NovaRain 85862d1599 Corrected comments in Functions.cpp 2022-07-27 22:11:42 +08:00
NovaRain be2af4a3a2 Changed the default number of sound buffers
Updated version number.
2022-07-26 08:23:47 +08:00
NovaRain d0fa304035 Minor edits to sslc document 2022-07-22 22:22:48 +08:00
NovaRain c869080d91 Correction to previous commit 2022-07-07 08:28:03 +08:00
NovaRain f5f1f5ec70 Fixed NPC stuck in a loop of reloading the solar scorcher
(happens when out of ammo and it's dark.)
2022-07-06 20:05:17 +08:00
NovaRain 0b3be17839 Edits to document about set_self function
Updated version number.
2022-07-02 20:03:21 +08:00
NovaRain 8c71953eed Fixed float_msg script function
* didn't set purple/black text color correctly (was always grey)
2022-06-30 21:51:34 +08:00
NovaRain dee28843ae Changed the mode 1 of NPC combat control mod
* now requires sfall debugging mode to control all critters.
2022-06-24 09:36:45 +08:00
NovaRain cd91355896 Added a warning pop-up for the open file limit 2022-06-17 22:47:27 +08:00
NovaRain 85e5da660b Added "get_terrain_name" script function
Updated documents for the function.
Minor edits to other code.
2022-06-14 21:04:51 +08:00
NovaRain 7015db2414 Changed HiResMode to not always be read from ddraw.ini
Minor edits to Perks.ini (120 CPL)
2022-06-10 09:04:17 +08:00
NovaRain a415fc2e7f Added ladder climbing action to UseWalkDistance
Added notes to MainMenuFontColour description in ddraw.ini.
Updated version number.
2022-06-07 10:24:52 +08:00
NovaRain 0516aabcc1 Added GainReputation to NPC combat control mod 2022-06-06 12:54:02 +08:00
NovaRain 1d8004623a Minor code edits
* read FastShotFix setting only once.
2022-06-02 14:22:05 +08:00
NovaRain 5d1c63ab08 Replaced item_w_curr_ammo_ engine function
* a simplified one, without calling proto_ptr_ unnecessarily.

Related code edits to Combat.cpp & Inventory.cpp.
2022-06-01 12:51:42 +08:00
NovaRain a4230c3bad Added a function to EngineUtils.cpp
Minor edits to ddraw.ini.
2022-05-28 21:40:34 +08:00
NovaRain 9667b522a8 Tweaked how the graphics mode setting is read
Added a couple of notes to ddraw.ini.
Minor code edits.
2022-05-27 13:18:09 +08:00
NovaRain 73ec85b01d Code edits to gl_npcarmor script 2022-05-26 22:55:08 +08:00
NovaRain e8652ca17b Some edits to documents 2022-05-25 21:52:24 +08:00
NovaRain 8bad934279 Removed ComputeSprayMod from ddraw.ini
Updated version number.
2022-05-25 21:17:06 +08:00
NovaRain fddb71e88a Added support for SPLASH_SCRN_TIME option to sfall HRP 2022-05-24 22:49:40 +08:00