Page 1 of 1

ss13.eu tools on github

Posted: Fri Jan 13, 2017 12:44 am
by LiamLime
The various stuff that exists on ss13.eu has been available for years to anyone who asked, but I've finally taken the time to clean things up and put it on github. So yeah, if you want to host / update / rewrite the various tools... go ahead. The scripts are all awfully coded and in desperate need of a rewrite... but hey, they may be ugly, but they work... so they may as well remain in use :D

SS13 Tools on Github

Repository includes the following tools:
(Some of these take a while to load)
- Ban overview page
- Connection lookup ("How much time have I wasted")
- Death heatmap image
- Do admins play
- Game stats
- Ingame poll results
- Examine poll
- Book club
- Player migration
- Privacy poll results
- Achievements generator
- Advice assistant
- Character image generator
- Moodlet generator
- Passport generator
- Userbar generator

Remakes! Updates! New tools! \o/

Atlanta-Ned started remaking the tools and building new ones. Their new SS13 tools can be found here:
NEW SS13 Tools on Github

Repository includes the following tools: (More may have been added since this post was last updated!)
- Character image generator
- Deaths list
- Round list

Re: ss13.eu tools on github

Posted: Fri Jan 13, 2017 12:50 am
by lzimann
Damn. That's nice to finally have all of that code.

Re: ss13.eu tools on github

Posted: Fri Jan 13, 2017 2:00 am
by PKPenguin321
Lots of respect to this, I love these tools and by releasing them they'll practically live forever now

Thanks a ton

Re: ss13.eu tools on github

Posted: Fri Jan 13, 2017 3:11 am
by ShadowDimentio
To christen the new tool I made a passport

Re: ss13.eu tools on github

Posted: Sat Jan 14, 2017 2:41 pm
by Atlanta-Ned
Oh man, this is gonna be fun :D

EDIT: Vomiting uncontrollably. Gimme DB access and I can write better tools.

EDIT EDIT: Or a dump. Even a CSV file. I just need _some_ data to start with!

Re: ss13.eu tools on github

Posted: Fri Jan 20, 2017 7:38 pm
by Atlanta-Ned
I rebuilt the bio generator.

Known issues
• Lizards/Golems etc only have human skintones available to them
• There is no facial hair
• No way to save images
• No way to link back to specific images
• Setting up the code out of the box is a pain in the ass

Re: ss13.eu tools on github

Posted: Fri Jan 20, 2017 10:33 pm
by Armhulen
that's amazing, too bad i run random names

edit: A Spaceman is a bad example. you should do something like Josh Lastaname or some garbo like that.

Re: ss13.eu tools on github

Posted: Sat Jan 21, 2017 3:45 am
by MrStonedOne
Atlanta-Ned wrote:Oh man, this is gonna be fun :D

EDIT: Vomiting uncontrollably. Gimme DB access and I can write better tools.

EDIT EDIT: Or a dump. Even a CSV file. I just need _some_ data to start with!
Sure, come see me on irc.

Re: ss13.eu tools on github

Posted: Sat Jan 21, 2017 4:29 pm
by LiamLime
Awesome! Once you have one done, making the others should be easy.

To get images from dmis easily, you could use DMI2PNG, which I made for this purpose. Should make populating the dropdowns super easy.

Re: ss13.eu tools on github

Posted: Sat Jan 21, 2017 6:00 pm
by Atlanta-Ned
MrStonedOne wrote:Sure, come see me on irc.
Will do!
LiamLime wrote:Awesome! Once you have one done, making the others should be easy.

To get images from dmis easily, you could use DMI2PNG, which I made for this purpose. Should make populating the dropdowns super easy.
DMI2PNG is actually the core of the application ^_^ already. I use it to generate the icon files from the game code, so we can stay up to date with the code. Which reminds me, I need to be generating the JSON manifest when I generate the icons.

Re: ss13.eu tools on github

Posted: Sat Jan 21, 2017 8:16 pm
by LiamLime
Oh no! You made the mistake of calling something 'new' :D

Re: ss13.eu tools on github

Posted: Sun Jan 22, 2017 3:12 am
by Remie Richards
Atlanta-Ned wrote:I rebuilt the bio generator.

Known issues
• Lizards/Golems etc only have human skintones available to them
• There is no facial hair
• No way to save images
• No way to link back to specific images
• Setting up the code out of the box is a pain in the ass
should also mention that Hair renders under the clothes, which is immediately obvious for best hair (Long Hair 1, or here, by it's spritename, hair_long)
I understand why it was done, since S/E/W all work with it rendering under, but N needs it to render over.

Re: ss13.eu tools on github

Posted: Tue Jan 24, 2017 4:16 am
by Atlanta-Ned
And on the third day, there was a death list similar to what Goon has.

Re: ss13.eu tools on github

Posted: Tue Jan 24, 2017 4:17 am
by PKPenguin321
Atlanta-Ned wrote:And on the third day, there was a death list similar to what Goon has.
this doesn't show until after the round ends, right? it kinda shows who was antag :?

Re: ss13.eu tools on github

Posted: Tue Jan 24, 2017 8:07 am
by XDTM
It tracks brain damage but not toxin damage?

Re: ss13.eu tools on github

Posted: Tue Jan 24, 2017 3:03 pm
by Atlanta-Ned
PKPenguin321 wrote: this doesn't show until after the round ends, right? it kinda shows who was antag :?
Correct. I was very careful to design that query so that round-revealing information is not available.
XDTM wrote:It tracks brain damage but not toxin damage?
This is just a raw translation from the DB at the moment. There's a lot that still needs to be massaged.

Re: ss13.eu tools on github

Posted: Thu Jan 26, 2017 11:23 pm
by Atlanta-Ned
Round reports are shaping up. Currently only the last 30 rounds are available, I still need to work on making it easier to track down a specific round. BUT, you can also poll public logs for a given round, so that's pretty cool I think :) I also found a few things that need fixing in the codebase.

Re: ss13.eu tools on github

Posted: Mon Jan 30, 2017 11:08 pm
by Atlanta-Ned

Re: ss13.eu tools on github

Posted: Mon Jan 30, 2017 11:43 pm
by PKPenguin321
Could use a search bar and have the page number buttons at the bottom of the list

Re: ss13.eu tools on github

Posted: Tue Jan 31, 2017 3:27 am
by LiamLime
I don't really know where to post this, but I'll be shutting down the current locations for the image generators and will move them. This means that anyone who used the "Save" function on any of the pages and continues to have it hosted on my site (either ss13.eu or liamlime.com) will need to move them somewhere else, or recreate them once I move them. The reason for the move is that I'm consolidating the things I host - at the moment everything is all over the place in a big mess.

Re: ss13.eu tools on github

Posted: Fri Feb 03, 2017 5:26 pm
by Atlanta-Ned
Check out the preliminary new death image: http://imgur.com/sQKmcCB.png

Couple things:
1. Fuck robotics. The tile with the most deaths is in robotics, because lol borgs. It has something like 500 deaths. The tile with the next most deaths is around 100. This obviously throws off the scaling because numbers are hard.
2. Heatmap code is hard as shit. The previous heatmap was generated by drawing individual pixels on an image of the map with PHP. I tried rebuilding that but gave up. The new one gets all fancy with json and the canvas element. It does seem to be faster though (the only real bottleneck is the database, maybe?). As it is, I need to figure out why the map image itself is so screened back. Just to reiterate: Numbers are hard.
3. This still isn't accounting for different maps (or servers) because of #23656.

Re: ss13.eu tools on github

Posted: Sat Feb 04, 2017 1:08 am
by PKPenguin321
Atlanta-Ned wrote:Check out the preliminary new death image: http://imgur.com/sQKmcCB.png

Couple things:
1. Fuck robotics. The tile with the most deaths is in robotics, because lol borgs. It has something like 500 deaths. The tile with the next most deaths is around 100. This obviously throws off the scaling because numbers are hard.
2. Heatmap code is hard as shit. The previous heatmap was generated by drawing individual pixels on an image of the map with PHP. I tried rebuilding that but gave up. The new one gets all fancy with json and the canvas element. It does seem to be faster though (the only real bottleneck is the database, maybe?). As it is, I need to figure out why the map image itself is so screened back. Just to reiterate: Numbers are hard.
3. This still isn't accounting for different maps (or servers) because of #23656.
Assuming the final version will have the outline of the station behind it or something to that effect?

Re: ss13.eu tools on github

Posted: Tue Feb 07, 2017 8:10 pm
by Atlanta-Ned
Proof of life for month-by-month* stats: Image

* Only the last seven days FOR NOW, until I can be sure that the site can handle a month's worth of data without asplode.

Re: ss13.eu tools on github

Posted: Fri Mar 03, 2017 3:46 am
by Atlanta-Ned
And boom. Monthly stats, just like that.

There are bugs. Find them, report them.

Coders and up can generate stats on a month by month basis. Check under the Tools menu in the navbar. This will time out and throw a 404 error, but it's still going through.

Re: ss13.eu tools on github

Posted: Fri Mar 03, 2017 4:17 am
by PKPenguin321
Atlanta-Ned wrote:And boom. Monthly stats, just like that.

There are bugs. Find them, report them.

Coders and up can generate stats on a month by month basis. Check under the Tools menu in the navbar. This will time out and throw a 404 error, but it's still going through.
oh fancy~

Re: ss13.eu tools on github

Posted: Fri Mar 03, 2017 7:18 am
by XDTM
Small issue on the export section; since mineral exports are based on the materials inside rather than on the bars exported, every different amount is shown as a different export, instead of adding up.

Re: ss13.eu tools on github

Posted: Fri Mar 03, 2017 1:27 pm
by Remie Richards
Atlanta-Ned wrote: Coders and up can generate stats on a month by month basis.
Nope, try again.

Re: ss13.eu tools on github

Posted: Fri Mar 03, 2017 3:09 pm
by Atlanta-Ned
XDTM wrote:Small issue on the export section; since mineral exports are based on the materials inside rather than on the bars exported, every different amount is shown as a different export, instead of adding up.
Frig. I thought I'd accounted for that.
Remie Richards wrote:
Atlanta-Ned wrote: Coders and up can generate stats on a month by month basis.
Nope, try again.
Ugh. Oh, you need to log in with the game again. Your last rank is showing as Player and someone isn't checking against the admins txt yet.

Re: ss13.eu tools on github

Posted: Tue Mar 07, 2017 12:43 pm
by Remie Richards
Atlanta-Ned wrote:
XDTM wrote:Small issue on the export section; since mineral exports are based on the materials inside rather than on the bars exported, every different amount is shown as a different export, instead of adding up.
Frig. I thought I'd accounted for that.
Remie Richards wrote:
Atlanta-Ned wrote: Coders and up can generate stats on a month by month basis.
Nope, try again.
Ugh. Oh, you need to log in with the game again. Your last rank is showing as Player and someone isn't checking against the admins txt yet.
Pfft, ok, so it's like with the DB, gotcha.

Re: ss13.eu tools on github

Posted: Tue Mar 21, 2017 3:29 pm
by Atlanta-Ned
It's a Paper BB code renderer that no one asked for or knew they needed.

Let me know if you find paper code that breaks it.

Re: ss13.eu tools on github

Posted: Wed Mar 22, 2017 1:01 pm
by LiamLime
Nice, but it should probably have the set of available BBCode as buttons or as at least a reference.

Re: ss13.eu tools on github

Posted: Wed Mar 22, 2017 9:23 pm
by PKPenguin321
Can somebody patch up the "do admins play?" tool please it's really handy

Re: ss13.eu tools on github

Posted: Wed Mar 22, 2017 9:26 pm
by Armhulen
And the how many hours it always says i've never played

Re: ss13.eu tools on github

Posted: Thu Mar 23, 2017 2:43 pm
by Atlanta-Ned
PKPenguin321 wrote:Can somebody patch up the "do admins play?" tool please it's really handy
How does this (inconceivably slow) page work for you? https://atlantaned.space/newSS13tools/s ... ctions.php

Re: ss13.eu tools on github

Posted: Thu Mar 23, 2017 9:52 pm
by PKPenguin321
Atlanta-Ned wrote:
PKPenguin321 wrote:Can somebody patch up the "do admins play?" tool please it's really handy
How does this (inconceivably slow) page work for you? https://atlantaned.space/newSS13tools/s ... ctions.php
Should be good enough for now, I just like checking connections on trialmins during their review, thanks

Re: ss13.eu tools on github

Posted: Mon Apr 03, 2017 12:02 am
by Atlanta-Ned
The replication slave I talk to is down. Thusly, atlanta ned dot space cannot access stats.

Re: ss13.eu tools on github

Posted: Tue Apr 04, 2017 12:59 am
by oranges
MSO killed stats

Re: ss13.eu tools on github

Posted: Wed Apr 05, 2017 6:20 pm
by Atlanta-Ned

Re: ss13.eu tools on github

Posted: Fri Apr 07, 2017 9:44 pm
by Atlanta-Ned
I rebuilt the monthly stats page so now all stats for a given month get their own page. Should be much faster and more usable. TWIST: I broke all the old monthly stat links. #SorryNotSorry. I'll probably also have to go back and regenerate all the monthly stats. Probably. Not sure yet.

Stats overall are being refactored. Here's a demo.