Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 770 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Silly problem I'm sure #350576
12/17/10 08:46
12/17/10 08:46
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
I am getting a d3d crash from the following code...I'm positive the code is functional...., as it is, extremely basic....but I don't know if it a problem with A7(what I am using) or what....my card is working normal and can display overlayed images in engine....I don;'t know...anyway, if some one can look at the following code and see if I did something stupid, or if there really is an issue....so I can report it properly.

the code should be commented enough to understand, I have a workaround implented...
Code:
#define PRAGMA_PATH "%EXE_DIR%\work";

#include<default.c>
#include<acknex.h>

STRING* mouse_blade = "mouse_blade.pcx";//using the string in the panel object seems to cause a crash

//work around pt 1
PANEL* panel_mouse = 
{
	pos_x = 0;
	pos_y = 0;
	layer = 1;
	bmap = "mouse_blade.pcx";//this works.
	//	bmap = mouse_blade;//this crashes.
	
	flags(SHOW | OVERLAY);
}

function main()
{
	mouse_pointer = 0;
	d3d_autotransparency = 1;
	level_load(NULL);
	wait(3);
	
	while(1)
	{
////////////////////work around pt 2
		panel_mouse.pos_x = mouse_pos.x + 1;//this is required so that buttons can be activated
		panel_mouse.pos_y = mouse_pos.y + 1;//otherwise they are obscured by the mouse panel
		mouse_mode = 4;
////////////////////problem
		//		mouse_map = mouse_blade;//causes an error.
		//		mouse_map = "mouse_blade.pcx";//causes an error.
		wait(1);
	}
}




Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Silly problem I'm sure [Re: Nowherebrain] #350577
12/17/10 08:50
12/17/10 08:50
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
you cannot assign STRING* to panel bmaps, you need yo define mouse_blade as BMAP*


3333333333
Re: Silly problem I'm sure [Re: Quad] #350647
12/17/10 21:28
12/17/10 21:28
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline OP
Serious User
Nowherebrain  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
DOH!...lol, I knew it was something insanely simple. Thank you....once more.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/

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

Gamestudio download | chip programmers | 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