Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 947 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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