DSLua Community

General DS Programming Chats => Code Hashing => Topic started by: bug on January 21, 2007, 07:23:11 PM



Title: Auto booting game?
Post by: bug on January 21, 2007, 07:23:11 PM
Is there any way of auto booting the game without having to go through the lua menu in gbfs mode?

Thanks for any responses, Bug


Title: Re: Auto booting game?
Post by: Jeremysr on January 21, 2007, 08:55:38 PM
Yep, use autostart.exe (comes with DSLua 0.6). It will edit the directory to find the program to be auto-started. Put it in the same directory as the already-packed GBFS rom and use the command line to type

autostart.exe DSLUA-PACK.nds Gamename.nds /gbfs/

It'll copy DSLUA-PACK.nds to Gamename.nds and edit Gamename.nds to auto-start /gbfs/main.lua.

Or if you'd rather use a hex editor/can't run .exe's, you can find where to change it by doing a text search for "___" (3 underline characters)


Title: Re: Auto booting game?
Post by: bug on January 22, 2007, 10:49:30 AM
kl, thx :)

I will try that out now :D


Title: Re: Auto booting game?
Post by: bug on January 22, 2007, 11:27:30 AM
Awesome :D

Even works with the sc.nds file :D

Thanks dude, help much apreciated :D


Title: Re: Auto booting game?
Post by: molster on July 20, 2007, 10:24:58 PM
I cant seem to get this to work. My script is named main.lua . I run autopak, test the .sc.nds, and it works fine... so now i want to make it auto start the main.lua, i open command prmt and do the following

autostart.exe DSLUA-PACK.sc.nds test.sc.nds /gbfs/

and when i run the test, i stil have to select the file (and I even looked at its hex, it was changed.. but didnt work)


turns out, that i used \gbfs\ and not /gbfs/ my bad =(