"Spritenames must be 4 characters"

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
DonaldDuck
Posts: 69
Joined: Sat Jun 11, 2011 6:57 am

"Spritenames must be 4 characters"

Post by DonaldDuck »

I dont know if ZDOOM is trolling me, but it keeps on saying my actors sprite names need exactly 4 characters, and it has already 4 characters?
Maybe I'm just too blind to find the error....

Code: Select all

actor jumper : doomplayer replaces doomplayer
{
  Player.JumpZ 12
  Height 47
  Radius 12
  states
  {
  Spawn:
    SDOM A 0
  SpawnLookLeft:
    SDOM AAAAAAA 1 A_JumpIfInventory("LookingRight",1,"SpawnLookRight");
	loop
  SpawnLookRight:
	SDOM EEEEEEE 1 A_JumpIfInventory("LookingRight",0,"SpawnLookLeft");
	loop
  WalkRight:
    SDOM BBBBBBBBCCCCCCCC 1 A_JumpIfInventory("LookingRight",0,"WalkLeft");
	loop
  See:
  WalkLeft:
    SDOM FFFFFFFFGGGGGGGG 1 A_JumpIfInventory("LookingRight",1,"WalkRight");
	loop
  JumpRight:
    SDOM D 1 A_CheckFloor("SpawnLookRight")
	loop
  JumpLeft:
    SDOM H 1 A_CheckFloor("SpawnLookLeft")
	loop
  }
}
NVM, i found the error. I used semicolons... :oops:
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: "Spritenames must be 4 characters"

Post by Gez »

Yeah, that error message is not always appropriate, since it happens also for problems unrelated to the number of letters in the sprite name.
User avatar
Jimmy
 
 
Posts: 4726
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Re: "Spritenames must be 4 characters"

Post by Jimmy »

Get rid of those semicolons on the A_JumpIfInventory lines. :P
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: "Spritenames must be 4 characters"

Post by Enjay »

When you get a message like this and you can't see anything obvious with the exact bit that the message describes, it's always worth looking either side of the reportedly faulty code because the problem usually lies within a few characters of it.
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Re: "Spritenames must be 4 characters"

Post by amv2k9 »

Yeah, it's only with Strife dialogue scripts that you need to go crazy with semicolons every line :lol:
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: "Spritenames must be 4 characters"

Post by Matt »

Something that's helped me a lot is to use a plaintext editor that shows you the line numbers. That way most of the time you instantly narrow it down to what line is causing the problem.

Notepad2
Leafpad (screenshot thumb in right-hand column)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: "Spritenames must be 4 characters"

Post by Gez »

Vaecrius wrote:Something that's helped me a lot is to use a plaintext editor that shows you the line numbers.
Like SLADE. :3:
User avatar
SFJake
Posts: 531
Joined: Sat Nov 03, 2007 11:28 am

Re: "Spritenames must be 4 characters"

Post by SFJake »

Vaecrius wrote: Notepad2
What?

Why not use Notepad++?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: "Spritenames must be 4 characters"

Post by Xaser »

Because he doesn't.


Is there any particular reason I needed to post this? :(
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: "Spritenames must be 4 characters"

Post by Matt »

Because Notepad++ is slow to load and has a bazillion options I don't need whereas Notepad2's defaults are already known to do like 95% of what I want to do, and the times I want to type something into a plaintext editor rarely if ever coincide with the times I want to fiddle around with the program I'm using?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: "Spritenames must be 4 characters"

Post by NeuralStunner »

I'm baffled at both "slow to load" and "has a bazillion options" (neither has ever been an issue for me), but okay. :P
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: "Spritenames must be 4 characters"

Post by Gez »

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: "Spritenames must be 4 characters"

Post by Graf Zahl »

Gez wrote:I use Programmer's Notepad. :p
I used that, too, but the inability of its creator to fix a critical bug with replacing multibyte characters in UTF-8 documents made me switch to Notepad++.

Vaecrius wrote:Because Notepad++ is slow to load
Bollocks!
and has a bazillion options I don't need whereas Notepad2's defaults are already known to do like 95% of what I want to do, and the times I want to type something into a plaintext editor rarely if ever coincide with the times I want to fiddle around with the program I'm using?
I guess the only response here can be 'you fail it'. I never had any problems with Notepad++'s standard settings. But in general my impression has always been that the simpler the tool, the sooner you will reach its limits.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: "Spritenames must be 4 characters"

Post by Matt »

So I just gave NP++ another try at the office.
  1. I was not mistaken - having both pinned to the taskbar and opening by clicking on each button, NP2 opens virtually instantly while NP++ takes about about a third of a second longer. Hardly a crippling problem, but it's just enough to make visible what should ideally be transparent to the user.
  2. There's no way to get rid of tabs completely. You can get close with that empty-file trick and hiding the tab bar, but hit New Document and you've got a new tab that looks exactly like reused window. I suppose what I want is counter to authorial intent here, but most of my open plaintext document organization is done with differently sized and shaped windows on multiple desktops, and all tabs in one window = chaos for me.
  3. There's no way to remove a keyboard shortcut - and it's not smart enough to delete an old shortcut that is identical to one you've just set.
  4. Certain keyboard shortcut configurations arbitrarily fail to work, or work in bizarre ways. Try to set up a Firefox-like tab movement (ctrl+pageup/down) and you can't move more than one tab without releasing both keys. And a shortcut to the preferences menu simply doesn't work.
  5. Isn't it a bit of a step backward to have no native timestamp function?
  6. Isn't it a bit of a great leap backward to require administrative privileges to install a plugin to a program you could run out of the zip!?
Maybe I just don't do enough coding in enough dozens of languages to appreciate it, but the cons are really outweighing the pros here...

On the bright side, I was reminded to turn on some options in NP2 that I should have had on a long time ago...
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: "Spritenames must be 4 characters"

Post by NeuralStunner »

Vaecrius wrote:There's no way to remove a keyboard shortcut
Erm, yes there is. You set the key to "None".
Locked

Return to “Editing (Archive)”