HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: Deletion of player account nodes  (Read 1467 times)

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Deletion of player account nodes
« on: Sep 09, 16, 02:43:55 PM »

Some questions for the engineers:

When we remove an account from a group via the dashboard, does that delete that account's _playerAccount root node?

If not, do _playerAccount nodes ever get deleted automatically?

Do we get notification in code of a _playerAccount being deleted?

We are collecting various analytical data, such as things related to characters. I found in the method HE_CSSDeleteCharacter() notification of characters being deleted so we can update our data, but if an account is deleted that would necessarily delete their characters as well and I don't know if that would call the above method or not. Also we might need to update data related to accounts.

If there is not notification, then it seems after we remove an account from the group we would need to manually call $ACCOUNT._DestroyAccountRootNode(), updating our analytics just before that.  Does that sound correct?
« Last Edit: Sep 09, 16, 02:50:52 PM by FI-ScottZ »
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

HE-CHRISTOPHER

  • HeroEngine
  • *****
  • Posts: 424
    • View Profile
Re: Deletion of player account nodes
« Reply #1 on: Sep 13, 16, 09:33:58 AM »

Removing an account in the Account Management System's dashboard, does not delete the account data (e.g. _playerAccount node).  In fact, it doesn't delete the account from AMS either merely removes it from the group controlling access to your product.  (Remember, AMS is the account management system for many games not just your own).


_playerAccount nodes are only deleted by an explicit call to the external function that exists for that purpose.

MMOs tend to run for many years and leaving "old" accounts arround allows you to market to those former players in the hopes they will return and pay you more money.  :)

Could you explain what your use case is for wanting to destroy the account root nodes?
Logged
Christopher Larsen
CTO
HeroEngine

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Re: Deletion of player account nodes
« Reply #2 on: Sep 13, 16, 01:06:28 PM »

The main reason comes down to managing characters.  I wanted to know if player accounts were ever deleted automatically so that we can consider their characters gone and remove stored data and references about them. But if account nodes are only deleted by us manually then it is not a problem.

One reason we may want to delete account nodes (and have them recreated when next logged in) is to reset account data that was accumulated in alpha/beta stages before we go with a gold launch, or more likely to have a clean start for collecting analytic data once we have a proper launch.  But those are just things being considered.
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

HE-CHRISTOPHER

  • HeroEngine
  • *****
  • Posts: 424
    • View Profile
Re: Deletion of player account nodes
« Reply #3 on: Sep 13, 16, 04:58:50 PM »

If you need to purge all accounts or characters, it is probably easier to just notify support as we already have a plsql procedure to perform that type of operation.  Any data associated to the root node hierarchies (account/character) and all child root nodes would be nuked from orbit for you.

You would still need to clean up any data stored in your systems (such as guilds membership lists). 
Logged
Christopher Larsen
CTO
HeroEngine