This commit is contained in:
Robert 2021-12-26 00:32:25 +01:00
parent a4077dbf3d
commit 78176b1b6d
2 changed files with 22 additions and 9 deletions

View File

@ -1,3 +1,16 @@
import json
print("Tiled-Editor Copyright-Info nach rc3.world-Vorgaben hinzufügen")
print("Datei rechte.json passend befüllen, dann Aufruf")
print("{$0} <tiledmapdatei.json>")
print("Die <tiledmapdatei.json> wird modifiziert! Vorher eigene Änderungen committen!")
print("")
with open("rechte.json", "r") as rechte_file:
rechte = json.load(rechte_file)
print("Folgende Rechte wurden zugeordnet:")
for recht in rechte:
print(recht["name"] + " zu -> " + recht["copytxt"])
#json.dump(rechte, rechte_file, indent=2)
with open()

View File

@ -1,10 +1,10 @@
[
{
name: "floortileset.png",
copytxt: "CC0BY blatut"
},
{ name: "floortileset.png",
copytxt: "CC0BY blatut"
}
]
{
"name": "floortileset.png",
"copytxt": "CC0BY blatut"
},
{
"name": "chemnitz_al.png",
"copytxt": "CC0BY Chaostreff Chemnitz https://chch.it"
}
]