Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: DAT PATCHER
PostPosted: Wed Dec 09, 2009 2:53 pm 
The worm at the bottom of the bottle
User avatar
Joined: Sun Oct 28, 2007 4:38 am
Posts: 660
Location: Brasov, ROMANIA
It depends, switches and other objects are Door derivatives. I don't know how you extract the doors, but this may explain some of the weirder results.


Profile  Offline
 
 Post subject: Re: DAT PATCHER
PostPosted: Sun Dec 13, 2009 5:42 am 
Rainbow Trout
User avatar
Joined: Sun Mar 08, 2009 11:05 pm
Posts: 65
ah thanks Herr, I have also been getting some head ground in reading the dat files with fstream's ancient read() function. The catch is the son of a bitch needs to be opened up in binary mod otherwise the program with glitch out after so many character being read with a '*' character being outputted and a -1 from the tellg() function. So I can read the whole file(which will take a good 5 minutes) but I can't get the character I am comparing with it to properly do the check I have implemented to see if it is the object I am looking for. But progress is being made. :)


Profile  Offline
 
 Post subject: Re: DAT PATCHER
PostPosted: Mon Dec 21, 2009 5:14 am 
Rainbow Trout
User avatar
Joined: Sun Mar 08, 2009 11:05 pm
Posts: 65
Download link:

Attachment:
DATPATCHERPOC.zip [8.29 KB]
Downloaded 3 times


WOOT FINALLY!!! I have something to show for my hard work. It was so hard NOT to post what ever head-ground I had made because I know I didn't need the stress if a feature had to be removed/altered in any way. But I finally have a working and extremely accurate proof of concept application that will open a .DAT file(or any file for that matter) and search and retrieve the location of all the instances of that word. Though I know many may be thinking "Why just the word Door?" Well mainly because this is a proof of concept and I am FAR from done. But showing my progress takes a lot off my chest by showing the community that I don't make vaporware and that those $700 C++ classes really paid off. Anyway sorry for my ramblings from the readme:

Quote:
Released 12-20-2009
Ver: Proof-of-Concept
By Thrownspear of UEF Clan

PLEASE BE SURE TO READ ALL OF THIS!!!

SPECIAL THANKS TO LITHFAQ.COM AND MY CLAN FOR THE INSPIRATION TO DO THIS

WARNING: You agree to use this application provided at your own risk and not hold the
author of this software responsible for any and all damages done to personal
property, self, or any other piece(s) of equipment. This software is provided
as-is with no guarantee of it's success in any field of use. You agree by
downloading and/or using this software not to sell and/or rent this software
or any of it's later or modified versions and/or builds.

Whats New:

A far better and more efficent method of search. Word to the wise when dealing with huge files that may have eof markers all over them... ios::binary is your only hope of survival :). As well as a better method of outputting results with an addition feature of saving those results in another file.

HOW TO USE:

1. Place the compiled .dat map for Aliens Versus Predator 2 into the DATPATCHERPOC folder.

2.Start up datpatcherpoc.exe and type Y or y to agree to the terms stated above the input prompt, N or n will exit the program.

2.After all the locations of the word 'Door' show up in hex there will be no need to make a note of them. Simply copy the .DUMP of your file to a safe place so you can see where exactly in the file 'Door' can be found. Then type Y or y to scan your .dat file, or another file, again or type N or n to exit the program. It is recommended that you open that file in notepad, or rename its extension to .txt, the reason it is as a .DUMP is for future revisions when editing the .DAT file is implemented.
WARNING: every time you do a scan of a file the old .DUMP from the previous scan of that file will be overwritten.

Troubleshooting:

Problem:
1.Why is it that my file cannot be found and I get the 'Please input a correct filename...' error message?

Solution:
Make sure that you placed the file you want to open in the directory that datpatcherpoc.exe is in otherwise it will not read it and continue to ask for a correct filename until you give it one, or exit the program.

Problem:
2.I get locations to the word 'Door' in other places in the file besides where it is an object. Why?

Reason:
This is just a proof of conncept to show that this sort of this is possible with avp2 maps in their compiled form. Later revision will be much more accurate.

For any unknown bugs please refer to the Contact tab.

Contact:
I haven't come accrose any errors other than that yet, but if you find any please email them to me at thrownspear-AT-yahoo.com(@ removed for anti-spam)

Distribution:
If you want to distribute this program fine, but it must not be sold and/or rented out to the public this program is intended to be free and for the community.


Screenie of it in action:
http://img695.imageshack.us/img695/4743/datpatcherpcpic.jpg

You may have also noticed that the release date and this post is off, well I tried to make it but I was too slow to finish this post. Lol oh well. And yes the agreement is different in both the program and the readme. I really don't see any harm in this as they both pretty much mean the same thing.

Questions/Comments? :mrgreen:


Profile  Offline
 

Display posts from previous:  Sort by  

Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 0 guests

Panel

Top You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Dizayn Ercan K.
[
SEO MOD © 2007 StarTrekGuide ]