r/lua • • 5h ago

Dealing with a... Ghost script?

This will probably sound like the dumbest thing ya'll ever heard altough im rather new to lua, altough not programming..

I've been using lua with the minecraft mod figura to add animations to things with a script and such. quite nice, Untill i tried using the "trailing tails lua library", when saving the script it would keep getting stuck at the same error. i wondered why and noticed that the game was loading a old version of my script the one from the first save after using Trailing tails? i backedup the original script and deleted the one in the Figura avatar folder, and the game was still loading it.

a few unfortunate things happened the backup got removed(0 clue how the folder is just... new folder now?) but here's the thing, whilst i did try to recover it through the hard drive with little to no success, The game is still producing the same error, And loading the ingame avatar. this means its getting the data from somewhere no?

The very error that caused it may save the project that i spend... 20 hours on at this point. Is there anyway to figure out where the game gets this data from? maybe i can actually save it?

the script, Car, main and etc are from the library i mentioned. but they aren't producing the error. let alone are being loaded.
What the script used to look like
1 Upvotes

1 comment sorted by

1

u/spaggetys 1h ago

Update: i figured out what caused it, i wans't aware that Figura would run code from a sub folder, would be nice if the documentation would mention that. Well that aside i figured out i wasn't dealing with a ghost script afterall.

Now to damage control trying to recover to the original script or just rewritting parts of it from the old screenshots. Guess thats a silver lining. Other than that. I wish the lot of you a g'day! ;D