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.

UDB error: "Actor is double defined"

Postby DamTheGreat » Fri Apr 01, 2022 2:02 am

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.
User avatar
DamTheGreat
 
Joined: 26 Oct 2020
Location: Luxembourg
Discord: ☠DamTheGreat☠#7201
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: UDB error: "Actor is double defined"

Postby Gez » Fri Apr 01, 2022 2:17 am

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.
Gez
 
 
 
Joined: 06 Jul 2007

Re: UDB error: "Actor is double defined"

Postby DamTheGreat » Fri Apr 01, 2022 2:20 am

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.
User avatar
DamTheGreat
 
Joined: 26 Oct 2020
Location: Luxembourg
Discord: ☠DamTheGreat☠#7201
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Assets (and other stuff)

Who is online

Users browsing this forum: No registered users and 0 guests