Homebrew DSCrawl - a humble request

Atantuo

New Member
OP
Newbie
Joined
Sep 29, 2012
Messages
4
Trophies
0
XP
2
Country
Gambia, The
Hi everyone.

First of all, please don't get me wrong. I'm well aware many people will not take kindly to this kind of posting, and I can see why.
However, I'm not making any kind of demand, just asking. If someone around here, more knowledgeable than I (which should be almost everyone), can afford the time to look at this, I'll be forever grateful - if not, then that's ok as well.

But perhaps I really should make my request clear first... so here goes.
There is a wonderful game called Linley's Dungeon Crawl, aka Crawl, that has been kindly ported by Sasq to be playable on the DS. Version 1.0 beta1 has been in some form modified by errabes, so that it runs on slot-1 devices, like my DSTwo.
Ever since I learned about this game, I have been playing it like crazy, and it works well enough, even though it's labeled beta.
Now, a little while ago, I learned that a newer version of DSCrawl exists, V1.0 . I looked all over the internet, only to find that no patched or modded version exists (or at least I didn't find it) that works with my supercard.
That is, it works, but runs only in RAM, so I have no score table, no saving, etc., but it fixes all those little bugs and annoyances, making the game even better than the awesome beta version.

I have tried to figure out how to make the necessary changes myself, but so far haven't had any luck. At first, I thought my (albeit quite limited) knowledge in programming might enable me to find some way to fix the problem, but apparently that's not the case.
So, to finally make my point, If anyone here knows what exactly has to be done, and maybe even knows how to do it, please tell me. Maybe a little push in the right direction might help me to fix it after all. Or if it is, as I suspect, a rather trivial matter to anyone more proficient in homebrew programming, it would be super awesome if that kind person could piece together a version 1.0 final with the same kind of changes errabes made to th beta version.

In any case, many thanks to everyone who decides to help me in some way or other.


By the way, the files I have been talking about are available here:

Modded version 1.0 beta1: http://errabes.free.fr/pogo2/

Version 1.0 (final): http://web.archive.o...de.org/dscrawl/
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,850
Country
Poland
It's fairly easy to create a Save/Load feature for the game.

Do you know all the variables that you'd want to save? If you do, you can place them all in a structure and save into a file using FAT. To do so, include libfat into the source project. To load them, you do the oposite - open the file, load up the variables into the structure and presto!

Of course it would require certain changes to the game code itself, but it shouldn't be *that* hard, merely time-consuming.
 

Atantuo

New Member
OP
Newbie
Joined
Sep 29, 2012
Messages
4
Trophies
0
XP
2
Country
Gambia, The
include libfat into the source project

From what I've read so far, I think this is what would have to be done (a save feature is in the game, but since it will only run in RAM, it can't be used) - except I haven't even an idea where to start doing that.
My knowledge of DS (or any kind of) homebrew is basically zero. My idea was to open the program code, figure out the "libfat support piece of code" errabes added (by comparing it to the "unchanged" file) and replicating that with the newer version of the game.
So far I haven't even managed to get any human-readable code to get started - yes, I'm that much of a noob.

Thanks for the reply though. Maybe someone can give *very* specific hints as to what programs to use, what tutorials to read that I need, and whatnot, that would be awesome! Or, of course, hand me a libfat-patched ready-to-play rom, that'd be fine as well ;)
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,850
Country
Poland
include libfat into the source project

From what I've read so far, I think this is what would have to be done (a save feature is in the game, but since it will only run in RAM, it can't be used) - except I haven't even an idea where to start doing that.
My knowledge of DS (or any kind of) homebrew is basically zero. My idea was to open the program code, figure out the "libfat support piece of code" errabes added (by comparing it to the "unchanged" file) and replicating that with the newer version of the game.
So far I haven't even managed to get any human-readable code to get started - yes, I'm that much of a noob.

Thanks for the reply though. Maybe someone can give *very* specific hints as to what programs to use, what tutorials to read that I need, and whatnot, that would be awesome! Or, of course, hand me a libfat-patched ready-to-play rom, that'd be fine as well ;)
Do you have the source code that could be modified? "Decompiling the game" isn't going to work. ;)
 

Atantuo

New Member
OP
Newbie
Joined
Sep 29, 2012
Messages
4
Trophies
0
XP
2
Country
Gambia, The
Way to destroy what little hope I had :(

Is there really nothing to be done without the source? Some kind of workaround maybe, without actually changing the game file? Any ideas? *grasping at straws*

I don't know if this is of any help at all, but I was going to post this above anyway, except I forgot to do so...
This is the error message the game gives on startup (pretty much the same for all of the supplied versions, but this is from the standard version using rein):

Code:
Initing fat filesystem (rein) ...
No FAT filesystem detected
Using internal (GBFS) data files
Could not detect GBA cart SRAM!
RAM will be used instead which means your game will be lost when you switch off your machine.
Saving to '/ram/'
 

chyyran

somehow a weeb now.
Developer
Joined
Dec 10, 2009
Messages
2,845
Trophies
1
Location
here
Website
ronnchyran.com
XP
1,076
Country
Canada
Way to destroy what little hope I had :(

Is there really nothing to be done without the source? Some kind of workaround maybe, without actually changing the game file? Any ideas? *grasping at straws*

I don't know if this is of any help at all, but I was going to post this above anyway, except I forgot to do so...
This is the error message the game gives on startup (pretty much the same for all of the supplied versions, but this is from the standard version using rein):

Code:
Initing fat filesystem (rein) ...
No FAT filesystem detected
Using internal (GBFS) data files
Could not detect GBA cart SRAM!
RAM will be used instead which means your game will be lost when you switch off your machine.
Saving to '/ram/'

Should be a way to decompile it into ARM assembly language.

But, good luck learning ASM! :/
 

Byny

Member
Newcomer
Joined
Sep 23, 2009
Messages
16
Trophies
0
XP
192
Country
Brazil
The thing is, DSCrawl is probably very dated.
DCSS is being updated regularly, and it is awesome.
Now, if someone is really willing to create a port for the DS, it would awesome and doable.
DCSS is open source, coded in C++ using SDL. It has an ASCII and a tiles version(which has a nice mouse interface, and should be the most suitable for the DS).
 

Arras

Well-Known Member
Member
Joined
Sep 14, 2010
Messages
6,318
Trophies
2
XP
5,413
Country
Netherlands
It looks like it's released under a modified GPL license. You might be able to get the source for 1.0 if you can contact the author.
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,850
Country
Poland
I second the motion of contacting the author, and if that fails, "technically" you could create a bootloader-type application that would work in the background and dump the entirety of the RAM to a file and load it by using a combination of keys - that way, you would be able to extract the values without having to modify the original binary at all. That said, Real Time Saving is quite a tall order for someone with no previous experience in coding. It's doable, but tricky, depending on how much RAM is allocated after the game boots.
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,850
Country
Poland
What, I just read that error you posted. So, the game does natively support FAT, it merely cannot detect it? Have you tried DLDI patching it for your flashcart?

Edit: Blasted T9 writes whatever it feels like writing. >>;
 

Atantuo

New Member
OP
Newbie
Joined
Sep 29, 2012
Messages
4
Trophies
0
XP
2
Country
Gambia, The
Many thanks for all the replies.
After reading this, and looking around the internet some more, I think I'll just give up for now.
The beta is fun and playable enough, and I don't see myself creating that bootloader anytime soon :)
In the meantime, I'll be hoping for someone to bring DCSS to the NDS...
 
  • Like
Reactions: ferofax

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub: