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
0 registered members (), 18,767 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
pointer vanishes after 15 min???? #140852
07/13/07 09:53
07/13/07 09:53
Joined: Jul 2007
Posts: 24
N
noobie86 Offline OP
Newbie
noobie86  Offline OP
Newbie
N

Joined: Jul 2007
Posts: 24
HI

i have this line in my main action code..

action abc
{ player1 = me;
while(1) {normal movement and camera functions}
}

and this one in another action code

action xyz
{ you = player1;
my.x = your.x+24*cos(your.pan)+24*sin(your.pan);
my.y = your.y+24*cos(your.pan)+24*sin(your.pan);
my.tilt = your.tilt+30;
my.pan = your.pan;
}

i run the level, it says "empty pointer in "my.x= your.x + etc etc..", and for the xyz action, my.pan is always zero and my.tilt is always 30.

solution is simple? common error? how about this -- THERE WAS NO SUCH ERROR FIFTEEN MINUTES AGO!! The entire code was working fine! I didn't like the main model so i changed to a better one and gave it the main 'abc' action, now it says empty pointer in your.x and your.y and etc etc.

Inserting the older model again doesn't help!

I wrestled with it for a while and gave up.. i couldn't see what the problem is and y it should suddenly stop working!

any ideas? anyone who had similar problems?

Thanks in advance,
yours sincerely,
one frustrated noob!!

Re: pointer vanishes after 15 min???? [Re: noobie86] #140853
07/13/07 10:32
07/13/07 10:32
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
looks to me like xyz starts before abc. at the beginning of xyz put "while(player1==NULL){wait(1);}"

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: pointer vanishes after 15 min???? [Re: JibbSmart] #140854
07/13/07 11:13
07/13/07 11:13
Joined: Jul 2007
Posts: 50
N
Nomad Offline
Junior Member
Nomad  Offline
Junior Member
N

Joined: Jul 2007
Posts: 50
Quite often with the new update to A6 I find more and more, this workflow effect happening, even to the point of losing entire files.

It seems the engine no longer gives every error report at the time a full-on development session is in progress and I wonder if its to do with the page file being so crammed up that it effects final writes from the page file to the programm application.

I find this only happens with Game Studio though so I cant help but think that maybe DX is also part of the problem.

So yeah, I have these issues too and...

From one noobs to another, hang on in there man, its not as bad as it may seem, just have more breaks more often to free up dlls and memory usage.

Re: pointer vanishes after 15 min???? [Re: Nomad] #140855
07/13/07 11:29
07/13/07 11:29
Joined: Jul 2007
Posts: 24
N
noobie86 Offline OP
Newbie
noobie86  Offline OP
Newbie
N

Joined: Jul 2007
Posts: 24
@ Julz
thanks.. ya i tried that by putting "while (!you) {wait(1);}" but then it doesn't start the action at all.. the attached entity just hangs in mid-air at its initial position in the level.
i also tried putting the xyz after abc but that doesn't help either..
like i said it was working fine a few hours ago.. after i changed the model it doesn't work anymore no matter what i do.


@ Nomad..
well dude at present i only have the player, the attached entity and less than 10 blocks in the level.. i don think that would use up too much memory.. anyway thanks for letting me know this is a common error.. i thought maybe something was wrong with the one i'm using..
only way i can think of now is to return player position values to a global array and use them.. but i didn't want to use too many variables so was trying it this way.

Re: pointer vanishes after 15 min???? [Re: noobie86] #140856
07/13/07 11:33
07/13/07 11:33
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
nah it has to be "while(player1==NULL)" not "while(!you)", otherwise "you" will never change.

julz


Formerly known as JulzMighty.
I made KarBOOM!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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