MP5 Not Working

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
spectre0618
Posts: 13
Joined: Wed Dec 30, 2015 3:14 pm

MP5 Not Working

Post by spectre0618 »

I had it working fine before but decided to change the sprites to my own MP5. Same thing I did with the Colt 45 (which worked) but when I walk over the MP5 in GZDoom it doesn't pick up and when I use the all weapons cheat it doesn't show up in the inventory. Below is the decorate.

Actor MP5 : Weapon 13334
{
Obituary "%o was gunned down by %k's MP5."
AttackSound "Weapons/MP5KFIR"
Inventory.PickupMessage "You got the MP5 submachine gun!"
Weapon.SlotNumber 4
Weapon.KickBack 100
Weapon.AmmoType "Clip"
Weapon.AmmoUse 1
Weapon.AmmoGive 20
Decal "BulletChip"
states
{
Ready:
MP5K A 1 A_WeaponReady
loop
Deselect:
MP5K A 1 A_Lower
loop
Select:
MP5K A 1 A_Raise
loop
Fire:
MP5K A 0 A_ZoomFactor(0.99, ZOOM_NOSCALETURNING)
MP5F A 1 Bright A_FireBullets(3.6, 3.6, -1, 4, "BulletPuff")
MP5K A 1 A_SetPitch(Pitch-0.5)
MP5K B 0 A_ZoomFactor(1, ZOOM_NOSCALETURNING)
MP5F B 1 Bright A_FireBullets (3.6, 3.6, -1, 4, "BulletPuff")
MP5K A 1 A_SetPitch(Pitch-0.5)
MP5K A 0 A_ReFire
goto Ready
Flash:
TNT1 A 1
stop
Spawn:
MP5I A -1
stop
}
}


I'm at a complete loss.
User avatar
edward850
Posts: 5889
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: MP5 Not Working

Post by edward850 »

Does MP5KA0 exist? Have you made absolutely sure it's a valid sprite? ZDoom uses the Ready frame to identify if the weapon actually exists for that game (technically all weapons between Doom, Hexen, Heretic and strife are defined always, so it needs to mark them is in/valid in some way). If the sprite is invalid, you can't give it, select it or pick it up.
spectre0618
Posts: 13
Joined: Wed Dec 30, 2015 3:14 pm

Re: MP5 Not Working

Post by spectre0618 »

edward850 wrote:Does MP5KA0 exist? Have you made absolutely sure it's a valid sprite? ZDoom uses the Ready frame to identify if the weapon actually exists for that game (technically all weapons between Doom, Hexen, Heretic and strife are defined always, so it needs to mark them is in/valid in some way). If the sprite is invalid, you can't give it, select it or pick it up.
Thanks for the quick reply Edward,

Below is a screenshot of the sprites and their order in Slade 3:

Image

This is also the sprite being used for MP5KA0:

Image
spectre0618
Posts: 13
Joined: Wed Dec 30, 2015 3:14 pm

Re: MP5 Not Working

Post by spectre0618 »

I should also add I have it saved as a paletted PNG.
User avatar
edward850
Posts: 5889
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: MP5 Not Working

Post by edward850 »

It's 'MP5KA0' as a zero, where is you have 'MP5KAO' (and 'MP5KBO') as an oʊ. It indicates the the frame rotation number.

Also a friendly reminder to use a modern lump manager, such as Slade3. :P Disregard that.
Last edited by edward850 on Sat Jan 16, 2016 4:57 pm, edited 2 times in total.
spectre0618
Posts: 13
Joined: Wed Dec 30, 2015 3:14 pm

Re: MP5 Not Working

Post by spectre0618 »

edward850 wrote:It's 'MP5KA0' as a zero, where is you have 'MP5KAO' as an oʊ. It indicates the the frame rotation number.

Also a friendly reminder to use a modern lump manager, such as Slade3. :P
I actually do use Slade 3 but you were bang on about the "O" issue. Lol, I rewrote and reorganized the decorate file, changed ID# and all sorts of other crap and it was just a single wrong character all along. Good eye and thanks for the assist :)
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: MP5 Not Working

Post by wildweasel »

edward850 wrote:Also a friendly reminder to use a modern lump manager, such as Slade3. :P
Except that's what he is using. =P
User avatar
edward850
Posts: 5889
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: MP5 Not Working

Post by edward850 »

You're right; how did I miss that? I swear I'm not drunk or anything. This is perfectly normal untainted coffee. Honest.
I think it was the old theme style that threw me off, actually.
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: MP5 Not Working

Post by ramon.dexter »

I noticed that you have S_START and S_END and then the same below...Maybe this is causing the problems.
User avatar
edward850
Posts: 5889
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: MP5 Not Working

Post by edward850 »

By reading the thread, you'll notice the problem was already solved. :|
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: MP5 Not Working

Post by wildweasel »

ramon.dexter wrote:I noticed that you have S_START and S_END and then the same below...Maybe this is causing the problems.
Actually, no, that isn't the problem at all. One common method of keeping things organized in WAD files is to separate the resources into sections, using markers to divide them. A few of my later WAD-based gameplay mods had the resources divided into per-weapon sections. That appears to be what the OP is trying to do here, and is not at all the reason he was having problems earlier.
User avatar
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

Re: MP5 Not Working

Post by enderkevin13 »

Sorry to go off topic, but why exactly are you using WIndows 98 or Millenium?
User avatar
edward850
Posts: 5889
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: MP5 Not Working

Post by edward850 »

enderkevin13 wrote:Sorry to go off topic, but why exactly are you using WIndows 98 or Millenium?
Well for a start that's Windows 7. Neither 98 nor ME can run GZDB, and the task bar icons alone is a very good indicator that it's not even Vista (task bar applications existing as icons started at 7). Have you ever used 98 or ME?
User avatar
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

Re: MP5 Not Working

Post by enderkevin13 »

edward850 wrote:
enderkevin13 wrote:Sorry to go off topic, but why exactly are you using WIndows 98 or Millenium?
Well for a start that's Windows 7. Neither 98 nor ME can run GZDB, and the task bar icons alone is a very good indicator that it's not even Vista (task bar applications existing as icons started at 7). Have you ever used 98 or ME?
Yes, in fact, ME was the first OS I used. Well I think it was 98. I was 4, so I couldn't tell the difference back then. It might have been ME though.
Locked

Return to “Editing (Archive)”