Jump to content
  • 0

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


TollyCastle

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.

Edited by ketmar

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...