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. 26
      chunkymap-regen.py

26
chunkymap-regen.py

@ -807,8 +807,8 @@ 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:
print("PLAYERS:") print("PLAYERS:")
@ -850,10 +850,15 @@ class MTChunks:
else: else:
sys.stdout.write('.') sys.stdout.write('.')
else: else:
if self.verbose_enable: if not self.is_chunk_rendered_on_dest(chunk_luid):
print (chunk_luid+": SKIPPING nonfresh previously marked nonempty (player in it)") is_render_needed = True
#else: if self.verbose_enable:
#sys.stdout.write('.') print(chunk_luid+": RENDERING where missing image on marked nonempty chunk (player in it)")
else:
if self.verbose_enable:
print (chunk_luid+": SKIPPING nonfresh previously marked nonempty (player in it)")
#else:
#sys.stdout.write('.')
else: else:
is_render_needed = True is_render_needed = True
if self.verbose_enable: if self.verbose_enable:
@ -868,8 +873,13 @@ class MTChunks:
else: else:
sys.stdout.write('.') sys.stdout.write('.')
else: else:
if self.verbose_enable: if not self.is_chunk_rendered_on_dest(chunk_luid):
print (chunk_luid+": SKIPPING nonfresh previously marked (simple check since has no player)") 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:
if self.verbose_enable:
print (chunk_luid+": SKIPPING nonfresh previously marked (simple check since has no player)")
else: else:
if self.verbose_enable: if self.verbose_enable:
print (chunk_luid+": SKIPPING fresh chunk") print (chunk_luid+": SKIPPING fresh chunk")

Loading…
Cancel
Save