Gamestudio Links
Zorro Links
Newest Posts
Parent/child object
by Frederick_Lim. 09/07/26 07:00
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, alibaba), 4,920 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
speedx, liop, Bauer097, riggi89, shuhari
19233 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: 28,133
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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