TollyCastle Posted January 17, 2019 This error is showing up and I need help to see what's causing it. 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 } } 0 Quote Share this post Link to post
0 ketmar Posted January 18, 2019 (edited) 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 January 18, 2019 by ketmar 2 Quote Share this post Link to post
0 Empyre Posted January 17, 2019 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. 0 Quote Share this post Link to post
0 Empyre Posted January 17, 2019 I'll need to see what exactly you have in your code to figure out why GZDoom is confused by the DoomEd number. 0 Quote Share this post Link to post
0 TollyCastle Posted January 17, 2019 https://pastebin.com/M66wLbaY 0 Quote Share this post Link to post
0 Empyre Posted January 17, 2019 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. 0 Quote Share this post Link to post
0 therektafire Posted January 18, 2019 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 0 Quote Share this post Link to post
Question
TollyCastle
This error is showing up and I need help to see what's causing it.
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.