Hey Leute ich hab da mal eine Frage : Wie kann ich ein Hello World Programm für den NDS schreiben... ? Was brauch ich dazu (Software) und in welcher Sprache werden DS Games eig. geschrieben... könnt auch gerne einen Quellcode anhängen .. Thx schon mal
DS Hello World Hombrew Program schreiben
-
-
ist die selbe sprache wie für die wii, kuck mal in deinen devkitpro ordner
X:\devkitPro\examples\nds\hello_world -
Okay gefunden muss ich das dann genauso machen wie bei der wii?! also die datein laden und dann alt+1 drücken?!
-
genau, ist das selbe wie bei der wii, nur das eben keine dol, sondern nds dateien raus kommen
-
Also da mein zweiter Post ja gelöscht wurde jez in den Post.. könnt ihr bitte
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von atze96 ()
-
Dort ist die erste Anlaufstelle wenn man was für den DS machen möchte: palib.info/wiki_ger/doku.php?id=homepage
Die englische Seite ist aber detailierter und besser: palib.info/wiki/doku.php -
Danke kann mir bitte wer mal den shutdown befehl für den ds sagen .. (mehr brauch ich nicht...)!
-
hast du mal den selben befehl getestet, wie den von der wii?
-
joa dann sacht er mir aber moment der ganze befehl : if (Pad.held.Start) SYS_ResetSystem(SYS_POWEROFF_STANDBY, 0, 0);
dann kommt das : c:/devkitPro/examples/nds/hello_world/source/main.cpp:47:65: error: 'SYS_ResetSystem' was not declared in this scope -
Es gibt so eine funktion, PA_PowerOff() oder so, ich weiß sie jetzt nicht genau.
mfg
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!
-
okay ich probiers dann mal mit ner (0) also in der klammer aber gleicher fehler moment kanns dadran liegen das ich noch was einfügen muss
PAD_ScanPads();
hier vllt. noch einen Befehl einfügen?!
if (Pad.held.Start) PA_PowerOff(0) ; -
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!
-
Danke aber geht trotzdem nicht.. moment ich post mal den Quellcode und die fehler
C-Quellcode
- $Id: main.cpp,v1.0 Atze96 inc.:D Exp $
- Hello World !
- -- dovoto
- ---------------------------------------------------------------------------------*/
- #include <nds.h>
- #include <stdio.h>
- volatile int frame = 0;
- //---------------------------------------------------------------------------------
- void Vblank() {
- //---------------------------------------------------------------------------------
- frame++;
- }
- //---------------------------------------------------------------------------------
- int main(void) {
- //---------------------------------------------------------------------------------
- touchPosition touchXY;
- irqSet(IRQ_VBLANK, Vblank);
- consoleDemoInit();
- iprintf("Hallo DS, wie gehts... erste Homebrew");
- iprintf("LolDS");
- iprintf("atze2010");
- iprintf("Hombrewscene 10");
- iprintf("Homebrew to World!");
- while(1) {
- swiWaitForVBlank();
- touchRead(&touchXY);
- // print at using ansi escape sequence \x1b[line;columnH
- iprintf("\x1b[10;0HFrame = %d",frame);
- iprintf("\x1b[16;0HTouch x = %04X, %04X\n", touchXY.rawx, touchXY.px);
- iprintf("Touch y = %04X, %04X\n", touchXY.rawy, touchXY.py);
- while(1) {
- PAD_ScanPads();
- if(Pad.Held.Start) PA_PowerOff();
- PA_WaitForVBL();
- }
- return 0;
- }
und das sind die Fehlermeldungen
> "make"
main.cpp
arm-eabi-g++ -MMD -MP -MF /c/devkitPro/examples/nds/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/c/devkitPro/examples/nds/hello_world/include -I/c/devkitPro/examples/nds/hello_world/build -I/c/devkitPro/libnds/include -I/c/devkitPro/libnds/include -I/c/devkitPro/examples/nds/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /c/devkitPro/examples/nds/hello_world/source/main.cpp -o main.o
c:/devkitPro/examples/nds/hello_world/source/main.cpp: In function 'int main()':
c:/devkitPro/examples/nds/hello_world/source/main.cpp:52:15: error: 'PAD_ScanPads' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:54:8: error: 'Pad' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:54:36: error: 'PA_PowerOff' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:56:19: error: 'PA_WaitForVBL' was not declared in this scope
c:/devkitPro/examples/nds/hello_world/source/main.cpp:59:1: error: expected '}' at end of input
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:01 -
C-Quellcode
- /* Print function, usefull for debugging purpose...
- */
- // Includes
- #include <PA9.h> // Include for PA_Lib
- // Function: main()
- int main()
- {
- PA_Init(); // Initializes PA_Lib
- // Initialise the text system on the top screen
- PA_LoadDefaultText(0, // Bootom screen
- 0); // Background number, from 0-3, on which to load the text system
- PA_Print(0, "Hello World %d \n", pa_printscroll[0]);
- PA_Print(0, "Hi there ! :p\n");
- // Infinite loop to keep the program running
- while (1)
- {
- // Get the stylus position and show it on screen when the stylus touches the screen...
- if(Stylus.Held) PA_Print(0, "Stylus Position : %d, %d \n", Stylus.X, Stylus.Y);
- if(Pad.Held.Start) PA_PowerOff();
- PA_WaitForVBL();
- }
- return 0;
- } // End of main()
mfg
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!
-
okay danke aber wo finde ich die PA_lib ?? bzw. PA9.h??
-
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!
-
Okay habs die offizielle version installed jetzt kommt aber die meldung
c:/devkitPro/examples/nds/hello_world/source/main.cpp:11:45: fatal error: PA9.h: No such file or directory -
im palib-ordner sind auch examples drin, probier mal ob die gehen.
mfg
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!
-
-
ja, einfach um zu testen ob es richtig installiert ist
mfg
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!
-
schneint nicht so gibt wieder den error ich installs grad noch mall .. mom
-
Also ne geht nicht.. kannst du vielleicht die PA9.h hochladen ich geh ja mal davon aus das du sie aufm PC hast...:D???
-
Die datei nützt dir nichts, weil da nur die funktionsköpfe der funktionen drin stehen.
Und du musst doch e nur den palib-ordner in deinen devkitpro-ordner kopieren.
mfg
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!
-
hab ihn doch schon in den devkitppc ordner kopiert ... geht trotzdem net (auch nicht im normalen devkit ordner)
-
palib-dev.com/downloads.html
hier gibts die aktuelle version, einfach den palib ordner ins devkitpro verzeichnis kopieren
und dann sollte alles gehen.
mfg
Meine : 3.4 -> 3.2 -> 4.2, cIOS rev 19, USBLoader gx, DVDx, Softchip r90 und Bootmii! x2, x 2
Meine : x 3
Mein : R4, R4i
Zockst du CoD: Modern Warfare Reflex oder WaW? Dann PN an mich!!