ReGen Chunk in selfmade World
#9
That should work. For some reason it seems that the blockarea is not read from the source world (you should check for failures - it returns a boolean).
For troubleshooting, what does ba:GetDataValues() return after the Read() call?
Or it could be some weird API binding failure, Write() function mis-interpreting one of its parameters. Try using ba:Write(DestWorld, startX, 2, startZ, cBlockArea.baTypes + cBlockArea.baMetas)

Also, I forgot that there needs to be one more ChunkStay, for the DestWorld, inside the DestWorld:QueueTask()'s callback:
   ...
   DestWorld:QueueTask(
     function()
       DestWorld:ChunkStay({{chunkx, chunkz}}, nil,
         function()
           ba:Write(DestWorld, startX, 2, startZ)
           ba:Clear()
         end  -- ChunkStay callback
       )
     end  -- QueueTask callback
   )
   ...
Reply
Thanks given by:


Messages In This Thread
ReGen Chunk in selfmade World - by moiko89 - 12-17-2016, 10:13 PM
RE: ReGen Chunk in selfmade World - by NiLSPACE - 12-17-2016, 10:32 PM
RE: ReGen Chunk in selfmade World - by xoft - 12-17-2016, 10:42 PM
RE: ReGen Chunk in selfmade World - by moiko89 - 05-14-2017, 10:01 PM
RE: ReGen Chunk in selfmade World - by xoft - 05-15-2017, 05:18 AM
RE: ReGen Chunk in selfmade World - by moiko89 - 05-16-2017, 04:16 AM
RE: ReGen Chunk in selfmade World - by xoft - 05-16-2017, 07:41 AM
RE: ReGen Chunk in selfmade World - by moiko89 - 05-17-2017, 05:04 AM
RE: ReGen Chunk in selfmade World - by xoft - 05-17-2017, 07:56 AM



Users browsing this thread: 4 Guest(s)