Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Tools => Topic started by: m!m on March 04, 2013, 05:25:53 am

Title: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 04, 2013, 05:25:53 am
Hello everyone,
I hereby present you a little project of mine, a new VP viewer and editor.

Features:

Requirements:
Sadly no other platform is supported

Download here (https://asarium.github.io/vpgui/update/setup.exe)

The source is available on github (https://github.com/asarium/vpgui). If possible please add issues with the application there so I can manage them better.

Changelog:
Version 0.3.1:
Version 0.3.0.4:
Version 0.3.0.3:
Version 0.3:

Screenshots (these are taken using the default theme):
Blank starting screen
(http://img705.imageshack.us/img705/5307/blankg.png)

Opened Root_fs2.vp
(http://img834.imageshack.us/img834/1029/rootfs2.png)

Folder structure changed
(http://img853.imageshack.us/img853/6315/changesm.png)

Special Thanks
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Luis Dias on March 04, 2013, 05:38:39 am
  • Drag and Drop support (sadly dragging items to the explorer does not work)


Damn! But I like the prospect of not having to extract files to open them up ! :yes:
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 04, 2013, 05:56:29 am
I'd really like to add that feature but it seems to be a non-trivial task to do so and I didn't want to hold off release just for that feature. I'll see if I can add it.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Rodo on March 04, 2013, 08:14:49 am
hey cool stuff :yes:
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 06, 2013, 03:14:15 am
Small update released, you can now specify the temporary directory the application will use. Specify this on the options page with the extraction location drop down list.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 10, 2013, 07:47:14 am
New version! I managed to implement full drag and drop support for windows explorer.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Luis Dias on March 10, 2013, 08:00:19 am
New version! I managed to implement full drag and drop support for windows explorer.

:BISON YES!!:
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Mongoose on March 10, 2013, 05:13:05 pm
I'd take a look at this myself if not for the Vista-and-above restriction, but it looks like good work. :yes:
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 11, 2013, 04:53:03 am
It may be possible to change the .Net framework version to 4.0 which includes Windows XP support but I'm not entirely sure if that's possible given that I'm using features from the newest version.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Crybertrance on March 12, 2013, 10:50:41 am
So much WIN! right here!
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: The E on March 23, 2013, 02:42:02 am
This is fantastic work.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Valathil on March 28, 2013, 02:16:18 am
I saw the Screenshots and thought "Why did he bother writing this ugly ui skin?" Then I remembered this is what Win8 looks like  :banghead:
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 28, 2013, 10:50:38 am
Those screenshots were actually taken on Windows 7.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Valathil on March 29, 2013, 02:38:47 am
Yeah its still the Win8 style like vs12 tho
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 29, 2013, 04:27:49 am
Yes, that's right. I thought you meant that it looks like that because it's run on Windows 8.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: BlasterNT on March 30, 2013, 07:41:31 pm
Any plans to make this work offline?  It throws an exception at me if it can't download an update. 
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on March 31, 2013, 03:25:48 am
That is not intended, I'll take a look at it.

EDIT: Should be fixed now.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Valathil on March 31, 2013, 08:53:47 am
Haha, "Always On DRM"
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: BlasterNT on March 31, 2013, 05:43:40 pm
awesome, thanks.  also, do you need an icon?
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on April 03, 2013, 03:53:03 am
Sure, an icon would be great.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: BlasterNT on April 15, 2013, 09:56:32 pm
In keeping with the metro-ness, how about

(https://dl.dropboxusercontent.com/u/215663/EMP%20Transfer/VPGUI/VPGUI2.png) ?

http://sdrv.ms/YYU0bC

Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Kopachris on April 15, 2013, 10:48:36 pm
In keeping with the metro-ness, how about

(https://dl.dropboxusercontent.com/u/215663/EMP%20Transfer/VPGUI/VPGUI2.png) ?

http://sdrv.ms/YYU0bC

ALL MY YES

That is absolutely gorgeous and befitting of the file type.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on April 16, 2013, 09:43:06 am
Thank is fantastic! :yes: I updated the application to include the new icon.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: BlasterNT on April 16, 2013, 07:42:22 pm
Hmm, so I'm playing with it a bit more, and it looks like the click-to-run is being quite the hassle.  For one, that means the app icon in the start menu has no icon, and it also means I have to dig for the really really obscure (C:\Users\Chen Ye\AppData\Local\Apps\2.0\6NTTJ20Q.HA9\OBTPONOM.ZV2\vpgu..tion_0000000000000000_0000.0003_caef5661a7f34f77 orly) click to run application path in order to associate .vps with the app.  No idea how you'd alleviate this without breaking the autoupdate though. 
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on April 17, 2013, 07:48:43 am
Hmm, I never had a problem with the deployment process. Uninstalling (via the standard Windows software dialog) it and reinstalling it could solve that though. The application will also create a shortcut in the Start menu so you don't have to dig though your files to find it.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: bcKq on April 25, 2013, 04:02:09 pm
Nice :) I have a question, how did you make so nice UI? :)
I see you're using C#, is it WPF or just Windows Forms? Or maybe you did write it alone? :)
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on April 26, 2013, 08:26:56 am
It's using WPF for the UI which is also a reason why this application is not available for other platforms than Windows.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Scooby_Doo on April 27, 2013, 01:06:57 am
Hmmm can't extract with this, tried extracting from the root.vp and got "Open Error: The filename, directory name, or volume label syntax is incorrect."
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on April 28, 2013, 10:01:33 am
The error does not occur on my side. Is the path you try to extract to a special path or something protected like Program Files? The application is not run as an administrator which may cause trouble in some special cases.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: bcKq on April 29, 2013, 12:28:35 pm
It's using WPF for the UI which is also a reason why this application is not available for other platforms than Windows.

Nice! Did you use any tutorial on creating that beautiful UI or just your own skills? ;)
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on May 01, 2013, 08:17:50 am
Well, I needed a lot of tutorials to get used to WPF and also C#/.NET. The UI mostly just used the features of the "Metro"-framework provided but is mostly nothing else than a simple version of most file system applications with a tree and directory list.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: bcKq on May 15, 2013, 10:37:37 am
Why when I'm trying to save a modified VP File it gives me an error that this .vp file is already used by another process? I have all programs closed, only VPGui opened.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: PIe on April 08, 2018, 04:53:51 pm
Since the installer no longer works (it requires FSMods), I compiled a build.
http://www.mediafire.com/file/czbkwhuyj3u9ycd/VPGUI.7z
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: m!m on April 11, 2018, 04:09:22 pm
I fixed the download system by moving the files over to GitHub. Here is the new link: https://asarium.github.io/vpgui/update/setup.exe
You probably need to uninstall the old version since the new version uses another URL for detecting updates so it won't update automatically. Apart from the new hosting location there are no further changes in the new build.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Asteroth on April 15, 2018, 12:56:10 pm
Having the same problem as bckq.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: AdmiralRalwood on April 17, 2018, 01:34:16 pm
I've mirrored the new setup file on fsfiles: https://sectorgame.com/fsfiles/uploads/Resources%20and%20Tools/Tools/VP%20Viewers/setup_vpgui.exe
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Vandergaard on July 30, 2018, 11:41:19 pm
I'm also having the same problem as bcKq and Asteroth. It just gives me a write error saying that the VP I'm trying to save is open in another process. If anyone could look into this, it would be appreciated.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Cyborg17 on July 31, 2018, 04:56:35 pm
That happened to me, and I think I had the same VP open in another window already.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Novachen on July 31, 2018, 05:37:37 pm
AFAIK VPGUI does not close and remain in the memory, even if you click on "Close". So check if there is still another VPGUI.exe process in the Task Manager.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: PIe on July 31, 2018, 06:59:42 pm
Are you perhaps thinking of VPMage?  I've never seen that happen with VPGUI.
Title: Re: RELEASE: VPGUI - Yet another VP editor
Post by: Androgeos Exeunt on July 03, 2020, 10:31:41 am
:bump:

In case you're still fixing issues with VPGUI, the app encountered an exception when I tried to open PImain.vp in any version of The Procyon Insurgency installed via Knossos.

Code: [Select]
System.Windows.Markup.XamlParseException: 'Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.' Line number '4' and line position '6'. ---> System.Exception: Cannot find resource named 'appbar_error'. Resource names are case sensitive.
   at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- End of inner exception stack trace ---
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
   at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
   at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
   at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.StackPanel.StackMeasureHelper(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size constraint)
   at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

The app also shows the following additional messages on a sidebar to the right that I've never seen before:

Code: [Select]
Reading the VP-File generated some messages:

Couldn't add directory "sounds": Item already exists.

Couldn't add directory "voice": Item already exists.

By the way, "information" is an uncountable noun, so it's almost always referred to as one item, even if it actually consists of multiple pieces.