What's wrong with this weapon?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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
User avatar
Tartlman
Posts: 226
Joined: Thu Oct 11, 2018 5:24 am
Location: meme hell
Contact:

What's wrong with this weapon?

Post by Tartlman »

Hello,

I have just started getting in to modding and I have tried to put together a weapon. However, there are a few problems:
1.) The weapon will not spawn in to the game.
2.) using give commands does not give the weapon.
I am very new to modding, so don't use any language that's too complicated :)

Here's the file:
Attachments
argentenergy.wad
sprite and sound credits to skelegant's doom mower mod
(63.67 KiB) Downloaded 18 times
User avatar
ramon.dexter
Posts: 1529
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: What's wrong with this weapon?

Post by ramon.dexter »

Well, all you did is to dump the files into wad without any order. That cannot work this way - wad has to have the files structured in order to work.
So, check this page and make order in your wad. Basically, sprites has to be between S_START and S_END marks, so engine can find them. The weapon presently dont work because of missing sprite graphics. The ordering of wad is described here:
https://zdoom.org/wiki/WAD

Also, do you have any particular reason for 2 decorate files?

edit: corrected typos ;)
Last edited by ramon.dexter on Fri Nov 02, 2018 11:23 am, edited 3 times in total.
User avatar
Tartlman
Posts: 226
Joined: Thu Oct 11, 2018 5:24 am
Location: meme hell
Contact:

Re: What's wrong with this weapon?

Post by Tartlman »

I don't really know much about decorate, i was basing this off of code from someone else's code
I'll try to fix the order as soon as I can.
Post Reply

Return to “Scripting”