Spektre Posted November 21, 2014 Posted November 21, 2014 Has anyone looked at the .vpt file format? I'd like to programmatically edit the table scripts without opening the vp editor. Spektre
Content Provider gtxjoe Posted November 21, 2014 Content Provider Posted November 21, 2014 I have seen the topic come up but I don't remember seeing a final answer... maybe get a hold of Freezy - he was working on something see first topic below http://www.hyperspin-fe.com/forum/showthread.php?28069-Introducing-Pind-A-Pinball-Daemon&p=296610&viewfull=1#post296610 http://vpuniverse.com/forums/topic/933-what-to-do-when-you-go-to-open-a-vp-table-and-its-corrupt/?hl=corrupt http://www.vpforums.org/index.php?showtopic=23965
Content Provider Rascal Posted November 21, 2014 Content Provider Posted November 21, 2014 If you have 7-zip, you can open a .vpt file by right clicking it. Then go to 7-zip and Open archive. You will see in the archive two folders called TableInfo and GameStg. Double click GameStg and scroll down and right click GameData and pick Edit. You can see all the script there. 7-zip says that the archive is a compound file, so if you find out how to create a program that can make a compound file you might be able to make your program. Here is a project on sourceforge. http://sourceforge.net/projects/openmcdf/files/Sample%20Compound%20File%20Viewer/ You could probably also rip the source code from VP too.
DJRobX Posted November 25, 2014 Posted November 25, 2014 Definitely suggest using the VP code as a starting point. It's based on Microsoft's IStorage interface. You definitely don't want to try and reverse engineer that mess if you don't have to. http://msdn.microsoft.com/en-us/library/windows/desktop/aa380015%28v=vs.85%29.aspx http://winapi.freetechsecrets.com/ole/OLEIStorage.htm
HorsePin Posted April 3, 2015 Posted April 3, 2015 If you have 7-zip, you can open a .vpt file by right clicking it. Then go to 7-zip and Open archive. You will see in the archive two folders called TableInfo and GameStg. Double click GameStg and scroll down and right click GameData and pick Edit. You can see all the script there. 7-zip says that the archive is a compound file, so if you find out how to create a program that can make a compound file you might be able to make your program. Here is a project on sourceforge. http://sourceforge.net/projects/openmcdf/files/Sample%20Compound%20File%20Viewer/ You could probably also rip the source code from VP too. Funny this. I actually tried the compound viewer a few days ago. It can save, but obviously the tables end up corrupted. Still the best way to inject a script is by loading with autohotkey and replacing it on load unfortunatley, but it does the job.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.