outhere Posted June 13, 2021 Share Posted June 13, 2021 Is there away to extract the script from a game without opening the game Answerhttps://www.vpforums.org/index.php?showtopic=47027&p=480366 Link to comment Share on other sites More sharing options...
jsm174 Posted June 21, 2021 Share Posted June 21, 2021 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 More sharing options...
Thalamus Posted June 21, 2021 Share Posted June 21, 2021 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 More sharing options...
jsm174 Posted June 21, 2021 Share Posted June 21, 2021 @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 More sharing options...
outhere Posted June 21, 2021 Author Share Posted June 21, 2021 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 Link to comment Share on other sites More sharing options...
jsm174 Posted June 21, 2021 Share Posted June 21, 2021 (edited) @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 June 21, 2021 by jsm174 Link to comment Share on other sites More sharing options...
Thalamus Posted June 21, 2021 Share Posted June 21, 2021 @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 More sharing options...
Content Provider gtxjoe Posted June 21, 2021 Content Provider Share Posted June 21, 2021 For extracting the table script, you can also use Vpinballx -extractvbs "<table filename>.vpx" Link to comment Share on other sites More sharing options...
outhere Posted June 21, 2021 Author Share Posted June 21, 2021 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 this Link to comment Share on other sites More sharing options...
jsm174 Posted June 21, 2021 Share Posted June 21, 2021 (edited) From your picture it looks like you're missing the file extension.. (and possibly a path) Edited June 21, 2021 by jsm174 Link to comment Share on other sites More sharing options...
outhere Posted June 21, 2021 Author Share Posted June 21, 2021 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 Link to comment Share on other sites More sharing options...
jsm174 Posted June 22, 2021 Share Posted June 22, 2021 From your screenshot you have a space between the name of the file and the .vpx extension. Link to comment Share on other sites More sharing options...
outhere Posted June 22, 2021 Author Share Posted June 22, 2021 8 minutes ago, jsm174 said: From your screenshot you have a space between the name of the file and the .vpx extension. Link to comment Share on other sites More sharing options...
jsm174 Posted June 22, 2021 Share Posted June 22, 2021 Did you try both the x64 and x86 releases? Link to comment Share on other sites More sharing options...
outhere Posted June 22, 2021 Author Share Posted June 22, 2021 Just now, jsm174 said: Did you try both the x64 and x86 releases? So far x86 release Will try 64 Link to comment Share on other sites More sharing options...
outhere Posted June 22, 2021 Author Share Posted June 22, 2021 10 minutes ago, jsm174 said: Did you try both the x64 and x86 releases? 64 bit Link to comment Share on other sites More sharing options...
jsm174 Posted June 22, 2021 Share Posted June 22, 2021 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" ? Link to comment Share on other sites More sharing options...
outhere Posted June 22, 2021 Author Share Posted June 22, 2021 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 More sharing options...
jsm174 Posted June 22, 2021 Share Posted June 22, 2021 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 More sharing options...
outhere Posted June 22, 2021 Author Share Posted June 22, 2021 I'm assuming I'm doing something wrong again "LOL" Link to comment Share on other sites More sharing options...
jsm174 Posted June 22, 2021 Share Posted June 22, 2021 (edited) 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 June 22, 2021 by jsm174 Link to comment Share on other sites More sharing options...
outhere Posted June 22, 2021 Author Share Posted June 22, 2021 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now