TGUI GPS

A place to record your ideas for the game.
Post Reply
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

TGUI GPS

Post by Gun Hog » #273072

Simply put, I would like to convert GPS units to TGUI! GPS units currently do not update on their own, making them a bit annoying to use. TGUI is built for handling auto-updating UI, for which the GPS is a perfect candidate! I have already spent a few hours learning how to handle the dark and mysterious magic that is the TGUI code to build a simple interface.

What do you players think? Would you like to see GPS put into TGUI? Why or why not?

Mechanics: Turning tracking off disables your view of the list and the ability of other GPS to see you. Click the tag to change your GPS tag.

EDIT: PR here: https://github.com/tgstation/tgstation/pull/26561
Last edited by Gun Hog on Tue Apr 25, 2017 2:51 pm, edited 1 time in total.
User avatar
kevinz000
Joined: Fri Nov 14, 2014 8:41 am
Byond Username: Kevinz000
Github Username: kevinz000
Location: Dorm Room 3

Re: TGUI GPS

Post by kevinz000 » #273179

tbh nothing to be discussed here this is strictly making it better , don't see why there would be anyone who doesn't want this to be auto-updating as you can do it via hotkey already.
User avatar
BeeSting12
Joined: Sat Apr 16, 2016 1:11 am
Byond Username: BeeSting12
Github Username: BeeSting12
Location: 'Murica

Re: TGUI GPS

Post by BeeSting12 » #273183

Looks cool, can't wait to see this in the game
Edward Sloan, THE LAW
Melanie Flowers, Catgirl
Borgasm, Cyborg
Spoiler:
OOC: Hunterh98: to be fair sloan is one of the, if not the, most robust folks on tg

DEAD: Schlomo Gaskin says, "sloan may be a faggot but he gets the job done"

DEAD: Rei Ayanami says, "YOU'RE EVERYWHERE WHERE BAD SHIT IS HAPPENING"
DEAD: Rei Ayanami says, "IT'S ALWAYS FUCKING EDWARD SLOAN"
oranges wrote:Bee sting is honestly the nicest admin, I look forward to seeing him as a headmin one day
[2020-05-21 01:21:48.923] SAY: Crippo/(Impala Chainee) "Shaggy Voice - She like... wants to get Eiffel Towered bro!!" (Brig (125, 166, 2))
hows my driving?
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: TGUI GPS

Post by Gun Hog » #273192

There is a feature freeze on, so I will save this for the thaw :)
User avatar
christ110
Joined: Sat Oct 01, 2016 4:40 am
Byond Username: Christ110

Re: TGUI GPS

Post by christ110 » #273221

When doing telescience, I sometimes like to open the GPS window, and leave it open as a "snapshot" of positions. Maybe give me the option to turn auto-update off?
User avatar
oranges
Code Maintainer
Joined: Tue Apr 15, 2014 9:16 pm
Byond Username: Optimumtact
Github Username: optimumtact
Location: #CHATSHITGETBANGED

Re: TGUI GPS

Post by oranges » #273430

kevinz000 wrote:tbh nothing to be discussed here this is strictly making it better , don't see why there would be anyone who doesn't want this to be auto-updating as you can do it via hotkey already.
That would be true if ractive.js wasn't a hot mess.
User avatar
Cobby
Code Maintainer
Joined: Sat Apr 19, 2014 7:19 pm
Byond Username: ExcessiveUseOfCobby
Github Username: ExcessiveUseOfCobblestone

Re: TGUI GPS

Post by Cobby » #273556

Gun hog discussed removing the window if you backpacked it though so I'd personally rather have that+nonauto than auto but the window is removed if I backpack it.
Voted best trap in /tg/ 2014-current
User avatar
ShadowDimentio
Joined: Thu May 08, 2014 3:15 am
Byond Username: David273

Re: TGUI GPS

Post by ShadowDimentio » #273557

I want this, the GPS as it stands is a huge pain to use.
Spoiler:
"Clowns are different you can't trust those shifty fucks you never know what they're doing or if they're willing to eat a dayban for some cheap yuks."
-Not-Dorsidarf

"The amount of people is the amount of times the sound is played... on top of itself. And with sybil populations on the shuttle..."
-Remie Richards

"I just spent all fucking day playing fallen london and sunless sea and obsessing over how creepy the fucking dawn machine is and only just clocked now that your avatar is the fucking dawn machine. Nobody vote for this disgusting new sequence blasphemer he wants to kill the gods"
-Stickymayhem

"Drank a cocktail of orange Gatorade and mint mouthwash on accident. Pretty sure I'm going to die, I am on the verge of vomit. It was nice knowing you guys"
-PKPenguin321

"You're too late, you will have to fetch them from the top of my tower, built by zombies, slaves, zombie slaves and garitho's will to live!"
-Armhulen

"This is like being cooked alive in a microwave oven which utilises the autistic end of the light spectrum to cook you."
-DarkFNC

"Penguins are the second race to realise 2D>3D"
-Anonmare

"Paul Blart mall cops if they all had ambitions of joining the Waffen-SS"
-Anonmare

"These logs could kill a dragon much less a man"
-Armhulenn

">7 8 6
WHAT MADNESS IS THIS? POETIC ANARCHY!"
-Wyzack

"We didn't kick one goofball out only to have another one come in like a fucking revolving door"
-Kraseo

"There's a difference between fucking faggots and being a fucking faggot."
-Anonmare

"You guys splitting the 20 bucks cost to hire your ex again?"
-lntigracy

"Wew. Congrats. It's been actual years since anyone tried to make fun of me for being divorced. You caught me, I'm tilted. Here is your trophy."
-Timbrewolf

"I prefer my coffees to run dry too *snorts a line of maxwell house*"
-Super Aggro Crag

"You don't have an evil bone in your body, unless togopal comes for a sleepover"
-Bluespace

">Paying over a $1000 for a lump of silicon and plastic
Lol"
-Anonmare

"Then why did you get that boob job?"
-DrPillzRedux

"You take that back you colonial mongrel"
-Docprofsmith

"I don't care whether or not someone with an IQ 3 standard deviations below my own thinks they enjoy Wizard rounds."
-Malkraz
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: TGUI GPS

Post by Gun Hog » #273593

I have yet to figure out how to freeze the UI without completely breaking it. But, I will try to work something out. The key is to not lose any functionality. See Kev, you do not know what kind of feedback you will get until you ask!
User avatar
Remie Richards
Joined: Thu Apr 17, 2014 7:11 pm
Byond Username: CrimsonVision
Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
Contact:

Re: TGUI GPS

Post by Remie Richards » #273602

Gun Hog wrote:I have yet to figure out how to freeze the UI without completely breaking it. But, I will try to work something out. The key is to not lose any functionality. See Kev, you do not know what kind of feedback you will get until you ask!
really? couldn't figure it out?

Code: Select all

/datum/tgui/proc/set_autoupdate(state = 1)
    autoupdate = state
私は完璧
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: TGUI GPS

Post by Gun Hog » #273604

I actually did, tyvm! Shortly after posting. You do not need to be so condescending, you know. Anyway, I can cancel the auto-updating now, and I will see about the window opening/closing next. I do not think any UI behaves that way though.
lzimann
Joined: Sun Oct 26, 2014 5:13 am
Byond Username: Lzimann
Github Username: lzimann

Re: TGUI GPS

Post by lzimann » #273608

Gun Hog wrote:I actually did, tyvm! Shortly after posting. You do not need to be so condescending, you know. Anyway, I can cancel the auto-updating now, and I will see about the window opening/closing next. I do not think any UI behaves that way though.
You probably missed my message in coderbus, but the tgui subsystem has a proc called close_uis, which let's you pass an atom as argument, and it will close every open UI linked to that atom.
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: TGUI GPS

Post by Gun Hog » #273666

Added interface 'snapshotting':
Spoiler:
Image
I set the interface to use the same vision checks as tablets. You can drop them on the ground and walk away a bit (if you are not adjacent, you cannot press buttons but still see it until you go a few steps away), you can hold them in your pocket or belt, but if you put it away, you can no longer physically see the GPS, thus the interface closes. I used the force-close tip from Izimann to disable the interface when the GPS is EMP'ed. If you simply turn it off, you still have the interface and controls, but not your location or the other GPS signals.

I am sorry, ExcessiveCobblestone, but I cannot implement your suggestion. But, auto-updating GPS with a manual updating option, distance and direction to target, as well as being able to tell your own location without having to find your tag in the list is a substantial improvement in my opinion. I am hoping that you find this one drawback acceptable.

I am also going to work on changing how I feed the GPS data to the UI, so I can format it a little better, such as adding a °(degrees) symbol to the direction reading so players more easily realize what it is.
User avatar
Remie Richards
Joined: Thu Apr 17, 2014 7:11 pm
Byond Username: CrimsonVision
Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
Contact:

Re: TGUI GPS

Post by Remie Richards » #273689

a degrees symbol should not be in the data.
the degrees symbol should be in the .ract file only.
私は完璧
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: TGUI GPS

Post by Gun Hog » #273692

Remie Richards wrote:a degrees symbol should not be in the data.
the degrees symbol should be in the .ract file only.
I know, I tried it both ways and found that I could only do it in the .ract. That is why I need to redo how I send data, I have too much data grouped in the same string, preventing such customizations.
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: TGUI GPS

Post by Gun Hog » #274317

I have added a z-level filter for the interface such that irrelevant signals can be ignored. Explorers and telesci operators are interested in off-z-level signals, but miners only care about chasing down megafauna and finding their way back home. This is useful for rescue teams as well.
Spoiler:
Image
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: TGUI GPS

Post by Gun Hog » #285232

Post Reply

Who is online

Users browsing this forum: No registered users