roelv
-
Posts
26 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by roelv
-
-
Your changes for Trintiy don't work yet because the arena_team_stats table no longer exists.
Anyway I found some time to look into it myself and it is working for me now. I will post the code I changed.
I think my changes in arena-ladder.php also affect mangos users making their armory not work anymore so you will have to make that Trinity only.
arena-ladder.php
if(isset($_GET['sf'])) { switch($_GET['sf']) { case 'rank': // rank case 'name': // name case 'sgw': // wins case 'sgl': // lose case 'rating': // rating if($_GET['sf'] == 'name') { $sort = '`arena_team`.`name`'; } elseif($_GET['sf'] == 'sgw') { $sort = '`arena_team`.`weekWins`'; } elseif($_GET['sf'] == 'sgl') { $sort = 'lose'; // Unique sorting } else { $sort = '`arena_team`.`' . $_GET['sf'] .'`'; } if(!isset($_GET['sd'])) { $type = 'ASC'; } elseif($_GET['sd'] == 'a') { $type = 'ASC'; } elseif($_GET['sd'] == 'd') { $type = 'DESC'; } break; } }
includes/classes/class.arenateams.php
line 116
`weekWins` AS `gamesWon`,
line 309
case SERVER_TRINITY: $realmArenaTeamInfo = $db->select(" SELECT `arena_team`.`arenaTeamId` AS `arenateamid`, `arena_team`.`name`, `arena_team`.`rating`, `arena_team`.`weekGames` AS `gamesPlayed`, `arena_team`.`weekWins` AS `gamesWon`, `arena_team`.`rank` AS `ranking`, `arena_team`.`seasonGames` AS `seasonGamesPlayed`, `arena_team`.`seasonWins` AS `seasonGamesWon`, `characters`.`race`, `arena_team`.`seasonGames`-`arena_team`.`seasonWins` AS `lose` FROM `arena_team` AS `arena_team` LEFT JOIN `characters` AS `characters` ON `characters`.`guid`=`arena_team`.`captainguid` WHERE `arena_team`.`type`=%d AND `arena_team`.`rank` > 0 ORDER BY `lose` %s LIMIT %d, 20", $type, $sort, $page); break;
line 351
case SERVER_TRINITY: $realmArenaTeamInfo = $db->select(" SELECT `arena_team`.`arenaTeamId` AS `arenateamid`, `arena_team`.`name`, `arena_team`.`rating`, `arena_team`.`weekGames` AS `gamesPlayed`, `arena_team`.`weekWins` AS `gamesWon`, `arena_team`.`rank` AS `ranking`, `arena_team`.`seasonGames` AS `seasonGamesPlayed`, `arena_team`.`seasonWins` AS `seasonGamesWon`, `characters`.`race` FROM `arena_team` AS `arena_team` LEFT JOIN `characters` AS `characters` ON `characters`.`guid`=`arena_team`.`captainGuid` WHERE `arena_team`.`type`=%d AND `arena_team`.`rank` > 0 ORDER BY %s %s LIMIT %d, 20", $type, $order, $sort, $page); break;
-
TC just changed the arena database layout, you aren't going to like that though I think it shouldn't be too much work to adjust the armory to it. I will try to do this myself when I get to the point of updating to that core and post the changes here if you didn't do it yourself yet
https://github.com/TrinityCore/TrinityCore/commit/ae3ab32ea5bf697a7b3f6d1fbc0740d7404d7c92
-
New arena patch works fine thanks! Although not everything is showing correctly in the armory like match start time and lenght.
-
After the latest changes I can't see arena teams in the arena ladder anymore (Trinity).
-
It's still `arena_team_stats`, maybe they forgot something in the dumb...
-
Do NOT use the new Trinity patch, you need to change the last part in this:
- ((InstanceMap *)m)->PermBindAllPlayers(creditedPlayer); + { + ((InstanceMap *)m)->PermBindAllPlayers(creditedPlayer); + /** World of Warcraft Armory **/ + creditedPlayer->WriteWowArmoryDatabaseLog(3, creature->GetCreatureInfo()->Entry); + /** World of Warcraft Armory **/ + } } else {
Else no instances will get bound to you. 1 line of code can change so much...
-
It seems like the new arena patch is also causing crashes...
-
Ok maybe because I use the Linux version of Chrome, Chromium. But the tooltips work in firefox.
-
The talent page works. You need to test with Firefox or Opera. For Google Chrome, the talent page, tooltips and the achievement page don't work. I don't know about Internet Explorer.
-
Some small problems when using Trinity:
1. The arena patch still causes crashes like described earlier.
2. Arena team icons have wrong colors.
3. Arena Rank images won't show properly, see screenshot.
-
class.arenateam.php
Possible fix for trinity character_arena_stats.slot
This fixed team members of a 3v3 team not being displayed for me.
-
hy i have a problem all working fine until i tryed to log in and selected a charbut it says
File Not Found
This character profile could not be displayed, possibly for one of the following reasons:
•The character has been inactive for an extended period of time.
•The character name was spelled incorrectly.
•The profile is temporarily unavailable while the character is in the midst of a process such as a realm transfer or faction change.
•Characters that have been deleted are no longer available on the Armory.
You need to apply the core patch, it won't get displayed until the data of the character is stored in the database by the patch.
-
Code for trinity cause crash: repo http://kyd.servegame.com/crash/index.php?id=64dafe863b
confirmed, it's the arena patch (again)
-
I noticed the guild pages don't work anymore but I am not sure if this is caused by 395 or if it already existed before this revision.
The weird thing, the debug log doesn't show anything about this thing. Anyway this is what the page shows:
This page contains the following errors: error on line 1 at column 20: Extra content at the end of the document Below is a rendering of the page up to the first error. Fatal Error:
-
For trinity core patch ( wowarmory_arena_chart.patch ) after changeset 9871:
/** World of Warcraft Armory **/ uint32 maxChartID; [color=red]- QueryResult_AutoPtr result = CharacterDatabase.PQuery("SELECT MAX(gameid) FROM armory_game_chart");[/color] [color=seagreen]+ QueryResult result = CharacterDatabase.PQuery("SELECT MAX(gameid) FROM armory_game_chart");[/color] if(!result) maxChartID = 0;
For wowarmory_patch.patch :
if (type == 3) // Do not write same bosses many times - just update counter. { uint8 Difficulty = GetMap()->GetDifficulty(); [color="red"]- QueryResult_AutoPtr result = CharacterDatabase.PQuery("SELECT counter FROM character_feed_log WHERE guid='%u' AND type=3 AND data='%u' AND difficulty='%u' LIMIT 1", pGuid, data, Difficulty);[/color] [color="seagreen"]+ QueryResult result = CharacterDatabase.PQuery("SELECT counter FROM character_feed_log WHERE guid='%u' AND type=3 AND data='%u' AND difficulty='%u' LIMIT 1", pGuid, data, Difficulty);[/color] if (result) { CharacterDatabase.PExecute("UPDATE character_feed_log SET counter=counter+1, date=UNIX_TIMESTAMP(NOW()) WHERE guid='%u' AND type=3 AND data='%u' AND difficulty='%u' LIMIT 1", pGuid, data, Difficulty); } else { CharacterDatabase.PExecute("INSERT INTO character_feed_log (guid, type, data, date, counter, difficulty) VALUES('%u', '%d', '%u', UNIX_TIMESTAMP(NOW()), 1, '%u')", pGuid, type, data, Difficulty); } }
Thanks, it worked
it won't compile without this change
-
The table that gets created for the armory is `armory_character_stats` which is something different.
-
Complied fine TC2 rev. 9709 with these changes:
+ else + { + maxChartID = (*result)[0].GetUInt32(); [color=Red]- delete result;[/color] [color=SeaGreen]+ result.release();[/color] + } + if (plTeamID == winner_arena_team->GetId()) + { + changeType = 1; //win [color=Red]- [/color][color=Red]resultRating = winner_rating;[/color] [color=SeaGreen]+ resultRating = winner_team_rating;[/color] + resultTeamID = plTeamID; + ratingChange = winner_change; + } + else + { + changeType = 2; //lose [color=Red]- resultRating = loser_rating;[/color] [color=SeaGreen]+ resultRating = loser_team_rating;[/color] + resultTeamID = loser_arena_team->GetId(); + ratingChange = loser_change; + }
This did the trick, compiled fine on single and mutli core, thank you!
-
It works fine for me except for the arena patch
I always use experimental stuff so I can help them with reports about bugs.
Anyway that doesn't mean the patch will suddenly work when it becomes "stable" again...
-
Like I said TC rev 9708 didn't compile for me with the arena patch but it compiled fine without the patch. I think rev 9631 did the changes which made the patch not compatible although Shadez updated it. I hope someone else can also test this and if it's only on Linux or also on Windows. If I didn't mention yet, I am using Ubuntu x64.
-
I think that explains a lot...
I tried on 9708 which is at the moment I am writing this the newest patch, released 2 hours ago...
Of course I changed some line numbers else I would get HUNK errors.
-
Thanks for the help but I still get the same errors on single and multi core, though I still think it's weird I get some error on single core which I don't get on mutli core compiles. And compile is working fine without the arena patch.
-
well I thought compiling on more cores worked but it doesn't. I get some weird error and thought it was TC related but it works without the arena patch.
[ 86%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/__/game/AI/ScriptedAI/ScriptedSimpleAI.cpp.o Linking CXX static library libscripts.a [ 86%] Built target scripts make: *** [all] Error 2
I saw you mentioned limited support but I hope it was not your last commit ever. Anyway if you don't have time, you don't need to rush it
-
roelv, try to compile as usual (with one of processor cores, if I'm right) with patch update from [381].
Thanks for the help but it still gives the same error, I don't know if the same thing happens on Windows but it's really weird that it only happens when compiling on one core. It won't be a real problem for me, I can compile on more cores...
-
You need to edit the patch files yourself and change the line numbers to make it compatible with the newest core revision.
Edit: about my compile fail, I tested some more and it only seems to happen if I only use one of the processor cores for compiling. I seems to work if I use all cores (really weird).
Anyway here is what I get when I compile with one core, btw compiling happened on Ubuntu Linux.
[ 19%] Building CXX object src/server/game/CMakeFiles/game.dir/Battlegrounds/Battleground.cpp.o /home/trinity/trinitycore/src/server/game/Battlegrounds/Battleground.cpp: In member function ‘void Battleground::EndBattleground(uint32)’: /home/trinity/trinitycore/src/server/game/Battlegrounds/Battleground.cpp:750: error: type ‘class QueryResult_AutoPtr’ argument given to ‘delete’, expected pointer compilation terminated due to -Wfatal-errors. make[2]: *** [src/server/game/CMakeFiles/game.dir/Battlegrounds/Battleground.cpp.o] Error 1 make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2 make: *** [all] Error 2
World of Warcraft Armory
in Old3rd party projects
Posted
Does anyone know if it's safe against SQL injections?