Custom decorative object is invisible in game?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Custom decorative object is invisible in game?

Post by Hidden Hands »

I've spent hours trying to fix this annoying problem and nothing is working. I have a custom object in my game only for decorative purposes but it does NOT show up in game. Shows up fine in the editor, but not in the game itself. The item code is this:

Code: Select all

ACTOR PairOfGlasses 5533
{
//$Category Decoration
//$Title Pair Of Glasses
//$Sprite GLSSA0
  Scale 0.1
  Radius 8
  Height 8
  States
  {
  Spawn:
    GLSS A -1
	Stop
  }
}
and the sprite is a PNG file called GLSSA0. Why is this happening? I am near certain I have faced this issue in the past before, but searching back through my old posts I could not find ANYTHING on it, so I must be mistaken. Help?

Thanks in advance.
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: Custom decorative object is invisible in game?

Post by Jarewill »

Show how your file structure is set up.
It might be the case of your sprite not being loaded due to not being between proper markers. (S_START and S_END)
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Re: Custom decorative object is invisible in game?

Post by Hidden Hands »

Ah. Well in my game, it's in an ipk3 folder directory series called SPRITES>DECORATIONS. I've attached a screenshot as reference.
Attachments
glasses error.png
chikokevo
Posts: 83
Joined: Tue May 31, 2016 9:42 am

Re: Custom decorative object is invisible in game?

Post by chikokevo »

Jarewill wrote:Show how your file structure is set up.
It might be the case of your sprite not being loaded due to not being between proper markers. (S_START and S_END)
I use ss_start & ss_end
chikokevo
Posts: 83
Joined: Tue May 31, 2016 9:42 am

Re: Custom decorative object is invisible in game?

Post by chikokevo »

Hidden Hands wrote:Ah. Well in my game, it's in an ipk3 folder directory series called SPRITES>DECORATIONS. I've attached a screenshot as reference.
I did not get it, sorry..
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: Custom decorative object is invisible in game?

Post by Jarewill »

Hidden Hands wrote:Ah. Well in my game, it's in an ipk3 folder directory series called SPRITES>DECORATIONS. I've attached a screenshot as reference.
Hmmmm, odd.
Having subfolders in the sprites folder should work.
Maybe the offsets aren't set correctly?

Could you upload your file here so it can be checked?
Post Reply

Return to “Scripting”