I need some help!

Do you have a question about making weapon mods, or do you just need some tutorials and resources? Ask about all of that here.

Moderator: wildweasel

Locked
dolores49
Posts: 8
Joined: Thu Feb 08, 2007 23:23

I need some help!

Post by dolores49 » Wed Aug 01, 2007 0:12

I get an "Tried to spawn a class-less actor" error, when i try to pick up a weapon piece! Can someone help me, how to fix it?

User avatar
wildweasel
Member, DRD Team
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post by wildweasel » Wed Aug 01, 2007 1:41

All I can offer as advice at this point is, make sure you haven't mistyped anything in your weapon names, and make sure that you actually have the sprite for each piece's Spawn state. The "class-less actor" error usually occurs when something is spawned, but the Spawn state is either missing or is referring to a sprite that does not exist.

User avatar
KeksDose
Run, you crazy dinosaur!
Stronghold Team
Posts: 319
Joined: Thu Apr 12, 2007 21:35
Location: Germany

Post by KeksDose » Wed Aug 01, 2007 16:23

By the way, the better ways we could help you are:
  • Posting your WAD.
  • Posting your code.
So we can investigate.

dolores49
Posts: 8
Joined: Thu Feb 08, 2007 23:23

Assembling weapon

Post by dolores49 » Wed Aug 08, 2007 20:26

Code:

ACTOR SMGASS : Weapon 20045
{
+AMMO_OPTIONAL
Health 2 // defines number of weapon pieces
Weapon.SelectionOrder 700
Inventory.PickupSound "misc/w_pkup"
Inventory.PickupMessage "Osszeraktal egy szuper fegyot a kacatokbol, amiket talaltal."
Weapon.AmmoType "Clip"
Weapon.AmmoGive 50
Weapon.AmmoUse 1
AttackSound "weapons/chngun"
States
{
Spawn:
MGUN A -1
Loop
Ready:
CHGG A 1 A_WeaponReady
Loop
Deselect:
CHGG A 1 A_Lower
Loop
Select:
CHGG A 1 A_Raise
Loop
Fire:
CHGG A 4 A_FireBullets (0, 0, 10, 999, "BulletPuff")
CHGG B 0 A_ReFire
Goto Ready

}
}

ACTOR Piece1 : WeaponPiece 10000
{
WeaponPiece.Number 1
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Gumigolyo? Minek ez nekem?"
Scale 0.04
States
{
Spawn:
S1P1 A -1
}
}

ACTOR Piece2 : WeaponPiece 10001
{
WeaponPiece.Number 2
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Valami illatosito ize."
Scale 0.03
States
{
Spawn:
S1P2 A -1
}
}

ACTOR Piece3 : WeaponPiece 10002
{
WeaponPiece.Number 3
WeaponPiece.Weapon SMGASS
Inventory.PickupMessage "Valami illatosito ize."
Scale 0.03
States
{
Spawn:
S1P2 A -1
}
}

User avatar
TheDarkArchon
Damn right I'm mighty.
Posts: 1000
Joined: Wed Jul 06, 2005 11:58
Location: What's that fucking smell
Contact:

Post by TheDarkArchon » Wed Aug 08, 2007 20:51

And the problem is visible within 2 seconds: There are 3 pieces for a 2 piece weapon.

User avatar
KeksDose
Run, you crazy dinosaur!
Stronghold Team
Posts: 319
Joined: Thu Apr 12, 2007 21:35
Location: Germany

Post by KeksDose » Wed Aug 08, 2007 21:36

Nice one ;)
Define "Health 3", it isn't so difficult to count weapon pieces. ;)

dolores49
Posts: 8
Joined: Thu Feb 08, 2007 23:23

Assembling weapon

Post by dolores49 » Wed Aug 08, 2007 21:46

I changed it to 3, but i still get the error message

Locked

Return to “Weapon Modding Help & Resources”