Tried extracting a monster from a mod, and...
Moderator: GZDoom 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.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
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.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Tried extracting a monster from a mod, and...
So I tried extracting the Cyberdemon from this mod: https://www.moddb.com/mods/embers-of-ar ... s-addon-16
I got everything: The DECORATE, Brightmaps, Sprites, and Sounds, but when putting it in a mod for testing it, it gave me an error. Then when I checked the code, it said this: What do I need to fix?
I got everything: The DECORATE, Brightmaps, Sprites, and Sounds, but when putting it in a mod for testing it, it gave me an error. Then when I checked the code, it said this: What do I need to fix?
Re: Tried extracting a monster from a mod, and...
The error means that there is no "BFGStunLightning" actor defined anywhere.
You need to define said actor somewhere in your code for it to work.
You need to define said actor somewhere in your code for it to work.
Re: Tried extracting a monster from a mod, and...
How do I define it so it's not "anywhere?"Jarewill wrote:The error means that there is no "BFGStunLightning" actor defined anywhere.
You need to define said actor somewhere in your code for it to work.
Re: Tried extracting a monster from a mod, and...
Spoiler:Though, getting the proper BFGStunLightning definition from the mod would be better.
Re: Tried extracting a monster from a mod, and...
So first I create the BFGStunLightning actor above the ArgentAccuLightning and then what do you mean by "do stuff here?" Do I write what actors to define it to? And if so, how would I write it?
Re: Tried extracting a monster from a mod, and...
By that I meant to write properties and/or states there. You can even leave it simply empty as {} if you want.
However, those two actors inheriting from BFGStunLightning may not work correctly without the original definition, which is probably somewhere in that mod in a different DECORATE file.
However, those two actors inheriting from BFGStunLightning may not work correctly without the original definition, which is probably somewhere in that mod in a different DECORATE file.
Re: Tried extracting a monster from a mod, and...
So I found the definition for BFGStunLightning, put it in the code, but the monster doesn't show up. Instead, the classic red square with a yellow exclamation mark.
Re: Tried extracting a monster from a mod, and...
Is the editor number for the actor and the placed thing the same?
Any errors logging into the console?
Any errors logging into the console?
Re: Tried extracting a monster from a mod, and...
I gave the editor number 15001 and there were no errors in the console. Strange since I got all the sprites in the mod...
Re: Tried extracting a monster from a mod, and...
Hmmm.... Mind showing the code here?
I can only guess so much without it.
I can only guess so much without it.
Re: Tried extracting a monster from a mod, and...
https://drive.google.com/file/d/1ETCiYx ... sp=sharing
I uploaded it to Google Drive so you can take a look at it.
I uploaded it to Google Drive so you can take a look at it.
Re: Tried extracting a monster from a mod, and...
The sprites didn't appear in Doom Builder, and I added the BFGStunLightning actor (line 907). I think i need the BFG Stun sprites.
Re: Tried extracting a monster from a mod, and...
The problem here is that the sprites aren't being detected as sprites, because they aren't between S_ markers.
You need to add a new "file" named S_START above the CYBIA1 sprite and S_END below the LDFXD0 sprite.
The monster is also missing sprites for it's attacks and SNDINFO definitions of the sounds.
You need to add a new "file" named S_START above the CYBIA1 sprite and S_END below the LDFXD0 sprite.
The monster is also missing sprites for it's attacks and SNDINFO definitions of the sounds.
Re: Tried extracting a monster from a mod, and...
So all I need is to make 2 markers and the SNDINFO lump?
Re: Tried extracting a monster from a mod, and...
And I looked at the sprites the attacks aren't missing.