The Mean Greens - Plastic Warfare

The Mean Greens - Plastic Warfare

Visa statistik:
 Denna tråd har blivit fäst, så den är troligtvis viktig
Jamie - Virtual Basement  [utvecklare] 11 jan, 2019 @ 13:30
Hosting your own dedicated server
Hosting your own Mean Greens server is a very simple process. Here's what you need to do.

Before you begin
Make sure Steam is not running on the machine you are planning on running the server.

You can also run multiple instances of the server on a single machine, each instance uses about 600mb of ram

Please note that if you are hosting more than one instance on a machine you will need to change the port number that's being used in the batch file.

Also if you are on a home network make sure that your firewall is not blocking the ports.

Starting your server
Navigate to your install directory. By default it will look something like this: Steam\steamapps\common\The Mean Greens - Plastic Warfare\

In this install directory there's a folder called MeanGreensUserServer.

Inside this folder you fill see a batch file called HostServer.bat if you right click on this file and click EDIT you will be able to adjust the name of your hosted server.

Simply look for the text that reads
-ServerName="User Server"

Change the text that's inside the quotations, save and exit.

Then simply run the batch file and you're server will now be playable!

If you would like to increase your player count, simply add the tag

-MaxPlayers=40

If you would like to password protect your dedicate server add this tag

-ServerPassword="Password Goes Here"

Enjoy, and thanks for playing The Mean Greens
Senast ändrad av Jamie - Virtual Basement; 1 feb, 2019 @ 8:25
< >
Visar 76-90 av 112 kommentarer
free my jiggas 10 jun, 2020 @ 11:08 
♥♥♥♥ game #refund


Gaby 10 jun, 2020 @ 23:57 
Thank you =)
Adder 14 jun, 2020 @ 3:56 
managed to set a dedicated server open without any issue, however it only seems to stay up for a day. Then i need to restart it. is this normal?
Jamie - Virtual Basement  [utvecklare] 14 jun, 2020 @ 6:40 
Is it crashing? Your server should be able to run for a very long time. I recommend restarting the servers daily though (the ones I rent through logic servers have a script that relaunches them in the middle of the night automatically).
Adder 16 jun, 2020 @ 9:24 
Its not crashing, looking at the logs, it says FPPlatformMisc:: RequestExit, then begins a series of shutting down actions
KITRIK 16 jun, 2020 @ 11:15 
Your server could exit because of a network reconnection or something similar.

You could just use a script to automatically restart it.
On Windows you could create a batch file with the following contents:
@echo off :start start /w "" "YourProgramToRestart.exe" goto start
Save this into a file with the ending .bat and change YourProgramToRestart.exe to any executable file you want to execute, it could also be a .jar file for example.

If you run the script an empty command line will appear and the program will start. If you exit the program it will restart immediately, as long as the command line window is opened.
So if you want the restarts to stop you need to close the command line window first.

If you want to start this script on boot you can simply place this script in your autostart directory, every executable file in there will be launched on system boot time.
If you need further help just google or write a new comment.
Senast ändrad av KITRIK; 16 jun, 2020 @ 11:23
Adder 18 jun, 2020 @ 5:37 
Thanks for the reply KITRIK. i have tried using a bat file with your above command, but it just tells me it cannot find the themeangreenserver.exe. in addition i usually start the server with a .bat file which has the server config on it.
KITRIK 18 jun, 2020 @ 6:14 
The .exe might not get found if my .bat is not in the same folder. You would have to use the whole file path, then.

I think it would be most simple if you could quickly post the contents of your .bat with the config and I would edit it so, that it has the functionality of mine.
Senast ändrad av KITRIK; 18 jun, 2020 @ 7:35
KITRIK 18 jun, 2020 @ 6:22 
Also, you could simply replace YourProgramToRestart.exe with the name of your .bat file with the config so it would look something like this:
@echo off :start start /w "" "startMyServer.bat" goto start
Obviously you would need to replace startMyServer.bat with the name of your .bat file!

Both .bat files would need to be in the same folder, then!
Senast ändrad av KITRIK; 18 jun, 2020 @ 7:36
Adder 18 jun, 2020 @ 10:17 
i think the issue was i had put the .bat on the desktop, moved it to game folder and its working. Will have to see if it manages to restart by itself now, command used below:
@echo off
:start
start /w "" "HostServer.bat"
goto start

thanks for your all your help, much appreciated.
Adder 19 jun, 2020 @ 6:03 
didn't work, application still closed and didn't restart.
#refund
KITRIK 19 jun, 2020 @ 6:36 
Ursprungligen skrivet av Adder:
didn't work, application still closed and didn't restart.
Strange, sorry to hear that...
I never hosted a server for this game, but all game servers I hosted for other games so far had the same behavior as you describe, exiting at night. For me, that happens because my ISP disconnects my internet shortly at night. I always used a script like that and it worked fine for me.

You could look into some more powerful programs to auto restart, maybe they could work.
This site looks promising: https://www.raymond.cc/blog/keep-application-running-by-automatically-rerun-when-closed/ , but you could also just google something like "auto-restart program".

Also, the script should absolutely work fine, there has to be some other problem on your site / with your PC or with the provided game server, but I cannot look into that through just a forum.

Greetings and wish you luck!
Senast ändrad av KITRIK; 19 jun, 2020 @ 6:37
Bamuzal 3 dec, 2020 @ 14:15 
Anybody know the command to remove bots from dedicated server?
HashRRR 20 mar, 2021 @ 12:07 
NOICE :GiveHug:
< >
Visar 76-90 av 112 kommentarer
Per sida: 1530 50

Datum skrivet: 11 jan, 2019 @ 13:30
Inlägg: 112