Author Topic: New game in lobby notifier  (Read 3108 times)

TotalNoob

  • Guest
New game in lobby notifier
« on: 30 June 2011, 19:57:50 »
Hi

I thought of making a simple program, which would be hidden in systray checking master.megaglest.org website for new games and notify somehow if any new appears. It is better to have a lightweight small app instead of keeping MG turned on and waiting for the trumpet notification. I thought to make it in C++ or Java so it would be portable between OS. I've already been doing such a thing. In travian game I made an app which notified me if someone attacks my village :) so I didn't have to check this every few minutes ;) In all it's just a simple parse of website content, to be done in few hours with testing (if we concern Java). I just thought that before I start the work I would gather some opinions about the idea.

Please comment, especially if you have idea how to make task even easier ;)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Re: New game in lobby notifier
« Reply #1 on: 30 June 2011, 20:51:27 »
Just one comment: Yes, please do it!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: New game in lobby notifier
« Reply #2 on: 30 June 2011, 21:37:01 »
Yes, and  :thumbup:

this is a very usefull feature, and id like to see it :)
WiP Game developer.
I do danish translations.
"i break stuff"

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,238
    • View Profile
Re: New game in lobby notifier
« Reply #3 on: 30 June 2011, 22:27:14 »
We could also make a commandline option in mg to do this?

--notify-internet-games

maybe it would run in a special mode, then launch the game and connect with proper settings too!

Go ahead and do it, we could port the code into mg later :)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: New game in lobby notifier
« Reply #4 on: 1 July 2011, 00:32:20 »
Yeay, I'd really like to see something like this (but not written in java, please!). Please don't parse the web interface for this, there's a much better option. Please contact me on IRC for details.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Re: New game in lobby notifier
« Reply #5 on: 1 July 2011, 00:40:05 »
I want java  :P . By this its cross platform! Beside iphones  :P :P :P
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: New game in lobby notifier
« Reply #6 on: 1 July 2011, 02:35:04 »
How about C++ and QT? Then it can be cross-platform, too.
I'm just not happy with the memory footprint java applications usually have. I have yet to see a java application which eats less than a couple dozen megabytes of RAM just to display an icon.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: New game in lobby notifier
« Reply #7 on: 1 July 2011, 06:37:32 »
I want java  :P . By this its cross platform! Beside iphones  :P :P :P

Java isn't iphone, and iphone has a notification system you'd use instead of a background app.  Android is java, but again there's a notification system you'd use rather than running an app.

A good idea might be an RSS feed, because then you can all use our favorite RSS tickers to be told about games.  RSS can be set to be quite close polling, say every minute or so, and if the load becomes high there are free syndicate servers we can (ab)use.

There's nothing stopping multiple approaches, but RSS seems a good thing that enables others.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Re: New game in lobby notifier
« Reply #8 on: 1 July 2011, 12:28:48 »
I think the information system should be more "aggressive", so RSS is not the right way.
Just think about when and how you want to use it?

Its typically that you want to play, but noone is there to play. Now you simply start the app and wait....
If there is a server ( or maybe ankind of other action ) the hidden app should pop up and maybe play a sound or music to tell you something is going on.

All this behaviour should be configurable:
1.When to inform you:
- new user in lobby
- new host
- new user in lobby saying somehting
... ?

2. the way you are notified:
- blinking
- playing sound
- start to play music
- popping application to foreground
....

and maybe customizable each notification kind to each kind of event!
This is nothing you can do with a rss feed.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: New game in lobby notifier
« Reply #9 on: 1 July 2011, 13:41:28 »
How about using IRC then?

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: New game in lobby notifier
« Reply #10 on: 1 July 2011, 14:00:30 »
I think an XML newsfeed isn't a bad approach really. In my opinion a custom RSS client could cover all of the use cases described above. We could also consider using FOAF (push instead of pull) but this would only work with a small number of recipients.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,238
    • View Profile
Re: New game in lobby notifier
« Reply #11 on: 1 July 2011, 16:37:56 »
I like Will's idea... the MG game could send info to an IRC channel as things change.. anyone on the channel gets the messages. Very simplke and works with an existing infrastructure!

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: New game in lobby notifier
« Reply #12 on: 1 July 2011, 23:05:20 »
How would this effect standalone mods?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: New game in lobby notifier
« Reply #13 on: 2 July 2011, 01:07:13 »
They would probably have their own master server and thus a separate channel.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: New game in lobby notifier
« Reply #14 on: 2 July 2011, 05:40:52 »
If you use freenode then standalone can announce in the same chanel

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: New game in lobby notifier
« Reply #15 on: 2 July 2011, 11:21:52 »
I like the idea of announcing to IRC, because I already use IRC, but I also think this is something different than what this thread was originally about:

[..] a simple program, which would be hidden in systray checking master.megaglest.org website for new games and notify somehow if any new appears.

I don't see how publishing to an IRC channel would offer this.

Of course you could write a bot which announces servers to IRC, and a cross platform client application which connects to IRC and uses whatever the window manager provides to create notifications based on what is published in a given channel. But this seems more complicated than an RSS reader OR custom HTTP client which just takes output from a website and creates notifications out of this. The IRC variant would also depend on availability and proper operation of two, not just one service.

So I think having an IRC bot could be nice - but in addition to what is being discussed here.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

AnimalWarrioR

  • Guest
Re: New game in lobby notifier
« Reply #16 on: 12 July 2011, 01:44:09 »
tricky! but I'm reading about it ^ _ ^!  ;D ::)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: New game in lobby notifier
« Reply #17 on: 23 July 2011, 15:21:10 »
i vote for a c++ app, I don't like java either, its just not performance friendly.
WiP Game developer.
I do danish translations.
"i break stuff"