Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: XtremeBain on February 20, 2006, 04:47:01 PM

Title: BUG - gamemap crash when using bad mapname
Post by: XtremeBain on February 20, 2006, 04: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
Title: Re: BUG - gamemap crash when using bad mapname
Post by: jitspoe on February 20, 2006, 06:17:34 PM
That's why you should use newmap instead. :)

I'll throw it on the todo list.
Title: Re: BUG - gamemap crash when using bad mapname
Post by: XtremeBain on February 20, 2006, 06:55:23 PM
That's why you should use newmap instead. :)
Make newmap a rcon command then ;)
Title: Re: BUG - gamemap crash when using bad mapname
Post by: jitspoe on February 20, 2006, 07: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>
Title: Re: BUG - gamemap crash when using bad mapname
Post by: loial21 on February 20, 2006, 07:47:44 PM
Just curious will this help me load maps on my own via rcon?
Title: Re: BUG - gamemap crash when using bad mapname
Post by: jitspoe on February 21, 2006, 02: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).