• unpooled message name - really lost, I tried!
    7 replies, posted
So here is the error [ERROR] lua/autorun/cl_tauntmenu.lua:464: Calling net.Start with unpooled message name! [ http://goo.gl/qcx0y ]   1. Start - [C]:-1    2. fn - lua/autorun/cl_tauntmenu.lua:464     3. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 And here is the line it is looking for, net.Start("RandomTaunt") net.SendToServer() end the ulib error is only as a result of this missing 'unpooled message' I tried adding: util.AddNetworkString("RandomTaunt") however it seems to be no luck, I am also having difficulty getting cl_tauntmenu.lua to load sh_taunts.lua where all the taunts are preloaded, its a strange menu with two seperate lua files, not sure how to get them to work together other than "include..." in the init.lua Many thanks if anyone can give some guidance!
util.AddNetworkString is a server function it has to be in a file that's run by the server.
Ah I see, so is it correct to be in init.lua? If so, its playing a fun prank on me haha
It can be or in any other file that loaded by the server. Here's an example. jailbreak/init.lua at master · clrksml/jailbreak · GitHub
Hmm in that case I don't see why it's having an issue, commented out here for ease of seeing all related files: -- Send required file to clients AddCSLuaFile("sh_init.lua") AddCSLuaFile("sh_player.lua") -- AddCSLuaFile("cl_tauntmenu.lua") -- AddCSLuaFile("sh_taunts.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("cl_hud_mask.lua") AddCSLuaFile("cl_hud.lua") AddCSLuaFile("cl_menu.lua") AddCSLuaFile("cl_targetid.lua") -- Taunt Menu -- util.AddNetworkString("RandomTaunt") -- util.AddNetworkString("BuildTauntMenu") -- util.AddNetworkString("CloseTauntMenu") -- util.AddNetworkString("PlayTaunt") -- Include the required lua files include("sv_networkfunctions.lua") include("sh_init.lua") include("sh_config.lua") include("sv_admin.lua") include("sv_bbox_addition.lua")
Check for errors in the script that adds the network string and add prints to make sure everything is running.
Yeah the taunt menu has been placed in autorun, it is the only place it seems to work, in addons, there is no signs of the script running at all, so I guess thats a cache 22
Having it directly in autorun folder means it'll run on both realms most likely causing a bunch of issues, as for the error the script or function adding your network string isn't running properly or possibly not running at all. As I said before look for older errors that originate from the server and add prints to test if the script is being ran in the first place.
Sorry, you need to Log In to post a reply to this thread.