Stormworks: Build and Rescue – How to Fix Freezing Physics

Stormworks: Build and Rescue – How to Fix Freezing Physics 10 - steamlists.com
Stormworks: Build and Rescue – How to Fix Freezing Physics 10 - steamlists.com

Welcome to Stormworks: Build and Rescue – How to Fix Freezing Physics Guide.

This guide will help you how to fix the save file if physics suddenly starts to freeze and restarting the game does not help.

PHYSICS (2FPS) PHYJOIN= PHYEVENT= PHYCOPY= >300 ms –

Description of the problem

When you approach the starting base or are already there (an island with the name Coastguard Outpost Beginner), closer than 2 km, the physics freezes.

Or rather, physics starts to slow down terribly. Movement is happening, but very slowly.

The visuals’ frame rate remains unaffected at the same time. Two threads place the highest possible burden on the CPU, which is particularly obvious for people with poor processors. Generally speaking, the computer can hang on 2 nuclear processors.

When opening the performance table with the F1 key in the game, there is a large delay for PNYJOIN and PNYCOPY. If only booted, then PNYEVENT.

Also, PHYSICS shows 1-2 fps and a three-digit number in milliseconds.

Stormworks: Build and Rescue - How to Fix Freezing Physics - Description of the problem - 70597EA

What is possible? Control the camera. Save the game. Enable No-Clip* with the Home key (default). Fly to another place away from the island to unfreeze the game, but this is not a solution to the problem.

You can still, but very slowly. Open map, teleport (if Allow Teleport* is enabled). But, when you get close to the island again, the game will freeze again.

* Menu creative can be enabled by setting creative_menu=”true” in save file scene.xml along the path: %APPDATA%\Roaming\Stormworks\saves\ in the folder with the name of the save.

Possible reason

As I found out by digging into the game, the reason is that there is an uncontrolled spawning of NPCs.

Stormworks: Build and Rescue - How to Fix Freezing Physics - Possible reason - B6FF6F8

Stormworks: Build and Rescue - How to Fix Freezing Physics - Possible reason - 6B8A582

Due to the peculiarities of the game engine, this happens at one point in the game world.

Stormworks: Build and Rescue - How to Fix Freezing Physics - Possible reason - 5C9A994

Likely, this happens when a bug occurs during the subsequent event in the game, causing an abnormally large number of NPCs to appear perpetually.

Or this location no longer exists, and the engine hasn’t had time to spread the generated objects around the game world.
In a nutshell, I think the game’s coding has an undiscovered flaw.

The solution of the problem

You need to complete two tasks to solve the problem.

It is necessary to disable the missions a*sociated with the generation of NPCs and clean the save file from unnecessary objects.

But before that, it is a*sumed that the game is saved and a backup copy of the save is made just in case.

Stop spawning NPCs

Move the two folders default_ai and default_ai_aircraft somewhere else for the duration of the operation. At the end, you will need to return it back, otherwise these missions in the game will not be available.

These folders are located here – {game folder}\rom\data\missions\

Stormworks: Build and Rescue - How to Fix Freezing Physics - Stop spawning NPCs - 87332B1

You can open the game folder in the Steam client through the game properties.

Go to the library, right-click on the game, open “Properties …”, go to the “Local Files” tab, click the “Browse…” button.

Stormworks: Build and Rescue - How to Fix Freezing Physics - Stop spawning NPCs - 7A7CB1C

Remove spawned NPCs

You will already need to be able to work with hypertext markup files.

You will need any text editor, better Notepad++ or in my case on the screenshots it is Visual Studio Code (hereinafter VSCode).

    1. Open the file scene.xml using our editor.

      This file is located in the save folder, which is located along the path:
       

       

      %APPDATA%\Roaming\Stormworks\saves\

       

      enter this line in the explorer address bar to go to this folder.
       

      Stormworks: Build and Rescue - How to Fix Freezing Physics - Remove spawned NPCs - EA80B88

    2. Everything should be collapsed block by block. As a result, it will be easier to search for and delete the results.
      VSCode – sequentially press the key combinations Ctrl+K Ctrl+M.

      Notepad++Alt+0 (alt zero).

    3. Looking for the required strings using a regular expression:
       

       

      <object type="1".*network_name=".*".*time_alive="[0-9]{0,2}">

       

       

       

      • Ctrl+F to open the input field for the search string;
      • you need to enable regular expression search by clicking on the box with an asterisk in VSCode, to the right of the search input line, or if in Notepad++, then check the corresponding box.

       

       

      Stormworks: Build and Rescue - How to Fix Freezing Physics - Remove spawned NPCs - 027A01F

    4. Delete all discovered code blocks and game objects.
    5. Load your save and make sure the physics don’t cause the game to freeze before running around with your character and saving the world.
    6.  If it didn’t help, something was removed or the file was not saved after editing. Restore the save folder from the copy and repeat the previous steps again.
    7. Return the folders with missions default_ai and default_ai_aircraft to their place.

[/list]

 

Recommendations

  • Object type must be equal to 1, type=”1″ is NPC and character.
  • The network_name parameter should be equal, as I found out, Pilot or Captain. This regular expression specifies any values that can be in this parameter.
  • There can be any number of characters between the parameters, denoted in the regular expression as a dot with an asterisk.
  • The time_alive parameter contains the object’s “lifetime”. We are looking for a two-digit number, because no longer needed, so as not to remove the excess.

    But if necessary, we change the last digit in the expression [0-9]{0,2}, indicating the number of characters. Those. the parameter must contain all numeric characters from 0 to 9 and length from 0 to 2 characters. Suppose we denote up to a four-digit number – [0-9]{0,4}.

  • It is preferable not to remove doctors; otherwise, hospitals would be devoid of them. The tsunami has already washed them away, and they have no idea how to return to the hospital.
  • Your character and other players do not need to be deleted either. They have a parameter char_steam_id with the Steam ID. If removed, the character will respawn at the base.
  • Found objects must be deleted as a whole block starting with
     

    <object type="1" ...

     

    and ending with closing the object block
     

    </object>

     

    observing the previous points.
     

    Between them there will be several lines with nested blocks and other parameters.
     

    Stormworks: Build and Rescue - How to Fix Freezing Physics - Recommendations - 75151D5

 

And in conclusion

Congratulations! You coped with the task.

If you are doing something like this for the first time, and you succeed, then you have gained some experience editing XML and hypertext documents.

Enjoy the game!

*Warning. This procedure is only a temporary solution to the problem.
At the very least, this guide will be helpful to until the developers fix the problem.

I registered this problem in the official issue tracker #17564, available through the game in the main menu by clicking the Report Bug / Request Feature button.

Hope they fix it.

Written by Soulshkin

I hope you enjoy the Guide we share about Stormworks: Build and Rescue – How to Fix Freezing Physics; if you think we forget to add or we should add more information, please let us know via commenting below! See you soon!


Be the first to comment

Leave a Reply

Your email address will not be published.


*