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

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,038
Country
United States
  • Like
Reactions: KirgoPlayer007

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,467
Trophies
3
XP
29,246
Country
United States
1636857253412.png
 
  • Like
Reactions: KirgoPlayer007

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,038
Country
United States
add the following to arm9/source/ds.h
Code:
#ifndef _WIN32
#ifndef stricmp 
#define stricmp strcasecmp
#endif
#ifndef strnicmp 
#define strnicmp strncasecmp
#endif
#endif

towards the top - after the #include section

then run:
Code:
make clean && make

then it successfully builds for me - did not try to see f it actually runs though. from there you still need the n64 doom rom and to run it through wadgen. there is a binary in the wadgen/msvc6/bin folder - not sure if that works either ...

edit: changed code
 
Last edited by elhobbs,

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,038
Country
United States
think it was a typo, but here's a new error:

View attachment 284705
I modified the code change above

you will also need a couple more changes to get it to actually run
d_base.s - change the Functions block at the top to add the STT_FUNC type
Code:
@==========================================================================
@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

and then change ds.c - to remove the outdated fat0:// reference
Code:
//
// I_FilePath
//

const char* I_FilePath(const char* file)
{
    static char fname[256];

    sprintf(fname, "%s", file);
    return fname;
}
 

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,038
Country
United States
I'm trying to test if it works, and I'm getting iwad not found. I placed the doom64.wad in the same location as the nds rom, but this error comes up every time.
There can be a couple reasons for this. You missed the file path function change. Or your launcher does not support current directory. The file path change is required in both scenarios. If it is the launcher then putting the wad at the root directory should work.
 
  • Like
Reactions: KirgoPlayer007

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: Good night