Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
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
6 registered members (3run, AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip), 605 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Kollisoinserkennung reagiert nicht. #146059
08/06/07 02:28
08/06/07 02:28
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
Tagchen.

Entweder ich hab nen Bug entdeckt oder nur mein System is im Eimer.

Ich verwende die Player-Action aus der aum von Morrowing um meine Levels zu testen.

Ich habe eine HMP und ein Holzhaus...zudem befinden sich drei MDL als Dynamisches licht mit dem Flag Passable.

Egal was ich anstelle, ich kann nicht durch die mdl mit Passable laufen. Habe jetzt auch ein paar andere Bewegungsscripts probiert und es geht nicht. Das einzige was geht sind levelblocks und das HMP. Aber sobald ein Model da ist, geht nicht.

Teilweise kann ich durch das Haus mdl durchlaufen bleibe aber dann immer in der Mitte hängen. Zudem kann ich auch nur an zwei wänden des Hauses reinlaufen.

Kann das sein, dass das ein Bug ist? Habe nämlich nicht lust, jedes MDL mit Blöcken zu versehen.

Danke schon mal
Schmerzmittel


P.s. Ausserdem habe ich immer die Windowsmauszeiger im spiel, egal ob Mousemode aus ist oder nicht.

Hier mal das Bewegungsscript. Müsste stimmen, hab ich so von der Aum übernommen.

action player1
{

player = my; // I'm the player
my.material = ShaderExampeModel_mat;
my.pan = 160;
my.transparent = on; // the player is transparent
my.alpha = 100; // but opaque if the camera doesn't run into obstacles
my.skill40 = camera_distance; // we store the distance to the camera
my.skill41 = camera_height; // and its height
camera_mode = 1; // the game starts with the camera in 3rd person mode
while (1)
{
player.pan -= 10 * mouse_force.x * time - 1.5 * (key_a - key_d); // player's pan is controlled by the mouse and the "A" and "D" keys
camera.x = player.x - camera_distance * cos(player.pan); // keep the camera behind the player
camera.y = player.y - camera_distance * sin(player.pan); // at the distance given by camera_distance
camera.z = player.z + camera_height + 0.8 * sin(my.skill46 * 3.6); // and above the player
camera.pan = player.pan; // the camera has the same pan angle with the player
camera.tilt += 7 * mouse_force.y * time; // and can tilt freely
camera_distance = min (max (camera_distance, 5), 500); // camera_distance can have values between 5 and 500
if (key_w + key_s > 0) // if the player is walking
{
ent_cycle("walk", my.skill46); // play its "walk" frames animation
my.skill46 += 10 * (1 + key_shift * 0.5) * time; // the animation speed increases when the player presses the "shift" key
my.skill46 %= 100; // loop the animation
}
else // if the player is standing
{
my.skill47 = 0; // reset the skill that stores the distance needed for the step sound (not really needed)
ent_cycle("stand", my.skill48); // play the "stand" frames animation
my.skill48 += 2 * time; // "stand" animation speed
my.skill48 %= 100; // loop animation
}
if (camera_mode == 3) // if we are in 3rd person mode
{
avoid_obstacles(); // run the function that avoids camera collisions with the relief
}
vec_set (temp, my.x); // trace 10,000 quants below the player
temp.z -= 10000;
trace_mode = ignore_me + ignore_passable + use_box;
temp.z = -trace (my.x, temp); // and adjust its height accordingly, placing its feet on the ground
// allow the player to move using the "W" and "S" keys; the speed increases to 200% if the player presses the "shift" key
temp.x = 10 * (key_w - key_s) * (1 + 1 * key_shift) * time;
temp.y = 0;
my.skill47 += ent_move (temp, nullvector);
if (my.skill47 > 50) // play with 50 (here we've got a step sound every 50 quants)
{
snd_play(step_wav, 30, 0);
my.skill47 = 0;
}
wait (1);
}
}


Last edited by Schmerzmittel; 08/06/07 02:29.

A7 Com V7.80
Re: Kollisoinserkennung reagiert nicht. [Re: Schmerzmittel] #146060
08/06/07 08:47
08/06/07 08:47
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
1. Wäre dieser post zu nächst besser im scripting oder beginners forum aufgehoben da nicht alles ein engine bug is
2. Bitte benutz demnächst die code-tags:
- Anfang: [ code ]
- Ende: [ /code ]
(beides mal ohne leerzeichen

3.Zu deinem Problem:
Es wird soweit ich das seh kein movemode fest gelegt.
Füge vor dieser zeile:
my.skill47 += ent_move (temp, nullvector);
folgendes ein:
move_mode = ignore_passable + glide;

Da ich sehe das du die A7 benutzt würde ich dir aber zu einem umstieg auf c_move dringend raten.

Re: Kollisoinserkennung reagiert nicht. [Re: Xarthor] #146061
08/06/07 09:53
08/06/07 09:53
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
Das Bug Forum ist für Engine-Bugs, nicht für Skript-Probleme. Das Finden von Bugs in gepostetem User-Code ist sehr aufwendig, und das können wir daher leider nicht machen.

Als Erstes sollten Sie dem Rat von Xarthor folgen und den Code auf den aktuellen Stand bringen. Die Anweisungen trace, ent_move, ent_cycle usw. werden von A6 und A7 nicht mehr unterstützt:

http://manual.conitec.net/aAnhang_Syntax.htm

Wenn Sie glauben, dass etwas nicht funktioniert, stellen Sie fest, unter welchem Umständen welche Anweisung Probleme macht. Checken Sie auch die Bugliste unten. Die Kollisionserkennung der A7.04 hat in der Tat 2 Bugs, die dort aufgelistet sind, wobei ich allerdings nicht glaube, dass diese etwas mit Ihrem Problem zu tun haben.

Re: Kollisoinserkennung reagiert nicht. [Re: jcl] #146062
08/06/07 15:13
08/06/07 15:13
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
Oh sorry. Dachte ich wäre hier richtig. Sollte ich mal besser lesen lernen

Aber vielen Dank für die Antworten. Ich werde sehen, dass ich das in den Griff bekomme. Vorher hatte ich halt nur mit A6 gearbeitet und da gings. Bei A7 nicht mehr.

Danke nochmal.

Grüße
Schmerzmittel


A7 Com V7.80

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