Browse Source

Add script, note plans

master
poikilos 5 years ago
committed by Jacob Gustafson
parent
commit
67f79743ef
  1. 4
      README.md
  2. 51
      utilities/showmissing.py

4
README.md

@ -23,6 +23,7 @@
## Primary Features of ENLIVEN subgame ## Primary Features of ENLIVEN subgame
* birthstones, improved fork: <https://github.com/poikilos/birthstones> * birthstones, improved fork: <https://github.com/poikilos/birthstones>
(also part of Bucket_Game) (also part of Bucket_Game)
* See also overrides/worlds/CenterOfTheSun/world.conf
### Planned Features ### Planned Features
There are several improvements I may implement in new or existing mods. 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!) they are in Bucket_Game!)
* Issues not yet added to the GitHub project's Issues are at * 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) [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 #### node.js server manager
* capture log * capture log

51
utilities/showmissing.py

@ -0,0 +1,51 @@
#!/usr/bin/env python
import sys
def usage():
print("")
print(sys.argv[0] + " <file1> <file2>")
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)
Loading…
Cancel
Save