Jump to content

How to extract the script from a game


outhere

Recommended Posts

Posted

You can also use the TableScript tool as well:

 

https://github.com/VisualPinball/VisualPinball.Tools/releases

 

VisualPinball.TableScript "Terminator 2: Judgment Day (Williams 1991).vpx" .

 

If you're on MacOS, you may have to remove the quarantine attribute:

 

chmod +x VisualPinball.TableScript
xattr -d com.apple.quarantine VisualPinball.TableScript

 

BTW, this tool can also extract scripts from several VPX files (in a directory) in one shot!

Posted

That is god damn sweet @jsm174 !! Out of curiosity. I mentioned in the beta release thread that it could be a good idea to be able to list the internal resources and paths. https://www.vpforums.org/index.php?showtopic=44135&p=480860

 

If 10.7 doesn't come up with a built in solution, would you maybe consider creating this ? I just tested the export of the script on linux, which is what I use when I'm NOT playing, no issues at all. Have been several occasions where I wanted the script, but, had to turn on a windows machine to get it the easiest way (until now - weeeee!)

 

 

Posted

@Thalamus, Awesome. I'm glad you like it, and especially using it in Linux!  (We've been working pretty hard in VPE for cross platform)

 

One side note on MacOS / Linux, is we added coded to fix all the carriage returns so you can actually read the script in vi!

 

As for resources / paths, can you elaborate a little more on that?

 

Posted

I'm assuming you have to go to the command prompt but what's the correct way to get it working because what I'm doing is not working

Posted

@jsm174 What I mean by the paths is that if you look at resources, that being image manager and sound manager. There is a "VP" name, which can be renamed, but, as paths associated with the resource file(s). That path is the original from the author when he imported them. I'm not looking for anything that can extract the resources themselves, but, most like listing the "VP" name and the path. From what I've understood, vp used to accept multiple "VP" resources with the same internal name, just jumping over and keeping the last one. Like overwriting the variable. What seems to have changed now though. It see that the variable is defined already, refusing to replace the later one. So, that CAN lead to unexpected changes if you tinker with the table and press save especially. I mentions that I've seen a few cases of double sound samples, and obviously, there might be other cases ... Demolition man has been mentioned. IF it is a easy program to make, I could easily create some kind of wrapper around it looking for possible problems.

 

Again, seems Fuzzle wasn't really really saying no to make VP come up with a warning if this is seen ... so, right now - maybe put it on the "todo" list if it isn't implemented ? As I said, for me, much easier to work with VP scripting mass audit than to use a windows machine clicking.

https://www.vpforums.org/index.php?showtopic=44135&page=110#entry480881

 

And - btw ... VIM not VI ;)❤️

  • Content Provider
Posted

For extracting the table script, you can also use

Vpinballx -extractvbs "<table filename>.vpx"

Posted
5 hours ago, gtxjoe said:

For extracting the table script, you can also use

Vpinballx -extractvbs "<table filename>.vpx"

I received this error when trying this888.jpg.c94abbbab0afa89752a8f05aef956dcf.jpg

Posted

This looks much better. 

 

So it looks like your table file is not inside the "E:\Visual Pinball" folder.

 

maybe you want something like "Tables\3Angelswip_Beta_0_96a.vpx" ?

 

 

Posted
18 minutes ago, jsm174 said:

This looks much better. 

 

So it looks like your table file is not inside the "E:\Visual Pinball" folder.

 

maybe you want something like "Tables\3Angelswip_Beta_0_96a.vpx" ?

 

 

OK the 64 bit worked the 32 bit does not
on a 64 bit version is there a script size restriction
Only a partial of the script shows up in the CMD window

Posted

Try having it write to a file rather than the console.

 

From the readme:

 

VisualPinball.TableScript <.vpx or input folder> [<output folder>]

 

ie 

 

VisualPinball.TableScript "Tables\3Angelswip_Beta_0_96a.vpx" .

 

That will create the 3Angelswip_Beta_0_96a.vbs file in the current directory.

 

 

I will look to see why the x86 version is not working. 

 

Posted

Yup. You'll get it 😃

 

Whenever you see command line syntax that contains brackets, it usually means that whatever is in brackets is optional.

 

Try this exactly (including the period)

 

VisualPinball.TableScript "3Angelswip_Beta_0_96a.vpx" .

 

The period stands for "current directory".

 

 

Posted
7 minutes ago, jsm174 said:

Yup. You'll get it 😃

 

Whenever you see command line syntax that contains brackets, it usually means that whatever is in brackets is optional.

 

Try this exactly (including the period)

 


VisualPinball.TableScript "3Angelswip_Beta_0_96a.vpx" .

 

The period stands for "current directory".

 

 

Working - Thanks for your help

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...