Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Event ENABLE_PUSH / ent_remove -> Absturz / Crash #238057
11/24/08 15:57
11/24/08 15:57
Joined: Nov 2008
Posts: 7
D
dos Offline OP
Newbie
dos  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 7
Hallo liebe 3DGS Community,
Hello 3DGS Community,

ich habe die kollision zwischen 2 Entitäten abgefangen.
I've catched the collision between 2 Entitys.

Code:

Code:
action aObject1
{
   set(my, POLYGON);
   c_setminmax(my);
   my.push = 1;
   my.emask |= ENABLE_PUSH;
   my.event = eventHandler;
   ...
}

action aPlayer
{
   player = me;
   c_setminmax(my);
   while(1)
   {
      c_move(my, ...vector..., ACTIVATE_PUSH);
      wait(1);
   }
}

function eventHandler()
{
   // bisher keine Abfrage des Eventtyps
   ent_remove( me ); // Geht, works fine
// ent_remove( you ); // Absturz, Crash
// ent_remove( player ); // Absturz, Crash
}


Hat jemand eine Idee warum hier Gamestudio immer abstürzt?
Does somebody knows why Gamestudio crashs in this situation?

Manchmal bekomme ich bei einer Kollision folgenden Fehler:
Sometimes I got an Error, when the player collide with the Object:
Error E1515: Invalid arguments in aPlayer: ENTITY


Bin am verzweifeln und bitte um Hilfe!
I'm desperated, need help.

MfG
pdiddyp

BTW: Sorry for my english smile

Last edited by dos; 11/24/08 16:31.
Re: Event ENABLE_PUSH / ent_remove -> Absturz / Crash [Re: dos] #238073
11/24/08 17:56
11/24/08 17:56
Joined: Nov 2008
Posts: 7
D
dos Offline OP
Newbie
dos  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 7
Ich habe versucht die Entitäten per Tastatur zu entfernen und immer wenn ich den Code ausführe, bekomme ich folgenden Fehler:
I tried to remove the entitys per Keyboard and I've noticed that everytime I run the code, Gamestudio throws the following error:

Error 1515: Invalid arguments in aPlayer: ENTITY

Code:
Code:
action aPlayer()
{
   ...
   while(1)
   {
      ...
      if(key_p) { ent_remove(me); }
      ...
   }
   ...
}


Last edited by dos; 11/24/08 17:58.
Re: Event ENABLE_PUSH / ent_remove -> Absturz / Crash [Re: dos] #238081
11/24/08 18:46
11/24/08 18:46
Joined: Nov 2008
Posts: 7
D
dos Offline OP
Newbie
dos  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 7
I got the error.

You have to take ptr_remove and in the case of the player, I created a boolean var with saves if you are "dead" or not!
If you are dead, return;
That's all.

BTW: Gamestudio 7.06.1


Moderated by  HeelX, Spirit 

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