Decorate weapon problems.

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
User avatar
alysiumX
Posts: 201
Joined: Sat Nov 20, 2004 1:13 pm

Decorate weapon problems.

Post by alysiumX »

So ive followed the guides on the zdoom's documentation yet I cannot get this weapon working. can some one please help me?

Heres what I have so far.

Code: Select all

Decorate

  ACTOR LightSaber: Weapon replaces Chainsaw
  {
     Weapon.SelectionOrder 350
     Inventory.PickupSound "LSPICUP" 
     Weapon.AmmoGive 100 
     Weapon.AmmoUse 0
     AttackSound "LSATTACK" 
     States 
     { 
     Spawn: 
        LSWP A -1 
        Loop
     Ready: 
        LSBG A 2 A_WeaponReady 
        LSBG B 2 A_WeaponReady
        Loop 
     Deselect: 
        LSBG A 1 A_Lower 
        Loop 
     Select: 
        LSBG A 1 A_Raise 
        Loop 
     Fire: 
	LSBG A 2 
	LSBG B 2
	LSBG C 1 A_Punch
	LSBG C 1 A_Punch
	LSBG C 1 A_Punch
	LSBG C 1 A_Punch
	LSBG D 2
	LSBG E 2
	LSBG F 2
	LSBG G 2 A_ReFire
        Goto Ready 
     } 
  }

Code: Select all

KEYCONF

weaponsection MyNewWeapons
setslot 1 LightSaber
According to the documentation this should work but it just give me a missing sprite exclamation point on the chainsaw.
User avatar
Dark-Assassin
Posts: 743
Joined: Thu Mar 19, 2009 3:40 am
Location: South Australia

Re: Decorate weapon problems.

Post by Dark-Assassin »

what exactly is not working???

anyway, try removing "Weapon.SelectionOrder 350"
and
make sure the pickup sprite is between ss_start and ss_end
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Decorate weapon problems.

Post by Cutmanmike »

Ensure that all your weapon sprites are valid sprites and are formatted correctly in your wad (as ds201 said, between SS_START and SS_END lumps if you're in WAD format).

Secondly, make sure you summon or give the weapon to yourself in game. Type Give All on the console and try pressing weapon slot 1.
User avatar
alysiumX
Posts: 201
Joined: Sat Nov 20, 2004 1:13 pm

Re: Decorate weapon problems.

Post by alysiumX »

ok now my console is saying LightSaber at (-480, 848) has no frames...

The sprites are from http://www.doomworld.com/gbd2/weapons/index2.htm i just wanted to replace the dehacked file with a decorate. So all the frames should be in the correct place as I put them back at the coordinate they were before.

I uploaded it, maybe if you can see it, you maybe be able to tell me what im doing wrong.

http://www.mediafire.com/file/f0ojuxhgemj/SWlight.zip

edit: ya i do the give all, since im doing a setslot in my keyconf it should pull up the light saber but it just make the key not do anything.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Decorate weapon problems.

Post by Ceeb »

No frames is caused by a lack of sprites, the sprites being named incorrectly, or not being between the SS_START and SS_END markers...
User avatar
alysiumX
Posts: 201
Joined: Sat Nov 20, 2004 1:13 pm

Re: Decorate weapon problems.

Post by alysiumX »

zOMG, i just figured it out, i was naming them LSBGA, LSBGB, LSBGC, when they need to be named LSBGA0, LSBGB0, LSBGC0. Thanks for the help guys. :D
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Decorate weapon problems.

Post by Ceeb »

alysiumX wrote:zOMG, i just figured it out, i was naming them LSBGA, LSBGB, LSBGC, when they need to be named LSBGA0, LSBGB0, LSBGC0. Thanks for the help guys. :D
...Yeah, you can't forget those frame numbers. :P
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: Decorate weapon problems.

Post by wildweasel »

Ceeb wrote:
alysiumX wrote:zOMG, i just figured it out, i was naming them LSBGA, LSBGB, LSBGC, when they need to be named LSBGA0, LSBGB0, LSBGC0. Thanks for the help guys. :D
...Yeah, you can't forget those frame numbers. :P
Those are ANGLE numbers - in this case, 0 = visible from all angles.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Decorate weapon problems.

Post by XutaWoo »

Hm. I wonder what would happen if you actually gave weapons angle numbers?
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Decorate weapon problems.

Post by Ceeb »

XutaWoo wrote:Hm. I wonder what would happen if you actually gave weapons angle numbers?
It probably wouldn't work. Also, WildWeasel, chill dude. Simple mistake. Either way, our new friend solved his problem. :D
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: Decorate weapon problems.

Post by wildweasel »

Ceeb wrote:
XutaWoo wrote:Hm. I wonder what would happen if you actually gave weapons angle numbers?
It probably wouldn't work. Also, WildWeasel, chill dude. Simple mistake. Either way, our new friend solved his problem. :D
Who says I'm angry about anything? Just because I decide to place emphasis on a word doesn't mean I'm angry. I'm mainly trying to make sure that our newbies don't absorb too much misinformation.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Decorate weapon problems.

Post by Ceeb »

wildweasel wrote:Who says I'm angry about anything? Just because I decide to place emphasis on a word doesn't mean I'm angry. I'm mainly trying to make sure that our newbies don't absorb too much misinformation.
Oh. You just seemed to be snippy with me is all. Sorry, then.

As for misinformation, I'd like to think I'm good at editing, I just forget the terms. :blergh:
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Decorate weapon problems.

Post by Ryan Cordell »

Also, particular parameters in a function do tend to be capitalized all the way, as do certain other words and such. So don't worry.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Decorate weapon problems.

Post by Ceeb »

Blade Nightflame wrote:Also, particular parameters in a function do tend to be capitalized all the way, as do certain other words and such. So don't worry.
In other words, BRIGHT and bright both accomplish the same thing. :)
Locked

Return to “Editing (Archive)”