mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Increased the width of the total weight display in the inventory
(moved from the CritterInvSizeLimitMode option) Updated version number and year. Minor format edits to some code and README.md.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# sfall
|
||||
|
||||
A set of engine modifications for the classic game Fallout 2 in form of a DLL, which modifies executable in memory without changing anything in EXE file itself.
|
||||
A set of engine modifications for the classic game Fallout 2 in form of a DLL, which modifies executable in memory without changing anything in EXE file itself.
|
||||
|
||||
Engine modifications include:
|
||||
**Engine modifications include:**
|
||||
- Better support for modern operating systems
|
||||
- Externalizing many settings like starting map and game time, skills, perks, critical hit tables, books, etc.
|
||||
- Bug fixes
|
||||
@@ -10,7 +10,7 @@ Engine modifications include:
|
||||
- Extended scripting capabilities for modders (many new opcodes to control sfall features as well as previously unavailable vanilla engine functions)
|
||||
|
||||
|
||||
Original author: timeslip
|
||||
Original author: timeslip
|
||||
|
||||
Original description: A set of engine modifications for the classic game Fallout 2 by Interplay. Includes fixes for bugs in the original engine, allows fallout to run correctly on modern operating systems, and adds additional features for modders.
|
||||
Original description: A set of engine modifications for the classic game Fallout 2 by Interplay. Includes fixes for bugs in the original engine, allows fallout to run correctly on modern operating systems, and adds additional features for modders.
|
||||
|
||||
|
||||
@@ -317,7 +317,7 @@ long __stdcall message_exit(MessageList *msgList) {
|
||||
|
||||
long __fastcall tile_num(long x, long y) {
|
||||
__asm push ebx; // don't delete (bug in tile_num_)
|
||||
WRAP_WATCOM_FCALL2(tile_num_, x, x);
|
||||
WRAP_WATCOM_FCALL2(tile_num_, x, y)
|
||||
__asm pop ebx;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ static const char* ExtraLines[] = {
|
||||
"#SFALL " VERSION_STRING,
|
||||
"",
|
||||
"sfall is free software, licensed under the GPL",
|
||||
"Copyright 2008-2019 The sfall team",
|
||||
"Copyright 2008-2020 The sfall team",
|
||||
"",
|
||||
"@Author",
|
||||
"Timeslip",
|
||||
|
||||
@@ -86,6 +86,7 @@ static void __declspec(naked) load_page_offsets(void) {
|
||||
//------------------------------------------
|
||||
static void CreateButtons() {
|
||||
DWORD winRef = fo::var::lsgwin;
|
||||
|
||||
// left button -10 | X | Y | W | H |HOn |HOff |BDown |BUp |PicUp |PicDown |? |ButType
|
||||
fo::func::win_register_button(winRef, 100, 60, 24, 20, -1, 0x500, 0x54B, 0x14B, 0, 0, 0, 32);
|
||||
// left button -100
|
||||
@@ -379,7 +380,7 @@ void EnableSuperSaving() {
|
||||
// load saved page and list positions from file
|
||||
MakeCalls(load_page_offsets, {0x47B82B});
|
||||
|
||||
// Add Load/Save page offset to Load/Save folder number/////////////////
|
||||
// Add Load/Save page offset to Load/Save folder number
|
||||
MakeCalls(AddPageOffset01, {
|
||||
0x47B929, 0x47D8DB, 0x47D9B0, 0x47DA34, 0x47DABF, 0x47DB58, 0x47DBE9,
|
||||
0x47DC9C, 0x47EC77, 0x47F5AB, 0x47F694, 0x47F6EB, 0x47F7FB, 0x47F892,
|
||||
@@ -422,17 +423,20 @@ static long autoQuickSave = 0;
|
||||
static long quickSavePage = 0;
|
||||
|
||||
static FILETIME ftPrevSlot;
|
||||
|
||||
static DWORD __stdcall QuickSaveGame(fo::DbFile* file, char* filename) {
|
||||
long currSlot = fo::var::slot_cursor;
|
||||
|
||||
if (file) { // This slot is not empty
|
||||
fo::func::db_fclose(file);
|
||||
|
||||
FILETIME ftCurrSlot;
|
||||
GetSaveFileTime(filename, &ftCurrSlot);
|
||||
if (currSlot == 0 || ftCurrSlot.dwHighDateTime > ftPrevSlot.dwHighDateTime
|
||||
|| (ftCurrSlot.dwHighDateTime == ftPrevSlot.dwHighDateTime && ftCurrSlot.dwLowDateTime > ftPrevSlot.dwLowDateTime)) {
|
||||
ftPrevSlot.dwHighDateTime = ftCurrSlot.dwHighDateTime;
|
||||
ftPrevSlot.dwLowDateTime = ftCurrSlot.dwLowDateTime;
|
||||
|
||||
if (++currSlot > autoQuickSave) {
|
||||
currSlot = 0;
|
||||
} else {
|
||||
|
||||
@@ -737,8 +737,6 @@ void Inventory::init() {
|
||||
SafeWrite8(0x47260F, 0x20);
|
||||
SafeWrite32(0x4725F9, 0x9C + 0x0C);
|
||||
SafeWrite8(0x472606, 0x10 + 0x0C);
|
||||
SafeWrite32(0x472632, 150); // width
|
||||
SafeWrite8(0x472638, 0); // x offset position
|
||||
|
||||
// Display item size when examining
|
||||
HookCall(0x472FFE, inven_obj_examine_func_hook);
|
||||
@@ -755,6 +753,9 @@ void Inventory::init() {
|
||||
SafeWrite8(0x449150, 0x10 + 0x08);
|
||||
}
|
||||
}
|
||||
// Adjust the max text width of the total weight display in the inventory
|
||||
SafeWrite32(0x472632, 150);
|
||||
SafeWrite8(0x472638, 0); // x offset position
|
||||
|
||||
if (GetConfigInt("Misc", "SuperStimExploitFix", 0)) {
|
||||
superStimMsg = Translate("sfall", "SuperStimExploitMsg", "You cannot use a super stim on someone who is not injured!");
|
||||
|
||||
+3
-3
@@ -20,11 +20,11 @@
|
||||
|
||||
#define TARGETVERSION "Fallout 2 v1.02 US"
|
||||
|
||||
#define LEGAL_COPYRIGHT "Copyright (C) 2006-2019, sfall team"
|
||||
#define LEGAL_COPYRIGHT "Copyright (C) 2006-2020, sfall team"
|
||||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 2
|
||||
#define VERSION_BUILD 2
|
||||
#define VERSION_BUILD 3
|
||||
#define VERSION_REV 0
|
||||
|
||||
#define VERSION_STRING "4.2.2"
|
||||
#define VERSION_STRING "4.2.3"
|
||||
|
||||
Reference in New Issue
Block a user