Artkeep
-
Posts
16 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by Artkeep
-
-
Compare these do you have data?
INSERT INTO `instance_reset` (`mapid`, `difficulty`, `resettime`) VALUES(249, 0, 1275364800),
(249, 1, 1275364800),
(269, 1, 1274846400),
(309, 0, 1274932800),
(409, 0, 1275364800),
(469, 0, 1275364800),
(509, 0, 1274932800),
(531, 0, 1275364800),
(532, 0, 1275364800),
(533, 0, 1275364800),
(533, 1, 1275364800),
(534, 0, 1275364800),
(540, 1, 1274846400),
(542, 1, 1274846400),
(543, 1, 1274846400),
(544, 0, 1275364800),
(545, 1, 1274846400),
(546, 1, 1274846400),
(547, 1, 1274846400),
(548, 0, 1275364800),
(550, 0, 1275364800),
(552, 1, 1274846400),
(553, 1, 1274846400),
(554, 1, 1274846400),
(555, 1, 1274846400),
(556, 1, 1274846400),
(557, 1, 1274846400),
(558, 1, 1274846400),
(560, 1, 1274846400),
(564, 0, 1275364800),
(565, 0, 1275364800),
(568, 0, 1274932800),
(574, 1, 1274846400),
(575, 1, 1274846400),
(576, 1, 1274846400),
(578, 1, 1274846400),
(580, 0, 1275364800),
(585, 1, 1274846400),
(595, 1, 1274846400),
(598, 1, 1274846400),
(599, 1, 1274846400),
(600, 1, 1274846400),
(601, 1, 1274846400),
(602, 1, 1274846400),
(603, 0, 1275364800),
(603, 1, 1275364800),
(604, 1, 1274846400),
(608, 1, 1274846400),
(615, 0, 1275364800),
(615, 1, 1275364800),
(616, 0, 1275364800),
(616, 1, 1275364800),
(619, 1, 1274846400),
(624, 0, 1275364800),
(624, 1, 1275364800),
(631, 0, 1275364800),
(631, 1, 1275364800),
(631, 2, 1275364800),
(631, 3, 1275364800),
(632, 1, 1274846400),
(649, 0, 1275364800),
(649, 1, 1275364800),
(649, 2, 1275364800),
(649, 3, 1275364800),
(650, 1, 1274846400),
(658, 1, 1274846400),
(668, 1, 1274846400),
(724, 0, 1274846400),
(724, 1, 1274846400),
(724, 2, 1274846400),
(724, 3, 1274846400);
-
EDIT: idk if this is related to this patch but i do not have this problem with clean mangos. Dalaran now is not a sanctuary. Server does not even say that you are in dalaran. Sorry if it is not related
The same problem, fault maps, have any ideas?
-
UP !!!! Solution is for Linux?
-
Wowka's patch works for me.
on what OS?
-
diff --git a/src/game/InstanceSaveMgr.cpp b/src/game/InstanceSaveMgr.cpp index 289ea07..e67e0a8 100644 --- a/src/game/InstanceSaveMgr.cpp +++ b/src/game/InstanceSaveMgr.cpp @@ -501,9 +501,10 @@ void InstanceSaveManager::LoadResetTimes() // schedule the global reset/warning uint8 type = 1; static int tim[4] = {3600, 900, 300, 60}; - for(; type < 4; type++) + for(type; type < 4; type++) if(t - tim[type-1] > now) break; + ScheduleReset(true, t - tim[type-1], InstResetEvent(type, mapid, difficulty, -1)); for(ResetTimeMapDiffInstances::const_iterator in_itr = mapDiffResetInstances.lower_bound(map_diff_pair); in_itr != mapDiffResetInstances.upper_bound(map_diff_pair); ++in_itr) @@ -610,6 +611,7 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b return; time_t now = time(NULL); + time_t today = (now / DAY) * DAY; if (!warn) { @@ -638,11 +640,16 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b // calculate the next reset time uint32 diff = sWorld.getConfig(CONFIG_UINT32_INSTANCE_RESET_TIME_HOUR) * HOUR; - uint32 period = mapDiff->resetTime * DAY; + uint32 period = uint32(mapDiff->resetTime / DAY * sWorld.getConfig(CONFIG_FLOAT_RATE_INSTANCE_RESET_TIME)) * DAY; + if (period < DAY) + period = DAY; time_t next_reset = ((now + timeLeft + MINUTE) / DAY * DAY) + period + diff; + SetResetTimeFor(mapid, difficulty, next_reset); + ScheduleReset(true, time_t(next_reset-3600), InstResetEvent(1, mapid, difficulty, -1)); // update it in the DB CharacterDatabase.PExecute("UPDATE instance_reset SET resettime = '"UI64FMTD"' WHERE mapid = '%d' AND difficulty = '%d'", (uint64)next_reset, mapid, difficulty); - } + SetResetTimeFor(mapid,difficulty,(uint64)next_reset); + ScheduleReset(true, next_reset-3600, InstResetEvent(1, mapid, difficulty, -1)); } // note: this isn't fast but it's meant to be executed very rarely Map const *map = sMapMgr.CreateBaseMap(mapid); // _not_ include difficulty
Compiles.This fix works only Win, on Unix bug remains
-
This bug is Unix only. Help!
-
9435
../game/libmangosgame.a(CreatureAIRegistry.o): In function `MovementGeneratorMedium<Creature, WaypointMovementGenerator<Creature> >::GetResetPosition(Unit&, float&, float&, float&)':CreatureAIRegistry.cpp:(.text._ZN23MovementGeneratorMediumI8Creature25WaypointMovementGeneratorIS0_EE16GetResetPositionER4UnitRfS6_S6_[MovementGeneratorMedium<Creature, WaypointMovementGenerator<Creature> >::GetResetPosition(Unit&, float&, float&, float&)]+0x15): undefined reference to `DestinationHolder<Traveller<Creature> >::GetLocationNowNoMicroMovement(float&, float&, float&) const'
collect2: ld returned 1 exit status
make[3]: *** [mangos-worldd] Ошибка 1
make[3]: Leaving directory `/server/Mangos-Sources/compile/compile-9435-/objdir/src/mangosd'
:mad:
-
And if 9435?
-
-
code fix
i'm not test
diff --git a/src/game/InstanceSaveMgr.cpp b/src/game/InstanceSaveMgr.cpp index 81aca01..f408079 100644 --- a/src/game/InstanceSaveMgr.cpp +++ b/src/game/InstanceSaveMgr.cpp @@ -475,7 +475,9 @@ void InstanceSaveManager::LoadResetTimes() continue; // the reset_delay must be at least one day - uint32 period = (mapDiff->resetTime / DAY * sWorld.getRate(RATE_INSTANCE_RESET_TIME)) * DAY; + uint32 period = ((mapDiff->resetTime * sWorld.getRate(RATE_INSTANCE_RESET_TIME))/DAY) * DAY; + if (period < DAY) + period = DAY; time_t t = GetResetTimeFor(mapid,difficulty); if(!t) @@ -503,6 +505,8 @@ void InstanceSaveManager::LoadResetTimes() if(t - tim[type-1] > now) break; + ScheduleReset(true, t - tim[type-1], InstResetEvent(type, mapid, difficulty, -1)); + for(ResetTimeMapDiffInstances::const_iterator in_itr = mapDiffResetInstances.lower_bound(map_diff_pair); in_itr != mapDiffResetInstances.upper_bound(map_diff_pair); ++in_itr) { @@ -636,8 +640,14 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b // calculate the next reset time uint32 diff = sWorld.getConfig(CONFIG_INSTANCE_RESET_TIME_HOUR) * HOUR; - uint32 period = mapDiff->resetTime * DAY; + uint32 period = ((mapDiff->resetTime * sWorld.getRate(RATE_INSTANCE_RESET_TIME))/DAY) * DAY; + if (period < DAY) + period = DAY; uint64 next_reset = ((now + timeLeft + MINUTE) / DAY * DAY) + period + diff; + + SetResetTimeFor(mapid, difficulty, next_reset); + ScheduleReset(true, time_t(next_reset-3600), InstResetEvent(1, mapid, difficulty, -1)); + // update it in the DB CharacterDatabase.PExecute("UPDATE instance_reset SET resettime = '"UI64FMTD"' WHERE mapid = '%d' AND difficulty = '%d'", next_reset, mapid, difficulty); }
-
confirm 9424 Ytdb 535 SD1586 Debianx64
-
../../../src/game/MiscHandler.cpp: In member function ‘void WorldSession::HandleSetDungeonDifficultyOpcode(WorldPacket&)’:
../../../src/game/MiscHandler.cpp:1423: error: ‘GetFirstMember’ was not declared in this scope
../../../src/game/MiscHandler.cpp: In member function ‘void WorldSession::HandleSetRaidDifficultyOpcode(WorldPacket&)’:
../../../src/game/MiscHandler.cpp:1483: error: ‘GetFirstMember’ was not declared in this scope
Error not compiled.
-
Please make Diff patch for 3.2.2.
my mistakes
..\\..\\src\\game\\mangchat\\IRCCmde.cpp(1436) : error C2664: 'ACE_Based::Thread::Thread(ACE_Based::Runnable *)' : cannot convert parameter 1 from 'mcs_OnlinePlayers' to 'ACE_Based::Runnable *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
..\\..\\src\\mangosd\\Master.cpp(221) : error C2065: 'sIRC' : undeclared identifier
..\\..\\src\\mangosd\\Master.cpp(221) : error C2228: left of '.LoadConfig' must have class/struct/union
type is ''unknown-type''
..\\..\\src\\mangosd\\Master.cpp(221) : error C2065: 'sIRC' : undeclared identifier
..\\..\\src\\mangosd\\Master.cpp(221) : error C2228: left of '.CfgFile' must have class/struct/union
type is ''unknown-type''
..\\..\\src\\mangosd\\Master.cpp(300) : error C2061: syntax error : identifier 'IRCClient'
-
ooo good thx
No Edit realmlist.wtf automatically
-
plz for ruRU wtlk :confused:
[BUG]instance Reset time.
in OldBug reports
Posted
I've had problems with incorrect data, now everything works