Gamestudio Links
Zorro Links
Newest Posts
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 (AbrahamR, 1 invisible), 858 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Crash in sys [Re: MMike] #332758
07/11/10 23:42
07/11/10 23:42
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Yeah, but in the while: It want a rock. So, when there is no rock it just dont run. I dont understand why it causes an error if an while condition isn't true. Now, if I right_klick nothing happens. Can't be so difficult wink
Code:
function rocket_weg()
{
	wait(1);
	ent_remove(rock);
	vec_set(camera.x,nullvector);
	scan_base = 1;
	b = 0;
}
function rocket_launch()
{
	rock = ent_create("sphere.mdl",camera.x,NULL);
	wait(1);
	set(rock, INVISIBLE);
	rock.emask |= (ENABLE_BLOCK | ENABLE_ENTITY);
	rock.event = rocket_weg;
	while(rock)
	{
		wait(1);
		vec_set(camera.x,rock.x);
		c_move(rock,nullvector,vector(30*time_step,(key_a - key_d),(key_w - key_s)), GLIDE);
	}
}
action rocket_base()
{
	while(!ball){wait(1);}
	while(me && scan_base == 1)
	{
		c_scan(my.x,my.pan, vector(360,180,15), IGNORE_ME);
		if(you == ball)
		{
			if(key_e)
			{
				scan_base = 0;
				ent_animate(me,"auf",base_perc,0);
				base_perc += 5*time_step;
			}
			if(mouse_right != NULL && b == 0)
			{
				b = 1;
				rocket_launch();
			}
			control = 0;
			ball_enabl = 1;
			phent_enable(ball,0);
			ent_animate(me,"zu",base_perc,0);
			base_perc += 5*time_step;
			c_setminmax(me);
		}
		wait(1);
	}
}




"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Crash in sys [Re: Liamissimo] #332759
07/11/10 23:47
07/11/10 23:47
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I did not read the whole topic but you should change
while(rock)
{
wait(1);
vec_set(camera.x,rock.x);
c_move(rock,nullvector,vector(30*time_step,(key_a - key_d),(key_w - key_s)), GLIDE);
}

to

while(rock)
{
vec_set(camera.x,rock.x);
c_move(rock,nullvector,vector(30*time_step,(key_a - key_d),(key_w - key_s)), GLIDE);
wait(1);
}

I hope you see why the second version is the only one that's correct.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Crash in sys [Re: Superku] #332777
07/12/10 04:46
07/12/10 04:46
Joined: Mar 2010
Posts: 14
Queensland, Australia
C
CoburnDomain Offline
Newbie
CoburnDomain  Offline
Newbie
C

Joined: Mar 2010
Posts: 14
Queensland, Australia
I remember getting this crash in sys error. I remember that I missed a while(1) loop, so after I added that, everything worked fine.

Re: Crash in sys [Re: CoburnDomain] #332873
07/12/10 16:01
07/12/10 16:01
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Thanks Superku, of course wait to the end.

So, do you say I have to create a while(1) loop INSTEAD of the while(rock)?


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Crash in sys [Re: Liamissimo] #332875
07/12/10 16:07
07/12/10 16:07
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I think the while(rock) loop is just fine.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Crash in sys [Re: Superku] #332878
07/12/10 16:16
07/12/10 16:16
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline OP
Serious User
Liamissimo  Offline OP
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Me too. I am sure it is still saying Invalid Argument. VCant test it right now because problems with A8


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Crash in sys [Re: Liamissimo] #332895
07/12/10 18:46
07/12/10 18:46
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I have SYS error with A8, it never use to appear in A7. Here is the code:
Code:
function gravity_()
{
    my_height = c_trace(my.x,vector(my.x,my.y,my.z - 1000),IGNORE_MODELS|IGNORE_FLAG2|IGNORE_PASSABLE|USE_BOX);
    if(my_height > 10)
    {
	accelerate(absdist.z,-10 * time_step,-1);
    }
    else 
    {
	absdist.z =-(my_height/1.2)+4;
	absdist.z = clamp(absdist.z,-4,4);
    }
}

action hero_()
{ 
   while(my.health > 0)
   {
     gravity_();
     /// c_move here and wait(1);
   }
}

It appears some times, when I shoot enemies.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Crash in sys [Re: 3run] #333331
07/15/10 19:38
07/15/10 19:38
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Originally Posted By: 3run
I have SYS error with A8, it never use to appear in A7.

you know that this is only a public beta and not a released version, don't you?


Visit my site: www.masterq32.de
Re: Crash in sys [Re: MasterQ32] #333337
07/15/10 20:20
07/15/10 20:20
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
3run, please dont hijack threads, this was a discussion of a different problem and you are kindly asked to open a new thread and not just blurt out your problem in other peoples discussions.

And public beta or not, the error happens in your script, so you can check which line it is that crashes. You can use the new sys_marker function for finding the place. There are differences between A8 and A7, for instance A8 does not support collision with A6 levels anymore, so if you have compiled maps in A6 mode it will behave different.

Page 2 of 2 1 2

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

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