TXD1230 Posted April 13, 2020 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 } } 0 Share this post Link to post
Nevander Posted April 13, 2020 Does the sprite SNPDA exist in your WAD? 0 Share this post Link to post
TXD1230 Posted April 13, 2020 13 hours ago, Nevander said: Does the sprite SNPDA exist in your WAD? yes 0 Share this post Link to post
Gaia74 Posted April 13, 2020 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 0 Share this post Link to post
TXD1230 Posted April 13, 2020 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? 0 Share this post Link to post
Kappes Buur Posted April 13, 2020 (edited) 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. 1 Share this post Link to post
TXD1230 Posted April 13, 2020 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? 0 Share this post Link to post
Gaia74 Posted April 14, 2020 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 0 Share this post Link to post
TXD1230 Posted April 14, 2020 (edited) I did just that, but now the weapon is invisible and I can’t collect it 0 Share this post Link to post
Gaia74 Posted April 14, 2020 (edited) 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 0 Share this post Link to post
TXD1230 Posted April 15, 2020 (edited) 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 April 15, 2020 by TXD1230 : Sorry I make too much edits 0 Share this post Link to post
Gaia74 Posted April 15, 2020 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 0 Share this post Link to post
TXD1230 Posted May 2, 2020 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? 0 Share this post Link to post
Kappes Buur Posted May 2, 2020 I guess line 1 refers to the actor itself actor classname [ : parentclassname] [replaces replaceclassname] [doomednum] Is it in that form? 0 Share this post Link to post
TXD1230 Posted May 3, 2020 On 5/2/2020 at 11:38 AM, Kappes Buur said: I guess line 1 refers to the actor itself actor classname [ : parentclassname] [replaces replaceclassname] [doomednum] Is it in that form? yes 0 Share this post Link to post