Page 1 of 1

Adding custom mouse cursors

Posted: Sat Dec 03, 2016 7:01 pm
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.

Re: Trying to troubleshoot the error Parent type not found

Posted: Sat Dec 03, 2016 7:11 pm
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.

Re: Trying to troubleshoot the error Parent type not found

Posted: Sat Dec 03, 2016 9:35 pm
by Vdude
Thank you for your help and quick reply, wildweasel. I should have studied the wiki more thoroughly.

Re: Adding custom mouse cursors

Posted: Sun Dec 04, 2016 11:36 pm
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.

Re: Adding custom mouse cursors

Posted: Sun Dec 04, 2016 11:58 pm
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.

Re: Adding custom mouse cursors

Posted: Mon Dec 05, 2016 1:13 pm
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.