decorate is irritating

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.
deader-man
Posts: 32
Joined: Tue Jan 13, 2009 12:35 am

decorate is irritating

Post by deader-man »

I was makin a new weapon, like a sort of overpowered/realistic shotgun. i read all the stuff on decorate and trie dit and it WONT WORK what the f!! here is my decorate:
actor mega shotgun : replaces shotgun
{
weapon.ammouse 1
weapon.ammogive 8
weapon,ammotype shell

states
{
select:
shot a 1 a_weaponraise
deselect:
shot a 1 a_weaponlower
ready:
shot a 1 a_weaponready
fire:
shot a 1
shot b 1 a_firebullets(30,30.100,20)
shot c 1
shot d 1
shot e 1
shot f 1
shot g 1
shot h 1
shot i 1 a_refirte
goto ready
}
so how do i fix this i am at a loss this is REALLY damn annoying!
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Re: decorate is irritating

Post by TheDarkArchon »

deader-man
Posts: 32
Joined: Tue Jan 13, 2009 12:35 am

Re: decorate is irritating

Post by deader-man »

ill fix my post to try and figure out the code tags you say i noticed other people using them but cant figure out how. illl re-read that decorate thing too. still this is annoying my decorate LOOKS error free for fs sake!
deader-man
Posts: 32
Joined: Tue Jan 13, 2009 12:35 am

Re: decorate is irritating

Post by deader-man »

Code: Select all

actor mega shotgun : shotgun replaces shotgun 100
{
weapon.ammouse 1
weapon.ammogive 8
weapon.ammotype shell

states
{
select:
shot a 1 a_weaponraise
deselect:
shot a 1 a_weaponlower
ready:
shot a 1 a_weaponready
fire:
shot a 1
shot b 1 a_firebullets(30,30.100,20)
shot c 1
shot d 1
shot e 1
shot f 1
shot g 1
shot h 1
shot i 1 a_refirte
goto ready
}
here is my fixed post i also fixed a couple errors i found but it still wont run!! THIS IS STUPID
User avatar
Zhs2
Posts: 1301
Joined: Fri Nov 07, 2008 3:29 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Maryland, USA, but probably also in someone's mod somewhere
Contact:

Re: decorate is irritating

Post by Zhs2 »

Well, you fixed most of your errors... but:

A_Refire, not A_Refirte
A_Lower, not A_WeaponLower
A_Raise, not A_WeaponRaise
Last edited by Zhs2 on Fri Jan 16, 2009 7:57 pm, edited 1 time in total.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: decorate is irritating

Post by XutaWoo »

Also, THIS is the stupidest DECORATE mistake I've every seen. :lol:

You forgot to close your states, so the gun will keep falling through it's states until it his "Fire," which is closed.

Replace

Code: Select all

select:
shot a 1 a_weaponraise
deselect:
shot a 1 a_weaponlower
ready:
shot a 1 a_weaponready
with

Code: Select all

select:
shot a 1 a_weaponraise
loop
deselect:
shot a 1 a_weaponlower
loop
ready:
shot a 1 a_weaponready
loop
Although you don't even need those states anyway, since they're already defined by the regular Shotgun. You can just make it only have a Fire state and it will work.
deader-man
Posts: 32
Joined: Tue Jan 13, 2009 12:35 am

Re: decorate is irritating

Post by deader-man »

okay thanks for the help let me try fixing what you guys said
deader-man
Posts: 32
Joined: Tue Jan 13, 2009 12:35 am

Re: decorate is irritating

Post by deader-man »

WHAT THE HECK IT STILL WONT WORK OH MY GOD

Code: Select all

actor mega shotgun : shotgun replaces shotgun 100
{
weapon.ammouse 1
weapon.ammogive 8
weapon.ammotype shell

states
{
select:
shot a 1 a_raise
loop
deselect:
shot a 1 a_lower
loop
ready:
shot a 1 a_ready
loop
fire:
shot a 1
shot b 1 a_firebullets(30,30.100,20)
shot c 1
shot d 1
shot e 1
shot f 1
shot g 1
shot h 1
shot i 1 a_refire
goto ready
}
}
this is really beginning to PISS ME OFF WHY is zdoom being SO [censored word]
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: decorate is irritating

Post by Ceeb »

MAYBE IT'S BECAUSE YOUR CODE IS [censored word].

Now then...

Code: Select all

(30,30.100,20)
Why is there a period in there? And you need to capitalize your sprite names/frame letters. SHOT A is correct, shot a is not.
deader-man
Posts: 32
Joined: Tue Jan 13, 2009 12:35 am

Re: decorate is irritating

Post by deader-man »

THIS IS SO FING STUPID WHO MADE DECORATE AND ZDOOM!!! WHY WONT IT WORK UGH I FIXED AL L THE FUCKING ERRORS NOW IM SO PISSED!!

Code: Select all

actor mega shotgun : shotgun replaces shotgun 100
{
weapon.ammouse 1
weapon.ammogive 8
weapon.ammotype shell

states
{
select:
shot a 1 a_raise
loop
deselect:
shot a 1 a_lower
loop
ready:
shot a 1 a_ready
loop
fire:
shot a 1
shot b 1 a_firebullets(30,30,100,20)
shot c 1
shot d 1
shot e 1
shot f 1
shot g 1
shot h 1
shot i 1 a_refire
goto ready
}
}
ZDOOM SUCKS!!
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: decorate is irritating

Post by bagheadspidey »

Relax beavis. There's a space in your class name. Try replacing it with an underscore.

Also put quotes around "ready" near that last line.

Also chill out with the ZDOOM SUCKS stuff, we all like zdoom fine and most of us can handle a few lines of decorate so you're only making yourself look bad.
User avatar
esselfortium
Posts: 3862
Joined: Tue Sep 19, 2006 8:43 pm
Contact:

Re: decorate is irritating

Post by esselfortium »

Image
deader-man
Posts: 32
Joined: Tue Jan 13, 2009 12:35 am

Re: decorate is irritating

Post by deader-man »

dude quit giving me bad advice YOU ASSHOLE I added an underscore and it did nothing
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: decorate is irritating

Post by Ceeb »

deader-man wrote:dude quit giving me bad advice YOU ASSHOLE I added an underscore and it did nothing
You pinhead, read what I told you. Make your sprite names and frame letters capital. :blergh:

EDIT

And in Ready, you need to put A_WeaponReady.
User avatar
yomoneyboat
Posts: 8
Joined: Sun Dec 02, 2007 11:00 am

Re: decorate is irritating

Post by yomoneyboat »

I love this thread
Locked

Return to “Editing (Archive)”