Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 5,207 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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