mdarkness1988 / Rust-Server

Modified Rust Server from didstopia
MIT License
8 stars 19 forks source link

How to put specific map size? #14

Open Wumbc opened 5 years ago

Wumbc commented 5 years ago

I see options for tiny medium massive etc but when I put a specific value like "2500" the webui doesn't start?

mdarkness1988 commented 5 years ago

Has this been resolved? Sorry for the delay in response

tobiaspedersen commented 4 years ago

I have the same issue. Did you ever resolve it?

tobiaspedersen commented 4 years ago

Looks like this function in start.sh is the issue

#SELECT MAP SIZE
###############

if [ "$MAPSIZE" = "tiny" ]; then
MPSIZE="1000"
elif [ "$MAPSIZE" = "small" ]; then
MPSIZE="2000"
elif [ "$MAPSIZE" = "medium" ]; then
MPSIZE="3500"
elif [ "$MAPSIZE" = "large" ]; then
MPSIZE="6000"
elif [ "$MAPSIZE" = "massive" ]; then
MPSIZE="8000"
else
echo "Error: Please select map size"
exit
fi

Maybe something like this could work? I tried to test it but the file was overwritten when the container was restarted..

#SELECT MAP SIZE
###############

if [ "$MAPSIZE" = "tiny" ]; then
MPSIZE="1000"
elif [ "$MAPSIZE" = "small" ]; then
MPSIZE="2000"
elif [ "$MAPSIZE" = "medium" ]; then
MPSIZE="3500"
elif [ "$MAPSIZE" = "large" ]; then
MPSIZE="6000"
elif [ "$MAPSIZE" = "massive" ]; then
MPSIZE="8000"
elif [ "$MAPSIZE" -ge "1000" && "$MAPSIZE" -le "8000"]; then
MPSIZE="$MAPSIZE"
else
echo "Error: Please select a valid map size. Valid map sizes are: tiny, small, medium, large, massive or a number between 1000-8000"
exit
fi
dlchamp commented 4 years ago

Doesn't seem like it was ever solved. I'm trying to use a map size of 1700, but it doesn't work. I copied this into my own repo and altered "tiny" to = 1700 and pulled from my own repo into unRAID docker. This worked, but I'd rather not have to update the repo every time I want to change the map.

@tobiaspedersen , I tried your version, too. I just got the "Please select a valid map..." error when I tried to use 1700.

tobiaspedersen commented 4 years ago

@dlchamp Hello. I just tried reinstalling the server on my Unraid server now with these settings without problems. in regards to the map size make sure the variable keys is all caps and the value is numbers only without spaces, server name and announcements can of course contain characters and spaces

Please let me know if this dosent work

rust server 1 rust server 2
dlchamp commented 4 years ago

So this was from your own repo after updating the rust-start.sh file?

tobiaspedersen commented 4 years ago

From my repo yes. Haven't updated anything in the repo, just pulled straight from docker hub via community applications in Unraid and entered the required variables.

dlchamp commented 4 years ago

Got it. Thanks!

tobiaspedersen commented 4 years ago

you got it to work?

dlchamp commented 4 years ago

It's running through it's startup right now. So far, so good.

bilekp commented 3 years ago

Minor fix, this will not work via unraid docker:

3. Add tobiaspedersen/rust-server in Repository.

Needs to be:

tobiped/rust-server in Repository variable.

TheGangster1023 commented 2 months ago

I tried using your repo @tobiaspedersen but it fails when trying to install oxide/umod. I get this line. chmod: cannot access '/steamcmd/rust/CSharpCompiler.x86_x64': No such file or directory Is there anyway I can make my own repo or fix this issue?

mdarkness1988 commented 2 months ago

Hi there. I have not been active for so many years as I have stopped developing for a while. I am unable to help with this issue as not sure if I still have access to my account anymore.

On Mon, 1 Jul 2024, 19:59 TheGangster1023, @.***> wrote:

I tried using your repo @tobiaspedersen https://github.com/tobiaspedersen but it fails when trying to install oxide/umod. I get this line. chmod: cannot access '/steamcmd/rust/CSharpCompiler.x86_x64': No such file or directory Is there anyway I can make my own repo or fix this issue?

— Reply to this email directly, view it on GitHub https://github.com/mdarkness1988/Rust-Server/issues/14#issuecomment-2200816755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDVBYGBGJ3DPKEBBTNSE73ZKGRJNAVCNFSM6AAAAABKGDYTJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQHAYTMNZVGU . You are receiving this because you commented.Message ID: @.***>