Crashing Fixes:
- According to logs, the destruction system was causing a huge amount of the crashes, even if destructibles weren't present on the level.
- Disabled destruction system and replaced all destructible buildings and objects with static variants (destructibles were mostly on Everglades and the pillars in Labyrinth Gunfight).
Freezing Fixes:
- Many AI behavior tree systems (almost 2 dozen of them) had a major bug which froze the game. This was due to NPC’s trying to decide if they should engage in close range or far range behaviors, but there was no behavior path for ranges in-between the two values, so the NPC’s infinitely looped through checks until it froze the game. This was the cause of almost all the freezing, and has been fixed.
General Additions/Improvements:
- Implemented and added Ballista as a spawnable turret to Weapons menu, as per request. Ballista does huge damage to crowds and also single targets. Must be cranked to reload - don’t miss!
- Fixed Godscale hands doing immense damage while barely nudging enemies
- Increased arrow damage by 3 times previous amount
- Fixed Valley Hilltop Defense missing shadows
- Added small elevation changes and terrain texture variation to Parnassus Flat
- Decreased Ladder damage
- Turned off preset grip on two handed guns for now because grabbing it rotated the weapon on the yaw axis too much
- Blood splatter from old AI optimized to have fewer particles
- Modified ranged damage multiplier vs player to be less because AI projectiles disproportionately were killing players
Menu Changes
- Moved all gameplay options from the Wrist menu to the Pause menu
- Added “Delete All” button to the delete menu. This clears the entire level of units, weapons, spawners, god powers, bodies, and decals.
- Fixed issue where pressing “Delete Weapons” would destroy attachments on held weapons and weapons in player’s inventory
- Fixed issue where selecting primary menu buttons would not select/deselect correctly.
Bug Fixes
- Fixed bug where turning the music on and off would not work properly
- Fixed issue where turret & attached gun would try to destroy each other
- Fixed issue where clearing weapons would destroy attachments on gun held in hand or in player's inventory which causes soft crash in game
- Fixed issue where deleting weapons would delete mags out of holsters
- Ensure objects clean themselves up when needed and do not hang around in memory
Dev Log:
This week we focused down on the crashing and freezing issues players had, which we knew was a big obstacle to having a full, fun session. We removed all instances of destructibles from the project because according to crash logs that system was the cause of many random crashes. Destructibles will eventually return when we upgrade to using a new destruction system. We also resolved freezing caused by conflicting AI behaviors. In all, there should be much less incidence of crashing/freezing.
Thanks to your testing footage and crash logs, we have been able to resolve almost all of the game crashing/freezing by replicating the battles you made.
Biggest addition to the game this week, as requested by a few of you - the Ballista. The Ballista turret is now in the game in the Weapons Menu. It does heavy damage to large crowds and single targets like Talos.
