Browse Source

check for missing image

and fix bug where players_didntmove_count not incremented if not
verbose_enable
master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
30a18e2da6
  1. 12
      chunkymap-regen.py

12
chunkymap-regen.py

@ -807,7 +807,7 @@ class MTChunks:
player_written_count += 1 player_written_count += 1
else: else:
if self.verbose_enable: if self.verbose_enable:
print("DIDN'T MOVE: "+str(player_name)) #print("DIDN'T MOVE: "+str(player_name))
players_didntmove_count += 1 players_didntmove_count += 1
player_count += 1 player_count += 1
if not self.verbose_enable: if not self.verbose_enable:
@ -849,6 +849,11 @@ class MTChunks:
print (chunk_luid+": RENDERING nonfresh previously marked empty (player in it)") print (chunk_luid+": RENDERING nonfresh previously marked empty (player in it)")
else: else:
sys.stdout.write('.') sys.stdout.write('.')
else:
if not self.is_chunk_rendered_on_dest(chunk_luid):
is_render_needed = True
if self.verbose_enable:
print(chunk_luid+": RENDERING where missing image on marked nonempty chunk (player in it)")
else: else:
if self.verbose_enable: if self.verbose_enable:
print (chunk_luid+": SKIPPING nonfresh previously marked nonempty (player in it)") print (chunk_luid+": SKIPPING nonfresh previously marked nonempty (player in it)")
@ -867,6 +872,11 @@ class MTChunks:
print (chunk_luid+": RENDERING nonfresh unmarked (simple check since has no player)") print (chunk_luid+": RENDERING nonfresh unmarked (simple check since has no player)")
else: else:
sys.stdout.write('.') sys.stdout.write('.')
else:
if not self.is_chunk_rendered_on_dest(chunk_luid):
is_render_needed = True
if self.verbose_enable:
print (chunk_luid+": RENDERING where missing image on nonfresh previously marked (simple check since has no player)")
else: else:
if self.verbose_enable: if self.verbose_enable:
print (chunk_luid+": SKIPPING nonfresh previously marked (simple check since has no player)") print (chunk_luid+": SKIPPING nonfresh previously marked (simple check since has no player)")

Loading…
Cancel
Save