Tried extracting a monster from a mod, and...

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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.

Tried extracting a monster from a mod, and...

Postby gman829 » Fri May 22, 2020 2:16 pm

So I tried extracting the Cyberdemon from this mod: https://www.moddb.com/mods/embers-of-armageddon/addons/eoa-doom-4-monsters-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.
Fatal Error - GZDoom g4.3.3  64-bit (2020-01-20 22_20_34 +0100) 5_22_2020 1_08_08 PM (2).png
GZDoom Error
Fatal Error - GZDoom g4.3.3 64-bit (2020-01-20 22_20_34 +0100) 5_22_2020 1_08_08 PM (2).png (9.86 KiB) Viewed 183 times
Then when I checked the code, it said this:
SLADE 5_22_2020 1_08_21 PM (2).png
DECORATE lines where the error is caused
SLADE 5_22_2020 1_08_21 PM (2).png (10.95 KiB) Viewed 183 times

What do I need to fix?
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby Jarewill » Fri May 22, 2020 2:22 pm

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.
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Fri May 22, 2020 2:26 pm

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.

How do I define it so it's not "anywhere?"
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby Jarewill » Fri May 22, 2020 2:36 pm

Spoiler:

Though, getting the proper BFGStunLightning definition from the mod would be better.
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Fri May 22, 2020 2:42 pm

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?
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby Jarewill » Fri May 22, 2020 2:47 pm

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.
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Fri May 22, 2020 2:59 pm

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.
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby Jarewill » Fri May 22, 2020 3:17 pm

Is the editor number for the actor and the placed thing the same?
Any errors logging into the console?
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Fri May 22, 2020 4:16 pm

I gave the editor number 15001 and there were no errors in the console. Strange since I got all the sprites in the mod...
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby Jarewill » Sat May 23, 2020 7:04 am

Hmmm.... Mind showing the code here?
I can only guess so much without it.
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Sat May 23, 2020 2:50 pm

https://drive.google.com/file/d/1ETCiYxr2_0iGRnJrsL_gwmglUDuPPnxt/view?usp=sharing
I uploaded it to Google Drive so you can take a look at it.
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Sat May 23, 2020 2:56 pm

The sprites didn't appear in Doom Builder, and I added the BFGStunLightning actor (line 907). I think i need the BFG Stun sprites.
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby Jarewill » Sat May 23, 2020 3:19 pm

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.
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Sat May 23, 2020 3:20 pm

So all I need is to make 2 markers and the SNDINFO lump?
gman829
 
Joined: 12 May 2018

Re: Tried extracting a monster from a mod, and...

Postby gman829 » Sat May 23, 2020 3:22 pm

And I looked at the sprites the attacks aren't missing.
gman829
 
Joined: 12 May 2018

Next

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests