Fallout 2 mod FO2 Engine Tweaks (Sfall)

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

  1. Dude101

    Dude101 Vault Fossil
    Modder

    Aug 3, 2005
    Update:

    SFall and details of contents changes / updates can now be found here:

    http://sourceforge.net/projects/sfall/

    End Update.


    Found on Beth:

    http://www.bethsoft.com/bgsforums/index.php?showtopic=736370

    http://timeslip.chorrol.com/
    http://timeslip.chorrol.com/current/sfall.7z
     
  2. killap

    killap Bear Dude Moderator Modder

    May 16, 2005
    How ironic, I just came across this too. I tested it and it works just fine with my patch. The scrolling is very cool and makes going through the inventory much easier. I have asked the author if I am allowed to include that aspect of his mod in my patch and upcoming expansion. Hopefully he won't mind.
     
  3. Sorrow

    Sorrow So Old I'm Losing Radiation Signs

    Feb 9, 2006
    Err...
    How did he do that?
     
  4. lisac2k

    lisac2k Vault Senior Citizen
    Modder

    Oct 26, 2004
    Well done!

    This guy knows the DirectDraw library and its functions very well. Basically, the fallout2.exe refers to his version of DDraw and applies the changes to itself. Hard to explain, yet simple and very clever. It's like "hidden" features which were always there, only unused.

    An INI file controls his custom DDraw library, so you can set up options in there easily.
     
  5. killap

    killap Bear Dude Moderator Modder

    May 16, 2005
    Yep, that's exactly it. Also, I got permission to use it in my work, so expect the ability to scroll in the inventory (probably none of the other ones) in my next patch and expansion.
     
  6. Brother None

    Brother None This ghoul has seen it all
    Staff Member Admin Orderite

    Apr 3, 2003
    Hey guys, he released the sourcecode

    should I newspost this? It sounds interesting enough for both gamers and modders.
     
  7. lisac2k

    lisac2k Vault Senior Citizen
    Modder

    Oct 26, 2004
    I dunno. We need a good coder to read it through... Maybe ravachol or someone. Anyone?
     
  8. Octopuss

    Octopuss I am the walrus

    Apr 2, 2003
    I don't quite get it. Who is the dude? some random hippie who dug in the exe somehow? Or um....?
     
  9. Ausir

    Ausir Venerable Relic of the Wastes

    Apr 20, 2003
    Yes, I'd say it's worthy of a newspost.
     
  10. ravachol

    ravachol First time out of the vault

    Jul 16, 2006
    What I can say after looking at the code:

    Since the ddraw.dll and dinput.dll are loaded via an api call, it's possible to make proxy dlls that are located in the current directory (I mean it's easier than if the dlls are loaded when the executable is loaded into memory). When the dll is loaded for the first time (ddraw.dll is loaded before dinput.dll), the "dinput.dll" string is changed to "ddraw.dll" and that makes the trick to have both proxies in the same dll.

    I didn't look into the details, basically, what he does is returning proxy objects to fallout that sometimes do a bit more than what they're expected to do. For exemple, when he detects a movement of the mouse scroll wheel (in the GetDeviceState method of the mouse IDirectInput object), he emulates a pression on the up or down button.

    For the speed, he hooks GetTickCount, timeGetTime and GetLocalTime when the dll is loaded and make the time run slower or faster as needed.

    That's a nice set of hacks, however, I don't think I'd need more than the scrolling... windowed mode is nice for debugging but it already works perfectly fine with d3d windower, I don't need to change.
     
  11. Sorrow

    Sorrow So Old I'm Losing Radiation Signs

    Feb 9, 2006
    Would it be possible to make a similar thing for Fallout - I mean the mouse scrolling thing?
     
  12. Dude101

    Dude101 Vault Fossil
    Modder

    Aug 3, 2005
  13. Vault 69er

    Vault 69er Water Chip? Been There, Done That

    May 3, 2007
    Direct links don't work.
    Also, Timeslip has gone from awesome to.. erm.. more awesome!
     
  14. Brother None

    Brother None This ghoul has seen it all
    Staff Member Admin Orderite

    Apr 3, 2003
    They're both mirrored on NMA. Both files also link to a page he made so you can download the sourcecode/the mods from his site.
     
  15. Sorrow

    Sorrow So Old I'm Losing Radiation Signs

    Feb 9, 2006
    Damn, it doesn't work on my computer :( .
     
  16. lisac2k

    lisac2k Vault Senior Citizen
    Modder

    Oct 26, 2004
    You could start with your name and address, so I can send you a package of the finest beer.

    Good work, man! :salute:

    Say, you think you could tinker with the code a bit? I know you don't have time and blah blah... But we need your skills. That is, before the aliens hijack you.
     
  17. ravachol

    ravachol First time out of the vault

    Jul 16, 2006
    It depends what has to be done, I'm not an expert when it comes to directx programming. It would require some research in this field if I wanted to add/alter some functionnalities. On the other hand, if it's only "light" tinkering, it could be quite easy. It really depends on what needs to be done.

    (I've just thought of something that might be interesting: instead of patching the game or using a loader, some patching code could be added in the DllMain function. It would be a nice way to apply the needed patches for a mod.)
     
  18. >origami<

    >origami< First time out of the vault

    Jan 22, 2007
    This is a great and extremely useful release for Fallout 1/2. Ahhhh to be able to use the mouse-wheel to scroll through the inventory. :-D

    My Fallout 1/2 experience would be complete if the mod that was released to allow greater screen resolutions was 100% working without glitches..mmmmmm! :-)

    But I totally digress.
    Love this release..
     
  19. lisac2k

    lisac2k Vault Senior Citizen
    Modder

    Oct 26, 2004
    Bigger resolution support? (this one is hard, I know)
    World Map Speed Fix?
    Hakunin Dreams Remove?
    13 years limit? (this one is really tough)
    Other standard features (like in the patchers before): starting sprites, setting starting datum and map etc...

    Yeah, that one is a gem. Many of the above mentioned features could be forced this way.
     
  20. Sorrow

    Sorrow So Old I'm Losing Radiation Signs

    Feb 9, 2006
    Any ideas why it won't work on my comp?
    I have Win98...