Thanks to this amazing update bebot is broken. Any of you guys on Crom get yours working after this last update? They did something to the char server again.
Thanks to this amazing update bebot is broken. Any of you guys on Crom get yours working after this last update? They did something to the char server again.
Yes you must edit the: Sources/AocLogin/CharacterServerConnection.php
There is an entry:
And this is the problem:Code:case RPC_TERRITORY_CHARACTERLIST: { $login = 0; $playerid = $stream->ReadUInt32(); $characters = $stream->ReadVecSize(); // Prepare an array of all characters returned for( $i=0; $i < $characters; $i++ ) { $stream->ReadUInt32(); // characterID $stream->ReadUInt32(); // playerID $testi = $stream->ReadUInt32(); $testo = $stream->ReadString(); $characterID = $testi;//$stream->ReadUInt32(); $characterName = $testo;//$stream->ReadString(); $dimensionID = $stream->ReadUInt32(); $loginState = $stream->ReadUInt32(); $date = $stream->ReadString();
Look at my code i have read the string first in another var.Code:$characterID = $stream->ReadUInt32(); $characterName = $stream->ReadString();
This works for me.Code:$testi = $stream->ReadUInt32(); $testo = $stream->ReadString(); $characterID = $testi;//$stream->ReadUInt32(); $characterName = $testo;//$stream->ReadString();
Last edited by theplake; 18th January 2018 at 05:44.
There has apparently been an additional Int32 added to the end of the character structure. At least that's what happened for my account.
Go into the file theplake has listed, and in that section, at the end of the list, change
toCode:$stream->ReadString(); // ?? Blob MD5
This did the trick for me.Code:$stream->ReadString(); // ?? Blob MD5 $stream->ReadUInt32(); // ??
Thanks guys
Could you upload your php file so i could download it? im having trouble with editing these codes. it isn't working. Much appreciated.
Could you guys include the line number that these changes should take place on. I have tried both and they still did not work, maybe I am doing it in the wrong place.
It gives only one switch case section with:
Why you need an line number.Code:case RPC_TERRITORY_CHARACTERLIST:
In Attach there is my php.
Last edited by theplake; 19th January 2018 at 08:19.
My line is added after line 178. Basically you add
as the new line 179.Code:$stream->ReadUInt32(); // ??
However there's something weird going on here. My code is incompatible with theplake's code, as he still reads the same fields as before while I'm reading an additional Int32.
It looks like our two accounts are working differently. Only Funcom could explain what is happening exactly.
I had to add
$stream->ReadString(); // ?? Blob MD5
$stream->ReadUInt32(); // ??
to the php i got from theplake and it works now, Thanks guys.