|
|
*Gelöst* Wieder einmal Error1513
#235472
11/07/08 20:38
11/07/08 20:38
|
Joined: Aug 2005
Posts: 512 Bayern
Schmerzmittel
OP
User
|
OP
User
Joined: Aug 2005
Posts: 512
Bayern
|
Hallo Community,
ich habe ein seltsames Problem.
In einem alten Projekt von mir, geschrieben in Lite-C, benutze ich den ent_animate Befehl. Hier hatte ich die Spielerbefehle als action spieler_blablub gemacht.
In meinem neuen Projekt, lagere ich alles in einzelene Scripte aus, mit header und c dateien. (Nach dem Workshop von RUDI).
Aber sobald ich hier den ent_animate Befehl verwende, egal an welcher Stelle, in welcher Datei, bekomm ich den ERROR 1513 Nachricht.
Crash in event.... aber ohne Angabe in welcher function.
Die Befehle sind nicht mehr in actions, sonder als void definiert.
Ich habe schon alles abgesucht. Alles wird korrekt initialisiert und eingelesen.
Vielleicht wei jemand von euch Rat?
Grüße Schmerzmittel
Last edited by Schmerzmittel; 11/08/08 18:35.
A7 Com V7.80
|
|
|
Re: Wieder einmal Error1513
[Re: Schmerzmittel]
#235494
11/07/08 23:04
11/07/08 23:04
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Ohne dass Du uns den Code zeigst und wie Du ent_animate verwendet hast dürfte das Rumraten bleiben.
DEP nur für die essentiellen Windows Services eingestellt?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Wieder einmal Error1513
[Re: Uhrwerk]
#235536
11/08/08 10:34
11/08/08 10:34
|
Joined: Aug 2005
Posts: 512 Bayern
Schmerzmittel
OP
User
|
OP
User
Joined: Aug 2005
Posts: 512
Bayern
|
Sorry. Habe den Code vergessen. void explode() { while(1) { my.skill1 += 3*time_step; if (my.skill1 > 100) my.skill1 -= 100; ent_animate(me,"walk",my.skill1,ANM_CYCLE); wait(1); } } Ich habe es mit diesem versucht. Hab ich aus dem Handbuch. Im vorherigen Projekt, aber in einer Action funktioniert er. DEP? Was ist, bzw. wo stellt man das ein?  Egal was ich versuche, der Error kommt immer wieder. Edit: Ich hoffe dass ist jetzt etwas klarer? Das Problem, wie gesagt, tritt nur mit dem Workshop auf. Ansonsten funktioniert er.
Last edited by Schmerzmittel; 11/08/08 10:37.
A7 Com V7.80
|
|
|
Re: Wieder einmal Error1513
[Re: Tobias]
#235538
11/08/08 10:39
11/08/08 10:39
|
Joined: Aug 2005
Posts: 512 Bayern
Schmerzmittel
OP
User
|
OP
User
Joined: Aug 2005
Posts: 512
Bayern
|
Danke für die schnelle Antwort.
Habe das aber schon probiert. Egal ob ich my oder me setze.
Hm. Anscheinend liegt das Problem sehr tief.
Ich bekomme auch keine anständige Diag. Die einzige, die durchging sagte...
Main Loop.... Error1513 Crash in Event.
Edit: Meinst du my als ENTITY oder in ent_animate(MY bzw. ME) ?
Aber das wars auch schon.
Last edited by Schmerzmittel; 11/08/08 10:41.
A7 Com V7.80
|
|
|
Re: Wieder einmal Error1513
[Re: Schmerzmittel]
#235543
11/08/08 10:59
11/08/08 10:59
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
i geus you are using ent_create(ent,pos,explode); and not void main() { explode(); } and maby try this
void explode()
{
while(my != NULL)
{
my.skill1 += 3*time_step;
if (my.skill1 > 100) my.skill1 -= 100;
ent_animate(me,"walk",my.skill1,ANM_CYCLE);
wait(1);
}
}
"empty"
|
|
|
Re: Wieder einmal Error1513
[Re: flits]
#235545
11/08/08 11:07
11/08/08 11:07
|
Joined: Aug 2005
Posts: 512 Bayern
Schmerzmittel
OP
User
|
OP
User
Joined: Aug 2005
Posts: 512
Bayern
|
Sorry, that doesnt help. I use void main(). In this main call sys_init() and game(). In this .c and .h files are all included. I use this as a framework. All works. Shader, like Shade-C or the mtlFx files. But if i use for example this... while(my != NULL) // or while(1) { my.skill1 += 3*time_step; if (my.skill1 > 100) my.skill1 -= 100; ent_animate(me,"walk",my.skill1,ANM_CYCLE); wait(1); } } then use this void via a action (that used from WED) then i get an Error 1513. The Rudi Workshop handle all like this. But there it works. I dont know, how it will not work for me.
A7 Com V7.80
|
|
|
|