Page 1 of 1

Decorate weapon problems.

Posted: Fri Apr 24, 2009 8:51 am
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.

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 9:28 am
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

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 9:36 am
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.

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 9:38 am
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.

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 12:10 pm
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...

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 12:18 pm
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

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 1:16 pm
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

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 10:33 pm
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.

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 11:13 pm
by XutaWoo
Hm. I wonder what would happen if you actually gave weapons angle numbers?

Re: Decorate weapon problems.

Posted: Fri Apr 24, 2009 11:24 pm
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

Re: Decorate weapon problems.

Posted: Sat Apr 25, 2009 12:40 am
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.

Re: Decorate weapon problems.

Posted: Sat Apr 25, 2009 2:34 pm
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:

Re: Decorate weapon problems.

Posted: Sun Apr 26, 2009 5:40 pm
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.

Re: Decorate weapon problems.

Posted: Sun Apr 26, 2009 6:02 pm
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. :)