Fallout 2 mod FO2 Engine Tweaks (Sfall)

Discussion in 'Fallout General Modding' started by Dude101, Jul 30, 2007.

  1. Lexx

    Lexx Background Radiant
    Moderator Modder

    Apr 24, 2005
    Not sure if I understand this right, but wouldn't that have been possible already before with just doing a PID check in script and then doing some script magic on said critter?

    Does that make all automaps visible or only up to 160?
     
  2. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    In earlier versions, calling set_critter_base/extra_stat on a critter would effect all other critters sharing the same PID on the map (e.g. guards of the Slaver's Guild in the Den). Now they only effect the specified critter.

    Still only up to 160, but now it's possible to use all 160 maps. There is a hardcoded list in the engine that only certain map numbers are visible in Pipboy's Automaps: 003-051, 054-058, 061-067, 078, 079, 092, 093, 109, 126, 128-140, 147, 148. Total: 82 of 160 maps (000-159)

    Now adding a line "automap=yes/no" in the section of a map number marks it visible or not.
    A tricky thing is, if one of maps of a location is visible in Automaps, all other maps will be visible as well. For example, if you set up a town "Testville" with map numbers 051-053, you will see automaps of all three maps when selecting Testville in the list, even if you didn't set automap=yes for map 052 & 053.

    Also the maximum locations for the Automaps list is capped at 20, since for now the page is not scrollable.
     
    Last edited: Apr 24, 2019
  3. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    281
    Oct 29, 2015
    Moreover, if you entrance to 53 map, then you will not see 53 and 52 maps in pip-boy, so it is better to always set 'yes'
     
    • [Rad] [Rad] x 1
  4. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    281
    Oct 29, 2015
    In fact, this fix for npc stats, and not a change in the functions.
     
  5. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    is the ddraw.ini that comes with newest sfall zips complete?as in it lists all settable variables for that current sfall?
     
  6. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    The ddraw.ini should have all options unless we missed something.
     
  7. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    thxn nova,exactlywhat i was after
     
  8. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    trying to chase a bug,regarding party control,i have 4.1.7 installed the glpartycontrol.int in /scripts and this in sfall-mods.ini

    Code:
    [CombatControl]
    ;Allows you to directly control other critters in combat
    ;Set to 0 to disable
    ;Set to 1 to control all critters in combat
    ;Set to 2 to control all party members
    ;If you want to control only specific critters, uncomment the PIDList line and set a comma delimited list of PIDs
    Mode=1
    ;PIDList=62,89,97,107,160,161
    
    ;Choose a notification box to display the name of the controlled critter above the interface bar
    ;Must be between 5 and (4 + the value of BoxBarCount in ddraw.ini)
    ;For sfall 4.1.6+ the number for the notification box is set automatically, so just use any value
    ;Set to 0 to disable
    DisplayName=1
    
    ;Set the color of display name, available colors:
    ;0 - green
    ;1 - red
    ;2 - white
    ;3 - yellow
    ;4 - dark yellow
    ;5 - blue
    ;6 - purple
    ;7 - dull pink
    DisplayNameColor=3
    nothing happening in game,reg combat routine,can only contorll dude
     
  9. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    I can control all critters in combat as it should be with the same settings. Are you sure your text editor didn't add BOM to sfall-mods.ini? For example Windows notepad will do that automatically and breaks the mods.
     
    Last edited: May 7, 2019
  10. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    got it working thnx

    edit : what is BOM?

    edit : does sfall have a rdraw charracter screen function>?or is this it
    Code:
    #define intface_redraw                                  sfall_func0("intface_redraw")
     
    Last edited: May 7, 2019
  11. gustarballs1983

    gustarballs1983 Where'd That 6th Toe Come From?

    453
    Oct 28, 2009
    @NovaRain
    I second Nirran's question.. what BOM stands for?
    I guess it ain't "Band of Might" as in "ahh.. Fresh Meat!" iteration 3

    I always edited all of the game's .ini files with windows notepad and did not notice anything broken that wasn't a bug anyway...
     
  12. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    Byte order mark.
    I've seen some cases that Notepad added BOM and the script couldn't read ini settings correctly.
     
    Last edited: May 16, 2019
  13. gustarballs1983

    gustarballs1983 Where'd That 6th Toe Come From?

    453
    Oct 28, 2009
    NVM.. what i said earlier..

    It might be the case that i don't use code page 1252. I'm on 1250. My localized windows version had notepad customized to accept my localized diacritic signs and underwent several bugfixes/changes by local programers from local M$ departament. Notepad stayed like this since like win 95 v3.11 . At least I'm sure notepad accepts my county's diacritic signs although not most of the others. For example russian letters are rendered as *gibberish* under our localized notepad, and I'm forced to use notepad++ to read Rusian text from a .txt file. Some German diacritic sings are also readable in our version of notepad.
     
    Last edited: May 16, 2019
  14. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    sfall 4.1.8 and 3.8.18 are released on SourceForge, along with their respective modders packs.
     
    • [Rad] [Rad] x 1
  15. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    Code:
    >Changed the engine functions for saving party member protos and removing the drug effects for NPC to be called after executing the map_exit_p_proc procedure
    
    >Added a fix for party member's stats being reset to the base level when their base protos with the read-only attribute set are placed in the proto\critters\ directory
    assuming u can now put base party member protos n data/pro folders?u guys doing a great job kudos
     
  16. PokemonTotalWar

    PokemonTotalWar First time out of the vault

    6
    Jun 1, 2019
    What's the difference between version 3 releases and version 4 releases?
     
  17. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    3.8.x maintenance release is based on old code structure and compiler (VS2010). It doesn't have the same amount of features and scripting capability as 4.x, but is still receiving most of engine bug fixes if possible.
    The main goal of 3.8.x is for supporting older Windows versions, like pre-SP3 WinXP and Windows 2000, it's pretty much my personal persistence.
     
  18. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    sfall 4.1.8.1 and 3.8.18.1 are released on SourceForge. They are hotfix releases for the previous version because of a game crashing bug. Sorry for the inconvenience.
    About the hardware compatibility, sfall 4.0-4.1.8 only support SSE2 processors (e.g. Intel Pentium 4 & AMD Athlon 64 or newer). Now it can run on some older pre-SSE2 processors like Pentium III or Athlon XP. Yes, I did dig up an old PIII machine (manufactured in 2000) to test the build:
    • CPU: Pentium III Xeon 1.0 GHz (codename Cascades)
    • RAM: 256 MB
    • VGA: S3 Savage4 8 MB (no Direct3D Acceleration in dxdiag)
    • HDD: 36.4 GB 10k U160 SCSI

    NOTE: Although FO2 with sfall 4.1.8.1 did run on my PIII machine, I only did some basic tests like checking item highlighting & NPC control global scripts and traveling on the world map in non-DX9 mode because I don't have a D3D compatible graphic card for it. There's no guarantee that everything in sfall 4.1.8.1 will work correctly on pre-SSE2 processors, or stuff that work currently will keep working in later releases. It would be great if someone still using such old PC regularly can do some more tests.
     
    Last edited: Jun 3, 2019
    • [Rad] [Rad] x 1
  19. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    just wnata say,the sfall team is awesome,great job u guiys are doing
     
  20. PokemonTotalWar

    PokemonTotalWar First time out of the vault

    6
    Jun 1, 2019
    Trying to update sfall from the Restoration Project, I've copied all the values that are different from default from the Restoration Project ddraw.ini, but I'm getting a crash after the Elder's speech when starting a new game, instead of the white fade into the game. I get the loading cursor for a second, and then black. Is there anything that's known that could cause that? I can get a log if need be.