Jump to content

Characters per account


EvilPuncker

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

I've always wondered why do we got two settings to do almost the same thing, can anyone explain it? maybe I'm missing something :P

//Max number of characters per account. Note that changing this setting alone is not enough if the client is not hexed to support more characters as well.
#define MAX_CHARS 9

// How many Characters are allowed per Account ? (0 = disabled)
chars_per_account: 0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

9 (MAX_CHARS) is the number of slots that will be avaiable.

chars_per_account is the number of characters that you can create within MAX_CHARS slots.

Although I found that you can use any value on chars_per_account, even surpass MAX_CHARS, which is not a good practice.

Fixed that in r16937.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

isn't chars_per_account redundant?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

isn't chars_per_account redundant?

"chars_per_account is the number of characters that you can create within MAX_CHARS slots."

so nope it's not..

:meow:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

As far as I remember, the client can not handle arbitary number of character slots. At least old client couldn't, I do not know how the new clients behave. So I believe MAX_CHARS is there because of the client limitation. The chars_per_account is the settings users should use to limit the number of characters per account. Because modifying (especially increasing) MAX_CHARS may result in unintended behavior. But correct me if I'm wrong.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

well, both values need to be the same, no?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

well, both values need to be the same, no?

nope..since 0 means unlimited or by default value of MAX_CHARS

:meow:

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  547
  • Reputation:   270
  • Joined:  11/08/11
  • Last Seen:  

I would change the console output from:

   if (char_per_account == 0) {
       ShowStatus("Characters per Account: 'Unlimited'.\n");
   } else {
       ShowStatus("Characters per Account: '%d'.\n", char_per_account);
   }

to this:

   if( char_per_account == 0 ){
       char_per_account = MAX_CHARS;
   }

   ShowStatus( "Characters per Account: '%d'.\n", char_per_account );

Since the word "unlimited" could be missleading for some users. ;)

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

well, both values need to be the same, no?

nope..since 0 means unlimited or by default value of MAX_CHARS

:meow:

still the same xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

still the same xD

hahahaha..but value 0 is more efficient in this case because no need to change its value every time we change MAX_CHARS..:)

:meow:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

I would change the console output from:

if (char_per_account == 0) {
	ShowStatus("Characters per Account: 'Unlimited'.\n");
} else {
	ShowStatus("Characters per Account: '%d'.\n", char_per_account);
}

to this:

if( char_per_account == 0 ){
	char_per_account = MAX_CHARS;
}

ShowStatus( "Characters per Account: '%d'.\n", char_per_account );

Since the word "unlimited" could be missleading for some users. ;)

Indeed, thanks for that. Done in r16939.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  213
  • Reputation:   109
  • Joined:  05/21/12
  • Last Seen:  

Marked as implemented.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

btw I still think that 2 settings for the same thing is redundant :D

Link to comment
Share on other sites

×
×
  • Create New...