ChunkWorx V6 (rev. 787 compatible)
#10
I'm not using the additional features much, so I didn't test them.

But I'm sorry to tell you that I broke your plugin in Rev 534 Wink

I removed the obsolete cRoot:GetWorld() function with no argument. Everyone should use cRoot:GetDefaultWorld() instead for getting the default world; cRoot:GetWorld() takes a string parameter for the world name.

Also I added world enumeration to the cRoot API. It works similarly as player enumeration in cWorld - you call a ForEachWorld function with a callback parameter and then MCServer calls your callback once for each world, with the world as a parameter. Simple usage example (in your chunkworx_web.lua's HandleRequest_Generation() function):
Code:
    local WorldTable = {}
    local AppendToTable = function(World)
        Content = Content .. ", " .. World:GetName()  -- debug - output directly to Content
        table.insert(WorldTable, World:GetName() )
        return false
    end

    cRoot:Get():ForEachWorld(AppendToTable);
You can use this to populate a combo of worlds instead of the users having to type in the exact world name Smile

Two more things that would really help me:
- remember the coords that I enter for generation. Store them in an INI file, I see you know how to do that already Smile
- besides the (StartX, StartZ, EndX, EndZ) coords, allow the user to enter (CenterX, CenterZ, Radius) coords as well. Much easier Smile

Your plugin is extremely helpful for my development right now - when I change a generator, instead of having to walk around with a player in MC, I just let your plugin generate an area and see it in a map nicely Smile
Reply
Thanks given by: Taugeshtu


Messages In This Thread
ChunkWorx V6 (rev. 787 compatible) - by Taugeshtu - 05-31-2012, 07:58 AM
RE: ChunkWorx - by FakeTruth - 05-31-2012, 08:15 AM
RE: ChunkWorx - by xoft - 05-31-2012, 04:33 PM
RE: ChunkWorx - by xoft - 05-31-2012, 09:30 PM
RE: ChunkWorx - by Taugeshtu - 05-31-2012, 09:36 PM
RE: ChunkWorx V2 - by xoft - 06-01-2012, 06:03 AM
RE: ChunkWorx V2 - by Taugeshtu - 06-01-2012, 06:32 AM
RE: ChunkWorx V2 - by xoft - 06-01-2012, 06:39 AM
RE: ChunkWorx V2 - by Taugeshtu - 06-01-2012, 06:49 AM
RE: ChunkWorx V2 - by xoft - 06-02-2012, 07:48 PM
RE: ChunkWorx V2 - by NiLSPACE - 06-02-2012, 08:03 PM
RE: ChunkWorx V2 - by xoft - 06-02-2012, 08:16 PM
RE: ChunkWorx V2 - by NiLSPACE - 06-02-2012, 08:24 PM
RE: ChunkWorx V2 - by Taugeshtu - 06-03-2012, 10:09 PM
RE: ChunkWorx V2 - by xoft - 06-03-2012, 10:39 PM
RE: ChunkWorx V2 - by Taugeshtu - 06-04-2012, 12:55 AM
RE: ChunkWorx V2 - by Taugeshtu - 06-04-2012, 08:03 AM
RE: ChunkWorx V3 - by NiLSPACE - 06-05-2012, 11:54 PM
RE: ChunkWorx V3 - by Taugeshtu - 06-06-2012, 01:39 AM
RE: ChunkWorx V3 - by xoft - 06-06-2012, 01:46 AM
RE: ChunkWorx V3 - by NiLSPACE - 06-06-2012, 02:23 AM
RE: ChunkWorx V3 - by xoft - 07-04-2012, 05:01 AM
RE: ChunkWorx V3 - by Taugeshtu - 08-25-2012, 03:20 AM
RE: ChunkWorx V3 (rev. 787 compatible) - by xoft - 08-28-2012, 03:32 AM
RE: ChunkWorx V3 (rev. 787 compatible) - by xoft - 08-28-2012, 05:06 AM
RE: ChunkWorx V3 (rev. 787 compatible) - by xoft - 08-30-2012, 10:39 PM
RE: ChunkWorx V3 (rev. 787 compatible) - by xoft - 08-30-2012, 10:53 PM
RE: ChunkWorx V3 (rev. 787 compatible) - by xoft - 08-30-2012, 11:41 PM
RE: ChunkWorx V3 (rev. 787 compatible) - by xoft - 08-31-2012, 12:30 AM
RE: ChunkWorx V6 (rev. 787 compatible) - by xoft - 03-25-2013, 01:55 AM
RE: ChunkWorx V6 (rev. 787 compatible) - by xoft - 12-10-2013, 06:29 AM



Users browsing this thread: 1 Guest(s)