You are not logged in. | Register | Resend Activation
Browsing this Thread: 1 Anonymous Users


Register To Post




#1
Dictionary Search (for ROMs)
Posted on: 2/7 8:54:53
PVB Elite
Joined 2003/7/25
USA
1000 Posts
PVBCC 1stCoderContributor#2 PosterHOTY09 EntryLong Time User (7 Years) App Coder
Offline
Hey,

I was looking through some backup CDs today and came across an app I wrote about 5 years ago while bored at work. It searches a file looking for words in a dictionary, which I wanted so I could search VB ROMs for words, like DEBUG, SOUND TEST, etc.

I didn't remember how complete it was, but I did some testing today and it seems to work, so I added a few finishing touches to it, and now here it is :) . The executable, source, dictionary file, and readme are in the zip. I included a dictionary that I had found online somewhere, though it's possible to use your own.

By default it searches all offsets (where the alphabet starts, i.e. ASCII=0x41), though you can specify which offset to search for, as well as the minimum word length. It takes a long time to process, but hopefully you'll only need to do it once for each ROM.

I was kinda surprized that it just worked, so it's possible that there's some bugs... let me know if you run into any problems.

DogP

Attach file:


zip dictfind.zip Size: 353.76 KB; Hits: 21
Visit Project: VB
Top

#2
Re: Dictionary Search (for ROMs)
Posted on: 2/7 22:17:58
VUE(xpert)
Joined 1/5
Sweden
406 Posts
Highscore Top10Highscore Top ScoreHighscore Top ScoreHighscore Top ScoreHighscore Top ScoreTop10 Poster10+ Game RatingsDonator
Offline
I found this browsing through both versions of Vertical Force earlier.

File names?

Attach file:



png  Image1.png (17.89 KB)
1239_4b6f30071efef.png 608X607 px
Top

#3
Re: Dictionary Search (for ROMs)
Posted on: 2/7 22:23:45
PVB Elite
Joined 2003/7/25
USA
1000 Posts
PVBCC 1stCoderContributor#2 PosterHOTY09 EntryLong Time User (7 Years) App Coder
Offline
I know there's a lot of interesting stuff in Vertical Force... you can get to the debug menu by adding a cheat in Red Dragon. But most games have some text in them, I'm mostly interested in finding the ones that weren't supposed to be found ;) .

DogP
Visit Project: VB
Top

#4
Re: Dictionary Search (for ROMs)
Posted on: 2/9 0:55:14
PVB Elite
Joined 2003/7/26
USA
652 Posts
PVBCC EntryCoderContributorSpecial Achievement#3 Poster10+ Game RatingsHOTY09 EntryLong Time User (7 Years) App Coder
Offline
This is slightly (okay, completely ) off-topic, but I thought of another "search" utility that would be really cool to have. I thought of it while reading in the "ROM hacking" thread about changing the key mapping in Mario Clash (something I've wanted to do since I first played it!). I don't think it would be very hard to make, starting with DogP's code.

The idea is, instead of disassembling the entire ROM (after first mapping out the location of code with RB ) one could have a "searching assembler" which accepts a snippet of assembly language (perhaps with placeholders for register names, since they're interchangeable) and searches for every occurrence of the different permutations of that code in a (ROM) file, showing the actual disassembly and the offset into the file.

I can't really start on this now, and I can't imagine anyone else wants to but I may get to it eventually. Well, at least the idea's out there...
No other word than the Word of God -- Deuteronomy 4:2; 12:32; Proverbs 30:6; Galatians 1:8-9; Revelation 22:18-19
No other god than the God of the Bible -- Deuteronomy 8:19; 13:1-8; Joshua 24:14-15; Matthew 6:24; Acts 17:22-31
Top

#5
Re: Dictionary Search (for ROMs)
Posted on: 2/9 1:23:49
VUE(xpert)
Joined 1/5
Sweden
406 Posts
Highscore Top10Highscore Top ScoreHighscore Top ScoreHighscore Top ScoreHighscore Top ScoreTop10 Poster10+ Game RatingsDonator
Offline
Quote:

DogP wrote:
I know there's a lot of interesting stuff in Vertical Force... you can get to the debug menu by adding a cheat in Red Dragon. But most games have some text in them, I'm mostly interested in finding the ones that weren't supposed to be found ;) .

DogP


Is it likely there's some key combination that let's you enter this debug menu? Or is it residue from a development version?
Top

#6
Re: Dictionary Search (for ROMs)
Posted on: 2/9 3:33:18
PVB Elite
Joined 2003/7/25
USA
1000 Posts
PVBCC 1stCoderContributor#2 PosterHOTY09 EntryLong Time User (7 Years) App Coder
Offline
e5: I've never looked at it, so I'd just be guessing... but those things aren't really meant to be found, so it wouldn't be surprizing if it was removed (or #ifdef DEBUG'd or something), but Red Alarm had its accessible from the regular game, so who knows.

RP: What's the difference between what you're talking about and just searching a disassembly?

DogP
Visit Project: VB
Top

#7
Re: Dictionary Search (for ROMs)
Posted on: 2/9 9:52:54
PVB Elite
Joined 2003/7/26
USA
652 Posts
PVBCC EntryCoderContributorSpecial Achievement#3 Poster10+ Game RatingsHOTY09 EntryLong Time User (7 Years) App Coder
Offline
Quote:

DogP wrote:
RP: What's the difference between what you're talking about and just searching a disassembly?


(Although I already answered on the IRC channel, I'll reply here for posterity.)

The key benefit would be ease-of-use (no need to worry about making a regular expression that fits the particular disassembler's interpretation of the code). But, as you proved with your "ROM mapping" tools, a disassembly listing is a lot to sift through, and disassemblers aren't (yet?) perfect.

But, like I said, I'll either do it myself or do without, so don't worry about it .
No other word than the Word of God -- Deuteronomy 4:2; 12:32; Proverbs 30:6; Galatians 1:8-9; Revelation 22:18-19
No other god than the God of the Bible -- Deuteronomy 8:19; 13:1-8; Joshua 24:14-15; Matthew 6:24; Acts 17:22-31
Top



Register To Post