Author Topic: Server .bat wont load  (Read 2002 times)

I'm trying to host a blockland server via bat file. (Yes the version from the website) And it just opens and closes really fast. I'm on a 64 bit laptop.
Heres whats in my bat file:

C:\Program Files (x86)\Blockland\BlocklandLauncher.exe -dedicated -gamemode custom

Help would be nice  :cookieMonster:

Just tried via a blockland shortcut with -dedicated -gamemode custom at the end, worked. NVM!

what happens if you run the .bat file from the command line?
it may be printing errors and exiting

also, you may need ptlaaxobimwroe as an argument to launch it

Read above you, Btw how do you change the name of the server? and how do i load a gamemode that has spaces in it? Like i wanna host falling platforms DM, how do i host that? instead of like -gamemode custom is it gonna be like -gamemode falling_platforms_dm?

Sorry about all the posts, no edit button. But also how do i set max players?

Read above you
I did, but you can still see if the other way works or not
whichever you prefer

how do i load a gamemode that has spaces in it? Like i wanna host falling platforms DM, how do i host that? instead of like -gamemode custom is it gonna be like -gamemode falling_platforms_dm?
try -gamemode "falling platforms dm"

how do i set max players?
it should keep your last settings from hosting a server
you can also change the preference for it with a preference manager (ie RTB/glass) or by changing the value ($Pref::Server::MaxPlayers = "16";) in the prefs file (blocklands\config\server\prefs.cs)

I'm trying to host a blockland server via bat file. (Yes the version from the website) And it just opens and closes really fast. I'm on a 64 bit laptop.
Heres whats in my bat file:

C:\Program Files (x86)\Blockland\BlocklandLauncher.exe -dedicated -gamemode custom
Although you already solved this with the shortcut, it's important to note that you need "s around the file path, because it contains spaces.
"C:\Program Files (x86)\Blockland\BlocklandLauncher.exe" -dedicated -gamemode custom
Like so.

Read above you, Btw how do you change the name of the server? and how do i load a gamemode that has spaces in it? Like i wanna host falling platforms DM, how do i host that? instead of like -gamemode custom is it gonna be like -gamemode falling_platforms_dm?
You go by the gamemode's zip filename, not the displayed name. Filenames are not allowed to have spaces when it comes to gamemodes, so this will never be an issue.

Sorry about all the posts, no edit button. But also how do i set max players?
You can either  type $Pref::Server::MaxPlayers = ##; (replacing ## with the number you want), into the dedicated server console (not the client one).
Or you can join the server as a super admin, press ctrl + a, and click server settings.

The above answers work, but there is a much simpler way. Just join your dedicated server, open the admin menu and press the "Gamemode" button. Set the gamemode and server settings you want and the server will restart with those settings.

Dunno why this method is so frequently overlooked.

The only problem with that is that functions will still carry over. I think dedicated servers deactivate packages when doing that before starting up, but I'm not too sure. If they don't, then there's that problem too. There's been many problems arising from people disabling add-ons and then starting the server up again without closing Blockland. This doesn't happen to us because we don't jam things with  hundreds of add-ons, but others do.

The only problem with that is that functions will still carry over. I think dedicated servers deactivate packages when doing that before starting up, but I'm not too sure. If they don't, then there's that problem too. There's been many problems arising from people disabling add-ons and then starting the server up again without closing Blockland. This doesn't happen to us because we don't jam things with  hundreds of add-ons, but others do.
Okay, then just tell him to do it with the GUI and then full restart the server. Still much easier to an layman than trying to learn the config variables.

And yes, package deactivation does occur on dedicated servers.

Thanks everyone for the help! Got falling platforms DM loaded, now for port forwarding (which I can do). Cookies for all!  :cookie:

I got it port forwarded, just says "No matches" in console. Help? Firewall is off, allowed ports in firewall, port forwarded 28000 on tcp and udp. Help?