Jump to content

[Guide] Mangos Windows Setup


Guest AuntieMangos

Recommended Posts

man, do the f*ing thing b4 u talk:

http://github.com/mangos/mangos/tree/master

the

BIN FOLDER

is not there...this what u now get when git....

here is another image...

http://f.imagehost.org/0595/asdasdasdasdasdasda.jpg

I did and I got the server running.

What is your problem (beside a complete lack of communication skills) ?

Link to comment
Share on other sites

  • Replies 770
  • Created
  • Last Reply

Top Posters In This Topic

I did and I got the server running.

What is your problem (beside a complete lack of communication skills) ?

now I have 2 problems...

1. one is my prev. post

2. you

dont post unnecessary posts if u dont have a problem..make useless pints somewhere else

@Phenomenon

I had yes :/

no errors and nothing too!!!

I'll try to reinstall microsoft's program and the sdk...retry everything I think :/

thx for the tip ^_^

Link to comment
Share on other sites

One problem I am having and I have not seen the answer to it in all the posts is the difference between "Source" folder and "Core". In the instructions you tell how to make the "source" folder but you say nothing about the location of the "core" folder. I have copied the .exe, and .dll files into a parent directory to the source directory for now... I can't find the .pdb files though.

Also, instructions dictate moving the .exe, .dll, AND .pdb files FROM the Source folder TO the Core folder... thus they are (if I am interpreting it correctly) different folders... Am I way off base?

Link to comment
Share on other sites

Hello,

I followed your directions perfectly (I believe), but there seems to be something that was updated recenely and it's not on the site or the GIT. the gameobject_templete table doesn't have 34 fields error keeps comming up, even though i've updated the database all the way (and even dropped it and started over thinking I messed up somehow). I checked the table myself, and sure enough it is not in the format that MaNGOSd is expecting. Is anybody else having this problem?

It seems you have out dated DBC files, this is most likely because you've updated your MaNGOS to the 3.1.0, but im guessing your DBC files are from a 3.0.9 client.

Link to comment
Share on other sites

Guide last updated: April 1st 2009

-Added a missing step

-Fixed minor spelling mistakes

-Go here to download the newest UDB database (contains all the world stuff)

-Make sure that your MaNGOS core is up-to-date with the database (check your core's revision number, then the compatible revision number within the file title of the UDB database)

-Download the latest UDB update packs here (if that link doesn't work, go here and find the updates folder in /trunk)

Updating your database with .sql batch files

-Open the .sql file you are going to use to update the database in Notepad

-Open SQLyog and connect to your server

-Select the database that is supposed to be updated

-In the textbox to the right of SQLyog at the top of the application (the query textbox), paste the contents of the .sql file

-Select all the text in the textbox, then press the play button in the toolbar at the top of SQLyog

-Parts of the application will become grayed, wait for the query to finish executing

[\\QUOTE=Phenomenon;67391]

I am not sure how to verify the database version and how to update the core. I think I have done so and when mangos starts it is able to connect to the mangos database but it errors out saying that it can not connect to MySQL database... I have checked that the password for MySQL server is the same as is in the .conf files (instead of mangos) yet I get the same error in starting realmd.exe and mangosd.exe... Please anyone I need help.. I have been trying to get this started for the last three days.

Link to comment
Share on other sites

64bit?

warning C4244: 'argument' : conversion from 'ssize_t' to 'int', possible loss of data

Project : error PRJ0003 : Error spawning 'rc.exe'.

LINK : fatal error LNK1181: cannot open input file '.\\shared__x64_Release\\shared.lib' (this due to sdk path? or reset branch?)

.\\genrevision__Win32_Release\\genrevision.exe"' is not recognized as an internal or external command (not sure about this on win32? build this on 32 rest on 64?)

Link to comment
Share on other sites

disable any antivirus (especially AVG) for some reason it detects rc.exe as virus sometimes, you may need to check if rc.exe has been deleted/quarantined by your antivirus, you may also need to restart your pc before retrying the compile.

Link to comment
Share on other sites

Guide last updated: April 1st 2009

-Added a missing step

-Fixed minor spelling mistakes

-Go here to download the newest UDB database (contains all the world stuff)

-Make sure that your MaNGOS core is up-to-date with the database (check your core's revision number, then the compatible revision number within the file title of the UDB database)

-Download the latest UDB update packs here (if that link doesn't work, go here and find the updates folder in /trunk)

Updating your database with .sql batch files

-Open the .sql file you are going to use to update the database in Notepad

-Open SQLyog and connect to your server

-Select the database that is supposed to be updated

-In the textbox to the right of SQLyog at the top of the application (the query textbox), paste the contents of the .sql file

-Select all the text in the textbox, then press the play button in the toolbar at the top of SQLyog

-Parts of the application will become grayed, wait for the query to finish executing

[\\QUOTE=Phenomenon;67391]

I am not sure how to verify the database version and how to update the core. I think I have done so and when mangos starts it is able to connect to the mangos database but it errors out saying that it can not connect to MySQL database... I have checked that the password for MySQL server is the same as is in the .conf files (instead of mangos) yet I get the same error in starting realmd.exe and mangosd.exe... Please anyone I need help.. I have been trying to get this started for the last three days.

There's obviously an issue with your MySQL server configuration. Click Start > Programs > MySQL Server and use the reconfiguration tool to reset the pass. I'd use the default "mangos" for now until you get it all working. If you still have issues, try again but turn off your Firewall and any Anti-Viruses that may conflict with permissions. If you're using Vista, try running the reconfiguration as an administrator (right click > Run As Administrator).

Link to comment
Share on other sites

There's obviously an issue with your MySQL server configuration. Click Start > Programs > MySQL Server and use the reconfiguration tool to reset the pass. I'd use the default "mangos" for now until you get it all working. If you still have issues, try again but turn off your Firewall and any Anti-Viruses that may conflict with permissions. If you're using Vista, try running the reconfiguration as an administrator (right click > Run As Administrator).

I did as you said, though the first time I had to uninstall and reinstall MySQL in order to start the service... that of course ment that I had to rebuild my databases and also edit the .conf files... after all that it is still not morking for me... could it be because of the fact that I have a windows x64 system? could mangos not work with 64 bit or is there a version I might use with 64 bit nativity?

I went as far as to uninstall my virus protection (it could not be closed, just disabled)... still nothing... the exact error is as follows (on realmd.exe):

"Could not connect to MySQL database at 127.0.0.1: Can't connect to MySQL server on '127.0.0.1'<10061>

Cannot connect to database

ThreadQueue waiting on remaining threads...

pollUserThread<>

1 user-thread relcaimed.

(on mangosd.exe)":

"'Could not connect to MySQL database at 12.0.0.1: Can't connect to MySQL server on '127.0.0.1'<10061>

Cannont connect to world database 127.0.0.1;7546;mangos;mangos

ThreadQueue waiting on remaining threads...

pollUserThreads<>

1 user-thread reclaimed."

Link to comment
Share on other sites

disable any antivirus (especially AVG) for some reason it detects rc.exe as virus sometimes, you may need to check if rc.exe has been deleted/quarantined by your antivirus, you may also need to restart your pc before retrying the compile.

Thanks dave, found the issue, the Projects path's were looking at the 2003 sdk, instead of the 2008 sdk. :lol:

do you get this warning at all?

warning C4244: 'argument' : conversion from 'ssize_t' to 'int', possible loss of data

Link to comment
Share on other sites

If so, did you have an issue with a reference to VC9 in the VC8 solution and if this was the case where was it?

Best Regards,

T.

Aight, so I cleaned/rebuilt a debug build and compilation succeeded without issue.

Activating the mangosd project and running the debugger, the Output Windows Shows

'mangosd.exe': Loaded 'E:\\mangos_src\\bin\\win32_debug\\mangosd.exe', Symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\ntdll.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\kernel32.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\ws2_32.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\advapi32.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\rpcrt4.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\secur32.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\msvcrt.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\ws2help.dll', No symbols loaded.
'mangosd.exe': Loaded 'E:\\mangos_src\\bin\\win32_debug\\dbghelp.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\\msvcr80d.dll', Symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\user32.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\gdi32.dll', No symbols loaded.
'mangosd.exe': Loaded 'E:\\mangos_src\\bin\\win32_debug\\ACEd.dll', Symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\mswsock.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\netapi32.dll', No symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\\msvcp80d.dll', Symbols loaded.
'mangosd.exe': Loaded 'C:\\WINDOWS\\system32\\wsock32.dll', No symbols loaded.
'mangosd.exe': Loaded 'E:\\mangos_src\\bin\\win32_debug\\libmySQL.dll', No symbols loaded.
'mangosd.exe': Loaded 'E:\\mangos_src\\bin\\win32_debug\\libeay32.dll', No symbols loaded.
LDR: LdrpWalkImportDescriptor() failed to probe e:\\mangos_src\\bin\\win32_debug\\LIBEAY32.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[3840] mangosd.exe: Native' has exited with code -1072365566 (0xc0150002).

Digging into the LIBEAY32.dll's manifest, event viewer shows that

Dependent Assembly Microsoft.VC90.DebugCRT could not be found and Last Error was The referenced assembly is not installed on your system.

I quickly looked through the manifests for the various modules that were built and could not see where VC90.DebugCRT was referenced and this would be a problem as I should only be referencing VC8-built libraries/dlls (as it appears from the install instructions above that VC80 is still supported). Admittedly, my strengths are in C/C++ and I am just teaching myself the DotNet side, so I am a little weak in manifest management and so appeal to the communitify for support in this matter..as I suspect anyone trying to compile under VC8/2005 will experience the same difficulty.

Best Regards,

T.

***EDIT:

I have confimed this is the same issue when running a release build with the exception being the reference to the non-debug version:

Event Type: Error

Event Source: SideBySide

Event Category: None

Event ID: 32

Date: 02/04/2009

Time: 1:04:05 PM

User: N/A

Computer: WXPP-P3000

Description:

Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Link to comment
Share on other sites

ok, I managed to get around the security thing by not changing the settings and then leaving the password spot in the SQLyog blank, still can't compile... re-downloaded the git and followed the directions, and still get massive errors in the ACE_wrappers project. The only erros I can find are all this

1>C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include\\intrin.h(1040) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed

1> C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include\\intrin.h(1040) : see declaration of '_interlockedbittestandset'

1>C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include\\intrin.h(1041) : error C2733: second C linkage of overloaded function '_interlockedbittestandreset' not allowed

1> C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include\\intrin.h(1041) : see declaration of '_interlockedbittestandreset'

As for the libraries, could you list the ones that are needed so I can check to see if maybe one or two are missing?

Thanks for the help so far.

I'm getting the same errors with the ACE_wrapper project. Anyone know how to fix?

Link to comment
Share on other sites

no matter what I do, no bin folder, no mangos or realmd files :/

what a MESSED UP PROBLEM

I've seen a few posts from you about this issue, and while this may be a stupid question, you do realize you have to compile the code you get from github.mangos before you will get a bin folder, along with relamd.exe and mangosd.exe, yes? Those files are not precompiled when you clone a GIT repository, you need to open the solution in Visual Studio (or however you choose to compile) and build it.

Forgive me if this is what you are doing and you are experiencing another error, I'm just trying to troubleshoot.

Link to comment
Share on other sites

Hello, and thanks for a great guide.

I encounter one error though, and i followed the guide step to step.

My mangosd.exe and realmd.exe instantly closes after clicking on them, anyone know what the problem may be?

-edit

Ran the exe via cmd,

noticed it required the .conf file in the same folder, so sorry for this post :)

Link to comment
Share on other sites

This is my first time using this Forum, although this is one of the projects I have followed for quite some time. :confused: But trust that I AM a noob. I am following this guide to get in some practice, not only compiling, but actual coding. I will report each step along the way, as I am sure the method and steps (intuitive or otherwise) will be easy to follow.

Manolbind a.k.a. Chris ....CCNA, Certified Nerd, Certified RightOnTek Specialist

Link to comment
Share on other sites

Compiled mangos r7643 with SD2.

Extracted 3.0.9 dbc, map and vmaps.

I get these errors on start:

Some required *.dbc files (6 from 77) not found or not compatible:
./dbc/BattlemasterList.dbc (exist, but have 34 fields instead 35) Wrong client version DBC file?
./dbc/SoundEntries.dbc (exist, but have 29 fields instead 30) Wrong client version DBC file?
./dbc/Spell.dbc (exist, but have 231 fields instead 232) Wrong client version DBC file?
./dbc/SpellItemEnchantment.dbc (exist, but have 37 fields instead 38) Wrong client version DBC file?
./dbc/Vehicle.dbc (exist, but have 43 fields instead 40) Wrong client version DBC file?
./dbc/VehicleSeat.dbc (exist, but have 46 fields instead 58) Wrong client version DBC file?

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