What determines a tape's filesize?
Moderators: Flumminator, Zomis
What determines a tape's filesize?
What the title says, because I've been submitting proof tapes for my Emerald Mine Club levelset completion topic, and wanted to figure out how to make tapes with few bytes as possible. One thing I know that seems true is that just standing still doesn't take up that much bytes. What actions makes a tape stuffed with more bytes in it? Would holding two keys to move diagonally (like say up and right) make more input data like that?
Re: What determines a tape's filesize?
The structure of tape data in R'n'D is quite easy (and it's similar to Supaplex solution files, by the way): It's just a list of input actions stored as one byte (for each player, if playing multi-player games), which has bits set for up, down, left, right, button 1 and button 2 actions, and another byte with a counter that determines the duration (counted in number of frames) that this input actions stay unchanged.
That is, if you just wait for one second (50 game frames), there are only two bytes of tape data (one being "0" for saying "no input at all", and one being "50" for saying "that same action for the next 50 frames").
If you move into the same direction for one second, it's the same (only two bytes), but with the first byte having a value for that specific direction.
That is, if you just wait for one second (50 game frames), there are only two bytes of tape data (one being "0" for saying "no input at all", and one being "50" for saying "that same action for the next 50 frames").
If you move into the same direction for one second, it's the same (only two bytes), but with the first byte having a value for that specific direction.
Therefore, the answer is "no"!Would holding two keys to move diagonally (like say up and right) make more input data like that?
Using the single-step mode could help here, as you can change input actions while the tape is paused between actions.wanted to figure out how to make tapes with few bytes as possible
Re: What determines a tape's filesize?
Ah, I'm aware there's a single-step mode, but I would try to make my play-through of the as authentic as possible, even if it means having a sub-optimal run at points. In regards to this feature, and thinking on the two-buttons thing, does it know that that the player would go diagonal, because if not, that would imply that by using the single-step mode feature, it would creature byte instructions for moving one of the two directions separately, like 1 left, then 1 up, and 1 left, and then 1 up, and so on, instead of one byte instruction of a diagonal movement.
Re: What determines a tape's filesize?
Yes, I also would consider using single-step mode as cheating.I'm aware there's a single-step mode, but I would try to make my play-through of the as authentic as possible

And it could indeed result in tapes that replay the game in a non-authentic way (with the player moving in a very "unnatural", too perfect way)...
That's indeed a perfect example of single-step mode *not* creating shorter, but much longer tapes! Because it is practically impossible to press the two direction keys for diagonal movement at exactly the same time for each move, while you would just keep both keys pressed down without single-step mode!does it know that that the player would go diagonal, because if not, that would imply that by using the single-step mode feature, it would creature byte instructions for moving one of the two directions separately, like 1 left, then 1 up, and 1 left, and then 1 up, and so on, instead of one byte instruction of a diagonal movement.