Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 22:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement


Flyff Source VS2015: TRANS : is not alive

Discussion on Flyff Source VS2015: TRANS : is not alive within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 13
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:
TRANS : is not alive
The Worldserver also has a high tick:

I already analysed the Problem and found out that the Worldserver does not get the Ping-Respond from the DBServer:

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
does not make a difference
Capt. Jack is offline  
Old 08/16/2016, 20:06   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 664
Received Thanks: 226
Are you using _USE_32BIT_TIME_T on all projects?
alfredico is offline  
Old 08/16/2016, 23:07   #3
 
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 13
Quote:
Originally Posted by alfredico View Post
Are you using _USE_32BIT_TIME_T on all projects?
yes
Capt. Jack is offline  
Old 08/17/2016, 09:12   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 664
Received Thanks: 226
Then check the data values send between the projects.
alfredico is offline  
Old 08/17/2016, 14:54   #5
 
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 13
Quote:
Originally Posted by alfredico View Post
Then check the data values send between the projects.
CDPDatabaseClient::SendPing does always send time_null() which is in my case 1471437424

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):
Capt. Jack is offline  
Old 08/17/2016, 18:39   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 664
Received Thanks: 226
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.
alfredico is offline  
Old 08/17/2016, 21:39   #7
 
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 13
Quote:
Originally Posted by alfredico View Post
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.

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.
Capt. Jack is offline  
Old 08/18/2016, 08:50   #8
 
elite*gold: 0
Join Date: Mar 2008
Posts: 664
Received Thanks: 226
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.
alfredico is offline  
Thanks
1 User
Old 02/17/2017, 17:07   #9
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 231
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..
Unleashed! is offline  
Old 02/18/2017, 09:32   #10
 
elite*gold: 110
Join Date: Mar 2008
Posts: 854
Received Thanks: 387
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"
Kaev <3 is offline  
Thanks
2 Users
Old 02/20/2017, 00:09   #11
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 231
@

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!
Unleashed! is offline  
Old 02/20/2017, 07:04   #12
 
elite*gold: 110
Join Date: Mar 2008
Posts: 854
Received Thanks: 387
Quote:
Originally Posted by Unleashed! View Post
@

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!
Durch eine Änderung hat das mit den statischen Variablen in den Singleton-Klassen nicht mehr ganz funktioniert. Ohne diese Flag kam es zu verschiedenen Fehlern, z.B. dem oben beschriebenen Fehler "Trans not alive".
Kaev <3 is offline  
Thanks
1 User
Old 02/20/2017, 10:41   #13
 
elite*gold: 0
Join Date: Jan 2015
Posts: 183
Received Thanks: 686
Quote:
Originally Posted by Unleashed! View Post
@

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!
Ich release heute Nachmittag komplett funktionsfähige cleane VS2015 und 2017 Source mit dazugehörigen Serverfiles.
Um euch mal was gutes zu tun.
Blouflash is offline  
Thanks
1 User
Old 02/20/2017, 11:31   #14
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 231
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?
Unleashed! is offline  
Old 02/20/2017, 17:51   #15
 
elite*gold: 0
Join Date: Mar 2013
Posts: 226
Received Thanks: 89
Quote:
Originally Posted by Unleashed! View Post
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?
nichts außer o.g. um sie zum Laufen zu bekommen.
.S0ulSeller is offline  
Reply

Tags
c++14, flyff source, trans : is not alive, vs2015


Similar Threads Similar Threads
VS 2012 V15 Worldserver "Trans is not alive"
01/11/2016 - Flyff Private Server - 3 Replies
Hallöchen, habe gerade einen Kumpel die 15 Source (v12) eingerichtet. Nun klappt auch alles bei ihm nur dass der Worldserver ein Problem mit dem Datenbank server hat. Der Worldserver bricht anscheinend die Verbindung ab da er darauf sich beendet aber ich kann auch nicht finden wo in der Source die Variable auf False gesetzt wird sprich der Grund. Finde nur die "Exit" stelle mit der Ausgabe. Es liegt wirklich nur am WS da wenn man diesen mit WS 2003 austauscht alles läuft.
How to open Source KDhack in VS2015
08/14/2015 - 4Story - 4 Replies
http://prntscr.com/84kbwk It does not find anything:confused:
Selling > [Dungeon defenders] Mana Token,trans weapon,trans armor
04/18/2012 - Trading - 0 Replies
visit JyZh-DD-Shop
Selling > [Dungeon defenders] Mana Token,trans weapon,trans armor
04/18/2012 - elite*gold Trading - 0 Replies
visit JyZh-DD-Shop
TRANS : is not alive
09/06/2011 - Flyff Private Server - 7 Replies
Hallo epvpers Wenn ich meine selbst kompilierte WorldServer.exe starte geht der nach kurzer Zeit wieder aus und ich bekomme folgenden Error in der Error.txt An der Source habe ich noch nichts veraendert. Habe halt gerade versucht mir die Source einzurichten aber es scheint ja irgendwie nicht geklappt zu haben. :( Ich benutze die v15 files und die v15 Source. Beim kompilieren haben ich nur 5 warnings gehabt, die aber laut anderer Threads nicht schlimm sein sollen...



All times are GMT +2. The time now is 22:32.


Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2021 elitepvpers All Rights Reserved.