Browse Source

working on player map markers

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
4dec557000
  1. 1
      .gitignore
  2. 9
      generator.py

1
.gitignore

@ -4,6 +4,7 @@ chunkymap-genresults/
chunkymap.yml
minetestmeta.yml
colors.txt
signals.txt
# Byte-compiled / optimized / DLL files
__pycache__/

9
generator.py

@ -1034,9 +1034,14 @@ class MTChunks:
for this_key in self.players.keys():
this_player = self.players[this_key]
if "index" in this_player:
if this_player["index"]==index:
if int(this_player["index"])==int(index):
result = True
break
else:
if self.verbose_enable:
print("existing "+this_player["index"]+" is not needle "+str(index))
else:
print("WARNING: player "+str(this_player)+" is missing index")
return result
def get_new_player_index(self):
@ -1115,7 +1120,7 @@ class MTChunks:
if (player_dict["playerid"] is not None) and (player_dict["playerid"]!=""):
self.players[player_dict["playerid"]] = player_dict
if self.verbose_enable:
print("Adding playerid '"+str(player_dict["playerid"])+"'")
print("Loading map entry '"+sub_name+"' for playerid '"+str(player_dict["playerid"])+"'")
else:
print("ERROR: no 'playerid' in chunkymap player entry '"+sub_path+"'")
else:

Loading…
Cancel
Save