LuaTAS

[Open Assets] LuaTAS v0.2

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
I made sure my file(s) follow the Submissions Guidelines
  1. Yes
I named my file(s) correctly (see Filename Conventions)
  1. Yes
This script allows replaying inputs from csv files to create Tool Assisted Speedruns.

So how does it work?
When the game changes map the script loads the appropriate csv file in luafiles/client/TAS. The filename should follow the naming scheme TAS_MAPXX_skinname.csv but other names may be recognized as well.
The first line of the file defines the mappings allowing you to change the order per level.
Once the map is loaded the script sets the local players inputs according to the following lines.
The script also allows comments in the csv either by adding '#' in front of the line or by adding them as additional argument to a line.​
Code:
X,Y,Spin,Jump
0,50,0,0
#This is a comment
0,50,0,0
0,50,0,1,This is also a comment
5,50,0,1
Using the Analog/Manual mapping will force the script to run in Analog mode or Manual mode respectively. If none of the two is specified Manual mode will be assumed. Note that the script will refuse to run TASes made with a different camera control mode than the one set in your game settings.

For the most part this script should support every modded character.

If you want to try it out download the example TAS and load up Greenflower Zone Act 1.

DISCLAIMER:
If you have any sort of CPU lag the replay WILL desync!


This was a very fun small project to work on and I have some other small Lua libraries I'm working on I might release soon.​
Author
SilicDev
Downloads
2,298
Views
6,997
First release
Last update

More resources from SilicDev

Share this resource

Latest updates

  1. Camera Mode "Support"

    Added mappings for Analog camera mode and Autobrake As I'm unable to enforce the camera mode...

Latest reviews

Very helpful for recording stuff that needs fixed character movement and you have no friends to help you. Don't be scared by the discussion tab, it's really simple to use, they just can't read an addon description.

I only have 2 complaints:
[LIST]
[*]There is no way to record a TAS. I had to make my own script for this, but the format is simple enough that this was really easy to do. I get this isn't meant to be a glorified replay system, but I just happened to need a glorified replay system for how I was using it.
[*]CL and CR seem to not work, you can just use automatic, but it's still pretty annoying.
[/LIST]
Upvote 0
Welcome to releases!
Upvote 0
Back
Top