Adding loggin to troubleshoot location generation issue
This commit is contained in:
@@ -241,6 +241,7 @@ func _load_existing_locations() -> void:
|
||||
_locations_loaded = true
|
||||
return
|
||||
|
||||
var loaded_count := 0
|
||||
for item in parsed:
|
||||
if typeof(item) != TYPE_DICTIONARY:
|
||||
continue
|
||||
@@ -254,5 +255,10 @@ func _load_existing_locations() -> void:
|
||||
if location_name.is_empty():
|
||||
location_name = "Location %d,%d" % [coord.x, coord.y]
|
||||
_known_locations[coord] = location_name
|
||||
loaded_count += 1
|
||||
|
||||
print("LocationLevel loaded %d visible locations for character %s." % [loaded_count, character_id])
|
||||
if loaded_count == 0:
|
||||
push_warning("Visible locations request succeeded but returned 0 locations for character %s." % character_id)
|
||||
|
||||
_locations_loaded = true
|
||||
|
||||
Reference in New Issue
Block a user