• LuaServer
    467 replies, posted
Mob ids are on the wiki.
New version is out. Build 22. Get it from the main page of the website. Go to the forum post for the changes. =============================== Build 22 had an issue with rightclicking causing a crash. :S small issue with Eclipse not refactoring some files properly when I moved them around. Reuploaded the fixed version. Redownload from the luaserver.org main page download link.
Genesis, if you need any extra testers message me on FP and I'll add you through steam. I'll help test any functions you add so they're ready when you release a new build. Thanks for adding vectors by the way :D [editline]21st August 2011[/editline] Uh, errors here... :/ [code] [INFO] lua/Server_Files/autorun/Server_Main.lua:13: vm error: java.lang.NullPointerException [INFO] Error loading script: Server_Files. No lua file found. [INFO] 0 scripts have been loaded. [/code] and [code] [INFO] Started LuaServer Build: 22 [INFO] Error loading script: Server. No lua file found. [INFO] 0 scripts have been loaded. [/code]
[QUOTE=jrj996;31860029]Genesis, if you need any extra testers message me on FP and I'll add you through steam. I'll help test any functions you add so they're ready when you release a new build. Thanks for adding vectors by the way :D [editline]21st August 2011[/editline] Uh, errors here... :/ [code] [INFO] lua/Server_Files/autorun/Server_Main.lua:13: vm error: java.lang.NullPointerException [INFO] Error loading script: Server_Files. No lua file found. [INFO] 0 scripts have been loaded. [/code] and [code] [INFO] Started LuaServer Build: 22 [INFO] Error loading script: Server. No lua file found. [INFO] 0 scripts have been loaded. [/code][/QUOTE] Do you have a Server_Files.lua file inside lua/Server_Files?
wait, nope, got another error now. [code] lua/Server/autorun/Main_Server.lua:17: vm error: java.lang.NullPointerException [/code] Line 17: [lua]Hooks.Add("player.startsneak","checkshop",PlayerDetect)[/lua]
[QUOTE=jrj996;31861073]wait, nope, got another error now. [code] lua/Server/autorun/Main_Server.lua:17: vm error: java.lang.NullPointerException [/code] Line 17: [lua]Hooks.Add("player.startsneak","checkshop",PlayerDetect)[/lua][/QUOTE] Hmm... small issue fixed it up, fixed up the setblock function not syncing with the players. Reuploaded a version. This version I uploaded is also special. From now on whenever I release an update to the server all you have to do is restart your server and it will automatically download the latest jar.
holy shit, nice. Thanks Gen. :) [editline]21st August 2011[/editline] Is there a way you can make a hook that's used for checking when a player is on a block or moved? [editline]21st August 2011[/editline] Whenever I get the players vector I get this: [code]org.luaserver.LuaVector@1359c1b[/code]
Added my Questor plugin to the official forums, feel free to check it out and give me some CC!
[QUOTE=jrj996;31863221]holy shit, nice. Thanks Gen. :) [editline]21st August 2011[/editline] Is there a way you can make a hook that's used for checking when a player is on a block or moved? [editline]21st August 2011[/editline] Whenever I get the players vector I get this: [code]org.luaserver.LuaVector@1359c1b[/code][/QUOTE] That is the Vector. You can use .X .Y and .Z on that to get the different positions.
Small fixes ahoy. Fixed the sign issue found by iZed. Changed the place the updater looks at for downloading.
Also genesis im not sure why but some of us are getting errors when trying to use :GetLine(1) on a sign object. Just thought i'd let you know ;)
Bambo your getting them errors because your using the block.activate hook when you should be using the sign.activate hook.
Luaserver is amazing, but can we have: Hook for player movement Hook for player taking damage And also I'm pretty sure this is already on your list since the vector object was created, but it would be nice for all the functions which take x,y,z to take a vector object instead? It would be really nice just to do [code] ply:TeleportTo(target.Position) [/code] Thanks very much!
[QUOTE=Genesis999;31888563]Bambo your getting them errors because your using the block.activate hook when you should be using the sign.activate hook.[/QUOTE] Erm, I'm not using the block.activate hook, I'm getting the block from a specific location using the local sign = world:GetBlock(blah) then attempting to do sign:GetLine(1) But it still errors xD
Edit: Fixed it :D
[QUOTE=Bambo.;31895026]Erm, I'm not using the block.activate hook, I'm getting the block from a specific location using the local sign = world:GetBlock(blah) then attempting to do sign:GetLine(1) But it still errors xD[/QUOTE] Yea that was my fault. In fixing it in the player.placesign hook I borked it elsewhere. Look out for the next build coming soon. Hopefully youll be amazed and happy. Changes are quite cool. :) Itll probably be tomorrow night my time because I have to work tomorrow and I need to sleep now instead of updating wikis and things. :)
When this is really stable and versatile (maybe it already is), somebody should make an arena gamemode.
The new build Zero doesn't work on Linux boxes with no GUI. Fails due to there being no X11 screens available. Not a huge deal as I could just download the new version through Windows and copy it over, but its still something to look into.
Does player.disconnect not work? I'm not getting any sort of indication it does or is something wrong. [editline]23rd August 2011[/editline] [QUOTE=Jacinth;31897582]When this is really stable and versatile (maybe it already is), somebody should make an arena gamemode.[/QUOTE] I'm working on that now actually.
[QUOTE=Mobon1;31901914]Does player.disconnect not work? [/QUOTE] Its your code, player.disconnect works fine for me
Also, how exactly do you go about doing groups? I'm using an array but I don't think that's very efficient lol I used to be decent with lua but I forget a lot. [editline]23rd August 2011[/editline] My code is like this [code] function Disconnect(Player) Server.Chat("WOOF") end Hooks.Add("player.disconnect","Disconnect",Disconnect) [/code] What's wrong with it?
What doesn't/does your disconnect function do when it's run?
It does absolutely nothing is the problem. No matter what I put to happen in the function it won't run, and oddly it randomly worked once perfectly, but it won't happen again.
[QUOTE=Mobon1;31907122]It does absolutely nothing is the problem. No matter what I put to happen in the function it won't run, and oddly it randomly worked once perfectly, but it won't happen again.[/QUOTE] Server.Chat requires three arguments. The message, the message color and the players to show it to. [code]Server.Chat("WOOF", 15, "#all")[/code] "#all" stands for every player in the server.
[QUOTE=Funley;31911260]Server.Chat requires three arguments. The message, the message color and the players to show it to. [code]Server.Chat("WOOF", 15, "#all")[/code] "#all" stands for every player in the server.[/QUOTE] When you don't insert the other arguments it defaults to white and all.
[QUOTE=Mobon1;31914834]When you don't insert the other arguments it defaults to white and all.[/QUOTE] Sorry, didnt know that :P
Build 23 has been released. :) This build fixes a slew of issues and niggly things. Check out the changelog at: [url]http://downloads.luaserver.org/latest/Changelog.txt[/url]
metatable access, YESSSSSSSSSSSSSSSSSS, I LOVE YOU! :D
[lua] player.digblock ( Player , Block , Face ) [/lua] What does face do? Theirs no documentation, also I wish their was a way to trace. I want to be able to get ents in front of the player.
[QUOTE=Aide;31999185][lua] player.digblock ( Player , Block , Face ) [/lua] What does face do? Theirs no documentation, also I wish their was a way to trace. I want to be able to get ents in front of the player.[/QUOTE] The face was actually just an obsolete piece of data left on the wiki from an older version... As to tracing im working on it. ======================== Build 24 has been released. Changelog is at: [url]http://downloads.luaserver.org/latest/Changelog.txt[/url]
Sorry, you need to Log In to post a reply to this thread.