Adding custom mouse cursors

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.
Locked
User avatar
Vdude
Posts: 27
Joined: Fri Aug 16, 2013 8:44 pm

Adding custom mouse cursors

Post by Vdude »

Welp, I'm re-purposing this thread for another issue I found, which has nothing to do with the original topic of the thread. This one should be really simple, and that's what's making it really annoying.

I'm trying to add some custom mouse cursors to a mod, and most of them appear as the typical missing texture square, in place of the cursor. Screenshots taken don't show the mouse cursor and right now I can't be bothered to search more on how to do that.

I googled the issue and searched the forums and found nobody with the same issue or with any useful hints.

I have this in the MENUDEF file:

Code: Select all

OptionString "Cursors"
{
	"doomcurs", "Default"
	"skull_curs", "Skull"
	"caco_curs", "Cacodemon"
        "doomguy", "Doom Guy"
	"doomcurs", "Doom"
	"herecurs", "Heretic"
	"hexncurs", "Hexen"
	"strfcurs", "Strife"
	"chexcurs", "Chex"
	"-", "System cursor"
}
The entries skull_curs, caco_curs and doomguy are the custom cursors, and they are linked to the respective graphics inside the same pk3, skull_curs.png, caco_curs.png and doomguy.png. And only the doomguy.png works. I tried converting their color modes to see if it was the issue, tried correcting the res to something similar to the other cursors and nothing, the result is all the same. I can't find out why one cursor works and the other ones don't. I don't think the resolutions matter, since even in the default cursors, their resolutions don't follow any parameter, they're all random and dependent on the shape of the cursor itself. Anyone knows what I'm doing wrong?

I'll leave the cursors uploaded here, for reference.

Best regards.
Attachments
caco_curs.png
caco_curs.png (6.75 KiB) Viewed 1471 times
skull_curs.png
skull_curs.png (6.75 KiB) Viewed 1471 times
doomguy.png
doomguy.png (1.84 KiB) Viewed 1471 times
Last edited by Vdude on Sun Dec 04, 2016 10:44 pm, edited 4 times in total.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Trying to troubleshoot the error Parent type not found

Post by wildweasel »

The problem lies in how #include works - when you include another Decorate lump, that one gets processed before the rest of the lump it got included from. So either move the SmallBulletCartridge into the same file as what it's inheriting from, or put the parent class into another file that gets included before the child type's lump gets included.
User avatar
Vdude
Posts: 27
Joined: Fri Aug 16, 2013 8:44 pm

Re: Trying to troubleshoot the error Parent type not found

Post by Vdude »

Thank you for your help and quick reply, wildweasel. I should have studied the wiki more thoroughly.
User avatar
Vdude
Posts: 27
Joined: Fri Aug 16, 2013 8:44 pm

Re: Adding custom mouse cursors

Post by Vdude »

I forgot to mention that, about the mouse cursor, the wiki only talks about one limitation which is the resolution, that it must be 32x32 max. That rule is being respected.
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

Re: Adding custom mouse cursors

Post by The Zombie Killer »

Shot in the dark, but does it work if you rename skull_curs to skulcurs and caco_curs to cacocurs?
There might be an 8-character limit at play here.
User avatar
Vdude
Posts: 27
Joined: Fri Aug 16, 2013 8:44 pm

Re: Adding custom mouse cursors

Post by Vdude »

Right after posting this yesterday and calling it a day, I remembered that it could be the 8 character limit! The smallest things often go unnoticed, heh.

Thank you, The Zombie Killer, that was it. File name can't have more than 8 characters.
Locked

Return to “Editing (Archive)”