How to activate Characters?

Developers
Anonymous
2010-12-03
2013-06-06
  • Anonymous - 2010-12-03

    Following issue at https://sourceforge.net/tracker/index.php?func=detail&aid=3123963&group_id=1111&atid=101111 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?

     
  • Hendrik Brummermann

    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.

     
  • Anonymous - 2010-12-06

    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?

     
  • Hendrik Brummermann

    > Should I open a bug then?

    Yes, please.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks