UDB error: "Actor is double defined"
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.
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.
-
- Posts: 77
- Joined: Mon Oct 26, 2020 6:40 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Luxembourg
UDB error: "Actor is double defined"
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.
-
-
- Posts: 17937
- Joined: Fri Jul 06, 2007 3:22 pm
Re: UDB error: "Actor is double defined"
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.
Maybe there's a doubled #include that causes one file to be loaded twice.
It's hard to say without knowing more.
-
- 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"
Ah, that's it! I included it as a resource too. Thanks for helping!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.
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.