Gamestudio Links
Zorro Links
Newest Posts
nba2king Latest Roster Update Breakdown
by joenxxx. 10/14/25 06:06
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 9,184 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
mouse_map crashes the .exe #409388
10/16/12 11:46
10/16/12 11:46
Joined: Oct 2012
Posts: 4
V
viccie211 Offline OP
Guest
viccie211  Offline OP
Guest
V

Joined: Oct 2012
Posts: 4
Hello,

I'm creating a quite simple countdown clock for a project I'm doing. I use 3DGS A7 Educational for the programming and A8 free for the compiling. What I want is run the program in video_screen = 1(fullscreen), but then the mouse cursor is gone. So I did set the mouse_map to a 32x32 ARGB 32-bit .tga file but then if I run it, it says Acknex.exe stopped working, if I compiled it, it says countdown2.exe. It does this in A7 and A8.

FYI: I'm using Windows 7 Home Premium

the code where I set the mouse_map
Code:
function main(){
video_screen = 1;
mouse_mode = 4;
mouse_map = "mouse.tga";
}



Can anyone help me?

Re: mouse_map crashes the .exe [Re: viccie211] #409391
10/16/12 12:02
10/16/12 12:02
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
You cannot set the BMAP to a string.

try this:

BMAP *mouseCursor = "mouse.tga";

function main(){
video_screen = 1;
mouse_mode = 4;
mouse_map = mouseCursor ;
}

Re: mouse_map crashes the .exe [Re: viccie211] #409392
10/16/12 12:03
10/16/12 12:03
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Hi,

You need to pass a BMAP pointer, not a string.

Code:
BMAP *bmp_mouse = "mouse.tga";

function main()
{
   video_screen = 1;
   mouse_mode = 4;
   mouse_map = bmp_mouse;
}


Re: mouse_map crashes the .exe [Re: 3dgs_snake] #409394
10/16/12 12:15
10/16/12 12:15
Joined: Oct 2012
Posts: 4
V
viccie211 Offline OP
Guest
viccie211  Offline OP
Guest
V

Joined: Oct 2012
Posts: 4
Thanks for the fast reply and it worked grin

Got a new problem now, most of the time it starts with a white square around the mouse pointer where the alpha of the tga file is 0. I don't know what caused this, it worked and then without changes to the mouse_map it started doing this

Last edited by viccie211; 10/16/12 15:27.
Re: mouse_map crashes the .exe [Re: viccie211] #409401
10/16/12 15:53
10/16/12 15:53
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
you can use a PNG file as well - if it's just for a cursor image, it's okay. That will fix your alpha problem laugh


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: mouse_map crashes the .exe [Re: Espér] #409407
10/16/12 16:48
10/16/12 16:48
Joined: Oct 2012
Posts: 4
V
viccie211 Offline OP
Guest
viccie211  Offline OP
Guest
V

Joined: Oct 2012
Posts: 4
Running the program in native resolution of my screen for now seems the solution. I ask again when I need more help.

Last edited by viccie211; 10/16/12 16:53.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1