ArinoCX
Posts: 31
Joined: 26 Jun 2019, 15:15

Re: MegaSD custom menu is now available!

11 Jun 2020, 15:06

Please can someone post the sample Everdrive-like menu.msd?

I've tried to run the provided script (after installing SGDK and setting the path in the .bat) but I just get an error. I checked and the files appear to be where they should be

Got the SGDK from here - https://github.com/Stephane-D/SGDK/rele ... sgdk151.7z

Error:

C:\Windows\System32>SET SGDK=G:\SGDK-Master

C:\Windows\System32>G:\SGDK-Master\bin\gcc -m68000 -Wall -fno-builtin -I G:\SGDK-Master\inc -BG:\SGDK-Master\bin -c rom_head.c -o rom_head.o
gcc: error: rom_head.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.

C:\Windows\System32>G:\SGDK-Master\bin\ld rom_head.o -T G:\SGDK-Master\md.ld -nostdlib --oformat binary -o rom_head.bin
G:\SGDK-Master\bin\ld: cannot find rom_head.o: No such file or directory

C:\Windows\System32>G:\SGDK-Master\bin\gcc -m68000 -Wall -fno-builtin -I G:\SGDK-Master\inc -BG:\SGDK-Master\bin -c sega.s -o sega.o
gcc: error: sega.s: No such file or directory
gcc: fatal error: no input files
compilation terminated.

C:\Windows\System32>G:\SGDK-Master\bin\gcc main.c -m68000 -Wall -O2 -fno-builtin -B G:\SGDK-Master\bin -n -T G:\SGDK-Master\md.ld -nostdlib sega.o -IG:\SGDK-Master\inc -IG:\SGDK-Master\res G:\SGDK-Master\lib\libmd.a G:\SGDK-Master\lib\libgcc.a -o main.out
gcc: error: main.c: No such file or directory
gcc: error: sega.o: No such file or directory

C:\Windows\System32>G:\SGDK-Master\bin\objcopy -O binary main.out main.bin
G:\SGDK-Master\bin\objcopy: 'main.out': No such file

C:\Windows\System32>G:\SGDK-Master\bin\sizebnd main.bin -sizealign 131072
Couldn't open input file main.bin

C:\Windows\System32>copy /Y main.bin menu.msd
The system cannot find the file specified.

User avatar
neodev
Posts: 452
Joined: 09 Apr 2018, 14:47

Re: MegaSD custom menu is now available!

11 Jun 2020, 21:20

I'll have a look. Maybe there is some file missing

ArinoCX
Posts: 31
Joined: 26 Jun 2019, 15:15

Re: MegaSD custom menu is now available!

13 Jun 2020, 01:14

neodev wrote:
11 Jun 2020, 21:20
I'll have a look. Maybe there is some file missing
Thanks NeoDev. Would really like to try this

User avatar
neodev
Posts: 452
Joined: 09 Apr 2018, 14:47

Re: MegaSD custom menu is now available!

13 Jun 2020, 10:14

It seems you are running thr mk script from the system32 directory, it must be run in the directory where the rest of the files are.

ArinoCX
Posts: 31
Joined: 26 Jun 2019, 15:15

Re: MegaSD custom menu is now available!

13 Jun 2020, 10:23

I just tried re-downloading the SGDK and now getting a different error:


C:\Users\Downloads\SampleMegaSDMenu-master>mk.bat

C:\Users\Downloads\SampleMegaSDMenu-master>SET SGDK=G:\SGDK-Master

C:\Users\Downloads\SampleMegaSDMenu-master>G:\SGDK-Master\bin\gcc -m68000 -Wall -fno-builtin -I G:\SGDK-Master\inc -BG:\SGDK-Master\bin -c rom_head.c -o rom_head.o

C:\Users\Downloads\SampleMegaSDMenu-master>G:\SGDK-Master\bin\ld rom_head.o -T G:\SGDK-Master\md.ld -nostdlib --oformat binary -o rom_head.bin

C:\Users\Downloads\SampleMegaSDMenu-master>G:\SGDK-Master\bin\gcc -m68000 -Wall -fno-builtin -I G:\SGDK-Master\inc -BG:\SGDK-Master\bin -c sega.s -o sega.o

C:\Users\Downloads\SampleMegaSDMenu-master>G:\SGDK-Master\bin\gcc main.c -m68000 -Wall -O2 -fno-builtin -B G:\SGDK-Master\bin -n -T G:\SGDK-Master\md.ld -nostdlib sega.o -IG:\SGDK-Master\inc -IG:\SGDK-Master\res G:\SGDK-Master\lib\libmd.a G:\SGDK-Master\lib\libgcc.a -o main.out
main.c: In function 'LoadGame':
main.c:147:22: error: 'PLAN_A' undeclared (first use in this function)
VDP_fillTileMapRect(PLAN_A, 0x0020, 0, 0, 40, 28);
^~~~~~
main.c:147:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'main':
main.c:318:25: error: 'PLAN_A' undeclared (first use in this function)
VDP_fillTileMapRect(PLAN_A, 0x0020, 0, 0, 40, 28);
^~~~~~
main.c:259:7: warning: unused variable 'i' [-Wunused-variable]
int i;
^

C:\Users\Downloads\SampleMegaSDMenu-master>G:\SGDK-Master\bin\objcopy -O binary main.out main.bin
G:\SGDK-Master\bin\objcopy: 'main.out': No such file

C:\Users\Downloads\SampleMegaSDMenu-master>G:\SGDK-Master\bin\sizebnd main.bin -sizealign 131072
Couldn't open input file main.bin

C:\Users\Downloads\SampleMegaSDMenu-master>copy /Y main.bin menu.msd
The system cannot find the file specified.




Are you able to just provide the sample menu.msd?

Thanks

User avatar
Greg2600
Posts: 25
Joined: 29 Jan 2019, 02:44

Re: MegaSD custom menu is now available!

13 Jun 2020, 20:05

Is there an example of what it looks like?

ArinoCX
Posts: 31
Joined: 26 Jun 2019, 15:15

Re: MegaSD custom menu is now available!

17 Jun 2020, 00:49

Has anyone actually gotten this to work?

User avatar
neodev
Posts: 452
Joined: 09 Apr 2018, 14:47

Re: MegaSD custom menu is now available!

18 Jun 2020, 07:45

It looks like it's a newer sgdk version and some variable names changed. I'll check it

ArinoCX
Posts: 31
Joined: 26 Jun 2019, 15:15

Re: MegaSD custom menu is now available!

18 Jun 2020, 11:20

neodev wrote:
18 Jun 2020, 07:45
It looks like it's a newer sgdk version and some variable names changed. I'll check it
Thank you!

ArinoCX
Posts: 31
Joined: 26 Jun 2019, 15:15

Re: MegaSD custom menu is now available!

05 Jul 2020, 11:27

Just an FYI - I used this version:

https://github.com/Stephane-D/SGDK/releases/tag/1.34

and the menu.msd created successfully and works.

Super clean menu and super quick browsing, just need to be able to go back a level using the B button and add ability to access the MegaSD settings in this menu and it will be perfect 8-)

menu.msd is here if anyone wants to try it out - https://gofile.io/d/Jd9c5M

Return to “MegaSD Discussion”