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

'@property@inventory.pickupmessage' is an unknown actor property

Question

This error is showing up and I need help to see what's causing it.
image.png.1d35dd5b62c2fa1c66172c39de61d83e.png 
The code causing this is
 actor Machinegun : 15170
{
  obituary "%o was gunned down by %k's machinegun."
  radius 20
  height 16
  attacksound "MGun/Fire"
  decal "BulletChip"
(line 331)  inventory.pickupmessage "You got the machinegun!"
  weapon.selectionorder 700
  weapon.kickback 100
  weapon.ammotype "Clip"
  weapon.ammouse 1
  weapon.ammogive 20
  states
  {
  Ready:
    RGUN A 1 A_WeaponReady
    loop
  Deselect: 
    RGUN A 1 A_Lower
    loop
  Select:
    RGUN A 1 A_Raise
    loop
  Fire:
    RGUN B 0 A_FireBullets (7, 6, 1, 6, "BulletPuff")
    RGUN B 0 radius_quake (2, 2, 0, 1, 0)
    RGUN BC 1 A_GunFlash
    RGUN A 2 
    RGUN A 0 A_ReFire
    RGUN A 5
    goto Ready
  Flash:
    TNT1 A 1 bright A_Light1
    TNT1 B 1 bright A_Light2
    TNT1 A 0 bright A_Light0
    stop
  Spawn:
    RGUP A -1
    stop
  }
}

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 0

meh, this is the easy one: you have unicode BOM chars there, right after the number. remove them, and you'll be fine.

 

p.s.: note that those chars may be invisible in some editors. so you can just delete the whole line and retype it. don't copy-paste, retype it from scratch.

Share this post


Link to post
  • 0

In order to make a weapon, you actor has to inherit from an existing weapon, or from the Weapon base class.  Try changing your first line to:

actor Machinegun : Weapon 15170

 

The Weapon itself inherits from Inventory, which is where Inventory.Pickupmessage is defined.

Share this post


Link to post
  • 0

I'll need to see what exactly you have in your code to figure out why GZDoom is confused by the DoomEd number.

Share this post


Link to post
  • 0

That's weird.  The code looks fine to me, and you have other weapons earlier in the code defined exactly the same way: actor <ActorName> : weapon <DoomEdNumber>.  I'm afraid that this problem is over my head.  There is still a good chance that somebody else here will be able to help you.

Share this post


Link to post
  • 0

Yes and preferably don't edit it in Notepad (if youre on Windows), I had a similar issue with Eureka's config files back when I was using that where I edited the file in Notepad and it added some extra bytes to the beginning that eureka didn't like so it would refuse to load

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
×