[4.9.0] A_ChangeModel non-existent modeldef causes engine freeze

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [4.9.0] A_ChangeModel non-existent modeldef causes engine freeze

Re: [4.9.0] A_ChangeModel non-existent modeldef causes engine freeze

by Shiny Metagross » Mon Nov 14, 2022 6:00 pm

This shouldn't be too hard to fix, but I may not be able to get to this immediately. I'll respond here again once I have a fix. Unless of course someone beats me to it.

[4.9.0] A_ChangeModel non-existent modeldef causes engine freeze

by Fishytza » Mon Nov 14, 2022 3:12 am

If I specify a invalid modeldef to use via A_ChangeModel, the engine will lock up/freeze and I have to kill gzdoom via Task Manager.
I would prefer if it printed an error message instead. Saying the modeldef specified doesn't exist or something.

Load this zscript example for yourself, summon Test, close the console and gzdoom should freeze:

Code: Select all

version "4.9.0"

class Test : Actor
{
	States
	{
	Spawn:
		PLAY A -1 NoDelay A_ChangeModel("bogus");
		Stop;
	}
}

Top