Dev (Unofficial) SGM server checking android app *Updated to v1.2.1*

Discussion in 'Hobbies' started by EhhChris, Mar 9, 2015.

  1. EhhChris

    EhhChris Advisor. VIP Silver Emerald

    [​IMG]
    SGMC (Server query application for android)
    Source available on GitHub.
    My experience with Java and the Android API are limited to what I've taught myself, so if you see mistakes feel free to point them out and I'll work on fixing them. Explanations are always welcome.


    - Query all SGM servers
    - List players and player count per server
    - Fun to play with the drop down menus (they amuse me)


    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]


    Let me know what you guys think.

    Play store link

    I'd also like to include that @Zikeji has been quite the helpful guy on this, and he deserves credit too. Thanks Zik<3


    Initial release, duh

    + Icon rounded to look a slight bit better; if you can design a better one, please do and submit it on the forum thread

    + updated vanilla server IP

    + Query retries set to 2 instead of 4, improves launch speed when a server is down

    * App will soon be mostly rewritten to provide staff name colors and hopefully a whole new and more pleasing design

    Edit: App icons on-device actually didn't change, I derped and only changed the store icon. I'll fix this tomorrow (4/8/15).

    + Updated IPs

    + Added new servers and updated IPs (EU, LP)
    + Material design!
    + Less sloppy code that should improve load times

    I still have yet to figure out the multi-threading to improve performance, but that's planned for the next update. Along with maybe a new icon and store image? If you can fix that up for me, hit me up.

    + Application renamed to reflect Serious TTT now becoming Serious GMod (SGM)
    + Color scheme has been updated
    + Servers have been updated to reflect the new server changes
    + Server updates will no longer require an update via the store, as they are now loaded from the GitHub repository

    I've promised multithreading for performance for a while, and I still haven't done this. Hopefully I'll have a working version of that for the next update (as I've run out of stuff to do otherwise).

    Also, the aligning of text on the server headers is a known issue. I've attempted several different fixes, but for some reason I cannot get Lollipop textviews to use a monospaced font. I'm not sure of why, but I'll continue to look into it. For now, I've implemented a spacer that shouldn't allow a second line to be created, rather it'll adjust the amount of spaces according to the server name's length.

    + Redesign. Still kinda ugly.
    + Background loading of data to prevent hanging startups and better support mobile data

    + Show current map name in player display

    *Disclaimer* This app is not an official app for STTT and is not in any way affiliated with @Highwon or his community. This is a personal application.
     
    Last edited: Apr 10, 2016
    • Like Like x 2
    • Creative Creative x 1
  2. Alpha Wolfy

    Alpha Wolfy Nocturnal VIP

    I feel that this app would be very beneficial to the staff for checking servers that are staffless or that need help.
    Other than that, Nice work. :)
     
    • Like Like x 1
  3. EhhChris

    EhhChris Advisor. VIP Silver Emerald

    I've considered creating a version that would cross reference a defined list of players whom are staff (thus the app being able to tell when a server is staffless). However, if I did do this, I wouldn't release the app publicly, but I could allow access to any moderator who would like it manually through the android development console. If you'd like that idea, I could definitely attempt to do this, but no promises.
     
    • Like Like x 1
  4. Too bad I have iOS on my tablet and phone ;-)

    (Not sure if 10 days is a necro)
     
  5. EhhChris

    EhhChris Advisor. VIP Silver Emerald

    Unfortunately, even when I do finish this, there is no plan to ever move it to iOS. The iOS store is incredibly expensive to publish apps on. I believe the rate is $99 / year for an individual developer. Insane.

    As far as gravedigging, you're in the clear. This thread is still relevant.

    • 5. Gravedigging - replying to an old thread that is irrelevant now (old applications, old ban appeals, old suggestions, etc)
     
  6. Rek

    Rek Ø

    Looking good!
     
    • Friendly Friendly x 1
  7. My Dime Is Up

    My Dime Is Up Its my dime to code VIP

    Better than I can do. I'm not good with UDP/IP packets. Matter of fact I never even tried it! I mean with 3 days I could make 1 blank page that shows a server name and how many players :p
     
  8. EhhChris

    EhhChris Advisor. VIP Silver Emerald

    Well, honestly, there's libraries you can use for that kind of thing, like I did here.
    Link
     
  9. I'll attempt to make a better icon when I get back. Looks good on far!

    Also, change the thread title from application to app. At first, I thought you were applying for something thus lead me to ignore the thread. App makes it sound like a creation
     
    • Useful Useful x 1
  10. Downloaded it to my nexus 7 tablet, soon as I get it back I'll give my review.
     
  11. Machinekiller00

    Machinekiller00 I <3 Gunter VIP Silver

    West 2 and vanilla doesn't work for me. This may just be me though.
     
    • Like Like x 2
  12. EhhChris

    EhhChris Advisor. VIP Silver Emerald

    What do you mean by they don't work?
    I have a few ideas as to what's going on here with the issues I've encountered myself.
    - Firstly, vanilla won't work until Google approves the update I pushed out today, because the server IP changed.
    - Onto actual issues, if a server is down, it'll display as 0/36 and sometimes 0/40. This might be what you're experiencing.
    - I've also noticed that sometimes even when a server is said to be populated that the list will not open properly. This should be fixed with the major update I'm hoping to work on soon, where I fix the way the application loads data (if you've noticed, the app hangs for a few seconds or more depending on your network speed when you launch it), and the way that data is displayed.

    If those don't cover whatever issue you're having, please let me know so I can work on it. Thanks for the feedback man!
     
  13. ink

    ink Genuine Happiness VIP Silver

    1 question: Is the data taken from the website or directly? B/c often times, the server list doesn't work properly as makeen just reported. Cool effort though. Keep it coming!
     
    • Friendly Friendly x 1
  14. EhhChris

    EhhChris Advisor. VIP Silver Emerald

    It's queried directly from your device, through a java querying library that can be found here.
    Thanks for the reply :)
     
  15. Looks good man, gives an accurate overview of the server (like you would expect it to :ROFLMAO:)
     
    • Like Like x 1
  16. Chai

    Chai returned; VIP

    Material design would be great.

    Bug:
    It doesn't support unicodes. Eg: ◘☺•○☻™
     
    Last edited: Apr 19, 2015
  17. EhhChris

    EhhChris Advisor. VIP Silver Emerald


    Thanks for the reply!
    Material design is definitely planned for the next update. Though I'd still like to use the same method of receiving data right from the phone, as it gives extra functionality if for some reason the website or GameTracker is down. The only difference with the data is that I'll no longer use a synchronous method of loading data but rather an asynchronous one. When I first wrote this app, I was thinking very linearly and hadn't done anything with android yet, so this is what happened as a result. I also hadn't noticed that unicodes weren't displaying. Thanks for pointing that out, and I'll see about fixing that when I end up working on this again.

    Anyway, I probably won't be updating this within the next week or two, as I have a lot of personal stuff going on alongside school and staffing, but I will get it done soon (hopefully)! Again, thanks for the reply :)
     
  18. Paradox

    Paradox The One Eyed Ghoul Banned Elite

    Nice m8 qq no ios thats what i use its simple but easy to break and expensive but if u ever getz enough movez itz to ios lol, I have my grammar bad for now for a reason :).
     
    • Friendly Friendly x 1
  19. fateburn

    fateburn 自分のためが VIP

    Hi Chris ?
     
  20. EhhChris

    EhhChris Advisor. VIP Silver Emerald

    LOL. Yeah. Don't you love how much info the store gives out on me? Even gives out my university mailing address. Thanks Google.