Unable to find sprite lump....

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
MC-Klappstuhl
Posts: 2
Joined: Wed Feb 02, 2022 4:53 am
Location: Germany

Unable to find sprite lump....

Post by MC-Klappstuhl »

Hey guys, I´m mapping for 2 months now, but now I started to create an actor class with Zscript.

I created the script,

class WhiteTree: Actor
{
Default
{
Radius 32;
Height 128;
ProjectilePassHeight -16;
+SOLID
}
States
{
Spawn:
TWIG A -1; // setting duration to -1 makes it not animate
Stop;
}
}

added Mapinfo,
DoomEdNums
{
255 = WhiteTree
}
added the file into a single wad, converted, adjusted offset,


started UDB, included the .wad with the file, and then:


And yeah, it appears in UDB, i can even select it as a thing, but instead of a sprite there is a white Exclamation Mark inside of a yellow sphere. It has collision in game, bit it´s invisible. I tried to edited the script with "TRE2", and that works, while I load freedoom1.wad.

What did I do wrong? What did id forget? Somehow it doesn´t load the sprite...
Any help is appriciated, If you need any additional Info just say it.
User avatar
Player701
 
 
Posts: 1710
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Unable to find sprite lump....

Post by Player701 »

  1. Your lump needs to be called TWIGA0 instead of just TWIGA.
  2. You have to place the sprites between S_START/S_END markers instead of P_START/P_END. The former is for sprites, the latter is for patches.
MC-Klappstuhl
Posts: 2
Joined: Wed Feb 02, 2022 4:53 am
Location: Germany

Re: Unable to find sprite lump....

Post by MC-Klappstuhl »

Oh, how dumb I am, thank you, it worked!
Post Reply

Return to “Scripting”