Lead

Sep 17 08 2:49 AM

Tags : :

Well, I got curious about how demo data is generated and after an hour and half or so, I came up with this:

Demo data is generated by putting the previous frame's data through an equation to obtain the new frame's data. Every 7 frames the data is seperated with a | and the equation resets.

Example:
6:2236962
7:35791394|0
8:35791394|2

So here are the formulas:

Variables
a-1 to 7. Goes up one every frame. After it reaches 7, next frame it resets to 1.
b-The data of the previous frame.

Formulas
Neutral: Nothing happens to data, just adds 1 to the frame count.
Left: 16^(a-1)+b
Right: 2*16^(a-1)+b
Left Jump: 16(b-8)+13
Right Jump: 16(b-8)+14

Here's an eaxmple: If someone presses left, left, left, left jump, right, right, right, right jump, neutral, neutral, it would look like this:
1:1
2:17
3:273
4:53521
5:184593
6:2281745
7:35836177|0
8:35836177|14
9:35836177|14
10:35836177|14

Hope this is useful and please let me know if any of this is wrong.
Quote    Reply   

#1 [url]

Sep 17 08 8:24 AM

I'll have to take your word for it, as I lost you after the word equation came up.

user posted image
^ Made by Commander. ^
My Maps
N v1.4 progress: 96 episodes finished
Rate some of my maps, and I'll rate double that number, of your maps - PM me.

Quote    Reply   

#2 [url]

Sep 17 08 8:55 AM

Close, but unnecessarily complicated. Each frame consists of 3 bits, indicating which of left, right, and jump are currently pressed. 10 consecutive frames are concatenated into a 30 bit number, which is expressed in decimal. Consecutive numbers are joined with | characters.

QUOTE (Tsukatu)
Oh noes! A tumor! I need to talk to the surgery! Driving, get me to the healing! Watch out for that walking!

Quote    Reply   

#5 [url]

Sep 17 08 5:43 PM

QUOTE (Arachnid @ September 17, 2008 03:55 am)
Close, but unnecessarily complicated. Each frame consists of 3 bits, indicating which of left, right, and jump are currently pressed. 10 consecutive frames are concatenated into a 30 bit number, which is expressed in decimal. Consecutive numbers are joined with | characters.

What's the ordering on the three bits? Is it left-right-jump as you implied, or something else?

Quote    Reply   

#7 [url]

Sep 17 08 9:17 PM

QUOTE (Aethril @ September 16, 2008 09:49 pm)
Formulas
Neutral: Nothing happens to data, just adds 1 to the frame count.
Left: 16^(a-1)+b
Right: 2*16^(a-1)+b
Left Jump: 16(b-8)+13
Right Jump: 16(b-8)+14

I came up with something very much like this a while back. Don't know it's exactly the same, cause I'm not at that computer, but I'll check when I get back there.

user posted image

Quote    Reply   

#8 [url]

Sep 17 08 9:42 PM

QUOTE (LittleViking @ September 17, 2008 05:52 pm)
0001 - left
0010 - right
0100 - holding jump
1100 - first frame of jump

The extra bit of jump data is used for things like walljumps.

Oops, my mistake. I was writing from memory.

The fourth bit seems rather superfluous, since you can calculate it based on the previous frame's data, but never mind. The whole encoding is kind of odd, after all.

QUOTE (Tsukatu)
Oh noes! A tumor! I need to talk to the surgery! Driving, get me to the healing! Watch out for that walking!

Quote    Reply   
Add Reply

Quick Reply

bbcode help