For pay server mod?

For pay server mod?

Postby fstltna » Mon Aug 11, 2014 1:59 am

Im thinking of phasing out my ryzom project and switching to lugdunon full time. What i am wanting to do is convert my paypal subscription extension from ryzom to lugdunon, so that public server operators can optionally charge for access to their worlds. Would it be possible to have a icon in the new server listing feature that shows if a game server has a fee? Im looking into what i can find on the json api to implement the server side stats...

What do you think?
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Re: For pay server mod?

Postby lugdunon » Mon Aug 11, 2014 11:05 am

I'll add support in this coming release for custom server features / icons.

A for pay /subscription module would be possible, but someone else would have to implement the mod.

What kind of server-side stats are you wanting to expose?

Chris
User avatar
lugdunon
Site Admin
 
Posts: 407
Joined: Tue Nov 05, 2013 5:53 pm

Re: For pay server mod?

Postby fstltna » Mon Aug 11, 2014 7:46 pm

I have a perl app that does the subscription processing itself. What i would need on the json side would be whether the player has paid for this server and when their subscription expires. The script would check those fields and disable but not delete the account if their subscription lapsed...
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Re: For pay server mod?

Postby lugdunon » Mon Aug 11, 2014 9:53 pm

Yep, that will definitely be something that a mod can handle for you.

I'll make sure the required APIs are there for ya (to allow you to implement the subscription system, and server connect / login verification).

Chris
User avatar
lugdunon
Site Admin
 
Posts: 407
Joined: Tue Nov 05, 2013 5:53 pm

Re: For pay server mod?

Postby fstltna » Mon Aug 11, 2014 10:49 pm

Great!
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Re: For pay server mod?

Postby fstltna » Mon Aug 25, 2014 9:20 am

I have gotten more on this done. There is a joomla extension that handles the actual subscription handling and paypal processing.

What i need now is a mod to the lugdunon server that checks whether the user trying to log in has a active subscription and deny access if not. I need the server mod to do this, and need to know which would be better - a command line extension that takes a username as a argument and returns success/fail if the user has a active account. Would the server mod be better to use http or command-line tool? I can implement this either way if you tell me what would be better way...
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Re: For pay server mod?

Postby lugdunon » Mon Aug 25, 2014 9:20 pm

A REST type service would be best, I would imagine. I can help you stub out the Lugdunon server mod code to get this running if you like.

The way I would imagine it working would be something akin to how the server-password check works now:

  • Player clicks on server to join.
  • Server verifies that player is subscribed (via REST call to your subscription service).
  • Returns success (proceed to login) or fail (alert player that subscription has expired or is not yet in place).

In addition, you can register an updateable event that can periodically check on a logged in player's subscription status and warn or log out player in the event of an impending or arrived expiration.
User avatar
lugdunon
Site Admin
 
Posts: 407
Joined: Tue Nov 05, 2013 5:53 pm

Re: For pay server mod?

Postby fstltna » Mon Aug 25, 2014 10:15 pm

Yes, that sounds like what i was wanting. How would the server portion work?
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Re: For pay server mod?

Postby lugdunon » Mon Aug 25, 2014 10:21 pm

Pretty much like I described above. :)

How is your java / javascript?
User avatar
lugdunon
Site Admin
 
Posts: 407
Joined: Tue Nov 05, 2013 5:53 pm

Re: For pay server mod?

Postby fstltna » Mon Aug 25, 2014 10:48 pm

I can read js, but not fluently. Im more of a perl/c programmer :D
---- https://LugdunonCity.org - portal for the Lugdunon RPG & Lugdunon hosting
---- https://LugdunonCity.org/HostSplash/ - About my Lugdunon hosting
Image
User avatar
fstltna
 
Posts: 155
Joined: Wed May 21, 2014 8:54 am
Location: South San Francisco, CA

Next

Return to Ideas

Who is online

Users browsing this forum: No registered users and 8 guests

cron