Jump to content

My github Repo


Recommended Posts

take it

commit 21062dbdf62915bae93c59eb24ba92e33a14ca00
Author: Alex Bolotsin <[email protected]>
Date:   Wed Mar 24 16:01:34 2010 +0200

   Try to fix client freezing by using any spells.

   Signed-off-by: Alex Bolotsin <[email protected]>

diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index f82298e..c6a9fd3 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -19479,7 +19479,8 @@ void Player::SendAurasForTarget(Unit *target)

                    if(!(auraFlags & AFLAG_NOT_CASTER))     // packed GUID of caster
                    {
-                        data.appendPackGUID(aura->GetCasterGUID());
+                        //data.appendPackGUID(aura->GetCasterGUID());
+                        data << uint8(0); // used for test client frizzes
                    }

                    if(auraFlags & AFLAG_DURATION)          // include aura duration
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index c0d8e88..54978db 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1293,7 +1293,8 @@ void Aura::SendAuraUpdate(bool remove)

    if(!(auraFlags & AFLAG_NOT_CASTER))
    {
-        data.appendPackGUID(GetCasterGUID());
+        //data.appendPackGUID(GetCasterGUID());
+        data << uint8(0); // used for test client frizzes
    }

    if(auraFlags & AFLAG_DURATION)

Link to comment
Share on other sites

patch #metasocket bug#

diff -r 1782ed85a440 src/game/Player.cpp

--- a/src/game/Player.cpp Thu Jan 28 22:06:31 2010 +0100

+++ b/src/game/Player.cpp Sun Jan 31 00:44:46 2010 +0600

@@ -19411,17 +19411,17 @@ bool Player::EnchantmentFitsRequirements

uint8 curcount[4] = {0, 0, 0, 0};

//counting current equipped gem colors

for (uint8 i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; ++i)

{

if(i == slot)

continue;

Item *pItem2 = GetItemByPos( INVENTORY_SLOT_BAG_0, i );

- if(pItem2 && pItem2->GetProto()->Socket[0].Color)

+ if(pItem2 && !pItem2->IsBroken() && pItem2->GetProto()->Socket[0].Color)

{

for (uint32 enchant_slot = SOCK_ENCHANTMENT_SLOT; enchant_slot < SOCK_ENCHANTMENT_SLOT+3; ++enchant_slot)

{

uint32 enchant_id = pItem2->GetEnchantmentId(EnchantmentSlot(enchant_slot));

if(!enchant_id)

continue;

SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id);

Link to comment
Share on other sites

updated my repo. I removed playbot since it was commited in 9661. Added AHBot with the repair bot. Everything SHOULD be in working order (compile wont work for anything but linux and VC90, if you use the other sln files let me know and ill pm you how to fix it).

Please report errors/crashes/etc.

Link to comment
Share on other sites

mv -f .deps/VMapFactory.Tpo .deps/VMapFactory.Po

g++ -DHAVE_CONFIG_H -I. -I../../../../src/shared/vmap -I../../.. -I../../../../ dep/ACE_wrappers -I../../../dep/ACE_wrappers -I/usr/local/include/mysql -I/usr/ local/include -I../../../src/shared -I../../../../src/shared/vmap -I../../../ ../src/shared/vmap/../../../dep/include -I../../../../src/shared/vmap/../../fram ework -I../../../../src/shared/vmap/../../shared -I../../../../src/shared/vmap/. ./../../dep/include/g3dlite -g -DMANGOS_DEBUG -DDO_MYSQL -march=nocona -m64 -O 3 -msse3 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict-aliasing -fno-strength-reduce -fno-delete-null-po inter-checks -MT VMapManager.o -MD -MP -MF .deps/VMapManager.Tpo -c -o VMapManag er.o ../../../../src/shared/vmap/VMapManager.cpp

In file included from ../../../../src/shared/vmap/../../../dep/include/g3dlite/G 3D/Box.h:21,

from ../../../../src/shared/vmap/../../../dep/include/g3dlite/G 3D/CollisionDetection.h:27,

from ../../../../src/shared/vmap/VMapTools.h:22,

from ../../../../src/shared/vmap/AABSPTree.h:17,

from ../../../../src/shared/vmap/VMapManager.h:23,

from ../../../../src/shared/vmap/VMapManager.cpp:19:

../../../../src/shared/vmap/../../../dep/include/g3dlite/G3D/Array.h:125: warnin g: 'cdecl' attribute ignored

../../../../src/shared/vmap/../../../dep/include/g3dlite/G3D/Array.h:831: warnin g: 'cdecl' attribute ignored

../../../../src/shared/vmap/../../../dep/include/g3dlite/G3D/Array.h:868: warnin g: 'cdecl' attribute ignored

mv -f .deps/VMapManager.Tpo .deps/VMapManager.Po

rm -f libmangosvmaps.a

ar cru libmangosvmaps.a BaseModel.o CoordModelMapping.o DebugCmdLogger.o Managed ModelContainer.o ModelContainer.o SubModel.o TileAssembler.o TreeNode.o VMapFact ory.o VMapManager.o

ranlib libmangosvmaps.a

gmake[5]: Leaving directory `/usr/home/ice/caeruleaus-mangos-2d9510e/obj/src/sha red/vmap'

gmake[5]: Entering directory `/usr/home/ice/caeruleaus-mangos-2d9510e/obj/src/sh ared'

g++ -DHAVE_CONFIG_H -I. -I../../../src/shared -I../.. -I../../../dep/ACE_wrappe rs -I../../dep/ACE_wrappers -I/usr/local/include/mysql -I/usr/local/include -I../../src/shared -I../../../src/shared -I../../../src/shared/../../dep/include -I../../../src/shared/../framework -I../../../src/shared/../shared -I../../../s rc/shared/../../dep/include/g3dlite -DSYSCONFDIR=\\"/usr/local/mangos3/etc/\\" -g -DMANGOS_DEBUG -DDO_MYSQL -march=nocona -m64 -O3 -msse3 -pipe -D_LARGEFILE_SO URCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict -aliasing -fno-strength-reduce -fno-delete-null-pointer-checks -MT Common.o -MD -MP -MF .deps/Common.Tpo -c -o Common.o ../../../src/shared/Common.cpp

mv -f .deps/Common.Tpo .deps/Common.Po

gmake[5]: *** No rule to make target `DelayExecutor.o', needed by `libmangosshar ed.a'. Stop.

gmake[5]: Leaving directory `/usr/home/ice/caeruleaus-mangos-2d9510e/obj/src/sha red'

gmake[4]: *** [all-recursive] Error 1

gmake[4]: Leaving directory `/usr/home/ice/caeruleaus-mangos-2d9510e/obj/src/sha red'

gmake[3]: *** [all] Error 2

gmake[3]: Leaving directory `/usr/home/ice/caeruleaus-mangos-2d9510e/obj/src/sha red'

gmake[2]: *** [all-recursive] Error 1

gmake[2]: Leaving directory `/usr/home/ice/caeruleaus-mangos-2d9510e/obj/src'

gmake[1]: *** [all-recursive] Error 1

gmake[1]: Leaving directory `/usr/home/ice/caeruleaus-mangos-2d9510e/obj'

gmake: *** [all] Error 2

freebsd 7.2 amd x64

Link to comment
Share on other sites

make sure the makefile in src/shared looks like

# Copyright (C) 2005-2010 MaNGOS <http://getmangos.eu/>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

## Process this file with automake to produce Makefile.in

## Sub-directories to parse
SUBDIRS = Auth Config Database vmap

## CPP flags for includes, defines, etc.
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir) -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/../../dep/include/g3dlite  -DSYSCONFDIR=\\"$(sysconfdir)/\\"
## AM_CPPFLAGS += -I$(srcdir)/../game -I$(srcdir)/../realmd

## Build MaNGOS shared library and its parts as convenience library.
#  All libraries will be convenience libraries. Might be changed to shared
#  later.
noinst_LIBRARIES = libmangosshared.a

#  libmangosshared library will later be reused by ...
libmangosshared_a_SOURCES = \\
   ByteBuffer.h \\
   Common.cpp \\
   Common.h \\
   DelayExecutor.cpp \\
   DelayExecutor.h \\
   Errors.h \\
   LockedQueue.h \\
   Log.cpp \\
   Log.h \\
   MemoryLeaks.cpp \\
   MemoryLeaks.h \\
   ProgressBar.cpp \\
   ProgressBar.h \\
   Timer.h \\
   Threading.cpp \\
   Threading.h \\
   Util.cpp \\
   Util.h \\
   WorldPacket.h \\
   revision_nr.h \\
   revision_sql.h \\
   revision.h

# Get revision (git or svn)
REVISION_FILE = revision.h

BUILT_SOURCES = $(REVISION_FILE)
CLEANFILES = $(REVISION_FILE)

FORCE:

$(REVISION_FILE) : $(top_builddir)/src/tools/genrevision/genrevision FORCE
   $(top_builddir)/src/tools/genrevision/genrevision $(top_srcdir)

## Additional files to include when running 'make dist'
#  Disabled packet logger
EXTRA_DIST = \\
   PacketLog.cpp \\
   PacketLog.h

# System configuration
EXTRA_DIST += \\
   SystemConfig.h

# System Win32 files
EXTRA_DIST += \\
   ServiceWin32.cpp \\
   ServiceWin32.h \\
   WheatyExceptionReport.cpp \\
   WheatyExceptionReport.h

Link to comment
Share on other sites

i check my Makefile.in

all OK

# libmangosshared library will later be reused by ...

libmangosshared_a_SOURCES = \\

ByteBuffer.h \\

Common.cpp \\

Common.h \\

DelayExecutor.cpp \\

DelayExecutor.h \\

Errors.h \\

LockedQueue.h \\

Log.cpp \\

Log.h \\

MemoryLeaks.cpp \\

MemoryLeaks.h \\

ProgressBar.cpp \\

ProgressBar.h \\

Timer.h \\

Threading.cpp \\

Threading.h \\

Util.cpp \\

Util.h \\

WorldPacket.h \\

revision_nr.h \\

revision_sql.h \\

revision.h

but i get this message

g++ -DHAVE_CONFIG_H -I. -I../../../src/shared -I../.. -I../../../dep/ACE_wrappe rs -I../../dep/ACE_wrappers -I/usr/local/include/mysql -I/usr/local/include -I../../src/shared -I../../../src/shared -I../../../src/shared/../../dep/include -I../../../src/shared/../framework -I../../../src/shared/../shared -I../../../s rc/shared/../../dep/include/g3dlite -DSYSCONFDIR=\\"/usr/local/mangos3/etc/\\" -g -DMANGOS_DEBUG -DDO_MYSQL -march=nocona -m64 -O3 -msse3 -pipe -D_LARGEFILE_SO URCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict -aliasing -fno-strength-reduce -fno-delete-null-pointer-checks -MT Common.o -MD -MP -MF .deps/Common.Tpo -c -o Common.o ../../../src/shared/Common.cpp

mv -f .deps/Common.Tpo .deps/Common.Po

reload the branch

now i get this message

g++ -DDO_MYSQL -g -O2 -o .libs/mangos-realmd AuthSocket.o Main.o RealmList.o -L/opt/emu/mangos_9672/objdir/dep/src/sockets -L/opt/emu/mangos_9672/lib ../../dep/ACE_wrappers/ace/.libs/libACE.so -lrt -L/usr/lib64/mysql /usr/lib64/mysql/libmysqlclient_r.so -L/usr/lib64 -lcrypt -lnsl -lm -lssl -lcrypto -ldl -lz -ltbb ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a -lpthread -Wl,--rpath -Wl,/opt/emu/mangos_9672/lib -Wl,--rpath -Wl,/usr/lib64/mysql

/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -ltbb

Link to comment
Share on other sites

  • 3 weeks later...

great core using it at the moment to play around with only one thing caeruleaus the mounts on the latest revision don't seem to work you can learn them but you never get a "pets" tab to see all your mounts etc. Let me know if anyone else has this problem as it could be just me :P

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use