GameServerManagers / GameServerManagers/LinuxGSM
[BUG] Rust - Seed Error after Map-Wipe and Stop/Start
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 864
- PR merge metrics
- No merged PRs in 30d
Description
## User Story
After a map-wipe the Server delete the old map files .map and . sav (Seed 924899645) and created a new with a new Random-Seed (Seed 576968746). All Works, we can connect and play on a new Map.
**But:** When i restart the Rust-Server (or Stop and Start), the Server created a new Map again with the old Seed (Seed 924899645) again. Now there are two maps in folder and he load always the "old" Map with Seed 924899645.
With a Restart the Server always change the Seed to **924899645**
## Basic info
* **Distro:** [Debian 10]
* **Game:** [Rust]
* **Command:** [./rustserver map-wipe] and after this [./rustserver restart]
* **LinuxGSM version:** [v20.5.1]
## Further Information
**DONT** change the Seed in lgsm to work with Random-Seeds to have a new map after Map-Wipe
every time (like probably most servers) You can find some of my Screenshots in LinuxGSM-Discord:
https://discord.com/channels/127498813903601664/424152809970204672/959474458014412860
## To Reproduce
Steps to reproduce the behaviour:
1. Install the Rust Server `./rustserver install`
2. Run the Server `./rustserver start` and wait for full loading
3. look at /rustserver/serverfiles/server/rustserver , here the server generated the Map named proceduralmap.3000.924899645.222.map (Mapsize=300, Seed=924899645)
4. make a Wipe `./rustserver map-wipe`
5. the Server delete the .sav and.map and generate a Random Seed and start the Server. Wait for full generation of Map and Server
6. look at /rustserver/serverfiles/server/rustserver again, the Map is now proceduralmap.NEWGENERATEDRANDOMSEED.222.map
8. make a Server Restart `./rustserver restart`
9. wait for full restart and look /rustserver/serverfiles/server/rustserver. You find the proceduralmap.NEWGENERATEDRANDOMSEED.222.map and the Server generated the proceduralmap.3000.924899645.222.map again an load this (old) map.
10. The Seed after a Restart or Stop/Start is always `924899645`
## Expected behaviour
The server should still use its own generated random seed on restart
Contributor guide
Assessment
This issue has not been assessed yet.