Error when calling any function

Started by JadedCC, Feb 20, 2025, 02:58 AM

Previous topic - Next topic

JadedCC

Hey everyone, I'm pretty new to Lua and CC as a whole but I'm running into this weird issue when I try to call any function the bottom of my script.

https://pastebin.com/vABEVmPe

It's supposed to call greeting() but I've tried it with setup() and pleaseTerminate() but it always give me the same error.

"Unexpected end of file after name.
Line 390
greeting()
Expected something before the end of the line."

I checked over my code and I don't think there are any syntax errors or typos. Feel free to test for yourself. Do note that I am using CC: Tweaked on a server that I do not own but all the files are the way the were packaged in All The Mods 9.

Any help is greatly appreciated.

SquidDev

Just to check, have you uploaded the right file (or just edited the paste)? The file only goes up to line 344, so definitely shouldn't be erroring on line390!
GitHub | CC:Tweaked: A ComputerCraft fork | Plethora: A peripheral mod

JadedCC

Sorry about that, I do have an edited version of the program on the actual Turtle but this is my intended program code, at least for now.

The error would be called on line 344. I know it gives the error because I originally tried running it first before modifying it.