This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
sjele's profile picture

[API] Wierd error msg

Started by sjele, 15 August 2012 - 12:39 PM
sjele #1
Posted 15 August 2012 - 02:39 PM
So i made an api for my server, and it works fine the first function i call, but when i call another one i get some wierd error msg.
It's something like "error h6ahhsga6" How would i fix that? (I just wrote a random part after error, could not remember what it said)

Link: http://pastebin.com/4dtSKhCH
Code:

--[[XtreamCraft Commands help
Made by Sjele
For xtreamcraft.net
--]]
function sClear()
  term.clear()
  term.setCursorPos(1, 1)
end
function help()
  sClear()
  print("Commands									 ")
  print("---------------------------------------------")
  print("You get help with:		  Usage:		   ")
  print("Staff List			xtreamcraft.staffList()")
  print("Credits			   xtreamcraft.credit()   ")
  print("Rules				 xtreamcraft.rules()	")
  print("Forums				xtreamcraft.forum()	")
  print("Ts3				   xtreamcraft.ts3()	  ")
  print("---------------------------------------------")
end
function staffList()
  sClear()
  print("				  Staff List						 ")
  print("-----------------------------------------------------")
  print("	  I		Owner: MikeKrason		I			")
  print("-----------------------------------------------------")
  print("Head Admins:	 Admins:	 Mods:			Agt:   ")
  print("CursedSteal7	ZenMender  Timuk_lol				 ")
  print("BucceneerRex				Shadow1		DustRiderX")
  print("FRazzleDolph			  TheChosenJesse			 ")
  print("   Sjele											 ")
  print("-----------------------------------------------------")
end
--[[
Need to fix staff list!
Need to re-add links.
--]]
function credit()
  sClear()
  print			  ("-----------------------------------------------")
  print			  ("		   Credits							 ")
  print			  ("-----------------------------------------------")
  textutils.slowPrint(" MikeKrason  ---   For making this Server	  ")
  textutils.slowPrint(" ZenMender   ---   For providing our website   ")
  textutils.slowPrint(" Sjele	   ---   For making this program	 ")
  textutils.slowPrint(" Donors	  ---   For donating				")
  textutils.slowPrint(" Conwaia	 ---   For doing forums graphics   ")
  textutils.slowPrint(" Staff	   ---   For moderating/administating")
  print			  ("-----------------------------------------------")
end
function rules()
  sClear()
  print("----------------------")
  print("	   Server		 ")
  print("	   Rules		  ")
  print("----------------------")
  print("	No griefing	   ")
  print("	No Spaming		")
  print("	No insulting	  ")
  print("No arguing with staff ")
  print("No impersonating staff")
  print("----------------------")
  print("xxxxxxxxxxxxxxxxxxxxxx")
  print("----------------------")
  print("		Ts3		   ")
  print("	   Rules		  ")
  print("----------------------")
  print("  No spamming noices  ")
  print("	No Recording	  ")
  print(" No spamming text chat")
  print("----------------------")
  print("xxxxxxxxxxxxxxxxxxxxxx")
  print("----------------------")
  print("	   Forum		  ")
  print("	   Rules		  ")
  print("----------------------")
  print("	  Listed		  ")
  print("		At			")
  print("   (hidden)		   ")
  print("----------------------")
end
function fourm()
  sClear()
  print("----------------------")
  print("	Forums Website	")
  print(" (Hidden)			 ")
  print("----------------------")
end
function claim()
  sClear()
  print("-----------------------------")
  print("Things you need to claim:	")
  print("Gold shovel				  ")
  print("Enough claim blocks		  ")
  print("-----------------------------")
  print("How do i get claim blocks?   ")
  print("You get 100 each hour		")
  print("You get some each 5 min	  ")
  print("-----------------------------")
  print("How do i claim?			  ")
  print("You mark to oppisite corners ")
  print("One under floor			  ")
  print("And one above roof		   ")
  print("-----------------------------")
  print("Is my house claimed?		 ")
  print("Right click with a stick	 ")
  print("In you're house			  ")
  print("Then it will pop up markers  ")
  print("Check if they cover the house")
  print("-----------------------------")
end
function ts3()
  sClear()
  print("What is ts3					")
  print("Ts3 is short for Team Speak 3  ")
  print("You can chat with players	  ")
  print("Using voice or text			")
  print("-------------------------------")
  print("How do i get Ts3?			  ")
  print("Google Team Speak 3			")
  print("-------------------------------")
  print("How do i get on Ts3 server	 ")
  print("Find connections tab		   ")
  print("Press connect in put in our ip ")
  print("-------------------------------")
  print("Whats the Team Speak ip?	   ")
  print("It is : (Hidden)			   ")
  print("-------------------------------")
  print("Ts3 rules					  ")
  print("No Spamming (voice or text)	")
  print("No recording				   ")
  print("-------------------------------")
end

Formating messed up in the copy.
Cranium #2
Posted 15 August 2012 - 03:03 PM
Did you edit the BIOS?
KaoS #3
Posted 15 August 2012 - 03:25 PM
I am not sure, maybe I'm being an idiot but shouldn't the close comment be ]]– not –]]
Cranium #4
Posted 15 August 2012 - 03:35 PM
I am not sure, maybe I'm being an idiot but shouldn't the close comment be ]]– not –]]
Yep, I think that's right! But I don't think that would cause the above error…
KaoS #5
Posted 15 August 2012 - 03:51 PM
lol what would cause that error? but yeah I suppose so
Cranium #6
Posted 15 August 2012 - 03:54 PM
I have never seen that error in my whole 2 months of coding experience, but I would assume that the BIOS or OS was edited.
KaoS #7
Posted 15 August 2012 - 03:58 PM
who knows, but even if you edit the BIOS you get legible errors
sjele #8
Posted 15 August 2012 - 05:46 PM
This is in api files. I have no clue what so ever on how to fix. Haven't edited any other file

Now it erros like this: function 71hahts6ha

When i call the 3 function. This time it errored when i made it do helpClaims()
Allso i run the function when typinglua into console and then xtreamcraft.(What i want)
Cloudy #9
Posted 15 August 2012 - 06:39 PM
Without the error it is difficult to help. The error message isn't random, you're just not giving it to us.
sjele #10
Posted 15 August 2012 - 07:21 PM
Ohh. Let me go get the real numbers :(/>/> I thought it was a random number. My bad
Cranium #11
Posted 15 August 2012 - 07:21 PM
Without the error it is difficult to help. The error message isn't random, you're just not giving it to us.
I think the error was fixed by Kaos' suggestion to switch the –]] to ]]–

Edit: guess not. OP just posted…
sjele #12
Posted 15 August 2012 - 07:29 PM
Steps to make this error msg happen: Error msg: function 19dd45e1
1.Open lua promot
2.Call functions from the api
3.Repeat 2 until it occurs.

when calling xtreamcraft.help() was the last time it happned.
(
Cloudy #13
Posted 15 August 2012 - 07:37 PM
You forgot the () on the end when calling the functions…
Kadecamz #14
Posted 15 August 2012 - 08:01 PM
Whats the IP?
Is it tekkit or just CC?
sjele #15
Posted 15 August 2012 - 08:27 PM
You forgot the () on the end when calling the functions…

Errm no? I did call them from lua like this
xtreamcraft.help()
xtreamcraft.staffList()
xtreamcraft.credit()
No i forgot the ()'s thanks

Allso it's a tekkit server