I received my first job offer related to my work on MCServer

))
A friend of mine has a few public MC servers and wants me to write a tool for server admins to help recover worlds that somehow got bugged (bad block ID); and he's offered a paypal "motivation" for that tool

That's how open-source should be done. It's free, but if you like it, use it or want something extra, motivate

aaah i'm stuck :S i am trying to make copy and paste work but i keep getting an error:
Quote:[16:06:45] cChunk::WriteBlockArea(): unsupported datatype request, can write only types + metas (0x3), requested 0x0. Ignoring
i use this code to load a schematic:
BlockArea:LoadFromSchematicFile( "Schematics/" .. Split[3] .. ".Schematic" )
this to copy:
BlockArea:Read( World, OneX, TwoX, OneY, TwoY, OneZ, TwoZ )
and this to paste it:
BlockArea:Write( Player:GetWorld(), Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() )
but i can still use the schematics file i create in MCEdit.
you need a fifth parameter to Write():
BlockArea:Write(Player:GetWorld(), Player:GetPosX(), Player:GetPosY(), Player:GetPosZ(), baTypes or baMetas);
Realy? for my //set command i didn't need that ;O
now i get:
Quote:LUA: Plugins/WorldEdit/main.lua:39: error in function 'Write'. argument #6 is 'nil'; '[no object]' expected
Hmm, really, the extra parameter is not needed, because when missing, it should default to "baTypes or baMetas". The error you were getting was because it should've been "cBlockArea.baTypes or cBlockArea.baMetas", my mistake, sorry.
Anyway, the original error is caused by the BlockArea not containing the proper datatypes. After loading or reading the area, try to see what datatypes it is holding (cBlockArea:GetDataTypes()), it should be equal to 3, which means blocktypes and blockmetas. If not, there's an error either in your loading or reading code, or in MCServer's handling of those. Try to pinpoint where the datatypes value gets lost.
when i do "print(BlockArea:GetDataTypes())" it says 0 but when i do "print(BlockArea:GetDataTypes())" after BlockArea:LoadFromSchematicFile(....) it says 3
So when exactly does it go from 0 to 3?
i can only think of one thing, before the //paste command it does BlockArea = cBlockArea()
EDIT:
YEA it works

i put the BlockArea = cBlockArea() in the initialize function only now
