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
699
Views
3,584
First release
Last update
Rating
4.00 star(s) 1 ratings

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

Welcome to releases!
Upvote 0
Back
Top