TUXDB - LINUX GAMING AGGREGATE
by NuSuey
NEWSFEED
▪️ GAMES
▪️ STEAM DECK ▪️ DEALS ▪️ CROWDFUNDING ▪️ COMMUNITY
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 8 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]


Development Update #10

Hello everyone! Welcome to the tenth development update for Haunted: Attack of the Dead Men. It's been a very busy month trying to get the game running properly on the latest version of Godot, however you will probably have seen by now that I managed it in the end with the release of v1.3.0 and v1.3.1 of the demo last week. I've decided that this month I would go with a more technical and behind-the-scenes update since there isn't as much to show off in terms of new features. I will finish off with a teaser for Map 10 and a brief update on what I will be working on next month. Without further ado, let's get into it!

A Mammoth Undertaking


So, if you weren't already aware, Haunted runs on the Godot game engine. Previously, I was using v3.5.1, however v4.0 of the engine has been out for some time and came with a number of significant changes and improvements so my intention since the start of the project has always been to upgrade to v4.x at some point (although I overlooked this in the roadmap back in February), and with the release of Godot v4.1 (a more stable and polished version compared to v4.0) I decided the time was finally right to go through with this upgrade. So, how did that go? Well, the Godot developers kindly provide a converter tool that can do much of the boring stuff for me (for example, renaming methods, variables and classes that have changed). Once the tool had done its thing, it was time to open the game up in Godot 4 for the first time!
Well, that was to be expected. 164 errors and 66 warnings, so there's a lot of things that need fixing. A few days of fixing later...
Still some way off being done, but an improvement. Can we actually run it now?
Hmm, kind of. The menu is working but it looks a bit off - where did the clouds and the fog go? Well, whatever. Does the game part work?
Nope! It looks like there's some more errors to fix before the game will work. A few hours later though...
Oh. Well, Map 1 loaded up OK, but I'm stuck in the middle of it. Let's fix that and try again...
Hmm, OK. There's some sprite issues which will be easy to fix. But wait...
Where did everything go??? Ah. Turns out some optimisation code that I had added to make the game run better in Godot 3.5 was no longer working properly. I fixed that and most things seemed to be working again.
I will skip over most of the other fixes I was working on as these weren't particularly interesting, and at this point I was focusing on getting Map 9 working again for last month's development update. However, once these smaller fixes were done there was still an elephant in the room...

Performance Improvements


I've talked a lot about how Godot 4 was supposed to bring performance improvements. This was largely based on the fact that Godot 4 uses Vulkan for rendering, whereas Godot 3 uses OpenGL 3 which is quite old at this point. So you can imagine how alarmed I was when I tried running Map 4 (possibly the most demanding map in the demo) and got this result.
The performance was all over the place! What made it worse was that I was running this on my desktop, which has a fairly beefy GPU in it. Something was very wrong here as the game shouldn't be dipping below 60 FPS on my hardware. After doing some debugging, I actually found the answer was not what I expected at all - it turned out, the optimisation code I had added to get the game working smoothly in Godot 3, was actually making things a lot worse in Godot 4. I removed pretty much all of this code, and this happened...
The performance is still a bit inconsistent, but I had to disable the frame rate cap to record this. The new peak performance was not 60 FPS now, it was more like 160 FPS. Part of the reason for this was that some of my optimisation code was trying to achieve what Godot 4 already does out-of-the-box, and so it was fighting with the engine instead of working with it. But wait, something still isn't right. Why do the lights look weird here?
After doing some digging, this turned out to be a similar problem to one that I tried to work around in Godot 3. Essentially, there is a limit on how many lights can cast shadows at the same time, and if this limit is exceeded the lights start rendering incorrectly. In Godot 3, this limit was only 8, so my previous code tried to work out the 8 closest lights and only enable shadows on these. However, this constant sorting of hundreds of lights was partly responsible for the bad performance I had seen before. Luckily, in Godot 4 the "light limit" was around 44, so knowing I would probably never have more than this too close to the player at any time I thought of a cleverer piece of code that could turn off shadows for far away lights without doing any sorting at all... And then this happened.

Not only had I fixed the lighting issue, performance had seen another significant jump. The peak FPS was now well over 200, and the frame rate actually looked more consistent while playing. It was at this point I knew the v1.3.0 update was nearly ready to release, and just needed a bit more polish.

The Save System


One last thing that needed looking at before releasing the update was the save system. If you played the game before v1.3.0, you probably saw the warning about old saves being incompatible, so here's the explanation for that if you are interested. I knew that saves were going to be problematic as there have been some variable renames which I would have to account for if old saves were going to work. I figured that while new saves would work fine, old saves would fail to load. And again, Godot surprised me. What actually happened, was that while the Godot 4 version of the game was fine loading old saves from Godot 3, it instead failed to load new saves! It turns out, the saving code was making some bad assumptions about how the maps would be set up when loading, which used to work fine but didn't any more due to some internal engine changes. I realised fixing this would also break loading, so it would no longer be possible to load old saves either. There was a more significant issue here though. This was being tested with my "dev" build of the game, which uses a text-based format for the save files so I can debug issues with them. However, in the exported game the saves are encrypted in a binary format (so you can't cheat). This encryption is an engine feature, and unfortunately this has also changed, so the Godot 4 version of the game actually can't read the files saved by the old version at all.

Finishing Touches


With all of that done, the v1.3.0 update was getting closer to being finished. I showed off some of the new graphical effects last month, such as the new decal-based blood and the new fog.
An interesting side-effect of the decals - they also "painted" the barbed wire red! I thought this looked pretty cool I also mentioned some physics problems last month, including the ability to jump through ceilings. Once I'd switched to the Jolt physics engine, I found out that this was my bad. Turns out I was calculating the player's collision shape wrong!
This required an out-of-body experience to fix... So, it was finally time to try exporting the project. Wait a minute...
Where did the fog go??? It seems I ran into an engine bug here. The fog only shows up if there is a directional light (which comes from the moon in Haunted), but for some reason if one scene doesn't have this, then the fog remains broken even after changing to a new scene. In the exported build, the "logo" screen shows up first, which didn't have a sky or moon present so I had to add them to fix this awkward bug. And that concludes the adventure I had upgrading the engine to Godot 4.

What's Next


It is safe to say that the game has had quite an upgrade in terms of the visuals now. The screenshots and trailers are quite out of date as a result, so it's about time I updated them. Because of this, I've decided that not only will I revamp the Steam store page, I will also be releasing the game on itch.io to serve as the official "DRM-free" version of the game. I won't do this just yet as I would like to finish at least one more map first, and I have made a start on Map 10. However, I have encountered a few more engine problems which make it difficult to work on this map at the moment, so instead Map 11 will be the next map I will complete before spending time on the new store page(s). That's it for this month. Before I go, I will leave you with a teaser for what will come next in your fight through Osowiec...
Someone isn't happy that you killed his protege... Thanks for reading!


[ 2023-07-29 14:10:38 CET ] [ Original post ]



Haunted: Attack of the Dead Men
GameBeast Productions
  • Developer

  • GameBeast Productions
  • Publisher

  • Q4 2023
  • Release

  • Indie Singleplayer
  • Tags

  • Game News Posts 46  
    🎹🖱️Keyboard + Mouse
  • Controls

  • 8 user reviews

    (8 reviews)


  • Review Score

  • https://store.steampowered.com/app/2157920 
  • Steam Store



  • [0 B]

  • Public Linux depots

  • Enter Osowiec Fortress, one of the most formidable fortresses in Europe during the Great War. It's defenders have been through hell - trench warfare, a barrage of artillery, and now gas - and have returned. The fortress now serves as the source of a great darkness, returning the dead to the land of the living.



    You are a lone German soldier in the heat of the battle for this epic fortress, The Attack of the Dead Men. Your comrades have abandoned you and fled in disgrace, and now you are all alone in Osowiec, surrounded by hundreds of undead, angry Russians. You must battle for survival against an onslaught of these newly reanimated Russians, who must be put down once again for good to prevent this darkness from spreading to all of Europe. Use a variety of different weapons to deal with an increasing number of enemies, who get stronger and more resilient the deeper you go...

    Planned Features


    • 7+ hour single-player campaign in the style of first-person shooters of old
    • 14 levels in the main campaign + 1 secret level (the first 4 levels are available to play right now in the demo)
    • 8 choices of weapon to dispatch the many undead Russians
    • Intense encounters with dozens of enemies all at once throughout the campaign
    • Earn rewards for more aggressive play-styles
    • 5 difficulty levels + 2 bonus difficulties that unlock upon completing the game on the hardest difficulty
    • Many different types of enemy, all with unique attack patterns and fighting styles, to keep the action engaging
    • An epic boss battle against a well known Russian mystic who has now been dabbling in necromancy...
    • Steam Achievements
    MINIMAL SETUP
    • OS: Any Distribution. Kernel 5.10+
    • Processor: Quad Core 2 GHz+Memory: 4 GB RAM
    • Memory: 4 GB RAM
    • Graphics: OpenGL 3.3+ compatible
    • Storage: 2 GB available space
    RECOMMENDED SETUP
    • OS: Ubuntu 20.04+. Manjaro 21.3+
    • Processor: Quad Core 3 GHz+Memory: 4 GB RAM
    • Memory: 4 GB RAM
    • Graphics: AMD RX 480 or nVidia equivalent
    • Storage: 2 GB available space
    GAMEBILLET

    [ 5951 ]

    8.59$ (14%)
    4.12$ (17%)
    24.89$ (17%)
    8.27$ (17%)
    1.00$ (80%)
    3.75$ (75%)
    44.49$ (26%)
    6.67$ (56%)
    15.00$ (50%)
    40.95$ (18%)
    16.97$ (15%)
    18.39$ (8%)
    10.13$ (66%)
    16.39$ (18%)
    4.95$ (67%)
    0.60$ (70%)
    24.87$ (17%)
    22.99$ (8%)
    16.52$ (17%)
    9.90$ (67%)
    12.89$ (14%)
    1.15$ (81%)
    17.59$ (12%)
    33.19$ (17%)
    16.79$ (16%)
    49.79$ (17%)
    8.95$ (78%)
    12.77$ (36%)
    1.93$ (81%)
    5.16$ (74%)
    GAMERSGATE

    [ 1903 ]

    11.25$ (77%)
    1.28$ (87%)
    3.99$ (20%)
    7.87$ (47%)
    2.5$ (50%)
    5.63$ (81%)
    1.27$ (89%)
    0.53$ (95%)
    1.84$ (74%)
    0.38$ (92%)
    0.68$ (77%)
    0.68$ (83%)
    0.53$ (92%)
    1.5$ (85%)
    3.75$ (85%)
    2.55$ (87%)
    7.5$ (70%)
    0.85$ (91%)
    1.5$ (81%)
    2.7$ (85%)
    34.99$ (30%)
    6.0$ (70%)
    0.38$ (92%)
    4.5$ (70%)
    0.48$ (52%)
    0.53$ (92%)
    0.3$ (92%)
    0.79$ (89%)
    1.5$ (85%)
    3.38$ (66%)

    FANATICAL BUNDLES

    Time left:

    3 days, 9 hours, 26 minutes


    Time left:

    26 days, 9 hours, 26 minutes


    Time left:

    8 days, 9 hours, 26 minutes


    Time left:

    39 days, 9 hours, 26 minutes


    Time left:

    45 days, 9 hours, 26 minutes


    HUMBLE BUNDLES

    Time left:

    6 days, 3 hours, 26 minutes


    Time left:

    6 days, 3 hours, 26 minutes


    Time left:

    15 days, 3 hours, 26 minutes

    by buying games/dlcs from affiliate links you are supporting tuxDB
    🔴 LIVE