Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
Temporarily downloads are here: Command-line version: http://rapidshare.de/files/20910402/vbmedit.rar.html (60 kb) Version with GUI: http://rapidshare.de/files/20917110/vbmeditgui.7z.html (200 kb) These programs do two things: convert VBM file to plain-text VBX file and convert your edited with favorite text editor movie back to VBM. VBX file looks like this:
INFO: //Decoded header, more info:
1		//Version
1117837641		//Movie uid
149227		//Frame count (will be recalculated)
12501		//Rerecordings
0		//Start flags
1		//Controller flags
1		//System flags
16		//Emulator flags
0		//winSaveType
65536		//winFlashSize
4		//gbEmulatorType
ROCKMANZERO4		//ROM name
0		//0
80		//internal CRC
0		//CRC16
1247425602		//Game code
0		//Save state start offset
256		//Start point (will be recalculated)
		//Author
		//Description
HEAD: //Don't touch it please =)
0000
DATA: 
         0|
         1|
         2|S
         3|
         4|
         5|S
         6|
         7|
         8|S
         9|S
...
      1158|>L
      1159|L
      1160|>L
      1161|A>L
      1162|>RL5
      1163|>L
      1164|>L
      1165|>L
      1166|>
...
    149223|B
    149224|A
    149225|
    149226|
Encoder does not use frame numbers in beginning of every line - they are there just to make editing more convenient =) So adding or removing lines is not a problem, you do not even have to numerate them:
      1160|>L
      1161|A>L
      1163|>L
      1164|>L
      1165|>L
LB>
L>
L>
L>
A>L
      1166|>
here frame 1163 will become 1162 after encoding, and 1166 will become frame 1170 after 5 inserted lines ^^
Post subject: Re: VBM editing tools
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
zefiris wrote:
but it also allows to change rerecordings number and author
That's not a unique function, as every single hexeditor allows the same. :) Also, what is an "S" in the pressed button code? "Start" or "Select"?
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
"S" for Start, "s" for Select - I used same symbols as VBA uses
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
Ah, I see.
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Player (68)
Joined: 3/11/2004
Posts: 1058
Location: Reykjaví­k, Ísland
Seems like a great and useful program. Yes, definitely make it available. People have always been able to change the author, description and everything anyway. (though it might have been a little bit trickier).
Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
where should I put it then... archive is only about 60 kb ^^
Player (68)
Joined: 3/11/2004
Posts: 1058
Location: Reykjaví­k, Ísland
filespace.org has worked for me so far. (you need to register, though) Edit: it seems to be not responding at the moment, anyone else having problems with filespace.org?
Player (206)
Joined: 5/29/2004
Posts: 5712
Yeah, it hasn't worked for me since I tried it last night.
put yourself in my rocketpack if that poochie is one outrageous dude
Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
Post subject: I could not
Active player (315)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
I think you should use Rapidshare. This is what I got at Savefile: It's 0 bytes long (just a file name)
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
Uploaded... Use new link above )
Active player (315)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
Better now! Hmm.. Command line
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
New version, with GUI (both tools in one) http://rapidshare.de/files/20917110/vbmeditgui.7z.html (200 kb)
Post subject: Awesome, but...
Active player (315)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
Amazing, but it lacks some features, maybe because it's just a beta... And.. what's that icon? If you want, I can try to make a nice one... Keep up the excellent work!
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
SXL
Joined: 2/7/2005
Posts: 571
would it be complicated to create templates for other formats, and make one tool for all types of movies ? also, would it be possible to have source too ?
I never sleep, 'cause sleep is the cousin of death - NAS
Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
First of all thanks for your feedback ) 1) I think program looks nice as it is, if you don't like the look - please tell me what you think I should improve ) I would be glad if you made a good icon ) 2) To add templates I would have to rewrite the whole program as all the header fields are hard coded ) I know how to do it, by it's just that I'll get too lazy and drop the work, as it always happened. 3) I am not hiding source, PM your email to me if you want me to send you source... It's written in Delphi, not C, so I don't know if it could be compiled for Linux... EDIT: I've just read description of FMV and FCM files... FMV has almost similar format, even when using 2 player controls, but FCM is very different so writing one extendable tool that would support "standart" and "not standart" movie woul require dll pugins, not just easily created text files with format descriptions... Still I'll think about it. May be file description ini file would look like this:
[basic_data]
filetype=1 //1 for standart, 2 for FCM-like, 3 for some other non-standart template

[header_data]
header_records=21 //number of records in header
h1_size=4 //first record size in bytes
h1_name=Header //name of record
h1_type=S //s for string, i for integer, u for unsigned
h2_size=4
h2_name=Verison
h2_type=U
...

[controller_data]
absolute=-1 //any other number for absolute offset of controller data
relative=19 //number of record with controller starrt data
frames=4 //number of record with frame count
bytesperframe=2 // for standart files
bit1_1=A // symbol for bit 1 from byte 1
bit1_2=B // symbol for bit 2 from byte 1
bit1_3=s // symbol for bit 3 from byte 1
...

[extension]
original=.VBM
coded=.VBX
It's not that simple to code, but it is real... May be I'll try... I hope I won't drop it as I dropped "@wad" =(
Post subject: Never give up! =D
Active player (315)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
You had a great idea, but it can't replace hex-editing entirely, because we can't copy&paste. (well, not with notepad) This is what we expect from your software: (I hope it's nothing too complicated) *The "export to VBX" thing should be optional. *The movie must be edited inside the program. *This should appear in the main tab (should be called 'VIEW' tab or something), right below the movie info, but this section sould be editable.
frame number          input data

00000000                 ^ ^ v  v  <  >  <  >
00000008                 A  B  L  R  -  -  -  -

----------------------------------------------------------
(bottom of the window - status bar - shows currently selected frame)
And it seems you're tinkering with other formats besides VBM... nice! heh... when you do that, you should change it's name to "MovieWorkshop"... I really hope your software become a standard here!
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
Editor, Reviewer, Experienced player (979)
Joined: 4/17/2004
Posts: 3109
Location: Sweden
pirate_sepiroth> ... we can't copy&paste. (well, not with notepad) I'm sorry? Of course you can copy and paste with notepad. zefiris>I've just read description of FMV and FCM files... FMV has almost similar format, even when using 2 player controls, but FCM is very different so ... You don't need to, people can use nesmock to convert between FCM and FMV: http://bisqwit.iki.fi/source/nesmock.html You could have our program convert them automatically with nesmock before letting the user edit them, of course. Or just let the user handle that themselves. I suggest implementing FMV and GMV next. Both should be relatively easy to make in text format.
Joined: 4/11/2006
Posts: 487
Location: North of Russia :[
what do you mean by copying and pasting? Notepad can work with buffer like other programs, and also you can use advanced text editors like bred or some others. I have tested next thing: I rerecorded first boss fight in MMZ4 and replaced one from my movie with new one using notepad, and then encoded result file back. Everything worked OK. I don't really think I can make more convenient editor, just I need do add two featured to encoder: strings like "AB>R:4" should insert 4 frames with A B > and R pressed. Another one is external markers: you write file with text like
412 menu start
534 game start / first level
23142 first boss
25135 end of first level
26766 second level
and decoder adds these comments on lines with assigned numbers. Encoder should export all comments from vbx file to marker file with new addresses. Still I will think about all your suggestions. Perhaps I will rewrite this program so that it could be extended with plug-ins for every format you like... May be there will be built in editor. I can't say by now. I think I can write decoder for every format described well... stiil I must think about how are 2+ controller movies should look like when decoded so that editing them would be comfortable... perhars two different files? placing both controllers data in one string is bad idea, as it would be really hard to shift one controller's input without shifting another...
Active player (315)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
I was talking abut copying & pasting big input strings, and that's not possible with notepad, since it selects entire lines, and the VBX files have the frame number and the input value in the same line. Maybe it's possible with other text editors, but I'm not a writer or nothing like that, so I didn't know any. I think the best way would be to mimic HexWorkshop, since it's our editor of choice.
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
Editor, Reviewer, Experienced player (979)
Joined: 4/17/2004
Posts: 3109
Location: Sweden
pirate_sepiroth>I was talking abut copying & pasting big input strings, and that's not possible with notepad, since it selects entire lines, and the VBX files have the frame number and the input value in the same line. But the frame numbers are ignored when the text is converted back to VBM. (That's what's so smart.) So assuming you have this portion:
1158|>L 
1159|L 
1160|>L 
1161|A>L 
1162|>RL5 
This is a valid edit
1158|>L 
1159|L 
1160|>L 
1161|A>L 
1159|L 
1160|>L 
1161|A>L 
1159|L 
1160|>L 
1161|A>L 
1162|>RL5 
Get the idea?
Post subject: Oh.... nice
Active player (315)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
I didn't notice that! Hmm... Zefiris may be lazy, but is smart indeed...
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
Player (88)
Joined: 1/15/2006
Posts: 333
Location: Bangkok, Thailand
RapidShare wrote:
vbmeditgui.7z Diese Datei wurde gelöscht. Grund: Seit längerer Zeit kein Download mehr. Inaktivitäts-Timeout überschritten.
I don't suppse you'd mind uploading these again? Somehow I don't have it anymore...
print reduce(lambda x,p:p/2*x/p+2*10**1000,range(6643,1,-2))
Active player (315)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
Please click here.
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
Joined: 10/24/2007
Posts: 23
Any chance someone could remirror this?