![]() |
Flyff Source VS2015: TRANS : is not alive
Hello,
I upgraded my source from VS2003 to VS2012 and everything was working. So I tried to upgrade the source to the latest VS2015 and here is my problem: Everything seems normal until the worldserver exits with: Quote:
Spoiler:
I already analysed the Problem and found out that the Worldserver does not get the Ping-Respond from the DBServer: Spoiler:
Does anyone else experienced this issue and found out how to fix it? I hope someone can help me :) And please don't help me like: "You will never use vs2015 features.. just keep vs2012!" Capt. Jack EDIT: Code:
_USE_32BIT_TIME_T |
Are you using _USE_32BIT_TIME_T on all projects?
|
Quote:
|
Then check the data values send between the projects.
|
Quote:
CDPTrans::OnPing sends 2 values back: tSend is also time_null() with the same value (1471437424) and time(NULL) which is slightly different 1471437501 The data values seems to be ok. This is the complete Log (I added the top 3 line to check the call order/data values): Spoiler:
|
And CDPDatabaseClient::OnPing ??
Maybe problem is when receiving the packet. m_bAlive is set to false when pinging to databaseserver and returns true when receiving result. If no packet is sent, database is off. [Only registered and activated users can see links. Click Here To Register...] |
Quote:
CDPDatabaseClient::OnPing gets never called! The DatabaseServer sends the Packet but the Worldserver does not receive it. That is the reason for the log and the Worldserver shutdown at loading. |
You have to find the reason why that happens, usually is because a bad packet sends more or less data and cause this problems (maybe the high tick). Check the function which handles those packets CDPDatabaseClient::UserMessageHandler | CDPTrans::UserMessageHandler and figure out the rest, I don't know if it could be because of all major changes made in vs2015, though for sure it can be fixed.
Personally I still use vs2012 since I didn't find necessary to upgrade yet. |
Hey there, sorry for ressurrecting such an old topic but im having the exact same problem, did you find an answer yet? :)
Edit: Also found out the WorldServer doenst close properly. The window will close but the process is still running in the background.. |
Wurde afaik nie von jemandem released bzw. überhaupt nur von wenigen gefixed, die wissen was sie tun, aber ich bin heute mal so freundlich.
Füge zu jedem Projekt die Compilerflag "/Zc:threadSafeInit-" hinzu. :) Wer mehr über den Fehler wissen will: Google "Magic statics visual studio 2015". English: Afaik this wasn't released by anyone or rather only fixed by a small amount of people who know what they're doing but i wanna be kind today. Add the compilerflag "/Zc:threadSafeInit-" to every project. :) If you want find out more about the error: Google "Magic statics visual studio 2015" |
@[Only registered and activated users can see links. Click Here To Register...]
Kann das gerade leider nicht testen, da ich meine Source neu aufgebaut habe, werde aber berichten sobald ich kann. Wird dadurch der Fehler beim einloggen behoben oder wofür ist das Flag genau? Mfg Unleashed! |
Quote:
|
Quote:
Um euch mal was gutes zu tun. ;) |
Danke dafür schonmal, da ich aber selber etwas dran gearbeitet hatte interessiert mich, was sonst noch gemacht werden muss. Ist darin noch etwas anderes enthalten als die Legacy Stdio Lib, die paar restlichen inline Definitionen und das Flag?
|
Quote:
|
| All times are GMT +2. The time now is 19:21. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.