[C++] Easy Questions menu

User Tag List

Results 1 to 11 of 11
  1. #1
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++/SQL] Easy Questions

    I have just recently compiled my Own core, and I have some problems...

    First of all I get this error whenever I make a new character. Not that it matters too much as the players are just gonna miss crappy start gear. However I would look like to change it, so it doesn't look so ugly..:



    I was told that this could maybe be fixed in the Playerhandler.cpp but thats one of two files I haven't been able to locate...
    Player.cpp
    Playerhandler.cpp


    I can't find those. If you wanna provide a fix for above Error or how to get to the files, so I can try myself then it would be very much appreciated ^^

    I am using SquireDB latest Revision I think x_x
    Last edited by AngelSandy; 09-26-2009 at 05:19 AM.

    [C++] Easy Questions
  2. #2
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You just need to update your playeritems table I think

    I live in a shoe

  3. #3
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you also happen to know where I find the two .cpp files at all?

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    There is no playerhandler.cpp, are you thinking of characterhandler.cpp?
    A tip: You can go into src/arcemu-world/ and open the files from there since there not hidden away in thousands of folders.

  5. #5
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well yeah characterhandler.cpp.

    But I have already been in a lot of folders and stuff in the solution file.
    But I still seem to not being able to locate it x_x

    And now I have another very weird bug.
    Whenever someone logs in, who logged out in an instance it crashes the world.

  6. #6
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    ArcEmu fail - Use an older stable rev or wait for a update (I tested as well).

  7. #7
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I finally found out what the problem is in relation to the screenshot I posted...
    ArcEmu updated the Character Database Structure, specifically the:
    Character_Insert_Queue table, and they didn't provide any SQL update to go along with it.

    I've found what I think is the line that the Database have to be changed too, but since I don't really know anything about the Database structure files etc, I would like some help if anyone would please..

    Here is the Structure file:

    Code:
    CREATE TABLE `characters_insert_queue` (
      `insert_temp_guid` int(10) unsigned NOT NULL default '0',
      `acct` int(10) unsigned NOT NULL default '0',
      `name` varchar(21) collate utf8_unicode_ci NOT NULL,
      `race` tinyint(3) unsigned NOT NULL default '0',
      `class` tinyint(3) unsigned NOT NULL default '0',
      `gender` tinyint(3) unsigned NOT NULL default '0',
      `custom_faction` int(30) NOT NULL default '0',
      `level` int(10) unsigned NOT NULL default '0',
      `xp` int(10) unsigned NOT NULL default '0',
      `exploration_data` longtext collate utf8_unicode_ci NOT NULL,
      `skills` longtext collate utf8_unicode_ci NOT NULL,
      `watched_faction_index` int(10) unsigned NOT NULL default '0',
      `selected_pvp_title` int(10) unsigned NOT NULL default '0',
      `available_pvp_titles` int(10) unsigned NOT NULL default '0',
      `gold` int(10) unsigned NOT NULL default '0',
      `ammo_id` int(10) unsigned NOT NULL default '0',
      `available_prof_points` int(10) unsigned NOT NULL default '0',
      `available_talent_points` int(10) unsigned NOT NULL default '0',
      `current_hp` int(10) unsigned NOT NULL default '0',
      `current_power` int(10) unsigned NOT NULL default '0',
      `pvprank` tinyint(3) unsigned NOT NULL default '0',
      `bytes` int(10) unsigned NOT NULL default '0',
      `bytes2` int(10) unsigned NOT NULL default '0',
      `player_flags` int(10) unsigned NOT NULL default '0',
      `player_bytes` int(10) unsigned NOT NULL default '0',
      `positionX` float NOT NULL default '0',
      `positionY` float NOT NULL default '0',
      `positionZ` float NOT NULL default '0',
      `orientation` float NOT NULL default '0',
      `mapId` int(10) unsigned NOT NULL default '0',
      `zoneId` int(10) unsigned NOT NULL default '0',
      `taximask` longtext collate utf8_unicode_ci NOT NULL,
      `banned` int(40) NOT NULL,
      `banReason` varchar(50) collate utf8_unicode_ci NOT NULL,
      `timestamp` int(11) NOT NULL,
      `online` int(11) default NULL,
      `bindpositionX` float NOT NULL default '0',
      `bindpositionY` float NOT NULL default '0',
      `bindpositionZ` float NOT NULL default '0',
      `bindmapId` int(10) unsigned NOT NULL default '0',
      `bindzoneId` int(10) unsigned NOT NULL default '0',
      `isResting` tinyint(3) unsigned NOT NULL default '0',
      `restState` tinyint(3) unsigned NOT NULL default '0',
      `restTime` int(10) unsigned NOT NULL default '0',
      `playedtime` longtext collate utf8_unicode_ci NOT NULL,
      `deathstate` int(10) unsigned NOT NULL default '0',
      `TalentResetTimes` int(10) unsigned NOT NULL default '0',
      `first_login` tinyint(3) unsigned NOT NULL default '0',
      `forced_rename_pending` tinyint(3) unsigned NOT NULL default '0',
      `publicNote` varchar(32) collate utf8_unicode_ci NOT NULL,
      `officerNote` varchar(32) collate utf8_unicode_ci NOT NULL,
      `guildid` int(10) unsigned NOT NULL default '0',
      `guildRank` int(10) unsigned NOT NULL default '0',
      `arenaPoints` int(10) NOT NULL,
      `totalstableslots` int(10) unsigned NOT NULL default '0',
      `instance_id` int(10) unsigned NOT NULL default '0',
      `entrypointmap` int(10) unsigned NOT NULL default '0',
      `entrypointx` float NOT NULL default '0',
      `entrypointy` float NOT NULL default '0',
      `entrypointz` float NOT NULL default '0',
      `entrypointo` float NOT NULL default '0',
      `entrypointinstance` int(10) unsigned NOT NULL default '0',
      `taxi_path` int(10) unsigned NOT NULL default '0',
      `taxi_lastnode` int(10) unsigned NOT NULL default '0',
      `taxi_mountid` int(10) unsigned NOT NULL default '0',
      `transporter` int(10) unsigned NOT NULL default '0',
      `transporter_xdiff` float NOT NULL default '0',
      `transporter_ydiff` float NOT NULL default '0',
      `transporter_zdiff` float NOT NULL default '0',
      `spells` longtext collate utf8_unicode_ci NOT NULL,
      `deleted_spells` longtext collate utf8_unicode_ci NOT NULL,
      `reputation` longtext collate utf8_unicode_ci NOT NULL,
      `actions` longtext collate utf8_unicode_ci NOT NULL,
      `auras` longtext collate utf8_unicode_ci NOT NULL,
      `finished_quests` longtext collate utf8_unicode_ci NOT NULL,
      `honorPointsToAdd` int(10) NOT NULL,
      `killsToday` int(10) unsigned NOT NULL default '0',
      `killsYesterday` int(10) unsigned NOT NULL default '0',
      `killsLifeTime` int(10) unsigned NOT NULL default '0',
      `honorToday` int(10) unsigned NOT NULL default '0',
      `honorYesterday` int(10) unsigned NOT NULL default '0',
      `honorPoints` int(10) unsigned NOT NULL default '0',
      `difficulty` int(10) unsigned NOT NULL default '0',
      UNIQUE KEY `guid` (`insert_temp_guid`),
      KEY `acct` (`acct`),
      KEY `guildid` (`guildid`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
    
    /*Data for the table `characters_insert_queue` */
    And here is the line I found in the core, that I think have something to do with it:
    Code:
    ("SELECT guid, level, race, class, gender, bytes, bytes2, name, positionX, positionY, positionZ, mapId, zoneId, banned, restState, deathstate, forced_rename_pending, player_flags, guild_data.guildid FROM characters LEFT JOIN guild_data ON characters.guid = guild_data.playerid WHERE acct=%u ORDER BY guid LIMIT 10", GetAccountId());
    So yeah...anyone wanna help..?

  8. #8
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Characters_Insert_Que should not affect the playeritems table. I suggest using a clean character database provided by arcemu, and if not, check if 'playeritems' specifically, was updated recently.

  9. #9
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well it's the Character_Insert table it's bitching about. You can see that on the picture. So I just thought it might be that really.
    Correct me if I am wrong, but I assume that from the line
    Column count doesn't match value count at row 1 It means that the Database is got the wrong structure.

    I am using SquireDB atm, latest revision.

  10. #10
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    I see no "Character_Insert_Que" of which you speak. The error you are receiving corresponds to the playeritems table.

  11. #11
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fixed both problems.

Similar Threads

  1. Easy question:
    By asilem^^ in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-29-2008, 06:13 PM
  2. Navicat easy question!
    By Bloodstain in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 12-20-2007, 03:22 PM
  3. A little easy question about auto-it
    By warsheep in forum Community Chat
    Replies: 0
    Last Post: 05-05-2007, 12:14 PM
  4. Probably an easy Question about reinstalling WoW!
    By Gizmo111 in forum World of Warcraft General
    Replies: 3
    Last Post: 11-12-2006, 03:56 PM
  5. Probably an easy question about Re-installing WoW....
    By Gizmo111 in forum World of Warcraft General
    Replies: 2
    Last Post: 11-12-2006, 03:00 PM
All times are GMT -5. The time now is 07:08 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search