How to activate Characters?

  • Following issue at after the fix the character was indeed inactive. I've been trying to find where the character is activated. I thought something changed in the CharacterDAO create method but everything seems the same (looking at Stendhal code). Any hints on how to do this? I know the database needs to be updated somewhere, I just don't want to reinvent the wheel. Or is it a bug and characters should be created active?

  • Characters are set to active by default according to the database schema definition.

    create table if not exists characters
      id integer auto_increment not null,
      player_id integer not null,
      charname varchar(32) not null,
      object_id integer not null,
      timedate timestamp default CURRENT_TIMESTAMP,
      status char(8) not null default 'active',
      PRIMARY KEY(id)

    But I guess the CharacterDAO should do that on insert, too, because it is very in the schema definition.

  • Should I open a bug then? I verified the MySQL database has the correct definition (with the default). Monitoring the engine I noticed that the login call in the client doesn't trigger the createCharacter routine in my RuleProcessor. The create account is. Any idea?

  • > Should I open a bug then?

    Yes, please.



Cancel   Add attachments