ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: JadedCC on Feb 20, 2025, 02:58 AM

Title: Error when calling any function
Post by: JadedCC on Feb 20, 2025, 02:58 AM
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.
Title: Error when calling any function
Post by: SquidDev on Feb 21, 2025, 09:14 AM
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!
Title: Error when calling any function
Post by: JadedCC on Feb 22, 2025, 01:12 AM
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.