Jump to content

Auto Announcer with NextID and MangChat support


Guest xeross155

Recommended Posts

  • 2 weeks later...
  • Replies 106
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

Hello everyone!

I'm new to this forum and to mangos , i got an earge to play wow a few days ago ,and i ended up compiling my own server files just for fun :P , then i saw the coremodification subforum , tried some of them out , but this one didn't work like a lot of others , i read that Xeross didn't have the time and started messing around with it :D.

Voila ... here is the patch for core 10350 (i think )

Sorry if this doesn't work for you , it's been a few years since i last used c++ ,and this git thingy is killing me! ( i'm a total newb :P )

Pls test it and tell me if it works for you !

Keep up the good work Xeross , you're great !

Link to comment
Share on other sites

Hello everyone!

I'm new to this forum and to mangos , i got an earge to play wow a few days ago ,and i ended up compiling my own server files just for fun :P , then i saw the coremodification subforum , tried some of them out , but this one didn't work like a lot of others , i read that Xeross didn't have the time and started messing around with it :D.

Voila ... here is the patch for core 10350 (i think )

Sorry if this doesn't work for you , it's been a few years since i last used c++ ,and this git thingy is killing me! ( i'm a total newb :P )

Pls test it and tell me if it works for you !

Keep up the good work Xeross , you're great !

Revision: * * 10360 1095575c375d2273204ab058dad0fdc9971c5d27

Date 16:8:2010. Time 0:37

//=====================================================

*** Hardware ***

Processor: Intel® Core2 Quad CPU Q8200 @ 2.33GHz

Number Of Processors: 4

Physical Memory: 7337552 KB (Available: 4310140 KB)

Commit Charge Limit: 14903440 KB

*** Operation System ***

Windows Vista or Windows Server 2008 Server 4.0, Enterprise Edition Service Pack 1 (Version 6.0, Build 6001)

//=====================================================

Exception code: C0000005 ACCESS_VIOLATION

Fault address: 00000001403065BB 01:00000000003055BB C:\\mangos\\mangosd.exe

Registers:

RAX:000007FF98FA8D00

RBX:000000000889FB10

RCX:000000000000001D

RDX:000007FFFFF67E58

RSI:000007FFEA666660

RDI:0000000140338C60

R8: 0000000000000000

R9: 0000000000000000

R10:FE624E212AC18000

R11:0000000000000000

R12:0000000000000000

R13:0000000000000000

R14:0000000000000000

R15:000000000C7DF690

CS:RIP:0033:00000001403065BB

SS:RSP:002B:000000000C7DFC30 RBP:00000000

DS:002B ES:002B FS:0053 GS:002B

Flags:00010216

Call stack:

Address Frame Function SourceFile

00000001403065BB 000000000C7DFE00 World::Update+3DB c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\game\\worl line 1440

0000000140071BB5 000000000C7DFE40 WorldRunnable::run+A5 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\mangosd\\worldrunnabl line 61

0000000140338C83 000000000C7DFEB0 ACE_Based::Thread::ThreadTask+23 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\threadin line 190

000007FEF538170B 000000000C7DFEF0 ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B

0000000073C02FDF 000000000C7DFF20 _endthreadex+47

0000000073C03080 000000000C7DFF50 _endthreadex+E8

00000000773A466D 000000000C7DFF80 BaseThreadInitThunk+D

00000000775A8791 000000000C7DFFD0 RtlUserThreadStart+21

Call stack:

Address Frame Function SourceFile

00000000775C5ABA 000000000042F840 NtWaitForSingleObject+A

00000000773AC730 000000000042F900 WaitForSingleObjectEx+A0

000007FEF532B64A 000000000042F930 ?__ace_assert@@YAXPEBDH0@Z+38A

000007FEF53AE8E3 000000000042F9B0 ?wait_task@ACE_Thread_Manager@@QEAAHPEAVACE_Task_Base@@@Z+243

000000014033A893 000000000042F9F0 WorldSocketMgr::Wait+63 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\game\\worldsocketmg line 316

00000001400415A8 000000000042FDC0 Master::Run+9C8 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\mangosd\\maste line 330

000000014003FD4A 000000000042FF20 main+6CA c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\mangosd\\mai line 179

0000000140072686 000000000042FF50 __tmainCRTStartup+11A f:\\dd\\vctools\\crt_bld\\self_64_amd64\\crt\\src\\crtexe.c line 582

00000000773A466D 000000000042FF80 BaseThreadInitThunk+D

00000000775A8791 000000000042FFD0 RtlUserThreadStart+21

Call stack:

Address Frame Function SourceFile

00000000775C5DBA 0000000003CCFC80 ZwDelayExecution+A

00000000773AC648 0000000003CCFD00 SleepEx+88

0000000140338EE9 0000000003CCFD50 ACE_Based::Thread::Sleep+39 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\threadin line 238

00000001405F21FF 0000000003CCFE40 SqlDelayThread::run+6F c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\database\\sqldelaythrea line 45

0000000140338C83 0000000003CCFEB0 ACE_Based::Thread::ThreadTask+23 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\threadin line 190

000007FEF538170B 0000000003CCFEF0 ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B

0000000073C02FDF 0000000003CCFF20 _endthreadex+47

0000000073C03080 0000000003CCFF50 _endthreadex+E8

00000000773A466D 0000000003CCFF80 BaseThreadInitThunk+D

00000000775A8791 0000000003CCFFD0 RtlUserThreadStart+21

Call stack:

Address Frame Function SourceFile

00000000775C5DBA 000000000428FC80 ZwDelayExecution+A

00000000773AC648 000000000428FD00 SleepEx+88

0000000140338EE9 000000000428FD50 ACE_Based::Thread::Sleep+39 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\threadin line 238

00000001405F21FF 000000000428FE40 SqlDelayThread::run+6F c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\database\\sqldelaythrea line 45

0000000140338C83 000000000428FEB0 ACE_Based::Thread::ThreadTask+23 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\threadin line 190

000007FEF538170B 000000000428FEF0 ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B

0000000073C02FDF 000000000428FF20 _endthreadex+47

0000000073C03080 000000000428FF50 _endthreadex+E8

00000000773A466D 000000000428FF80 BaseThreadInitThunk+D

00000000775A8791 000000000428FFD0 RtlUserThreadStart+21

Call stack:

Address Frame Function SourceFile

00000000775C5DBA 000000000468FC80 ZwDelayExecution+A

00000000773AC648 000000000468FD00 SleepEx+88

0000000140338EE9 000000000468FD50 ACE_Based::Thread::Sleep+39 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\threadin line 238

00000001405F21FF 000000000468FE40 SqlDelayThread::run+6F c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\database\\sqldelaythrea line 45

0000000140338C83 000000000468FEB0 ACE_Based::Thread::ThreadTask+23 c:\\users\\administrator\\desktop\\서버\\새코어\\mangos\\src\\shared\\threadin line 190

000007FEF538170B 000000000468FEF0 ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B

0000000073C02FDF 000000000468FF20 _endthreadex+47

0000000073C03080 000000000468FF50 _endthreadex+E8

00000000773A466D 000000000468FF80 BaseThreadInitThunk+D

00000000775A8791 000000000468FFD0 RtlUserThreadStart+21

Link to comment
Share on other sites

ok i got the latest mangos rev (10362) and i remerged the patch ... it seams i don't realy know how to make a patch ... if anyone could point me to a good tut i'd be grateful !

Now i remade the patch (as i knew best)

You can get it here.

I've included the source files if the patch doesn't work , maybe someone can make a patch or point me the right way ^_^.

I used :

git diff origin/master > patch_name.patch

but i think that didn't work well , i have only the main branch ,should i have a secondary branch ?

Link to comment
Share on other sites

  • 2 months later...

I have updated the broadcaster to 10682. I have done just a little testing. (ie. compiled and added some broadcast messages ) nothing extensive.

It's on my git account at https://github.com/asumos/mangos

of course most know but those that do not you can just use:

git pull git://github.com/asumos/mangos.git broadcaster

i'm attempting the mangchat now, having compile errors so i am probably going to be awhile if i even get it running at all... hope this saves you some time on the great work you have offered us Xeross

Link to comment
Share on other sites

Is there any patch file? I'm to Stupid to use Git correct, i tryd it to add manual but he said something like "Dblogin not declarid" or something like that. In world.cpp also in your Code, not in Mangos code.

error Lines are theses one.

 result = loginDatabase.PQuery("SELECT `text`, `next` FROM `broadcast_strings` WHERE `id` = %u;", m_nextId);



 else



    result = loginDatabase.PQuery("SELECT `text`, `next` FROM `broadcast_strings` ORDER BY RAND();", m_nextId);

Link to comment
Share on other sites

i havnt made a patch file, just do the git pull git://github.com/asumos/mangos.git broadcaster and compile like normal, i am almost sure the error you are getting is due to not adding the two sql files that are found in sql/broadcast

add mangos_mangos_string.sql to your mangos database

add realmd_broadcast_strings.sql to your realmd database

there are also a few entries you may need to edit in your mangosd.conf file ( near or at the end of the file )

the realmd_broadcast_strings.sql is where all the autobroadcast messages are stored, the frequency of when they are posted are in the mangosd.conf

Link to comment
Share on other sites

oh you got that on compile? i compiled it fine.. what are your trying to compile under? i can install that same os and give it a shot and see whats up and if anything fix it

but now that i am more awake and reading better i could be wrong tho but that could just be that its saying no ID is declared in the script because the ID is declared via the database... i have had no issues on compile at the end it says 14 succeeded and 0 failed. but as i said if you tell me what OS and version you use i can install a copy on a dummy machine and test it out and see if i get any issues

Link to comment
Share on other sites

Allready Done, did your order from last Post, apply your patch Compiled without error, the weird thing is, my world.cpp looks exactly same :o

Now i need to commit this, cause i have some self mods in it, but that is off topic, could you maybe pn me how to commit and add with git? If not i have to do this any time again if Mangos update some of these files.. "no local changes, merge abortet" & co.. i hate this.

Link to comment
Share on other sites

×
×
  • 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