Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Canofbacon

Custom Weapon Help

Recommended Posts

This may be a dumb question, but I'm trying to add a custom weapon to my map and when I run the map in Doom Builder 2 it shows up and I can pick it up and it shoots and everything works fine. Yet when I try and run the map my dragging the WAD file on top of zdoom.exe, it only shows a yellow exclamation point error. Can someone please tell me how to fix this?

Share this post


Link to post

Could you post the DECORATE code for the weapon?
Does the weapon spawn if you go into the ZDoom console and type "Summon <Weapon Name>"?

Share this post


Link to post
jdagenet said:

Could you post the DECORATE code for the weapon?
Does the weapon spawn if you go into the ZDoom console and type "Summon <Weapon Name>"?


Here is the DECORATE:

actor Colt45 : Weapon 5757
{
Weapon.SelectionOrder 1900
Weapon.AmmoUse 1
Weapon.AmmoGive 20
Weapon.AmmoType "Clip"
AttackSound "Weapon/COLTFIRE"
Weapon.SlotNumber 2
Obituary "%o was Killed by %k's Colt45."
+WEAPON.WIMPY_WEAPON
Inventory.Pickupmessage "Picked up a Colt45."
States
{
Ready:
COLT A 1 A_WeaponReady
Loop
Deselect:
COLT A 1 A_Lower
Loop
Select:
COLT A 1 A_Raise
Loop
Fire:
COLT A 0
COLF A 1 A_FireBullets(5.2,1,1,7.5)
COLF A 1 A_Light2
COLF A 1 A_Light1
COLT B 3 A_Light0
COLT CDE 3
COLT B 3 A_ReFire
Goto Ready
Flash:
COLF A 3 Bright A_Light1
COLF A 3 Bright A_Light0
Goto LightDone
Spawn:
COLP A -1
Stop
}
}

I tried to summon it and it didn't work.

Share this post


Link to post

I see nothing special in the code. So the only things that crosses my mind:

  • Are you absolutely sure that the wad you've been editing is the same you are now trying to run in ZDoom? Sorry for being so daringly mistrustful, but I know it can happen and it happened to me that I accidentaly did run old versions of my maps instead of new.
  • Try to change the Actor number.
  • Try to inherit from DoomWeapon instead of Weapon

Share this post


Link to post

Also, unless your weapon is in the map wad itself, make sure that you're pasting both the colt45 wad and your map on the ZDoom.exe when you go to play it.

Share this post


Link to post
jdagenet said:

Also, unless your weapon is in the map wad itself, make sure that you're pasting both the colt45 wad and your map on the ZDoom.exe when you go to play it.


Pasting both of them worked! Thank you. Now can you tell me how to combine both of them into one WAD please? :)

Share this post


Link to post

You can use a wad editor such as SLADE 3 and open up both of the wads. Once they're both open, just copy all of the entries from the Colt45 wad and simply paste them in your wad. :)

Share this post


Link to post
jdagenet said:

You can use a wad editor such as SLADE 3 and open up both of the wads. Once they're both open, just copy all of the entries from the Colt45 wad and simply paste them in your wad. :)


Thanks.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×