diff --git a/.gitignore b/.gitignore index d1a4aa3..75ca95a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ chunkymap-genresults/ chunkymap.yml minetestmeta.yml colors.txt +signals.txt # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/generator.py b/generator.py index 8d4c9ce..12e1c86 100644 --- a/generator.py +++ b/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: