Descentforum.DE Forum Index Descentforum.DE
Search | FAQ | Memberlist | Usergroups | Newsfeed Newsfeed  Register
Profile | Log in to check your private messages | Log in 
Chat | D3-Tactics | Downloads | Map | Links | Serverlist | Teamspeak 

D2X - brauche Hilfe
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Descentforum.DE Forum Index -> Alternativen - Clones - Visionen
View previous topic :: View next topic  
Author Message
SteffenP
Forum-Nutzer


Joined: 27 Mar 2004
Posts: 24
Location: Ingolstadt

PostPosted: 26.04.2004, 07:07    Post subject: Reply with quote

Hmm,

Ein fehler isses, nur komisch das unter Linux anscheinend JOY_NUM_AXES kleiner als MAX_AXES ist woraufhin der Fehler nie ins Tragen gekommen ist, wär mal interessant wo JOY_NUM_AXES definiert ist.

Denn erstell mal schnell nen Diff file und schicke es in die Mailingliste..

Naja oky ich bin denn mal wieder wech,

bis denn dann,
Steffen

_________________
Steffen Pohle (stpohle@gmx.net)
BomberClone - The Clone of DynaBlaster and Bomberman http://www.bomberclone.de
Back to top
View user's profile Send private message Send e-mail
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 26.04.2004, 11:31    Post subject: Reply with quote

Der Puffer für die Joystick-Achsen ist in kc_change_joyaxis() lokal deklariert, und zwar als [JOY_NUM_AXES]. Wenn nun auf i <= JOY_NUM_AXES getestet wird, gibt's da einen Überlauf - egal was woanders definiert ist. Ich arbeite übrigens mit den Quellen, deren Link Du mir weiter oben gegeben hast.

Ich erstelle kein Diff und schreibe auch nix in die Mailingliste, weil mir das momentan alles zuviel ist. In der Mailingliste bin ich nicht drin, direkt am CVS hänge ich auch nicht, und es würde mich mindestens ein paar Stunden kosten, mich da reinzuwühlen - sorry. Vielleicht wenn ich mit meiner D2X-Variante zufrieden bin. Winken


Last edited by karx11erx on 26.04.2004, 13:04; edited 2 times in total
Back to top
View user's profile Send private message
SteffenP
Forum-Nutzer


Joined: 27 Mar 2004
Posts: 24
Location: Ingolstadt

PostPosted: 26.04.2004, 17:01    Post subject: Reply with quote

Moin,

Naja aber nur bei Windows.. bei Linux war der Puffer zum Glück ausreichend groß mit 32 Achsen.. Smilie Zumindest bei meiner Compilierung mit --enable-linuxjoy als Configure Option, es währ erst aufgefallen wenn jemand unter Linux mal nen Joy mit mehr als 32 Achsen verwendet.

#ifdef USE_LINUX_JOY
int axis[MAX_AXES];
int old_axis[MAX_AXES];
int numaxis = j_num_axes;
#else
int axis[JOY_NUM_AXES];
int old_axis[JOY_NUM_AXES];
int numaxis = JOY_NUM_AXES;
#endif

Das Problem bei D2X ist halt das jeder der daran arbeitet meist nur ein System hat worauf er testen kann und so nie die Probleme der anderen Systeme sieht und austesten kann.

Wegen den diff-files .. wenn du zu viele fehler mit einmal in einem diff file hinschickst wirds ehh abgelehnt.. weil sich niemand die mühe macht ein xKB großes diff file auf sauberkeit zu durchsuchen, von daher schicke alle Patches einzeln ein, das macht es einfacher für den Entwickler als wenn ein dickes Patch kommt.

bis denn dann.

_________________
Steffen Pohle (stpohle@gmx.net)
BomberClone - The Clone of DynaBlaster and Bomberman http://www.bomberclone.de
Back to top
View user's profile Send private message Send e-mail
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 26.04.2004, 17:49    Post subject: Reply with quote

Jetzt wo Du's sagst ... Mit den Augen rollen

Ich habe übrigens noch ein Win2K-System zu testen, aber das war's dann.


Last edited by karx11erx on 26.04.2004, 17:49; edited 1 time in total
Back to top
View user's profile Send private message
FS-Maverick
Forum-Nutzer


Joined: 02 Jul 2001
Posts: 203
Location: Oberhaching (b. München)

PostPosted: 26.04.2004, 20:50    Post subject: Reply with quote

wow karx, nicht schlecht was du da machst, respekt. Endlich mal jemand der die Sache selbst in die Hand nimmt Auf den Arm nehmen
Freu mich schon auf deine Version wenn alle größeren Fehler behoben sind.

Ich hab mich auch mal am Quellcode versucht. Zum Compilieren bin ich noch gekommen, aber dann wollt ich einbauen dass man im Cooperative Modus nur eine bestimmte Anzahl an Leben hat, weil mich dieses ständige Losstürmen und wieder Sterben in Multiplayerspielen irgendwie genervt hat, wo man doch so schön im Team arbeiten könnte. Aber irgendwie war das dann doch zu hoch für meine bescheidenen C# Kenntnisse.
Also wenn dir mal langweilig ist.... Sehr glücklich
Back to top
View user's profile Send private message Send e-mail
SteffenP
Forum-Nutzer


Joined: 27 Mar 2004
Posts: 24
Location: Ingolstadt

PostPosted: 26.04.2004, 21:41    Post subject: Reply with quote

hallöchen,

Jups und ich hoffe er wird nicht aufgeben.. Smilie aber er arbeitet ja als Informatiker hauptberuflich somit wirds ihm einfacher fallen als einem anderen hobbyprogrammierer hier.. Smilie

bis denn dann,
Steffen

_________________
Steffen Pohle (stpohle@gmx.net)
BomberClone - The Clone of DynaBlaster and Bomberman http://www.bomberclone.de
Back to top
View user's profile Send private message Send e-mail
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 27.04.2004, 00:17    Post subject: Reply with quote

SteffenP wrote:
hallöchen,

Jups und ich hoffe er wird nicht aufgeben.. Smilie
Nö, aber ich hoffe ich schaffs, bevor mein Sohn geboren wird ... Sehr glücklich

SteffenP wrote:
aber er arbeitet ja als Informatiker hauptberuflich somit wirds ihm einfacher fallen als einem anderen hobbyprogrammierer hier.. Smilie
Das könnte schon sein. Mit den Augen rollen
Back to top
View user's profile Send private message
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 27.04.2004, 02:19    Post subject: Reply with quote

Jetzt habe ich rausgefunden, warum trotz funktionierender Joystick-Config kein Joystick tut: joystick_read_raw_axis() aus arch/sdl/joy.c gibt immer 0 zurück, statt im Returncode bitweise zu codieren, welche Achsen einen Ausschlag hatten.

Sodele, nun tut auch die Joystick-Steuerung ganz famos. Sehr glücklich


Last edited by karx11erx on 27.04.2004, 02:26; edited 2 times in total
Back to top
View user's profile Send private message
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 27.04.2004, 12:31    Post subject: Reply with quote

Wenn ich sehe, wie D2X z.T. codiert ist, stellen sich mir die Haare.

Der Sound wird z.B. in PlayMovie() initialisiert. Nun hatte ich das auskommentiert, weil es dort einen Absturz gibt (der momentan weniger wichtig ist).

Kern-Initialisierungen sind doch kein Nebeneffekt irgendeiner speziellen Programmfunktion!

Sowas ist wirklich Hobby-Programmierung, und selbst da habe ich schon bessere gesehen. Auf den Arm nehmen
Back to top
View user's profile Send private message
Nogly
Forum-Nutzer


Joined: 09 Oct 2002
Posts: 1681
Location: Erkelenz

PostPosted: 27.04.2004, 12:45    Post subject: Reply with quote

karx11erx wrote:
Jetzt habe ich rausgefunden, warum trotz funktionierender Joystick-Config kein Joystick tut: joystick_read_raw_axis() aus arch/sdl/joy.c gibt immer 0 zurück, statt im Returncode bitweise zu codieren, welche Achsen einen Ausschlag hatten.

Sodele, nun tut auch die Joystick-Steuerung ganz famos. Sehr glücklich


Hi karx11erx,

Bzgl. Joystick.
ich als Nichtfachmann was heist das jetzt zur konvigeration des Joysticks? Geschockt
Back to top
View user's profile Send private message Send e-mail
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 27.04.2004, 13:22    Post subject: Reply with quote

Du bist auch kein Fachmann für ... hehe, jetzt hätte ich fast 'Deutsch' geschrieben, aber 'Konfiguration' ist ja ein Fremdwort ... Mit den Augen rollen

Das heißt, daß meine D2X-Version

a) Beim Konfigurieren des Joysticks nicht abschmiert
b) Auch ordentlich auf Joystick-Input reagiert

Du findest mein d2x_w32.exe auf meiner Descent-Site. Klicke im Seitenmenü auf 'D2X/Windows', dann gelangst Du auf meine D2X-Seite.

Ich werde allerdings noch weiter dran arbeiten - ein paar kleinere Dinge sind noch zu tun (steht alles auf meiner D2X-Seite). Im Prinzip sollte es aber funktionieren, es dreht sich mehr darum, kleine, schon lange oder schon immer vorhandene Mängel zu beheben.


Last edited by karx11erx on 27.04.2004, 13:22; edited 1 time in total
Back to top
View user's profile Send private message
Nogly
Forum-Nutzer


Joined: 09 Oct 2002
Posts: 1681
Location: Erkelenz

PostPosted: 27.04.2004, 13:46    Post subject: Reply with quote

hi

sh, sh, hadder gemerkt! Traurig
Back to top
View user's profile Send private message Send e-mail
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 27.04.2004, 14:06    Post subject: Reply with quote

Was dann?!
Back to top
View user's profile Send private message
DigiJo
Forum-Nutzer


Joined: 12 Feb 2002
Posts: 949
Location: Niedersachsen

PostPosted: 27.04.2004, 16:09    Post subject: Reply with quote

hab sie grade getestet, achsen-konfiguration scheint zu gehen. hat-detect funktioniert auch, allerdings slided das schiff sehr langsam bei normaler hat->slide zuweisung.

banking-funktion auf der r-achse verhält sich seltsam, wenn ich mit joystick volleinschlag banke dreht sich das schiff abwechselnd langsam-schnell-langsam mit regelmäßigem intervall.

buttons funktionieren nicht, wie mir scheint liest diese version nur 4 buttons von d-input, buttons 5 6 7 etc. werden als button 4 oder trigger eingetragen.

win98se
amd 2400
512mb ram
radeon 8500
terratec 128 pci sound
neuste treiber, joystick logitech freedom, alle buttons, achsen funtionieren in anderen spielen einwandfrei.


Last edited by DigiJo on 27.04.2004, 16:11; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 27.04.2004, 16:17    Post subject: Reply with quote

Danke für die Tipps. Muß ich mir mal anschauen.

Das Ruckel-Banking und langsame Reaktion auf Hat könnten damit zusammenhängen, daß ich die Abtastrate für Eingabegeräte reguliere, damit sie nicht mehr von der Framerate der Render-Engine abhängt. Dazu verwende ich eine eigene Zeitmessung, und wo die bei der Eingabeverarbeitung nicht mit der der Render-Engine abgestimmt wird (bzw. diese ersetzt), kann es zu solchen Effekten kommen.

Ich hatte auf der R-Achse übrigens Slide l/r, und das hat tadellos funktioniert.

Die Button-Geschichte war mir auch schon negativ aufgefallen (hatte nur nicht weiter drüber nachgedacht), das werde ich mal aufbohren.


Last edited by karx11erx on 27.04.2004, 16:18; edited 1 time in total
Back to top
View user's profile Send private message
DigiJo
Forum-Nutzer


Joined: 12 Feb 2002
Posts: 949
Location: Niedersachsen

PostPosted: 27.04.2004, 16:37    Post subject: Reply with quote

bin kein programierer aber ich habe das gefühl, das die slidefunktion analog abgefragt wird und digitale werte bekommt, da alte joystick hats immer analog waren, heute fast alle hats digital sind.

also mal als beispiel, slide links erwartet 0-255 und setzt das in schiffs-slide-geschwindigkeit um, bekommt aber von d-input nur 0 oder 127 (was immer für ein bit gesetzt wird) und slided deswegen nur mit halben speed.

ich hoffe das war nicht zu laienhaft ausgedrückt.
Back to top
View user's profile Send private message Send e-mail
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 27.04.2004, 17:04    Post subject: Reply with quote

Das könnte sein, gute Idee.
Back to top
View user's profile Send private message
karx11erx
Diedel


Joined: 09 Feb 2004
Posts: 888
Location: Karlsruhe, Germany

PostPosted: 28.04.2004, 00:34    Post subject: Reply with quote

Das mit der Maus ist nicht ganz ausgegoren: Der AB tut nicht mehr richtig, und beim fliegen flackert der Level leicht (wahrscheinlich weil zwischendurch die Antriebswerte immer 0 werden ...) Weinen
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Descentforum.DE Forum Index -> Alternativen - Clones - Visionen All times are GMT + 2 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
PayPal


Descent is a trademark of Interplay Productions.
Descent, Descent II are © Parallax Software Corporation.
Descent III is © Outrage Entertainment.
Descentforum.DE and Descentforum.NET is © by Martin "Do_Checkor" Timmermann.
Powered by phpBB © 2001-2008 phpBB Group