Console RESTART Command Question

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
rytz
Posts: 4
Joined: Wed Apr 01, 2020 8:34 am

Console RESTART Command Question

Post by rytz »

Hi:

I'm using the RESTART command to test my script changes and I'm unable to get the MAP or WARP commands to work along with it. I can use the same command via command line args and it works fine (warps straight to a map).

Say something like this command line works (DOES warp):
gzdoom -iwad doom.wad +map e1m1

But this doesn't from the console (does NOT warp):
restart -iwad doom.wad +map e1m1

According to this page, it seems they should work the same:
https://zdoom.org/wiki/CCMDs:Other

Is there a better way to test script changes without restarting ZDOOM?

Thanks.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Console RESTART Command Question

Post by Graf Zahl »

The restart command cannot do everything you do from the command line, the engine was really never made to be restartable so a few limitations couldn't be removed.
rytz
Posts: 4
Joined: Wed Apr 01, 2020 8:34 am

Re: Console RESTART Command Question

Post by rytz »

Graf Zahl wrote:The restart command cannot do everything you do from the command line, the engine was really never made to be restartable so a few limitations couldn't be removed.
Thanks for the info.

What's the most efficient way of testing script changes on the fly?
User avatar
Caligari87
Admin
Posts: 6233
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Console RESTART Command Question

Post by Caligari87 »

Quitting and restarting the engine, honestly. GZDoom isn't really set up to handle run-time resource changes.

I recommend setting up testing levels specifically for this, as you can run console commands from the commandline, like so

Code: Select all

gzdoom -file mytestfile.pk3 +map testmap +god +notarget +summon mytestmonster
8-)
rytz
Posts: 4
Joined: Wed Apr 01, 2020 8:34 am

Re: Console RESTART Command Question

Post by rytz »

Got it. Thanks.
Post Reply

Return to “General”