when im making weapon mods the sprites don't work

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
consty
Posts: 4
Joined: Fri Feb 07, 2020 8:27 pm
Graphics Processor: Not Listed

when im making weapon mods the sprites don't work

Post by consty »

hi i always been a fan of doom moding and i made a bunch of maps. but the sprites never semed to work for me because they never show up.

i used gunlab's tutorial on spriting and weapon making but never worked

someone can help me?
User avatar
Dan_The_Noob
Posts: 880
Joined: Tue May 07, 2019 12:24 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: when im making weapon mods the sprites don't work

Post by Dan_The_Noob »

put your code up so we can see if anything doesn't look right.
Jarewill
 
 
Posts: 1855
Joined: Sun Jul 21, 2019 8:54 am

Re: when im making weapon mods the sprites don't work

Post by Jarewill »

It may either be an issue with the code or the sprite offsets.

So, let's make sure the offsets are correct first.
There's this handy tutorial made by Enjay for that.

But even then, if it is a weapon you made sprites for, then it should at least appear in top left corner without offsets.

In case this is not an issue of offsets, follow Dan_The_Noob's advice and post the code here, so we can see what's wrong.
consty
Posts: 4
Joined: Fri Feb 07, 2020 8:27 pm
Graphics Processor: Not Listed

Re: when im making weapon mods the sprites don't work

Post by consty »

here's the files

https://www47.zippyshare.com/v/jt3dYo5A/file.html

i don't think the problem is with the files it selfe, but may be with the wad
User avatar
4page
Posts: 121
Joined: Tue Aug 06, 2019 5:08 pm
Location: American Pacific Northwest

Re: when im making weapon mods the sprites don't work

Post by 4page »

In the decorate file you've got the frames referencing files that don't exist.

Code: Select all

ready:
here -> PITA A 1 A_WEAPONREADY
	   loop
	   
	   select:
	 ->    PITA A 1 A_RAISE
	   loop
	   
	   deselect:
	->     PITA A 1 A_LOWER
	   loop
They should be PITG, since that's what you've named the image of the regular gun.
consty
Posts: 4
Joined: Fri Feb 07, 2020 8:27 pm
Graphics Processor: Not Listed

Re: when im making weapon mods the sprites don't work

Post by consty »

THANK'S 4page it worked

how dumb i was
Post Reply

Return to “Scripting”