Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,246 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
need help.......error E1513 when enter level 2 #99376
11/21/06 01:39
11/21/06 01:39
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
i get this error when i hit the block to trigger the function to go to next level.
"crash in handle_char1_movement: ent_move(nullvector,my.move_x)"

but in the first level have no problem at all. even i run strait level 2 have no problem at all, it only occur when i try to enter level 2 by hiting the block to triger the event
anyone know what wrong with it?

thx in advance

Last edited by alex5801; 11/22/06 01:36.
Re: need help.......error E1513 [Re: alex5801] #99377
11/21/06 04:23
11/21/06 04:23
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
This error means that theres something wrong in that line, like a wrong "my" pointer. Also "move_x" is not a known entity parameter.

Re: need help.......error E1513 [Re: Spirit] #99378
11/21/06 06:47
11/21/06 06:47
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
err.....but how come in level 1 or strait build level 2 no no problem?
only when go throught the block with the level changing function got this problem?

Re: need help.......error E1513 [Re: alex5801] #99379
11/22/06 19:37
11/22/06 19:37
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
did you insert a wait somewhere in the levelchange? its trying to load the script without the player, wich will crash the engine, because it hasnt recognized the player until after the script loads.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: need help.......error E1513 [Re: DLively] #99380
11/23/06 03:36
11/23/06 03:36
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
function level_change()
{
wait(1);
if (EVENT_TYPE == event_impact)
{


changeto_level = my.skill1;
my = NULL;
vec_set(temp_loc,player1.x);
vec_set(temp_ang,player1.pan);
camera.visible = off;
freeze_mode = 1;
if (changeto_level == 1)
{
changeto_level = 0;
level_load("level1.wmb");
}
if (changeto_level == 2)
{
changeto_level = 0;
level_load("level2.wmb");
}
freeze_mode = 0;
wait(2);
vec_set(player1.x,temp_loc);
vec_set(player1.pan,temp_ang);
camera.visible = on;
}
}






action zone_block
{
my.alpha = 0;
my.transparent = on;
my.enable_impact = on;
my.event = level_change();
}
------------------------------------------------------------------------------
this is the code for level change

Last edited by alex5801; 11/23/06 03:46.
Re: need help.......error E1513 [Re: alex5801] #99381
11/23/06 14:27
11/23/06 14:27
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Well, first off, this line of code, should probably be set up like this:
_____________________________________________________________________________________________________

if (changeto_level == 1)
{
changeto_level = 0;
level_load("level1.wmb");
}

if (changeto_level == 1)
{
level_load("level1.wmb");
changeto_level = 0;
}


_____________________________________________________________________________________________________

Second, after your script loads the level, it hasnt finished the script (which was running in the last level) so its going to try and finish it from the last map, and if it cant find the play from the last map, its going to give you an error... I think...

Last edited by Young_link; 11/23/06 14:30.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: need help.......error E1513 [Re: DLively] #99382
11/24/06 23:23
11/24/06 23:23
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
but i try to include to function to check when to break out from the while loop but it still dont works

Re: need help.......error E1513 when enter level 2 [Re: alex5801] #99383
11/29/06 13:07
11/29/06 13:07
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
Code:
  

FUNCTION level_change()
{
if (EVENT_TYPE == event_impact)
{
g=1;
}
}


ACTION zone_block
{
my.alpha = 0;
my.transparent = on;
my.enable_impact = on;
my.event = level_change();
}



i try to find out the problem of my level changing
so i remove all the coding in the function and change to g=1 but it still give me the same error.
it look like it will happen as long my.event = level_change is there.
as long the function triger by my.event is not one of the function in my
Action player1_action, it give the same problem
anyone have any idea on solving this problem?

Last edited by alex5801; 11/30/06 13:11.
Re: need help.......error E1513 when enter level 2 [Re: alex5801] #99384
12/01/06 19:04
12/01/06 19:04
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
hey guys i solve the problem by removing () from my.event = level_change();
anybody know what is the reason nt putting ()??

Re: need help.......error E1513 when enter level 2 [Re: alex5801] #99385
12/01/06 19:14
12/01/06 19:14
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
Because its the way it should be and there is in the manual. Never call a function event with (), call my.event = myFunction;


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