diff --git a/artifacts/config_files/Translations.ini b/artifacts/config_files/Translations.ini index 86e6df12..426f8e19 100644 --- a/artifacts/config_files/Translations.ini +++ b/artifacts/config_files/Translations.ini @@ -32,4 +32,4 @@ DoneBtn=Done ;PowerKick=Power Kick: ;HipKick=Hip Kick: ;HookKick=Hook Kick: -;PiercingKick=Piercing kick: +;PiercingKick=Piercing Kick: diff --git a/artifacts/example_mods/AmmoMod/gl_ammomod.int b/artifacts/example_mods/AmmoMod/gl_ammomod.int index f16f6d99..4545e41e 100644 Binary files a/artifacts/example_mods/AmmoMod/gl_ammomod.int and b/artifacts/example_mods/AmmoMod/gl_ammomod.int differ diff --git a/artifacts/example_mods/AmmoMod/gl_ammomod.ssl b/artifacts/example_mods/AmmoMod/gl_ammomod.ssl index 67df2d9e..c6d6db7e 100644 --- a/artifacts/example_mods/AmmoMod/gl_ammomod.ssl +++ b/artifacts/example_mods/AmmoMod/gl_ammomod.ssl @@ -1,14 +1,14 @@ /* -Ammo INI Loader mod for Fallout 2 by NovaRain ---------------------------------------------- +Ammo INI Loader mod v1.1 for Fallout 2 by NovaRain +-------------------------------------------------- - modifies ammo protos with data from an INI file: * AmmoGlovz.ini if DamageFormula=1 or 2 in ddraw.ini * AmmoYAAM.ini if DamageFormula=5 in ddraw.ini * AmmoMod.ini if not using any bulit-in damage formula -Requires sfall 3.5 or higher +Requires sfall 4.0/3.8.29 or higher */ @@ -23,7 +23,7 @@ variable ammoData; variable enabled; procedure start begin - variable i := 1, ammo, ammoPid, dmgMod; + variable i := 1, ammo, ammoSection, dmgMod; if game_loaded then begin enabled := get_ini_setting("ddraw.ini|Misc|DamageFormula"); if (enabled == 1 or enabled == 2) then @@ -37,19 +37,19 @@ procedure start begin if (enabled <= 0) then return; ammoData := create_array_map; - ammoPid := enabled; // pid from the first section - while (ammoPid > 0) do begin + ammoSection := get_ini_section(ammoIni, "" + i); + while (ammoSection.pid > 0) do begin ammo := create_array_map; // create permanent arrays - ammo.ac_adjust := get_ini_setting(ammoIni + "|" + i + "|ac_adjust"); - ammo.dr_adjust := get_ini_setting(ammoIni + "|" + i + "|dr_adjust"); + ammo.ac_adjust := atoi(ammoSection.ac_adjust); + ammo.dr_adjust := atoi(ammoSection.dr_adjust); // dam_mult and dam_div must be positive integers - dmgMod := get_ini_setting(ammoIni + "|" + i + "|dam_mult"); + dmgMod := atoi(ammoSection.dam_mult); ammo.dam_mult := dmgMod if (dmgMod > 0) else 1; - dmgMod := get_ini_setting(ammoIni + "|" + i + "|dam_div"); + dmgMod := atoi(ammoSection.dam_div); ammo.dam_div := dmgMod if (dmgMod > 0) else 1; - ammoData[ammoPid] := ammo; + ammoData[atoi(ammoSection.pid)] := ammo; i++; - ammoPid := get_ini_setting(ammoIni + "|" + i + "|pid"); + ammoSection := get_ini_section(ammoIni, "" + i); end call map_enter_p_proc; debug_msg("Ammo INI Loader mod: " + ammoIni + " - set " + (i - 1) + " ammo protos."); diff --git a/artifacts/example_mods/AmmoMod/readme.txt b/artifacts/example_mods/AmmoMod/readme.txt index cdae1926..60f3a6e8 100644 --- a/artifacts/example_mods/AmmoMod/readme.txt +++ b/artifacts/example_mods/AmmoMod/readme.txt @@ -1,5 +1,5 @@ -Ammo INI Loader mod for Fallout 2 by NovaRain ---------------------------------------------- +Ammo INI Loader mod v1.1 for Fallout 2 by NovaRain +-------------------------------------------------- - modifies ammo protos with data from an INI file: * AmmoGlovz.ini if DamageFormula=1 or 2 in ddraw.ini @@ -7,6 +7,6 @@ Ammo INI Loader mod for Fallout 2 by NovaRain * AmmoMod.ini if not using any bulit-in damage formula -Requires sfall 3.5 or higher. +Requires sfall 4.0/3.8.29 or higher. To use, copy gl_ammomod.int to your scripts folder, and copy the INI files to the same directory as sfall. diff --git a/artifacts/scripting/README.txt b/artifacts/scripting/README.txt index c5e1dc89..15a34a85 100644 --- a/artifacts/scripting/README.txt +++ b/artifacts/scripting/README.txt @@ -16,10 +16,10 @@ This folder contains documentation about sfall scripting extensions. lib.strings.h - search in strings, join, repeat, etc. lib.misc.h - misc stuff - sfall function notes.txt - incomplete reference for new opcodes + sfall function notes.html - incomplete reference for new opcodes sfall opcode list.txt - list of all sfall opcodes (w/o descriptions) - hookscripts.txt - detailed manual for using hook scripts to modify engine behavior - arrays.txt - manual for sfall arrays + hookscripts.html - detailed manual for using hook scripts to modify engine behavior + arrays.html - manual for sfall arrays If you are/will be using sfall Script Editor, don't forget to check out new compiler documentation in .\compiler\sslc_readme.txt. There are numerious new syntax features and extensions to SSL (Star-Trek Scripting language). diff --git a/sfall/version.h b/sfall/version.h index 3c8a5b00..f96db51a 100644 --- a/sfall/version.h +++ b/sfall/version.h @@ -25,6 +25,6 @@ #define VERSION_MAJOR 3 #define VERSION_MINOR 8 #define VERSION_BUILD 33 -#define VERSION_REV 1 +#define VERSION_REV 2 -#define VERSION_STRING "3.8.33.1" +#define VERSION_STRING "3.8.33.2"