Fallout II Visually Enhanced Patch (FKA Hi-Res Patch)

Discussion in 'Fallout General Modding' started by Mash, Aug 6, 2022 at 8:42 AM.

  1. Mash

    Mash Vault Engineer Modder

    May 3, 2008
    Many years since my last post, Sorry about that, just kind of dropped off the face of the earth for a while there. Life y'know.
    I came back to it after a while intending to fix up the code in order to publish it. But instead it kind of evolved a bit.

    It's not really ready yet, there are likely plenty of bugs. I probably would have sat on it for several more months but I check in here once in a while, and with sfall now having it's own HRP and the fallout clone by alexbatalov coming along, I thought I should get this out there before it becomes completely redundant.

    Anyway, Feature list:

    -Rendered with DirectX 11( the HRP used DirectX 9)
    -32 bit graphics, frm's(fallout graphic) with different palettes can sit side by side. Support for a 32bit frm has also been added, although there is as yet no program to create these. An 8, 24 or 32 bit BMP can be used in place of some of the interface graphics.
    -The interface can be scaled to better fit your screen (beyond 2X which was the only option in HRP).
    -Game and World maps can be scaled independently, zoomed in and out by way of the mouse wheel.
    -A new way to represent lights in-game for a more natural appearance, original lighting is also improved without the palette limitation.
    -Improved fading effects between screens.
    -Transparency effects when hiding rooves and item and critter visibility when using the fog of war feature(not fully implemented yet).
    -Other stuff I can't remember.

    And finally the link to the repository on GitHub where you can grab the first pre-release and source code.
    • [Rad] [Rad] x 7
  2. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    wtf people thought you died :D

    You should merge all your work into Sfall directly, tbh. Work on porting the HRP directly into it has already started a long time ago. It would make a hell of a lot more sense to keep improving the code now, imo.
    • [Rad] [Rad] x 2
  3. NovaRain

    NovaRain Casual Modder Modder Moderator

    Mar 10, 2007
    Wow! Glad to see you are still doing OK.
    Just curious, do you still have the source code of old HRP (DX9 one before you overhaul it to DX11 VEP)? The current code of built-in HRP in sfall was done by disassembling f2_res.dll, would be nice if there's a real source code for reference.
    Last edited: Aug 9, 2022 at 8:48 AM
  4. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    Is there something that needs to be disabled from latest Sfall? My game crashes with a memory error on startup.

    /Edit: Dx9 mode in Sfall must be disabled.

    /Edit2: Some of the object / lamp shadows are weird and are giving me extreme FOnline ptsd.

    Also, some of my ettu sub-mods don't work anymore. Are there some issues with the file override system?

    Not sure what to think of the zoom levels. For me now it's all either too small or too big. I can't get my usual screen resolution anymore.

    /Edit3: Also night time light seems a bit bright now. For example, this is 0100 in the night:
    Last edited: Aug 6, 2022 at 9:41 AM
  5. Mash

    Mash Vault Engineer Modder

    May 3, 2008
    I'll have to make a note of that somewhere.

    I have the scenery casting faux shadows, It's not working very well yet, I meant to disable it, but must have forgot.

    I'll check it out, I've replaced a lot of the world map functions. Pretty much any function that displays anything. I'm sure I've broken a lot of sfall stuff.

    What's your screen res?

    I can probably dig it up if it's really wanted.
  6. NovaRain

    NovaRain Casual Modder Modder Moderator

    Mar 10, 2007
    Yes please, always good to have some refs even if I probably cannot do much with it.
    • [Rad] [Rad] x 1
  7. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    1920x1080px but I run Fo2 in 1280x720px as that always felt like the best "zoom" to me.

    I've also noticed that the weapon reload hotkey from Sfall doesn't work anymore.

    Maybe objects that are directly *on* the light object should never cast shadow. Seems that would fix at least half of those fake-shadow issues.

    Since we are at light already -- how high is the chance to be able to set custom light colors in the future? Red / green / blue, etc. lamps?
    Last edited: Aug 6, 2022 at 10:33 AM
  8. gustarballs1983

    gustarballs1983 Vault Senior Citizen

    Oct 28, 2009
    welcome among the living Mash..

    Me and Sduibek starting back aound 2015, were thinking, that the reason behind Your absence was that You've kicked the bucket, I'm sooo.. glad we were wrong on this one!
    • [Rad] [Rad] x 1
  9. Felipefpl

    Felipefpl Look, Ma! Two Heads!

    Jun 17, 2010
    Mash - welcome back, you have been missed, A LOT.

    Dx 9 really gone? I mean, it can still be useful for poor ppl who cant buy new computers like me? I understand if Dx 9 creates many new bugs/problems for you.
  10. QuantumApprentice

    QuantumApprentice Look, Ma! Two Heads!

    Feb 9, 2018
    Hey! this sounds amazing! Unfortunately I can't get it to work yet, keeps giving me an error:
    "Error initializing video mode 1920x1080"
    HiRes2022 error.png

    I got v4.18 with zoom to work though, so I'm not sure why the VE version isn't working.
    On Windows 7 with steam install of Fallout 2.
    Tested with vanilla steam version, and sFall v4.3.6.
  11. Mash

    Mash Vault Engineer Modder

    May 3, 2008
    I really need to document some stuff at some point, here's just a couple of things.

    Coloured lighting is setup but there is no program to implement them on maps just yet and the way I'm doing it might change if big issues pop up. Light colour is currently being stored with the map objects light radius, it ‘s a 32bits value and the light radius has a max value of 8 hexes(4bits), which leave plenty of room to store colour RGB. The big issue here is that unmodified fallout reads the whole value as the radius.
    At the moment you can test colour lighting on the PC by changing "PC_LIGHT_COLOUR" in the ini.

    The Interface bar has a new option. You can used a horizontally tiled graphic to fill the empty space on either side, this graphic is called "HR_IFACELFT_EXT#" for left and "HR_IFACERHT_EXT#" for right with # being the option number. It can be used by itself or with the usual side graphics "HR_IFACELFT#" and "HR_IFACERHT#". Or you can just make the sides a colour by setting "IFACE_BG_COLOUR" in the ini.

    I'll upload the old HR patches to Github at some point, I have to do a bit of work on them first. I was using CodeBlocks as my IDE back then so I need to set them up in VS and get them to compile at least. They will just be for reference purposes, I don't plan to do any further work on them.

    The binary may not work on Windows7, maybe with different compiler options. I’ll have to check it out.

    I don’t have a lot of free time this week to get stuck into things but I appreciate the comments and bug reports.
    • [Rad] [Rad] x 1
  12. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    Can we change the light color via script command? Might be better compatibility-wise anyways, because we could check if the patch is installed in the first place before running the script.
  13. Mash

    Mash Vault Engineer Modder

    May 3, 2008
    No, that's probably not going to happen until/if it becomes a part of sfall.
    I don't think this patch is going stand as a separate entity. It's not really meant to be a replacement for the old hi-res patch either, more of a tech demo I suppose. It's more my own personal playground, just a bunch of stuff I thought would be cool. I wasn't even sure if the bulk of the community here would even want it. My aim here is to clear the worst of the bugs and finish a few outstanding thing like Fog Of War.
    I don't really want to be the one adding this to sfall either, I'd be happy is the sfall crew just raided it for parts and ideas.
    To be honest this is a bit of unfinished business for me. I should have made the hi-res patch open source way back when and it continued to bother me that I didn't. My real intention here is just to polish things up a bit then quietly disappear again.
  14. QuantumApprentice

    QuantumApprentice Look, Ma! Two Heads!

    Feb 9, 2018
    Well, whatever you do, thank you for your contributions!
    And a special thank you for making the code open source!
    It really helps out all us noobs to be able to see how the older modders solved these problems, especially the visual ones you worked on :)

    Oh one thing, you have a link to a mapper hi-res patch, but the link doesn't seem to work anymore. Would you (or anyone who happens to see this) have a working link to it? That sounds like an amazing thing to have for the mapper.
  15. NovaRain

    NovaRain Casual Modder Modder Moderator

    Mar 10, 2007
  16. QuantumApprentice

    QuantumApprentice Look, Ma! Two Heads!

    Feb 9, 2018
  17. Proletären

    Proletären Vault Fossil
    Staff Member Admin

    Mar 15, 2012
    Now that would be handy!