• LuaCraft | Minecraft with a taste of Lua
    383 replies, posted
[QUOTE=jackool;35417584]I'd use this all the time if it was updated to the newest Minecraft version quicker.[/QUOTE] The way we were doing updates was a pain and could take a good few hours of work to merge all of our changes. Stoned said he came up with a way which should hopefully decrease this time so we can get updates out faster.
[QUOTE=LuaStoned;35426253]We skipped 1.2.4 and update directly to 1.2.5 today or tomorrow! (which is the official release date anyway)[/QUOTE] It has just been released today. [QUOTE=BlackAwps;35428020]The way we were doing updates was a pain and could take a good few hours of work to merge all of our changes. Stoned said he came up with a way which should hopefully decrease this time so we can get updates out faster.[/QUOTE] Awesome.
Well, the Client has been on 1.2.5 for some days now and I finished the Server today. Plus I found a way to patch LuaCraft within an hour when the next update comes out, so no more waiting for days. I also added new hooks and functions: [code]fire.spread hook (vec) player.mouseclick hook (ply, vec / ent, button) input.keypress hook (key, state) input.mouseclick hook (button, state) input.IsMouseDown function (button)[/code]
I really love that the clientside version of this mod comes as a standard windows executable (lol what's cross platform compatibility) and the fact the iRzilla is on the team.
[img]http://puu.sh/pUg1[/img] What are you on about?
[thumb]http://dl.dropbox.com/u/26106039/areyoukiddingme.jpg[/thumb] also it's kind of obvious that you're hiding something when you force people to use your own modified launcher rather than just linking them to the files hth (which are located [url=http://luacraft.com/update/client/]here[/url] for anyone who cares)
The launcher isnt obfuscated, feel free to decompile it and view the source yourself.
[QUOTE=cbcobo;35593769]*useless screenshot* also it's kind of obvious that you're hiding something when you force people to use your own modified launcher rather than just linking them to the files hth (which are located [url=http://luacraft.com/update/client/]here[/url] for anyone who cares)[/QUOTE] +1 for your capabilities to make a screenshot of the OP I don't force people to use our launcher, if you asked howto install it manually we would have told you.
I'd like to add something to LuaCraft. Is the source open?
[QUOTE=Map in a box;35599285]I'd like to add something to LuaCraft. Is the source open?[/QUOTE] Not yet, but we are always looking for new coders! (aka message me)
[QUOTE=cbcobo;35593769]also it's kind of obvious that you're hiding something when you force people to use your own modified launcher rather than just linking them to the files hth (which are located [url=http://luacraft.com/update/client/]here[/url] for anyone who cares)[/QUOTE] Is this just some guy who's mad at one of the team members for proving him wrong about something in another thread? I've never seen someone reach for straws so hard
Does redstone work with LuaCraft? I imagine this is just minecraft with Lua bindings, but most other custom server softwares don't have redstone!
[QUOTE=DylanWilson;35634321]Does redstone work with LuaCraft? I imagine this is just minecraft with Lua bindings, but most other custom server softwares don't have redstone![/QUOTE] This is a modification on the vanilla minecraft server. Everything that works in vanilla minecraft works in LuaCraft.
[QUOTE=thomasfn;35634747]This is a modification on the vanilla minecraft server. Everything that works in vanilla minecraft works in LuaCraft.[/QUOTE] Danke sir! also, you guys should update this: [url]http://www.minecraftwiki.net/wiki/Custom_servers/LuaCraft[/url] looking over this makes it look like some failed minecraft classic plugin, even the referenced links are old
[QUOTE=DylanWilson;35635836]Danke sir! also, you guys should update this: [url]http://www.minecraftwiki.net/wiki/Custom_servers/LuaCraft[/url] looking over this makes it look like some failed minecraft classic plugin, even the referenced links are old[/QUOTE] Updated that, found no place to put the client though. The MCWiki is a damn mess :x
[img]http://img.luastoned.com/dev_3D_moar.png[/img]
Neat ! By the way is it just me or a majority of hooks are broken ? Something simple like this : [QUOTE]hook.Add("entity.attackedentity", "OnAttacked", function(ent, victim, damage, damagetype) if ent == LocalPlayer() then victim:AddVelocity(Vector(0,0,10)) end end)[/QUOTE] dosen't work anymore...
[QUOTE=Fleskhjerta;35825154]Neat ! By the way is it just me or a majority of hooks are broken ?[/QUOTE] Did you try to debug with print? I know that Velocity acts weird.. I'll check it out.
Velocity works fine... I already tried : LocalPlayer():AddVelocity(Vector(0,0,10)) I flew into the air as excepted. console.command hook dosen't work anymore player.startsneak also dosen't work and many more hooks...
The con command hook was changed to client.command to match server.command. We really need to do some something about documenting hooks.
I took a look at the client.command hook, but it seems it dosen't supports arguments. It returns a plain text of what you wrote in the console.
[img]http://puu.sh/t9tZ[/img] Changed the hook to provide the arguments table and the raw string.
[QUOTE=BlackAwps;35841817][img]http://puu.sh/t9tZ[/img] Changed the hook to provide the arguments table and the raw string.[/QUOTE] Ninjerr Anywho: Added !(not), !=, <<, >>, |, ||, &, and &&. More glua like! [img]http://gyazo.breakpointservers.com/edb92bc32407c58f8d4436dd8b796edc.png[/img]
so whats the deal with console commands serverside, did you guys change how they work?
No
Just a question, is there anyway to detect whenever you are aiming at the specified block/entity/mob ?
Please update the wiki guys, Can't wait to use the new input. hooks
[QUOTE=BlackAwps;35851643]No[/QUOTE] I was thinking of networking the console commands like how its done in source, so on the server there would be a player argument. Would it be worth it?
I cant find anything on the wiki and its starting to get annoying. How do I print text? I found that out by opening the ESP addon. How do I change the font though?
[QUOTE=ruarai;35859535]I cant find anything on the wiki and its starting to get annoying. How do I print text? I found that out by opening the ESP addon. How do I change the font though?[/QUOTE] You would have to make your own font PNG if you wanted to have a different looking font and create it via surface.CreateFont( "/path/to.png" ) I did some in-code documentation so hopefully we will be able to reorganize and update the wiki soon. Anyway, while playing with some friends on a server I made a pretty bad xray and figured it would help if I added some threading capabilities and this is what I came up with.. [media]http://www.youtube.com/watch?v=9SEzi8LQyfk[/media] And the code behind it.. [lua]concommand.Add( "scan", function( cmd, args ) local size = args[1] or 64 local thread = Thread( function() local block local pos = LocalPlayer():GetPos() local startTime = SysTime() Info( "Scanning.." ) local scanningVecs = Vectors( pos + Vector( 1, 1, 0.25 ) * size, pos + Vector( -1, -1, -1 ) * size ) Warning( string.format( "Looping through %i blocks!", #scanningVecs ) ) for i = 1, #scanningVecs do currentScanPos = scanningVecs[ i ] block = Block( currentScanPos, LocalPlayer():GetWorld() ) if block:GetID() == 56 then table.insert( foundBlocks, { vec = currentScanPos, col = Color( 0, 162, 232, 150 ) } ) end end Info( string.format( "Scan complete.. (%f seconds)", SysTime() - startTime ) ) Warning( string.format( "Found %i blocks of diamond!", #foundBlocks ) ) end ) thread:Start() end )[/lua] Best part is, since we are using a simulated Lua in java, we don't have to worry about fucking up a stack because there is none.
Sorry, you need to Log In to post a reply to this thread.