diff --git a/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.int b/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.int index 95606b04..e947b4bb 100644 Binary files a/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.int and b/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.int differ diff --git a/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.ssl b/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.ssl index 46a2a178..c4aea594 100644 --- a/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.ssl +++ b/artifacts/example_mods/ItemHighlight_Lite/gl_highlighting_lite.ssl @@ -114,7 +114,7 @@ procedure InventoryMoveHandler begin end procedure start begin - if game_loaded and (sfall_ver_major < 4) then begin + if game_loaded and (sfall_ver_major < 4 and sfall_ver_build >= 12) then begin call InitConfigs; highlightKey := GetConfig(configSection, "Key", 0); diff --git a/artifacts/example_mods/ItemHighlight_Lite/readme.txt b/artifacts/example_mods/ItemHighlight_Lite/readme.txt index 02bd8f58..d4d21b84 100644 --- a/artifacts/example_mods/ItemHighlight_Lite/readme.txt +++ b/artifacts/example_mods/ItemHighlight_Lite/readme.txt @@ -15,7 +15,7 @@ Requires sfall 3.8.12 or higher. To use, copy gl_highlighting_lite.int to your scripts folder, and copy sfall-mods.ini to the same directory as sfall. Also, you should disable the built-in function in ddraw.ini (ToggleItemHighlightsKey=0). -Note that due to the lack of newer game hooks in sfall 3.8.x, there are some minor visual glitches with the lite version: +Note that due to the lack of newer game hooks in sfall 3.8.x, there are some minor visual glitches in the lite version: - items will be kept highlighted when entering combat while holding the highlight key. - when you pick up items while holding the highlight key, they will be kept highlighted if you drop them on the ground (fixed for 3.8.18+). Both glitches can bo solved by pressing and releasing the highlight key again. diff --git a/artifacts/example_mods/NPCArmor/readme.txt b/artifacts/example_mods/NPCArmor/readme.txt deleted file mode 100644 index fdd0048d..00000000 --- a/artifacts/example_mods/NPCArmor/readme.txt +++ /dev/null @@ -1,14 +0,0 @@ -NPC Armor Appearance mod ------------------------- - -This is the same mod as the one included in sfall 4.x modders pack. Used to replace the scripted part of B-Team mod. -Appropriate graphics are required for this mod to work, or you can set party members to use player's armor appearance instead. -Can be adopted to any mod by adjusting armor PIDs, allowed weapon anim codes, NPC PIDs and NPC FIDs in INI file. - - -Requires sfall 3.8.29 or higher - -To use, copy gl_npcarmor.int to your scripts folder, and copy npcarmor.ini to the same directory as sfall. - -The default npcarmor.ini is set up for Restoration Project 2.3.3. -Check the included "npcarmor - vanilla.ini" for an example that does not require any new graphics. diff --git a/artifacts/example_mods/NPCArmor/gl_npcarmor.int b/artifacts/example_mods/NPCArmor_Lite/gl_npcarmor_lite.int similarity index 83% rename from artifacts/example_mods/NPCArmor/gl_npcarmor.int rename to artifacts/example_mods/NPCArmor_Lite/gl_npcarmor_lite.int index d05c5e1d..714246dc 100644 Binary files a/artifacts/example_mods/NPCArmor/gl_npcarmor.int and b/artifacts/example_mods/NPCArmor_Lite/gl_npcarmor_lite.int differ diff --git a/artifacts/example_mods/NPCArmor/gl_npcarmor.ssl b/artifacts/example_mods/NPCArmor_Lite/gl_npcarmor_lite.ssl similarity index 96% rename from artifacts/example_mods/NPCArmor/gl_npcarmor.ssl rename to artifacts/example_mods/NPCArmor_Lite/gl_npcarmor_lite.ssl index 95e9c385..355d61d4 100644 --- a/artifacts/example_mods/NPCArmor/gl_npcarmor.ssl +++ b/artifacts/example_mods/NPCArmor_Lite/gl_npcarmor_lite.ssl @@ -1,14 +1,16 @@ /* - NPC Armor Appearance mod + NPC Armor Appearance mod (Lite version) - Used to replace the scripted part of B-Team mod. + A cut-down version of the mod included in sfall 4.x modders pack. Used to replace the scripted part of B-Team mod. Appropriate graphics are required for this mod to work. Can be adopted to any mod by adjusting armor PIDs, allowed weapon anim codes, NPC PIDs and NPC FIDs in INI file. NOTE: this script requires compiler from sfall modderspack with -s option (short circuit evaluation) + Requires sfall 3.8.29 or higher + version 1.1 */ @@ -163,7 +165,7 @@ end procedure start begin variable sect, sects, armorTypes, armorType, npc, pid, pids, i; - if game_loaded and (sfall_ver_major >= 4 or sfall_ver_build >= 29) then begin + if game_loaded and (sfall_ver_major < 4 and sfall_ver_build >= 29) then begin armorTypes := get_ini_section(modIni, "ArmorTypes"); armorPidMap := create_array_map; foreach (armorType: pids in armorTypes) begin diff --git a/artifacts/example_mods/NPCArmor/npcarmor - vanilla.ini b/artifacts/example_mods/NPCArmor_Lite/npcarmor - vanilla.ini similarity index 100% rename from artifacts/example_mods/NPCArmor/npcarmor - vanilla.ini rename to artifacts/example_mods/NPCArmor_Lite/npcarmor - vanilla.ini diff --git a/artifacts/example_mods/NPCArmor/npcarmor.ini b/artifacts/example_mods/NPCArmor_Lite/npcarmor.ini similarity index 100% rename from artifacts/example_mods/NPCArmor/npcarmor.ini rename to artifacts/example_mods/NPCArmor_Lite/npcarmor.ini diff --git a/artifacts/example_mods/NPCArmor_Lite/readme.txt b/artifacts/example_mods/NPCArmor_Lite/readme.txt new file mode 100644 index 00000000..990ec4ac --- /dev/null +++ b/artifacts/example_mods/NPCArmor_Lite/readme.txt @@ -0,0 +1,17 @@ +NPC Armor Appearance mod (Lite version) for sfall 3.8.x +------------------------------------------------------- + +A cut-down version of the mod included in sfall 4.x modders pack. Used to replace the scripted part of B-Team mod. +Appropriate graphics are required for this mod to work, or you can set party members to use player's armor appearance instead. +Can be adopted to any mod by adjusting armor PIDs, allowed weapon anim codes, NPC PIDs and NPC FIDs in INI file. + + +Requires sfall 3.8.29 or higher. + +To use, copy gl_npcarmor_lite.int to your scripts folder, and copy npcarmor.ini to the same directory as sfall. + +The default npcarmor.ini is set up for Restoration Project 2.3.3. +Check the included "npcarmor - vanilla.ini" for an example that does not require any new graphics. + +Note that due to the lack of newer game hooks in sfall 3.8.x, there is a minor glitch in the lite version: +- in combat, NPCs can pick up and try to equip weapons with anim codes that are not allowed in INI file but supported by their appearance.