Author Topic: Announcing VPEdit  (Read 10427 times)

0 Members and 1 Guest are viewing this topic.

Offline maxim4o

  • 25
I could find the VP file specification - http://www.hard-light.net/wiki/index.php/VP,
so I am beginning to develop a new VP viewer, creator, and editor - VPEdit... For now only the read library is done, and user interface is still very primitive...
Also, I the full VP read support is less than 90 lines of code. VPEdit uses .NET as a platform and should run on Linux, too (using Mono), because it is not using any platform-dependent resources.

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Well there's already a very good VP editor out there (Maja), but go on.

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
He has had issues with Maja. Besides, it never hurts to have more tools.
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline maxim4o

  • 25
I have finally finished a somewhat-functional version of VPEdit.
It is able to open and create new VP files, export them, and edit the text files.
It needs two working directories, a main and backup ones.
The backup is used to restore the originals of edited files. While a file is being edited, its original copy can be restored from that backup folder.

Enjoy.

Edit: oh by the way please notify me of the bugs you encounter...
Yes, VPEdit requires .NET Framework 2 on WIndows, it is installed automatically...
I hope I will think off something for Linux, too...

[attachment stolen by Slimey Goober]

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
I have finally finished a somewhat-functional version of VPEdit.
It is able to open and create new VP files, export them, and edit the text files.
It needs two working directories, a main and backup ones.
The backup is used to restore the originals of edited files. While a file is being edited, its original copy can be restored from that backup folder.

I tested it, interesting tool tnks.

A note for you to consider:

You might want to add an option or restrict the amount of aplications the program can cast, I started looking some of the ani files and when I closed VPview I had like 30 windows showing the anis and they were still going, you can make all of the other windows to close when the main program is finished and also restrict the amount of windows that can be opened with an option or something if you like.
el hombre vicio...

 

Offline maxim4o

  • 25
Yes, a nice idea indeed!
I am also considering drag-and-drop support, what do you think?

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
it's a good idea, but what are you suporting on draging and droping? like making a copy-past from one ani to another... or a .tbl onto another .tbl right?

You could first add support for multiple vp's working at the same instance or program, that way dragging and droping will show it's real potential.
el hombre vicio...

 

Offline maxim4o

  • 25
Well it's like dragging the TBL from Windows Explorer and it's added in the corresponding VP folder.
And yes, I will add tabs, but I will first do the drag-and-dropping.

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
good, I can peek a little at it when you are done. ^^
el hombre vicio...

 

Offline maxim4o

  • 25
Version 0.11 is ready.
Here's the new:
-When closing VPEdit the user is prompted to close all applications opened by VPEdit(idea by Rodo)
-Drag-and-drop support for the tree view and the edit field, files and folders can be dragged into the list view, and supported text files and plain text can be dragged into the edit field
-And an About menu entry too :)
Edit: i totally forgot, a New File button too - creates an empty file.

[attachment stolen by Slimey Goober]
« Last Edit: December 29, 2008, 03:21:24 pm by maxim4o »

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Version 0.11 is ready.
Here's the new:
-When closing VPEdit the user is prompted to close all applications opened by VPEdit(idea by Rodo)
-Drag-and-drop support for the tree view and the edit field, files and folders can be dragged into the list view, and supported text files and plain text can be dragged into the edit field
-And an About menu entry too :)

It works just fine, I just copyed an entire tango vp and the files work ok, the closing menu helps a lot and works just fine.

A drop list menu when clicking with the right button over the files would also be usefull as everyone tends to edit the files name and everything else by doing so, but it works just fine, nice work, and really fast indeed.
el hombre vicio...

 

Offline Water

  • 210
Version 0.11 is ready.
Getting a Unhandled exception as soon as both paths are entered for install.
Tested earlier version with same result.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'VPEdit.exe' is denied.

 

Offline maxim4o

  • 25
Thanks for reporting that!
Could  you specify the paths you entered? They should be with full read/write authorization.

 

Offline Water

  • 210
Thanks for reporting that!
Could  you specify the paths you entered? They should be with full read/write authorization.

Just noticed that some of the vp's I was testing it with had the attributes set to RA instead of A. It doesn't like that  :p

Associated vp with VPEdit and it went through the "find the folders again"  It's doesn't seem set up to handle file associations though.

Is there any real dis-advantage to the software creating both the folders in the VPEdit directory. Only one of the folders held files during edit, the other remained empty.
« Last Edit: December 30, 2008, 06:30:26 am by Water »

 

Offline maxim4o

  • 25
That's strange - I entered the same here and there weren't any problems...
By the way, what OS are you using?
Edit: ops. late post

I am still trying to figure out the file associations... Will be there soon, I am working on a tabbed interface for now... Harder than I thought!

 

Offline Water

  • 210
By the way, what OS are you using?
XP sp2

 

Offline maxim4o

  • 25
VPEdit 0.12 is ready.
The new:
-Tabbed user interface(right click on tabs to close etc.)
-.VP extension association(via the More menu or during the first-start settings dialog)
-Full drag and drop inside the tree list(you can now move the folders in there just like you do in Windows Explorer)
-Directory extract(extracts the opened tab content in a chosen directory)
-VPEdit now has an "icon"
-And some little fixes here and there

Edit: I had no time to test, I suppose there will be issues with the tabs...
Please tell me about any bugs!

Enjoy.

In the new version I will be adding a right-click menu on the tree list.

[attachment stolen by Slimey Goober]
« Last Edit: December 30, 2008, 05:14:58 pm by maxim4o »

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Just curious is there any size limit to the VP files it can open?  Quite a few of the viewers choke on anything over a gig. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline maxim4o

  • 25
Well it should open vps over a gb
The problem here is the hdd space
Excuse me for any typos i am postin from my cell

 

Offline Water

  • 210
You moved "open vp" to import, but it will still crash if the vp is read only. The association part worked well.
It created a 1.2gb vp without a problem and vpwiew32 opened it without difficultly.

When opening a large vp, all directories are open showing every file which means a lot of scrolling. A better option may be to start but only show just the directories under data.

Minor stuff
Directory extract - Extracts everything in the vp (eg with maps directory selected) Just rename to extract all.

very minor stuff - The date stamp for all files in the created vp was set to 1/01/1970