Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
check_view() #350775
12/19/10 00:46
12/19/10 00:46
Joined: Dec 2008
Posts: 271
Saturnus Offline OP
Member
Saturnus  Offline OP
Member

Joined: Dec 2008
Posts: 271
I'm not sure whether this is a bug or not. If it isn't, the manual should make one aware of this behaviour:

check_view() crashes when it gets called in the first or second frame. From the third frame on it works without crashing. Occurs in both 8.10 and 7.86.

Example:
Code:
#include <acknex.h>

void main () {
	level_load(NULL);
	//wait(2);
	view_check(camera,vector(-1,-1,-1),vector(1,1,1));
}



Re: check_view() [Re: Saturnus] #350913
12/20/10 10:13
12/20/10 10:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You're right - the crash is a bug, a message should appear instead. view_check requires the video device to be opened and at least one frame to be rendered. This will be mentioned in the manual and the crash will be caught.


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

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