Welcome, and we hope you find our Stormworks: Build and Rescue The solution to freezing physics Guide to be useful.
PHYSICS (2FPS), PHYJOIN=PHYEVENT=PHYCOPY=>300 ms
How to fix the saved file if Physics suddenly freezes.
Description of the problem
If you are approaching the starting base (or are already there), an island with the same name will be displayed. Coastguard Outpost Beginner If the distance is less than 2 km, the Physics freezes.
Or, physics slows down horribly. Movement is happening, but it’s very slow.
However, the graphics fps are not decreased. The CPU is under more load when there are 2 threads. This is especially noticeable for people with weak processors. The computer can hang with 2 nuclear processors.
Opening the performance table using the F1 game key, there is a significant delay for PNYJOIN or PNYCOPY. If the PNYEVENT key is not used, it will be booted.
PHYSICS also shows an indication of 1-2 fps and a three-digit number in milliseconds.
What is possible? Control the camera. Save the game. Enable No-Clip* with the Home key (default). Fly to another island to free the game. This is not the solution.
You can still do it, but it is prolonged. Open map, teleport (if Allow Teleport* is enabled). However, if you get near the island again, the game freezes again.
* Menu creativity can be enabled by setting the creative_menu=”true” save file at 24A2607489696A along this path: %APPDATA%\Roaming\Stormworks\saves\ in the folder with name of the save.
Possible reasons
The reason for the uncontrolled spawning NPCs is what I discovered when I dug into the game.
This is due to the peculiarities in the game engine.
Most likely, there is a glitch at the next event. This causes the game to spawn a large number of NPCs continually.
The engine cannot distribute the generated objects across the game world, or this place does not exist.
In short, I believe that the game code contains an implicit error.
The solution
To solve the problem, you must complete two tasks.
It is essential to disable the missions a*sociated with the generation NPCs and clear the save file of any unnecessary objects.
However, before you save the game, make sure to have a backup copy.
Stop spawning NPCs
For the duration, you will need to move the two folders, default_ai_aircraft and default_ai, elsewhere. If you want to complete the mission, you must return it.
These folders can also be found here game folder\rom\data\missions\
You can access the Steam client’s game folder through the game properties.
Go to the library. Right-click on the game. Next, open “Properties …”,”. Then, go to the “Local Files Tab” and click the “Browse …”” button.
Remove spawned NPCs
This will require you to be able to work at a minimum with hypertext markup.
You will need a text editor, the best Notepad++. In my case, Visual Studio Code. (hereinafter, VSCode).
- Our editor allows you to open the file scene.xml.
This file is located in the Save folder, which can be found along the path:
%APPDATA%\Roaming\Stormworks\saves\
Enter this line in your browser’s address bar to access this folder.
- It is an excellent idea to reduce everything block by block. It will be easier for you to search and delete what you find.
VSCode – Press the key combinations sequentially Ctrl+K.
Notepad++ –Alt+0 (alt zero).
- Regular expressions can be used to find the strings you need
<object type="1".*network_name=".*".*time_alive="[0-9]{0,2}">
- Ctrl+F opens the input field to the search string.
- To enable regular expression search, click on the box with asterisks in VSCode or Notepad++ to the right of the search input line.
- Delete all code blocks found with found game objects.
- Load your saved game and ensure that the physics doesn’t freeze the game. Then, go around with your character and save your world.
If this doesn’t work, then it is likely that something was removed from the file or that the file was not saved after editing. Restore the backup folder and go through the same steps again.
- Return the folders that contain missions default_ai and default_ai_aircraft to their original location.
- Our editor allows you to open the file scene.xml.
[/list]
Recommendations
- Object type must equal 1. type=”1″ must be NPC or character.
- The parameter network_name should be equal to, as I discovered, Pilot, or Captain. This regular expression specifies the values that can be included in this parameter.
- There can be any number of characters between the parameters. A regular expression denotes these as a dot and an asterisk.
- The object’s “lifetime” is contained in the parameter time_alive. We are looking for a 2-digit number because it is no longer necessary so we don’t remove excess.
We can, however, change the last digit in [0-9]{0,2} to indicate how many characters are being used. Those. The parameter must contain all the numeric characters from 0 through 9 as well as lengths from 0 through 2 characters. We can denote up to four-digit numbers, such as [0-9]{0,4}.
- It is better not to take doctors away, as they will no longer be in hospitals. They have lost their way and do not know how to return to the hospital.
- Your character and other players don’t have to be deleted. They have a parameter char_steam_id and a Steam ID. If the parameter is removed, the character will respawn at the base.
- You must delete all found objects as a block, starting with the first one.
<object type="1" ...
Ending with closing an object block
</object>
Pay attention to the points before.
There will be several lines between them that have nested blocks and other parameters.
Let’s close.
Congratulations! Congratulations!
If you attempt something similar and succeed, you’ll have some experience editing XML files.
Enjoy the game!
* Warning. The temporary solution is not permanent.
This guide will serve as a guide until the developers resolve the issue.
I have registered the problem in the official Issue Tracker 17564 – You can access the issue tracker through the main menu by clicking “The button” – Report Bug/Request Feature.
We hope they fix it.
Share your comments on our most recent post, Stormworks: Build and Rescue The solution to freezing physics, and let us know if there’s anything we can do to improve it or if you notice an error. We’ll make the required modifications as soon as we can. We appreciate you so much and wish you an excellent rest of the day. The author and creator, Soulshkin, inspired this post.
- All Stormworks: Build and Rescue Posts List