[Question] Can somewhane help me to compile this .nds homebrew game?

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,180
Country
United States
I'm trying it in an emulator (doesn't work on the supercard either). here's what it looks like:

1636865102193.png
 
  • Like
Reactions: KirgoPlayer007

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,180
Country
United States
alright, I got it installed through pacman. I figured it out:

Code:
C:\Users\GODREBORN\Desktop\doom64DS-master-modified>git diff C:\Users\GODREBORN\Desktop\doom64DS-master-modified C:\Users\GODREBORN\Desktop\doom64DS-master
diff --git "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/arm9/source/d_base.s" "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master/arm9/source/d_base.s"
index b624dea..9de1928 100644
--- "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/arm9/source/d_base.s"
+++ "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master/arm9/source/d_base.s"
@@ -10,19 +10,12 @@
 @Functions
 @==========================================================================
     .global _DivInt
-    .type _DivInt STT_FUNC
     .global _SlopeDiv
-    .type _SlopeDiv STT_FUNC
-    .global _R_PointToAngle
-    .type _R_PointToAngle STT_FUNC
-    .global _R_PointOnSide
-    .type _R_PointOnSide STT_FUNC
-    .global    FixedMul
-    .type FixedMul STT_FUNC
-    .global    FixedDiv
-    .type FixedDiv STT_FUNC
-    .global    FixedDiv2
-    .type FixedDiv2 STT_FUNC
+       .global _R_PointToAngle
+       .global _R_PointOnSide
+       .global FixedMul
+       .global FixedDiv
+       .global FixedDiv2

 @=====================================
 @_DivInt/_DivIntU
diff --git "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/arm9/source/ds.c" "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master/arm9/source/ds.c"
index df65b65..5ed0a5a 100644
--- "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/arm9/source/ds.c"
+++ "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master/arm9/source/ds.c"
@@ -75,7 +75,7 @@ const char* I_FilePath(const char* file)
 {
     static char fname[256];

-    sprintf(fname, "%s", file);
+    sprintf(fname, "fat0:/%s", file);
     return fname;
 }

diff --git "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/arm9/source/ds.h" "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master/arm9/source/ds.h"
index ae9728e..a3dfa28 100644
--- "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/arm9/source/ds.h"
+++ "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master/arm9/source/ds.h"
@@ -8,15 +8,6 @@
 #include "doomdef.h"
 #include "z_zone.h"

-#ifndef _WIN32
-#ifndef stricmp
-#define stricmp strcasecmp
-#endif
-#ifndef strnicmp
-#define strnicmp strncasecmp
-#endif
-#endif
-
 #define ARM9_MAIN   main

 void I_Init(void);
diff --git "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/doom64DS-master.zip" "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/doom64DS-master.zip"
deleted file mode 100644
index 070ad9a..0000000
Binary files "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/doom64DS-master.zip" and /dev/null differ
diff --git "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/DOOM64.WAD" "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/DOOM64.WAD"
deleted file mode 100644
index 724bec0..0000000
Binary files "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/DOOM64.WAD" and /dev/null differ
diff --git "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/Doom 64 (U) (V1.0) [!].z64" "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/Doom 64 (U) (V1.0) [!].z64"
deleted file mode 100644
index b69a28d..0000000
Binary files "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/Doom 64 (U) (V1.0) [!].z64" and /dev/null differ
diff --git "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/Doom 64 (U) (V1.1) [!].z64" "b/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/Doom 64 (U) (V1.1) [!].z64"
deleted file mode 100644
index 7d47aa1..0000000
Binary files "a/C:\\Users\\GODREBORN\\Desktop\\doom64DS-master-modified/wadgen/msvc6/bin/Doom 64 (U) (V1.1) [!].z64" and /dev/null differ
(END)
 

Attachments

  • 1636866746322.png
    1636866746322.png
    64.3 KB · Views: 75
  • Like
Reactions: KirgoPlayer007

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,035
Country
United States
I'm not sure how to run git diff.
Oh I assumed you ran git clone to download the repository. I am guessing you downloaded the zip archive instead. I will take a look at your zip file but it won’t be for a while.
As a note - that is the command “git diff” you just need git installed. You run it in the root of the repository.
 
  • Like
Reactions: KirgoPlayer007

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,035
Country
United States
Those changes look correct to me. Are you sure you copied both the nds file and the wad to the root of your ds two?
Try a full rebuild
make clean && make
And make sure you are in the right source directory. And double check that both files made it to the dstwo.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,180
Country
United States
Those changes look correct to me. Are you sure you copied both the nds file and the wad to the root of your ds two?
Try a full rebuild
make clean && make
And make sure you are in the right source directory. And double check that both files made it to the dstwo.
does the rom or wad file need to be named something specific? I also got an sf2 file with the wad, using wadgen. I'm not sure if maybe the problem is both the emulator and the fact that I'm using twilight menu on the ds instead of the normal dstwo menu.
 
  • Like
Reactions: KirgoPlayer007

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,035
Country
United States
does the rom or wad file need to be named something specific? I also got an sf2 file with the wad, using wadgen. I'm not sure if maybe the problem is both the emulator and the fact that I'm using twilight menu on the ds instead of the normal dstwo menu.
I have never used twilight menu. You should only need the nds file and DOOM64.WAD
I am not sure if twilight menu auto dldi patches or if it requires some setup/config to do so.
You could try chain loading with hb menu:
https://github.com/devkitPro/nds-hb-menu/releases/tag/v0.7.1
Launch hb menu then use that to start doom64.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,180
Country
United States
I've already started the process of copying the contents of the sd card to my laptop. then, I'm going to put the normal supercard dstwo stuff on there along with the game and wad to see if it works. then, I need to get some sleep if possible. it's about two hours past my regular time to go to sleep. ;)

btw, does it matter if the extension WAD is in uppercase? someone said it had to be lowercase, but I don't know which is correct.
 
  • Like
Reactions: KirgoPlayer007

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,470
Trophies
3
XP
29,180
Country
United States
not sure what went wrong the first time, but I just compiled the nds file again as well as generated the wad, and it worked. it's 1KB larger than the previous build, so I deleted that one. here's the new one:

20211114_000307.jpg
 

Attachments

  • doom64DS-master-modified.zip
    225.8 KB · Views: 103

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,035
Country
United States
I've already started the process of copying the contents of the sd card to my laptop. then, I'm going to put the normal supercard dstwo stuff on there along with the game and wad to see if it works. then, I need to get some sleep if possible. it's about two hours past my regular time to go to sleep. ;)

btw, does it matter if the extension WAD is in uppercase? someone said it had to be lowercase, but I don't know which is correct.
I suggested hb menu as it does not require replacing/removing anything on the sd card.
The code has uppercase and fat should be case I sensitive. I use uppercase though.
 

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,035
Country
United States
I've got the nds and the wad but whit what I launch it? Twilight menu? R4? Hbmenu? Unlaunch? And how I need to place the 2 files?
It should work as long as both files are in the same directory. Some older launchers don’t support setting the current directory. So if you get an iwad not found error then try the root directory.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/FdYTKAVSsXY?si=9E-2AU0JN-4hRZi3