Page 1 of 2

For pay server mod?

PostPosted: Mon Aug 11, 2014 1:59 am
by fstltna
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?

Re: For pay server mod?

PostPosted: Mon Aug 11, 2014 11:05 am
by lugdunon
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

Re: For pay server mod?

PostPosted: Mon Aug 11, 2014 7:46 pm
by fstltna
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...

Re: For pay server mod?

PostPosted: Mon Aug 11, 2014 9:53 pm
by lugdunon
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

Re: For pay server mod?

PostPosted: Mon Aug 11, 2014 10:49 pm
by fstltna
Great!

Re: For pay server mod?

PostPosted: Mon Aug 25, 2014 9:20 am
by fstltna
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...

Re: For pay server mod?

PostPosted: Mon Aug 25, 2014 9:20 pm
by lugdunon
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.

Re: For pay server mod?

PostPosted: Mon Aug 25, 2014 10:15 pm
by fstltna
Yes, that sounds like what i was wanting. How would the server portion work?

Re: For pay server mod?

PostPosted: Mon Aug 25, 2014 10:21 pm
by lugdunon
Pretty much like I described above. :)

How is your java / javascript?

Re: For pay server mod?

PostPosted: Mon Aug 25, 2014 10:48 pm
by fstltna
I can read js, but not fluently. Im more of a perl/c programmer :D