Author Topic: BUG - gamemap crash when using bad mapname  (Read 1297 times)

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
BUG - gamemap crash when using bad mapname
« on: February 20, 2006, 03:47:01 PM »
There's a bug using gamemap from console or rcon.  IT doesn't check if a map exists before trying to load it.  As result it crashes the server.  the map command works normal, however.

Code: [Select]
gamemap asdfs
------- Server Initialization -------
********************
ERROR: Couldn't load maps/asdfs.bsp
********************
Sending heartbeat to 207.38.11.34:27900
==== ShutdownGame ====
Sending flatline to serverlists...
map asdf
Can't find maps/asdf.bsp

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: BUG - gamemap crash when using bad mapname
« Reply #1 on: February 20, 2006, 05:17:34 PM »
That's why you should use newmap instead. :)

I'll throw it on the todo list.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: BUG - gamemap crash when using bad mapname
« Reply #2 on: February 20, 2006, 05:55:23 PM »
That's why you should use newmap instead. :)
Make newmap a rcon command then ;)

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: BUG - gamemap crash when using bad mapname
« Reply #3 on: February 20, 2006, 06:11:02 PM »
I think I did for the next version.  It's an sv command, though, so you'd have to do:
rcon sv newmap <mapname> <game mode>

loial21

  • Autococker
  • Posts: 2807
Re: BUG - gamemap crash when using bad mapname
« Reply #4 on: February 20, 2006, 06:47:44 PM »
Just curious will this help me load maps on my own via rcon?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: BUG - gamemap crash when using bad mapname
« Reply #5 on: February 21, 2006, 01:58:13 AM »
If typing "rcon sv newmap" appeals more to you than typing "rcon gamemap", then I guess so.  Otherwise it's pretty much the same thing.  It's best to just use "newmap" with a login, though, rather than trying to use rcon.  Rcon has little protection for this type of thing (as is pointed out by the very existance of this thread).