Jump to content
  • 0

Custom Weapon has no Frames Error


Grum

Question

Hey peeps, first time poster here. I'm working on making my first custom weapon and learning DECORATE scripts. My pk3 file loads into GZDoom just fine but when opening up console command it says "[weapon name] has no frames" and won't load in the custom sprites. I wanted to know if there's something missing in the code that's keeping me from spawning my new weapon.

 

Here's my code: 

 

ACTOR SNOOB-SG: Weapon Replaces Shotgun 20000
{
    Weapon.SelectionOrder 50
    Inventory.PickupMessage "You got the SN00B-SG, wicked!"
    Weapon.AmmoType "Shell"
    Weapon.AmmoUse 1
    Weapon.AmmoGive 35
    Weapon.SlotNumber 3
    
States
{
Spawn: 
    SNOO A -1
Stop
Ready:
    SNOO A 1 A_WeaponReady
Loop
Select:
    SNOO A 1 A_Raise
Loop
Deselect:
    SNOO A 1 A_lower
Loop
Fire:
    SNOO A 4
    SNOO B 4
    SNOO C 4
    SNOO D 4 A_FireBullets(5.5, 3, 6, 8, "BulletPuff", 1)
    SNOO E 5 A_Recoil(3)
    SNOO F 5
    SNOO G 5 
Goto Ready
}
}

 

Let me know if there's anything else I can provide.

Thanks!

 

TutorialShotgun.zip

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0
9 hours ago, ramon.dexter said:

So, what about you first learn how to organize data in an archive?

 

First, zip != wad. When you use zip, use directories to hold data, not namespace markers. These simply dont work with zips. In zips, sprites go to /sprites folder.

 

More here:

https://zdoom.org/wiki/Using_ZIPs_as_WAD_replacement

Ah, that did the trick. I was following a guide on youtube and they were using namespace markers to put the sprites in. The mod works now. Thanks for the help!

Edited by Grum

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...