Linuxgsm: [Rust] Random seed on wipe feature

Created on 23 Feb 2017  路  6Comments  路  Source: GameServerManagers/LinuxGSM

New variable:

randomseedonwipe="on/off"

Upon wipe, if [ "${randomseedonwipe}" == "on" ]; then
wipe the server
generate randomseedwithin the supported range
apply seed="rand"
edit ${rootdir}/${selfname} and apply seed="rand"
fi

Atomic wipe Rust feature request

Most helpful comment

I will be doing this for the next release

All 6 comments

Anything being done on this? This feature is kind of important on my current rustserver project.

If someone is wondering about this/having the same problem that I am (the seed not being random). I resolved this by having my wipe bashscript replace the seed="" with a random number generated by bash.

#!/bin/bash
RDM="$(( ( RANDOM % 2147483647 ) + 1 ))"
sed -i -- 's/^seed=.*/seed="'$RDM'"/g' /path/to/rustserver.cfg

will this get done?

At this point it's probably on one of us to make a PR

I will be doing this for the next release

closing this as a duplicate using issue #2915

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dj-hyb picture dj-hyb  路  3Comments

jaredstone1982 picture jaredstone1982  路  3Comments

DavidRayner picture DavidRayner  路  3Comments

dgibbs64 picture dgibbs64  路  3Comments

Bourne-ID picture Bourne-ID  路  3Comments