MODELDEF case sensitive?

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

MODELDEF case sensitive?

Post by Enjay »

Git Build from August 3rd.

Not sure if this is actually a bug but worth reporting just in case:

When my DECORATE had

Code: Select all

    MODE A 2
    MODE B 2 A_Pain
    MODE C 2
But, due to a typo, my modeldef had

Code: Select all

	FrameIndex MODE A 0 0
	FrameIndex MODe B 0 1
	FrameIndex MODE C 0 2
(note the second line)

I got:
Script error, "modeldef.pk3:modeldef.worker.txt" line 372:
Unknown sprite MODe in model definition for Worker
Changing the MODELDEF to

Code: Select all

	FrameIndex MODE A 0 0
	FrameIndex MODE B 0 1
	FrameIndex MODE C 0 2
Makes the error message go away and the model works.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: MODELDEF case sensitive?

Post by Graf Zahl »

You were correct, there was a case sensitive string compare in there, which of course is wrong.
Locked

Return to “Closed Bugs”