Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
TXD1230

custom weapon shows exclamation mark when custom weapon is spawned

Recommended Posts

I made a custom weapon with DECORATE, did all the steps to do so, after hours, the wad worked, but the weapon only showed an exclamation mark, and could not collect the weapon, when I went In the console, it said: "sniperrifle at (-608.0, 64.0) has no frames"

 

here's my decorate code:

 

ACTOR SniperRifle : DoomWeapon 666
  {
     Weapon.SelectionOrder 100
     Weapon.AmmoGive 4
     Weapon.AmmoUse 1
     Weapon.SlotNumber 4
  Inventory.PickupMessage "You pick up a sniper rifle, it has blood on its handle, but it still works."
     AttackSound "/SNIATCK"
 
   States
     {
  Spawn:

  SNPD A -1
        Stop
  
   Ready:
        SNPR A 1 A_WeaponReady
        Loop
  
  Deselect:
        SNPR A 1 A_Lower
        Loop
  
     Select:
        SNPR A 1 A_Raise
        Loop
  
  Fire:
        SNPR A 3
        SNPR A 0 A_FireBullets (0, 0, 1, 80, BulletPuff)
        SNPR A 0 A_GunFlash
        SNPR C 7 A_CheckReload
        SNPR A 5 A_ReFire
        Goto Ready
  
   Flash:
        SNPF A 0 BRIGHT A_Light2
        Stop
}
}

Screenshot_Doom_20200412_202508.png

Share this post


Link to post

this means that the sprites are not inside the wad, check if they are inside the wad, and if they are, then add the SS_START and SS_END markers

Share this post


Link to post
1 minute ago, Gaia74 said:

this means that the sprites are not inside the wad, check if they are inside the wad, and if they are, then add the SS_START and SS_END markers

i'm very new to acs, where do I put the SS_START and SS_END?

Share this post


Link to post
17 minutes ago, TXD1230 said:

i'm very new to acs, where do I put the SS_START and SS_END?

 

SS_ or S_ markers have nothing to do with acs.

These markers are used to denote the images as sprites.

 

A DOOM pwad can use many such markers as namespaces.

To enter such namespaces into your pwad use a lump editor such as Slade3.

 

Open up an IWAD or a PWAD of your choice to see how it is structured. But do not edit an IWAD.

 

Share this post


Link to post
1 hour ago, Gaia74 said:

this means that the sprites are not inside the wad, check if they are inside the wad, and if they are, then add the SS_START and SS_END markers

I added the S_START and S_END, put the sprites inside the markers, and modified my DECORATE:

 

(0: worldmodel, 1: muzzle flash, 2: viewmodel)

 

ACTOR SniperRifle : DoomWeapon 666
  {
     Weapon.SelectionOrder 100
     Weapon.AmmoGive 4
     Weapon.AmmoUse 1
     Weapon.SlotNumber 4
  Inventory.PickupMessage "You pick up a sniper rifle, it has blood on its handle, but it still works."
     AttackSound "/SNIATCK"
 
   States
     {
  Spawn:

  SNPD A 0
        Stop
  
   Ready:
        SNPR A 2 A_WeaponReady
        Loop
  
  Deselect:
        SNPR A 2 A_Lower
        Loop
  
     Select:
        SNPR A 2 A_Raise
        Loop
  
  Fire:
        SNPR A 1
        SNPR A 2 A_FireBullets (0, 0, 1, 80, BulletPuff)
        SNPR A 2 A_GunFlash
        SNPR C 2 A_CheckReload
        SNPR A 2 A_ReFire
        Goto Ready
  
   Flash:
        SNPF A 1 BRIGHT A_Light2
        Stop
}
}

 

And now I got an error:

"R_InstallSprite: Sprite SNPF frame A is missing rotations"

am I doing something wrong?

Share this post


Link to post

That's because rotations are missing from that sprite, but since it's a weapon, its rotation number must have been 0, so make sure the name of the sprite SNPF is SNPFA0

Share this post


Link to post
22 hours ago, TXD1230 said:

Spawn:

  SNPD A 0
        Stop

This should be like this:

 

Spawn:

MGUN A -1

Stop

 

Change the number, and then try the weapon, if not then check if you can at least get the weapon through cheats

Share this post


Link to post

I replaced the 0 into -1, still nothing appeared, but I could get the weapon even though nothing appeared, The view model was working, but when I hit the fire button, the stupid thing fires like a sub machine gun and the fire animation doesn’t show, I wanted the gun to fire like an sniper rifle, the fire sound doesn’t play

Edited by TXD1230 : Sorry I make too much edits

Share this post


Link to post

It seems that it is a problem of your sprites, also of your decorate, that is not difficult at all to fix, increase the tics of your fire animation, and also see what is wrong with your sprites

Share this post


Link to post

I now have a new error when I run the game:

 

I was just testing my map, then this error showed up out of nowhere:

Script error, "ARCHVILEPARK.WAD:DECORATE" line 1:

Script error, "ARCHVILEPARK.WAD:DECORATE" line 1:

Tried to define class 'SniperRifle' more than twice in the same file.

 

the last time I ran the wad it worked,

is there something wrong with DECORATE?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×