Hey! Listen!
Winter Ball 2018
A /tg/Station13 Ball Roleplay oriented event
Will begin Saturday at 2pm PST / 5pm EST / 10pm GMT
at the Event Hall.
You have a date r-right?

Renderbus

(Mainly the wiki)

Moderators: Jalleo, Vekter, Munchlax, MisterPerson, kosmos

User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Renderbus

Unread postby Atlanta-Ned » Thu Jul 05, 2018 7:44 pm #424389

Renderbus is Statbus' younger sibling, a one-stop shop for renders of the tg station maps.

This project is still HEAVILY WIP, so proceed with caution. The end goal is to automatically generate renders of the full station maps at least once a day, but this may shift to generating renders every time a map file is edited on github. Maps will be presented similarly to Goon's online map viewer and Affected's map viewer.

For now, here are the full size map renders. This page will update as new renders are created and updated:

https://atlantaned.space/renderbus/renders/index.php

Right now the renders are being executed and uploaded manually



User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: Renderbus

Unread postby Atlanta-Ned » Sat Jul 07, 2018 2:33 am #424671

There’s a map viewer at https://atlantaned.space/renderbus/ now. Still working on adding more functionality.
Feedback pls (Don't bother though, because I am perfect)
### ListVarEdit by Atlanta-ned: /datum/reagents reagent_list: Water=/obj/item/weapon/gun/energy/alien
IcePacks wrote:>all you have is a taser and the cold realization that you're a haphazard bandaid over a problem that may or may not exist, applied by someone who doesn't know or care enough about their job to do it properly

Jalleo
Board Moderator
 
Joined: Tue Apr 15, 2014 1:27 pm
Byond Username: Jalleo

Re: Renderbus

Unread postby Jalleo » Sat Jul 07, 2018 8:49 am #424692

Sticked to make this easier for people to notice since when this is closer to fully functional I presume others will take more interest in it.

User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: Renderbus

Unread postby Atlanta-Ned » Sat Jul 07, 2018 4:21 pm #424727

Ok, another update.

The last 18 months have been dominated by an issue where I am apparently incapable of converting from byond's coordinate system to the map viewer coordinate system. Luckily though, I finally cracked it.
Behold: MetaStation with the solar array trackers highlighted: https://atlantaned.space/renderbus/

Now I can do super cool shit, like linking to maps of deaths on individual death pages:
https://atlantaned.space/statbus/death.php?id=2831056

And in the future:
- A map of every death/explosion/anything else that saves coordinates on a round page(!)
- Death heatmaps(!!)
- An interactive log-viewer(!!!)

This issue with coordinates was the last hurdle. Everything after this will be easy to implement and work with :D
Feedback pls (Don't bother though, because I am perfect)
### ListVarEdit by Atlanta-ned: /datum/reagents reagent_list: Water=/obj/item/weapon/gun/energy/alien
IcePacks wrote:>all you have is a taser and the cold realization that you're a haphazard bandaid over a problem that may or may not exist, applied by someone who doesn't know or care enough about their job to do it properly

User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: Renderbus

Unread postby Atlanta-Ned » Sun Jul 08, 2018 6:10 pm #424901

The explosions section of the round view now shows a map of where the explosions for a given round occurred!
https://atlantaned.space/statbus/round. ... explosions

The radius at the moment is determined by the `heavy` range of the explosion. I'll be updating this to include `light`, `flash`, and `flame` radii :D
Here's what the nuke going off looks like: https://atlantaned.space/statbus/round.php?round=90710

EDIT: WHEW https://atlantaned.space/statbus/round. ... explosions
Feedback pls (Don't bother though, because I am perfect)
### ListVarEdit by Atlanta-ned: /datum/reagents reagent_list: Water=/obj/item/weapon/gun/energy/alien
IcePacks wrote:>all you have is a taser and the cold realization that you're a haphazard bandaid over a problem that may or may not exist, applied by someone who doesn't know or care enough about their job to do it properly

User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: Renderbus

Unread postby Atlanta-Ned » Mon Jul 09, 2018 6:31 pm #425105

The map views now include deaths, wires, atmos, and PDA messages, mostly as a proof of concept.
https://atlantaned.space/statbus/round. ... =90780&map
Feedback pls (Don't bother though, because I am perfect)
### ListVarEdit by Atlanta-ned: /datum/reagents reagent_list: Water=/obj/item/weapon/gun/energy/alien
IcePacks wrote:>all you have is a taser and the cold realization that you're a haphazard bandaid over a problem that may or may not exist, applied by someone who doesn't know or care enough about their job to do it properly

User avatar
PKPenguin321
In-Game Game Master
 
Joined: Tue Jul 01, 2014 7:02 pm
Location: U S A, U S A, U S A
Byond Username: PKPenguin321

Re: Renderbus

Unread postby PKPenguin321 » Tue Jul 10, 2018 2:34 pm #425229

Brilliant, can't wait for a new and more functional death heatmap. Will it use all the old death stats as well or only recent ones, because I had like thousands of deaths on the old one
i play Lauser McMauligan. clown name is Cold-Ass Honkey
i have three other top secret characters as well
tell the best admin how good he is
Spoiler:
Image

User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: Renderbus

Unread postby Atlanta-Ned » Tue Jul 10, 2018 4:03 pm #425237

I've started work on the timeline function, which will let you scroll through events as they happened on the map. Right now, this only covers deaths and is very buggy.

The issues here are complex to say the least. There are plugins to do timelines in leaflet (the map viewer we're using), but they're poorly maintained and don't work reliably with data that's loading asynchronously.

Oh did I mention that wires, atmos, and PDA messages are loaded asynchronously? Because they totally are and it's pretty badass if I do say so myself.
Feedback pls (Don't bother though, because I am perfect)
### ListVarEdit by Atlanta-ned: /datum/reagents reagent_list: Water=/obj/item/weapon/gun/energy/alien
IcePacks wrote:>all you have is a taser and the cold realization that you're a haphazard bandaid over a problem that may or may not exist, applied by someone who doesn't know or care enough about their job to do it properly

User avatar
oranges
Code Maintainer
 
Joined: Tue Apr 15, 2014 9:16 pm
Location: #CHATSHITGETBANGED
Byond Username: Optimumtact
Github Username: optimumtact

Re: Renderbus

Unread postby oranges » Wed Jul 11, 2018 2:39 am #425327

the map stuff is really neat
Image

User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: Renderbus

Unread postby Atlanta-Ned » Wed Jul 11, 2018 4:28 pm #425422

An update on where things stand:

I've got a new slider mechanism in place, and am very close to making it 'work'. JavaScript is funnymaddeningly stupid when it comes to comparing different variable types. Compounding this is the fact that I'm juggling several different date/time formats and converting all of them to something else several times.

So after I manage to do this without hiring a hitman to take myself out, I'll be able to focus on the Big Thing™: Game and attack logs.

This will be complicated for several reasons:
1. These logs are only available to me in Giant Text File format. We're talking several bytes' worth of data. In the grand scheme of things, these aren't difficult to handle at all. It's a fairly straightforward RegEx and some massaging.
2. Except that attack.log is stored separately from game.log, hah hah hah. So I have to parse both files, then smush them together.
3. Which brings us back to the fact that these files are several bytes and frequently 10k+ lines.
4. So storage and recalling of these files is challenging. Previously, I've tried:
- Parsing and smushing all at once, then displaying the resulting Blob of Text all at once. This was painfully slow.
- Parsing, smushing, and caching to a locally saved json file, then displaying everything at once. Faster, if you were using the cached file, but still painfully slow.
- Parse, smush, and cached to a database, then displaying the resulting blob. Surprise surprise, this was also slow as fuck. And also slowed down my database
- Parse. Smush. Cache to DB. Display only 1000 lines at a time. Slow, on the first parsing, but much more performant when it came time to actually look at the logs! But I also bungled this because I am a bad programmer
- Parse. Smush. Cache to DB. Except with Python instead of PHP. Super fast, not at all terrible, but means we've invoked python from PHP. What sort of lunatic does that?

5. Which brings us to now. There are a couple of different avenues I can take here:
- Parse and smush the log files with PHP, serve them as json that can be fetched by the map viewer. This can be done asynchronously, but it might be bandwidth/processor intensive. And also crash your browers because lol 10k+ long objects
- Parse and smush the log files in javascript, because it's 2018 and of course JS can fetch a remote gzipped file, decompress it, and run bunch of regex. This has the benefit of offloading all the processing onto the client's browser, but also at the risk of making everything catch on fire.
- Actually, since we're using the map viewer with a timeline scroller, we dont need to smush anything together. I mean, we should, but not for this. Wew.
Feedback pls (Don't bother though, because I am perfect)
### ListVarEdit by Atlanta-ned: /datum/reagents reagent_list: Water=/obj/item/weapon/gun/energy/alien
IcePacks wrote:>all you have is a taser and the cold realization that you're a haphazard bandaid over a problem that may or may not exist, applied by someone who doesn't know or care enough about their job to do it properly

User avatar
Atlanta-Ned
In-Game Admin
 
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: Renderbus

Unread postby Atlanta-Ned » Thu Nov 29, 2018 9:42 pm #457815

Donut Station is up now, along with the most recent versions of the rest of the maps https://atlantaned.space/renderbus/
I also streamlined my rendering process, so maybe renders will be up sooner now,
Feedback pls (Don't bother though, because I am perfect)
### ListVarEdit by Atlanta-ned: /datum/reagents reagent_list: Water=/obj/item/weapon/gun/energy/alien
IcePacks wrote:>all you have is a taser and the cold realization that you're a haphazard bandaid over a problem that may or may not exist, applied by someone who doesn't know or care enough about their job to do it properly


Return to Site, Forums, And Wiki

Who is online

Users browsing this forum: No registered users and 1 guest