From 67f79743ef906755a1ecddcc4b0f1b788657061f Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 5 Jul 2019 17:04:59 -0400 Subject: [PATCH] Add script, note plans --- README.md | 4 ++++ utilities/showmissing.py | 51 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100755 utilities/showmissing.py diff --git a/README.md b/README.md index 958e68b..0c30375 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ ## Primary Features of ENLIVEN subgame * birthstones, improved fork: (also part of Bucket_Game) +* See also overrides/worlds/CenterOfTheSun/world.conf ### Planned Features There are several improvements I may implement in new or existing mods. @@ -34,6 +35,9 @@ section of the GitHub project. they are in Bucket_Game!) * Issues not yet added to the GitHub project's Issues are at [Minetest Kanboard](https://poikilos.dyndns.org/kanboard/?controller=BoardViewController&action=readonly&token=f214530d2f1294d90279631ce66b2e8b8569c6f15faf3773086476158bc8) +* Disable potentially (stuff in Bucket_Game not matching theme): + - codermobs gems (see codermobs_gem_*.png such as + codermobs_gem_fire.png) #### node.js server manager * capture log diff --git a/utilities/showmissing.py b/utilities/showmissing.py new file mode 100755 index 0000000..1f0f241 --- /dev/null +++ b/utilities/showmissing.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python +import sys + +def usage(): + print("") + print(sys.argv[0] + " ") + print("") + print("- Show QUOTED strings in file2 that aren't in file1.") + print("") + print("") + +argCount = len(sys.argv) - 1 + +if argCount < 2: + usage() + exit(1) + +oldPath = sys.argv[1] +newPath = sys.argv[2] + + + +def getStrings(path, delimiter='"', unique=True): + ret = [] + got = "" + inQ = False + with open(path) as f: + line = True + while line: + line = f.readline() + if line: + i = 0 + while i < len(line): + if line[i] == delimiter: + if inQ: + if (not unique) or (got not in ret): + ret.append(got) + got = "" + inQ = False + else: + inQ = True + elif inQ: + got += line[i] + i += 1 + return ret + +olds = getStrings(oldPath) +news = getStrings(newPath) +for v in olds: + if v not in news: + print(v)