RubiksImplosion / Minecraft-TAS

A mod for TASing Minecraft
MIT License
16 stars 3 forks source link

Only works with setup commands #9

Closed Vlogcks closed 2 years ago

Vlogcks commented 2 years ago

For some reason it only works with the setup scripts, When i try +forward; sprintwait 40-sprint; -forward it doesnt work, HOWEVER when i copy and paste it from the other script files it works, So i cant use yaw or pitch because when I edit it it doesnt work but when it comes from a other script or the setup ones

RubiksImplosion commented 2 years ago

Is there any error message that pops up?

DarkblooM-IO commented 2 years ago

I'd put my finger on typos for this

Vlogcks commented 2 years ago

Is there any error message that pops up?

Sorry For Late Reply and No There Is No Error Message It Just Doesnt Work When I Start The Script File

RubiksImplosion commented 2 years ago

Can you send the contents of the script that is giving you trouble?

Vlogcks commented 2 years ago

yaw and pitch

RubiksImplosion commented 2 years ago

I mean the exact contents of the file, copy and paste them

Vlogcks commented 2 years ago

Ohh alr just hold on

Vlogcks commented 2 years ago

+forward; +sprintwait 40 -forward; -sprint yaw 45pitch 5; +forward; +sprint; +jump

RubiksImplosion commented 2 years ago

Is this all on one single line? Or was it compressed by github

Vlogcks commented 2 years ago

a single line

RubiksImplosion commented 2 years ago

The TAS will execute one line per tick, so if the entire command is on one line it will execute every single command in one tick The correct format for this script is this (assuming line breaks occur where there are missing semicolons) +forward; +sprint wait 40 -forward; -sprint yaw 45 pitch 5; +forward; +sprint; +jump

Vlogcks commented 2 years ago

Ok hold on let me try this

Vlogcks commented 2 years ago

wait where do i find fabricapi 1.16.3?

Vlogcks commented 2 years ago

Nevermind

Vlogcks commented 2 years ago

Wait now when i load up the mod i cant see the script file in .minecraft

RubiksImplosion commented 2 years ago

Is your script a .script file or a .script.txt file?

image Click this to check and make sure it is just .script

Vlogcks commented 2 years ago

unknown No its not that its that the script folder where i type the scripts hasnt generated

RubiksImplosion commented 2 years ago

Oh in that case you can just make the folder yourself

Vlogcks commented 2 years ago

Oh

Vlogcks commented 2 years ago

Another problem (Sorry Much) The pitch and yaw dont set, When the script finishes and i move the cursor, Then the pitch and yaw will change

RubiksImplosion commented 2 years ago

Yes this is a known bug that I will fix eventually. Due to the nature of how mouse movement is implemented it is a bit tricky to fix.

Vlogcks commented 2 years ago

Oh thanks

Vlogcks commented 2 years ago

Also Um (Sorry Again) The yaw command more of like Adds 45 yaw more than set the yaw to 45

RubiksImplosion commented 2 years ago

It does? If you press F3 and rerun the script, the yaw should be set to 45 no matter your original facing angle.

Vlogcks commented 2 years ago

Yes I did look at F3 Apparently it went from -31 82 to -76 5

RubiksImplosion commented 2 years ago

What version of the mod are you using? Since i think i fixed this issue in the most recent release.

Vlogcks commented 2 years ago

1.16.3

RubiksImplosion commented 2 years ago

I fixed the issue with yaw in the most recent version, but a hack-fix you can do is to insert two copies of the yaw command like so: +forward; +sprint wait 40 -forward; -sprint yaw 45 yaw 45 pitch 5; +forward; +sprint; +jump

Vlogcks commented 2 years ago

HOLY MOLY TYSM

Vlogcks commented 2 years ago

1 last question tho? (sorry) Tell me if you have time I wont bother u if u dont

RubiksImplosion commented 2 years ago

When asking a question online it is better to just ask the question rather than ask permission to ask the question. So go ahead and ask your question

Vlogcks commented 2 years ago

How do i change a slot in my inventory? Like Theres a iron sword in my inventory and i will place it in my 1st hotbar slot How will i do it?

RubiksImplosion commented 2 years ago

Inventory TASing is only available in version 0,4.1 and above. I recommend updating to the most recent release 0.4.2 in order to use inventory TASing. There are example scripts for inventory TASing here https://github.com/RubiksImplosion/Minecraft-TAS/tree/master/run/scripts

Vlogcks commented 2 years ago

Ohh

Vlogcks commented 2 years ago

all it did was open my inventory and close it

RubiksImplosion commented 2 years ago

What script did you use?

Vlogcks commented 2 years ago

InventoryTestScript

RubiksImplosion commented 2 years ago

With version 0.4.2 for 1.17.1?

Vlogcks commented 2 years ago

Oh Um wait nvm false alert im going to download that version

RubiksImplosion commented 2 years ago

inventoryTestScript also assumes you have a stack of logs in the first slot of your hotbar, since it crafts and places down a crafting table.

Vlogcks commented 2 years ago

wow

Vlogcks commented 2 years ago

You put alot of effort into this mod

Vlogcks commented 2 years ago

thanks alot

RubiksImplosion commented 2 years ago

Thank you for your compliment