Sup. I continued working with monsters with DecoHACK but now there are some problems that doesn't let me create new lost souls for Doom. I'm trying to add the Lost Soul from the Famine monster in Realm667, so, I tried using the original Lost Soul code as a reference:
Spoiler
classLostSoul:Actor{// Just the states part is relevant in my issue, complete code can be found in Zdoom wikiStates{Spawn:
SKUL AB 10 BRIGHT A_Look;Loop;See:
SKUL AB 6 BRIGHT A_Chase;Loop;Missile:
SKUL C 10 BRIGHT A_FaceTarget;
SKUL D 4 BRIGHT A_SkullAttack;
SKUL CD 4 BRIGHT;GotoMissile+2;Pain:
SKUL E 3 BRIGHT;
SKUL E 3 BRIGHT A_Pain;GotoSee;Death:
SKUL F 6 BRIGHT;
SKUL G 6 BRIGHT A_Scream;
SKUL H 6 BRIGHT;
SKUL I 6 BRIGHT A_NoBlocking;
SKUL J 6;
SKUL K 6;Stop;}}
There is the original code
So based on that code, I made one for the Famine soul in DecoHACK
Spoiler
thing 161"FamineSoul"{//$Color 5//$Category MonstersEdNum15005Health50Speed12Radius12Height24+SHOOTABLE
+SOLID
+NOGRAVITY
+FLOAT
AttackSound"FMNATK"SeeSound"FMNSOL"PainSound"DMPAIN"DeathSound"FIRXPL"ActiveSound"DMACT"
states
{Spawn:
HLLS AB 10Bright A_Look
LoopSee:
HLLS AB 6Bright A_Chase
LoopMissile:
HLLS C 10Bright A_FaceTarget
HLLS D 4Bright A_SkullAttack
HLLS CD 4BrightGotoMissilePain:
HLLS E 3Bright
HLLS E 3Bright A_Pain
GotoSeeDeath:
HLLS F 6Bright
HLLS G 6Bright A_Scream
HLLS H 6Bright
HLLS I 6Bright A_Fall
HLLS J 6
HLLS K 6Stop}}
At first, everything seems to be great, but Missile code has a difference, and I don't know if that's the issue, but DecoHACK doesn't allow me to add "Goto Missile+2" state.
Btw, if I run the DeHackEd patch with my wad, in the map the monsters work correctly, and also attack me (But they cannot low my health, idk why) but it's like random, but in any moment DSDA-Doom just crashes with the signal 8 (0x0000).
At first, I thought it was because of sound format, Idk why, but exporting those sounds gave me a different result, but they still wav and 11025 hz, alike the other custom sounds. Then, I tried making a Missile2 state, but I don't get really why missile state is like that, I see it kinda infinite. As I said, I tried adding Missile+2, but DecoHACK just doesn't let me.
In Zdoom code, it has these flags: +MISSILEMORE +DONTFALL +NOICEDEATH +ZDOOMTRANS +RETARGETAFTERSLAM
But as I was expecting tho, neither DecoHACK nor MBF21 support these flags.
The game usually crashes just when they're close and trying to attack me, but sometimes when I shot them, it also crashed. So I commented A_SkullAttack lines and then they didn't crashed the game UNTIL I shot them.
So I'm really lost about the solution, because it looks like it might happen when they're close, but also when they're damaged, also when they're attacking but it just suddendly happens, the only clue that I may have is the missing Missile+2 state, but as I've said, DecoHACK just doesn't support this.
Question
SynarchyBattleDoge
Sup. I continued working with monsters with DecoHACK but now there are some problems that doesn't let me create new lost souls for Doom. I'm trying to add the Lost Soul from the Famine monster in Realm667, so, I tried using the original Lost Soul code as a reference:
There is the original code
So based on that code, I made one for the Famine soul in DecoHACK
At first, everything seems to be great, but Missile code has a difference, and I don't know if that's the issue, but DecoHACK doesn't allow me to add "Goto Missile+2" state.
Btw, if I run the DeHackEd patch with my wad, in the map the monsters work correctly, and also attack me (But they cannot low my health, idk why) but it's like random, but in any moment DSDA-Doom just crashes with the signal 8 (0x0000).
At first, I thought it was because of sound format, Idk why, but exporting those sounds gave me a different result, but they still wav and 11025 hz, alike the other custom sounds. Then, I tried making a Missile2 state, but I don't get really why missile state is like that, I see it kinda infinite. As I said, I tried adding Missile+2, but DecoHACK just doesn't let me.
In Zdoom code, it has these flags: +MISSILEMORE +DONTFALL +NOICEDEATH +ZDOOMTRANS +RETARGETAFTERSLAM
But as I was expecting tho, neither DecoHACK nor MBF21 support these flags.
The game usually crashes just when they're close and trying to attack me, but sometimes when I shot them, it also crashed. So I commented A_SkullAttack lines and then they didn't crashed the game UNTIL I shot them.
So I'm really lost about the solution, because it looks like it might happen when they're close, but also when they're damaged, also when they're attacking but it just suddendly happens, the only clue that I may have is the missing Missile+2 state, but as I've said, DecoHACK just doesn't support this.
Share this post
Link to post
16 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.