Jump to content
TrinityCore

worldserver.exe launches slow


Bokrom
 Share

Recommended Posts

Hi all. I was patching a custom script and building my solution wasn't fixing the issue. I copied the authserver and worldserver .exe's from my Debug folder into my Release folder and my script now works! But for some reason the .exe's are about twice as large as the old ones, and the world server takes much longer to initialize than the old one, 45 sec. compared to just 6. Any ideas on what's causing this? Sorry if it's something obvious, I've only been spending most of my time now doing .dbc editing and less in the core, so I may have forgotten something simple.

Link to comment
Share on other sites

15 hours ago, Bokrom said:

Hi all. I was patching a custom script and building my solution wasn't fixing the issue. I copied the authserver and worldserver .exe's from my Debug folder into my Release folder and my script now works! But for some reason the .exe's are about twice as large as the old ones, and the world server takes much longer to initialize than the old one, 45 sec. compared to just 6. Any ideas on what's causing this? Sorry if it's something obvious, I've only been spending most of my time now doing .dbc editing and less in the core, so I may have forgotten something simple.

The whole idea it's larger and slower (in debug) is for that very reason. Where if it crashes, hopefully there is a catch to the exact symbol where it crashed and it logs just about everything in memory when you execute the binary (why worldserver.exe is so slow).

As for the DBC editing, well, you are on your own with that one. That would cause client issues if something goes wrong.

 

EDIT:

This will help you understand the differences. http://haacked.com/archive/2004/02/14/difference-between-debug-vs-release-build.aspx/

Link to comment
Share on other sites

:D This has been this way for quite some time. Then when people compile, follow the wiki and dont produce any debug logs, we yell back at them that they didnt compile correctly and cant help them.

I honestly thought it was intentional to compile in release, so that in the OPs case here he is just complaining about how slow it is.

Better to be slow compile, then to have issues you cant identify.

Link to comment
Share on other sites

Thanks for the replies guys. I just changed my Active Solution Configuration to RelWithDebInfo as the guide stated. However, my script still isn't working properly using the .exe's from the RelWithDebInfo folder. Well, it's hard to explain but it's kind of working. The function I made makes an SQL query to a table that contains what spec has what spells, and when I use the .exe's from Release or RelWithDebInfo, it's like it's not seeing the changes I made to the database. It still changes my spells properly for the warrior class which I did first. Sorry if this isn't making sense, I'm at a loss.

Edit: Hey everyone, I seem to have solved my issue. I had an incorrectly named patch file and once I fixed that things started working again. Thanks for the help guys.

Edited by Bokrom
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...