Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 10/15/25 20:44
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (Verner999, Nymphodora, Quad, AndrewAMD), 5,214 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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,028
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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