UDB error: "Actor is double defined"

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
DamTheGreat
Posts: 77
Joined: Mon Oct 26, 2020 6:40 pm
Graphics Processor: nVidia with Vulkan support
Location: Luxembourg

UDB error: "Actor is double defined"

Post by DamTheGreat »

I recently switched from an old version of GZDB to UDB and suddenly an error pops up. My first custom actor is apparently double defined. I checked the DECORATE lump and nothing is doubled, the editor number is 14166, the sprite is present only once between the sprite markers, the spawn state is defined as "palm a -1". I don't know what could be causing this, it seems pretty minor, because the WAD works fine, still, I want to get rid of the error.
Gez
 
 
Posts: 17937
Joined: Fri Jul 06, 2007 3:22 pm

Re: UDB error: "Actor is double defined"

Post by Gez »

Perhaps you're loadig your mod twice (e.g. once normally and once as a resource).
Maybe there's a doubled #include that causes one file to be loaded twice.

It's hard to say without knowing more.
User avatar
DamTheGreat
Posts: 77
Joined: Mon Oct 26, 2020 6:40 pm
Graphics Processor: nVidia with Vulkan support
Location: Luxembourg

Re: UDB error: "Actor is double defined"

Post by DamTheGreat »

Gez wrote:Perhaps you're loadig your mod twice (e.g. once normally and once as a resource).
Maybe there's a doubled #include that causes one file to be loaded twice.

It's hard to say without knowing more.
Ah, that's it! I included it as a resource too. Thanks for helping!

EDIT: Actually no, that wasn't it. I think I'll switch everything from DECORATE to ZScript, that'll probably fix it.

EDIT2: Converted everything to ZScript and the error is gone.

Return to “Assets (and other stuff)”