Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
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 (AndrewAMD, kzhao), 901 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
screen_size? #375568
06/26/11 15:43
06/26/11 15:43
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
I have moments in my script where this crashes:

temp.x = screen_size.x;

Is there times when screen_size is invalid/removed, like during loading a level?

Temp is valid, I checked that.


~"I never let school interfere with my education"~
-Mark Twain
Re: screen_size? [Re: Germanunkol] #375569
06/26/11 15:48
06/26/11 15:48
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
And temp is a VECTOR?

Re: screen_size? [Re: Widi] #375572
06/26/11 15:59
06/26/11 15:59
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Yes. This always happens to me... every time I post a bug, people ask me about temp ^^.

That's why I mentioned it up above.

The line that really crashes is:
darkenPan.size_x = screen_size.x;
But to try and see if darkenPan was the issue, I replaced it with this:
sys_marker("ds2");
temp.x = screen_size.x;
sys_marker("d02");

And then I got a crash in ds2.

Last edited by Germanunkol; 06/26/11 16:14.

~"I never let school interfere with my education"~
-Mark Twain
Re: screen_size? [Re: Germanunkol] #375684
06/27/11 08:04
06/27/11 08:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Engine variables like screen_size can not suddenly disappear or something like that.

But you can, of course, make it disappear, f.i. with "screen_size = NULL;" or by writing at wrong positions into the variables memory. This would then cause such an error.


Moderated by  old_bill, 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