geometry_value_string=str(min_x)+":"+str(min_z)+"+"+str(int(max_x)-int(min_x)+1)+"+"+str(int(max_z)-int(min_z)+1)# +1 since max-min is exclusive and width must be inclusive for minetestmapper.py
#print(min_indent+"(saved yaml to '"+chunk_yaml_path+"')")
ifnotself.is_save_output_ok:
ifos.path.isfile(genresult_path):
participle="removing "+genresult_path
os.remove(genresult_path)
except:
print(min_indent+"Could not finish "+participle+" while deleting/moving output")
view_traceback()
else:
print(min_indent+"database locked: "+lock_line)
except:
print(min_indent+"Could not finish deleting/moving temp files")
view_traceback()
@ -1231,7 +1253,7 @@ class MTChunks:
returnresult
#Returns: (boolean) whether the chunk image is present on dest (rendered now or earlier)--only possible if there is chunk data at the given location
#Returns: (boolean) whether the chunk image is present on dest (rendered now or earlier); else None if database is locked (then re-adds it to self.todo_positions)--only possible if there is chunk data at the given location
defcheck_chunk(self,chunky_x,chunky_z):
min_indent=""
result=[False,""]
@ -1323,8 +1345,15 @@ class MTChunks:
self.rendered_count+=1
ifnotself.verbose_enable:
print(min_indent+chunk_luid+": "+result[1])
if(self._render_chunk(chunky_x,chunky_z)):
sub_result=self._render_chunk(chunky_x,chunky_z)
if(sub_result==True):
result[0]=True
elifsub_result==None:
result[0]=None
self.todo_positions.append((chunky_x,chunky_z))#redo this one
#must check_decachunk_containing_chunk AFTER _check_map_pseudorecursion_branchfrom so check_decachunk_containing_chunk can see if there are more to do before rendering superchunk
#always check since already checks queue and doesn't render decachunk on last rendered chunk, but instead on last queued chunk in decachunk
#if self.rendered_this_session_count>prev_rendered_this_session_count or self.force_rerender_decachunks_enable:
#Now is ok to check_decachunk_containing_chunk, since does not count current index as unfinished (allow_current_chunk_enable=False):
#must check_decachunk_containing_chunk AFTER _check_map_pseudorecursion_branchfrom so check_decachunk_containing_chunk can see if there are more to do before rendering superchunk
#always check since already checks queue and doesn't render decachunk on last rendered chunk, but instead on last queued chunk in decachunk
#if self.rendered_this_session_count>prev_rendered_this_session_count or self.force_rerender_decachunks_enable:
#Now is ok to check_decachunk_containing_chunk, since does not count current index as unfinished (allow_current_chunk_enable=False):
#geometry_string = str(min_x)+":"+str(min_z)+"+"+str(int(max_x)-int(min_x)+1)+"+"+str(int(max_z)-int(min_z)+1) # +1 since max-min is exclusive and width must be inclusive for minetestmapper.py