Jump to content

How to extract the script from a game


outhere

Recommended Posts

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!

Link to comment
Share on other sites

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!)

 

 

Link to comment
Share on other sites

@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?

 

Link to comment
Share on other sites

@outhere,

 

Check the readme out here:

 

https://github.com/VisualPinball/VisualPinball.Tools/tree/master/VisualPinball.TableScript

 

You don't need to do any compilation, just download a release from the Releases page:

 

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

 

If you still have problems, let me know.

 

Edited by jsm174
Link to comment
Share on other sites

@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 ;)❤️

Link to comment
Share on other sites

8 hours ago, jsm174 said:

@outhere,

 

Check the readme out here:

 

https://github.com/VisualPinball/VisualPinball.Tools/tree/master/VisualPinball.TableScript

 

You don't need to do any compilation, just download a release from the Releases page:

 

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

 

If you still have problems, let me know.

 

I received this error when trying this

U44444444444ntitled.jpg

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. 

 

Link to comment
Share on other sites

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".

 

 

Edited by jsm174
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...