HTOTM: FUSION
Prev Previous Post   Next Post Next
Original Post
[WIP/REL] reSpar.lua
reSpar is primarily intended to aid continuity in long multiplayer sparing games. It's two basic functions are:


UPDATE 21/04/14: Added some graphical interfacing for the ease of your eyes in your face. After starting the script, right click the Joint State panel to view the load directory and options. Note: reSpar can now also be used as a slightly clearer replay loader.

After loading the script.




After right clicking the panel (or pressing F1)



The top panel shows your /replay directory. the bottom one displays the content of the highlighted replay file (I'll eventually get round to parsig that in to something more user friendly). Highlighting a different replay file is done by scrolling, arrow keys or '+' and '-'. Press Load Replay to load the file as a regular replay. Replay Moves to run the game one move at a time (holding SHIFT when pressing Replay Moves will swap Uke for Tori and Tori for Uke). Safe Save for constant live game saving. And Unload Script for... well you'll guess.


Older details, but still useful information:



1. More robust game saving

How many times has it happened that you're deep into a great multiplayer sparring game, only to have your partner ping and disconnect from the game? All that time wasted and not even a replay file to show for it... Unless you pressed 'f' and save the game every turn.
reSpar does this automatically. Before you start an important sparring game, use the command

"/safesave [OPTIONS FILENAME]"

This will ensure that every turn the replay will be updated and saved in the replay/ folder. if you don't give a filename the game will be saved as SafeSave.rpl

2. Recreating a saved mp game

Now what if you and you partner wanted pick up that game from where you left off. With:

"/replaymoves [FILENAME]" you can do just that. It will load the moves of the saved game and control your tori for you up until where the game was saved.

Details:

Run the /safesave command before you start the game you want to save. Once started, it will keep going until the current game has ended or a new game has started (in case of sudden disconnect).

Since you cant control your partner, both of you will need reSpar.lua and the to be loaded replay on your respective computers.
For now reSpar doesn't check whether the game whose move your loading has the same settings as game you're loading them into. Make sure they're compatible (and identical if you want continuity).
When ready, start a new game with your partner, both type in "/replaymoves [FILENAME]". On your screen you'll see a bar with a two sets of two sequence of letters, one above the other. Red for the tori position, blue for the uke. These are just joint (and grip) states. If the top and bottom are the same colour then your tori is making the exact same move as it did in the saved game. If you're both ready, press space for the next turn. Keep doing so until you want to pick up control.

Note: the joint state sequence is in a different format than usual.
f,b,h,r are still the same (forward (Mousewheel Up), back (Mousewheel Down), hold, relax) but it's ordered from neck to abs, right arm (right peck to right wrists & grip state ), left arm, right leg (right butt to right ankle), left leg.

Additional uses:
Yes: reSpar can be used as an extended MoveMemory.
Yes: reSpar can be used to help two colluding player rig a (decap) game by doing a "here's one we prepared earlier". God help you though, son, if you think it's a good idea.
Not really: You cannot perfectly recreate single player games in multiplayer or vice versa. Apparently the engine, ever so slightly, handles the two differently.

Let me know what you think.And if you enjoy this script, or any of my previous one, please, feel free to make a small TC donation. Thank You.

respar.lua (11.2 KB, 64 views)
Attached Files
respar.lua (22.9 KB, 1379 views)
Last edited by Daanando; Apr 21, 2014 at 12:15 PM.