PDA

View Full Version : Bible reader plugin for DSOrganize



wraggster
January 27th, 2007, 15:30
Nick Spacek posted this on his blog (http://nspacek.blogspot.com/2007/01/bible-reader-plugin-for-dsorganize.html):


I've been working on this for a week or so, picking up stuff about C++ along the way. The code's pretty dirty at the moment (I'd like to think it's at least designed half well, but I won't make that claim yet. :) ). I wanted to just release this early version so that it would be out there for anyone interested.

You can find some Bible texts here: http://www.o-bible.com/dlb.html

The format is like this:
bookname chapter:verse text
each on its own line. That's all that the reader parses at the moment.

I wanted to be able to get around quickly, so what it does is build an "index" file of a sort. The first time you open a Bible text it will take a little while (there's a little loading text). Both the KJV and BBE versions I linked should work. Hopefully any with similar structure should work as well. Anyways, the first time it will build the index file which should have a .bfo extension. It records the position of the beginning of each chapter in the text file, so getting to any verse involves looking up the file position for the chapter and searching for the verse.

Apparently the BBE version is not working 100%. The file seems to be parsed ok, and it worked the first time (when the index was created), but upon loading it the second time it can't find the text or something. I'll figure it out sometime this weekend probably.

Nick

Features


Indexed browsing

Crappy interface (can only move by verse, chapter, and book, one at a time)
No searching
Doesn't support multiple formats (doesn't even [fully] support the one format it's supposed to ;) )


Links

Bibles: http://www.o-bible.com/dlb.html
Plugin: http://nick.spacek.googlepages.com/dsoBib.dsp
Things to do

New icon (doh, meant to do that!)
Get rid of unnecessary buttons
Loading animation
Thanks DragonMinded for the suggestions!

Sigma83
January 27th, 2007, 19:02
Could someone explain how to get this to work? I have DSOrganize built for the supercard ds one. Thank you.

EDIT: Does anyone know if plugins even work in the supercard ds one version? I am having a lotta trouble. No plugins recognized, and even new icons not recognized.


Thanks.


Edit: wow, i didn't realize dsorganize was modified to include DLDI support! unreal, homebrew rulez.

DoughBoi
January 27th, 2007, 20:42
i've been looking forward to something like this.. thx..

but how do you use the plugin?

ZAFDeltaForce
January 27th, 2007, 23:23
i've been looking forward to something like this.. thx..

but how do you use the plugin?

Put the plugin in the "PLUGINS" folder in your DSOrganize directory. Remember to DLDI patch it, too.

The strange things are, everytime I boot the Bible.bib file, it always takes me to chapter John. When I select back and reload the Bible.bib file again however, all i see are the chapters and no verses.

Hmm...

DoughBoi
January 28th, 2007, 02:06
i've put it in the plugin folder, but i don't know what you mean by DLDI patch it. Can you please explain?

much appreciated

Sigma83
January 28th, 2007, 02:55
You can google dldi for DS and learn about how to patch programs. In this case, you most likely need to patch DSOrganize. Then, the bible reading plugin will allow u to open the bible.bib file that you need to download (it'll be called bible.txt, just change the extension).
If you tell me what hardware you're using i'll do it for you and upload it :).

TeenDev
January 28th, 2007, 04:09
i dont have much use for it but its the only plugin i have files for... unlike the WonderSwan one

DoughBoi
January 28th, 2007, 05:38
You can google dldi for DS and learn about how to patch programs. In this case, you most likely need to patch DSOrganize. Then, the bible reading plugin will allow u to open the bible.bib file that you need to download (it'll be called bible.txt, just change the extension).
If you tell me what hardware you're using i'll do it for you and upload it :).

thanks for your help, i'm using a supercard lite/superkey.

thanks again

Sigma83
January 28th, 2007, 08:05
thanks for your help, i'm using a supercard lite/superkey.

thanks again

Here is the DSOrganize.nds file.

http://www.wikiupload.com/download_page.php?id=64890

You need to get the rest of the directories from DSOrganize's website. Then put these on your SD card. Then drop the bible.dsp plugin into the plugin folder. Then rename the bible you download from a (.txt) file to a (.bib) file. Then run DSOrganize, use the browser tool, navigate to the .bib file and open it.

If you have any problems just lemme know.

Cheers,

Greg

DoughBoi
January 28th, 2007, 09:20
Greg, thanks, i got it working

now i have the same problems as ZAFDeltaForce.

i load it the first time and it creates a ".BFO" file and the second time it loads no verses appear. If i manually delete the .bfo file, the verses show up again, but only the first time loading it.

i'm looking forward to the final product. Thanks for making this

tyraen
February 6th, 2007, 17:12
I hope you got it figured out! It's possible that you were using an old version too. I realize this is an old(ish) thread so you guys may even have moved on. I didn't realize that there was one going over here, but I've been posting progress on my blog or over on the gbadev forums (http://forum.gbadev.org/viewtopic.php?t=12262).

Nick

sunsbball32
July 14th, 2007, 04:36
is there a way to make a shortcut for this so that i dont have to go to the browser and locate the bible file? if so how? THANKS