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

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,033
Trophies
1
XP
2,654
Country
United States
  • Like
Reactions: KirgoPlayer007

godreborn

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

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,033
Trophies
1
XP
2,654
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,033
Trophies
1
XP
2,654
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,033
Trophies
1
XP
2,654
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
General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Ken posting more Steamy porn lol
  • K3N1 @ K3N1:
    Only 400 entries to the miyoo mini give away people be slacking
  • Psionic Roshambo @ Psionic Roshambo:
    I entered lol
  • Psionic Roshambo @ Psionic Roshambo:
    Looks like fun
  • K3N1 @ K3N1:
    You're buying a $10,000 PC I think you can afford a $70 China device :angry:
  • K3N1 @ K3N1:
    I guess Jammie Foxx had a stroke or something
  • AncientBoi @ AncientBoi:
    I think I saw that on the news. :unsure: but not sure
  • AncientBoi @ AncientBoi:
    Omg, Amazon truck crashed n spilled the packages. I was waiting for mine. Expected tomorrow
  • K3N1 @ K3N1:
    Did they crash into a USPS truck?
  • K3N1 @ K3N1:
    Was supposed to get Google fiber installed yesterday but they were like nah we're too busy
    +1
  • K3N1 @ K3N1:
    https://m.imdb.com/title/tt21867434/ kind of liking these biographies that are coming out lately
    +1
  • AncientBoi @ AncientBoi:
    looks funny enough
  • cearp @ cearp:
    the blacker the berry, the sweeter the juice
  • SylverReZ @ SylverReZ:
    Getting wild in the delivery business lol.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Delivery business? Planet express? FUTURAMA! :P
    +1
  • dygeo @ dygeo:
    does anyone have an idea if in usb mode we can increase the overclock to the bottom
  • SylverReZ @ SylverReZ:
    No idea mate.
  • dygeo @ dygeo:
    overclock to maximum *
  • dygeo @ dygeo:
    @sylverez in usb mode it's maximum 768 I wanted to increase to use sysdvr :)
  • dygeo @ dygeo:
    is it not possible to unlock?
  • SylverReZ @ SylverReZ:
    I said, I have no clue. Ask the Switch people bc I don't have a Switch anymore lol.
  • K3N1 @ K3N1:
    I tried getting animal control to take my neighbor they wouldn't do it
    K3N1 @ K3N1: I tried getting animal control to take my neighbor they wouldn't do it