I am just playing at some coding towards a tool I want to try and develop, and I am looking to collect potential planet formats that appear in game such as;
Standard Format: xxx,yyy:zzz
Alt News Format: planet zzz in the xxx,yyy system
(all sizes considered i.e. x,y:z ; xx,yy:zz)
I just joined up to collect some data but I don’t have much access yet, if anyone has any others they can think of, please could you leave them in here.
Happy New Year everyone, i’m hanging up my boots for the rest of the night.
Currently, there’s different formats in which you can find coordinates.
We have xx,yy:zz and we have “planet zz, in the xx,yy system”.
Can we get rid of the latter, and formulate everything in one standard format, being: xx,yy:zz?
Should be somewhere in the game roadmap.
I think the two formats you mentioned are the ones in the game now yes.
Thanks for the response.
What was your reason for wanting to standardise the format?
I went through your posts in the thread you linked, I see what your issues are.
Thanks again for the reply.
Only one example but here is the regex for the three that i cater for.
Pattern standardPlanetPattern = Pattern.compile("(?s)(\d+,\d+:\d+)");
String report = formatStandardList(standardPlanetPattern, planetList);
Pattern newsPlanetPattern = Pattern.compile("(?s) planet (\d+) in the (\d+)
report = report +formatNewsList(newsPlanetPattern, planetList);
//Our planet 11 at x:68, y:147
Pattern newsLostPlanetPattern = Pattern.compile("(?s)Our planet (\d+) at x:(\d+), y:(\d+)");
report = report +formatNewsList(newsLostPlanetPattern, planetList);
I’ve hosted a news analyser.
It only does family news at this point, not infiltrates.
Let me know if there are any bugs.
Also if anyone has saved copies of the silenz infiltrate summary reports that they could send me, that would help.
Also any raw infiltrates with lots of different types of events.
Here is the source code:
I am thinking of separating out the application front end into separate projects.
Ah brilliant, thank you very much, a subtle difference I hadn’t seen yet. Thank you for that!!
@TIF I had found another one, but it would hardly ever show up…
# re for format 'x,y:z'
coords = re.compile(r'(\d+),(\d+):(\d+)')
# Creates coord list in format [(x1,y1,z1),(x2,y2,z2)]
# re for format 'z in the x,y system.'
coordsalt = re.compile(r'planet (\d+) in the (\d+),(\d+) system.')
# re for format 'planet z at x:x, y:y'
coordsalt2 = re.compile(r'planet (\d+) at x:(\d+), y:(\d+)')
# re for format 'Planet #z of The ABC System (x,y)'
coordsalt3 = re.compile(r'Planet #(\d+) of .* System \((\d+),(\d+)\)')
# Creates coord list in format [(z1,x1,y1),(z2,x2,y2)]
Yup! A fine choice indeed, thanks for making that choice
A few books in now so just trying out a bunch of different stuff with it each day.