Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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