shalzuth / BraveHaxvius

Clientless FFBE
MIT License
50 stars 38 forks source link

Cave of Crystals #85

Open Killer66 opened 6 years ago

Killer66 commented 6 years ago

The bot is unable to complete CoC stages. Thoughts?

lupier commented 6 years ago

Very easy - try to use DataExtractor. Wait until it's finished their job. Then recompile client. That's all Also remember to validate RST, MST, version values.

Killer66 commented 6 years ago

What? I think you did not understand the problem. Have you tried to run any Cave of Crystals 3?

lupier commented 6 years ago

Sure, all of them are OK. I think you dont understand problem on your side. example in log: Cave of Crystals (Support) 3 Sending : Initialize... Request done Sending : GetUserInfo... Request done Sending : MissionWaveStart... Request done XP : 16900 Gil : 3140 Enemy dropped item : Support Alcryst : 6 Enemy dropped item : Support Heavicryst : 3 Enemy dropped item : Support Milcryst : 2 Sending : MissionEnd... Sending : Initialize... Request done Sending : MissionEnd... Request done

Killer66 commented 6 years ago

Hum.... strange, mine get a error on "Sending : MissionEnd..."

lupier commented 6 years ago

"error" is an abstraction. Use visual studio debugger to get error location exactly where it is. Also use local proxy 127.0.0.1 with PacketDecoder to locate any collisions in data

Killer66 commented 6 years ago

Error on line 111 of networking.cs var msg = Text.Texts.First(t => t.Key == errorMsg.ToString()).Value;

Killer66 commented 6 years ago

errorMsg: {SERVER_MSG_158}

lupier commented 6 years ago

158 = Please log in again Check your RST, MST, Ver. values. app = 1043 rst = 0 mst = 1340 build = ver.2.8.1 You can always check this values in packetdecoder with telephone tuned via proxy

lupier commented 6 years ago

Just compare your traffic from client and phone. This is not a "rocket science" :)

Killer66 commented 6 years ago

These are exactly the same values I have here.

lupier commented 6 years ago

make sure your url for php calls is https://v270lapisdtz9oirblf.gumi.sg/lapisProd/app/php/gme/actionSymbol/ if this one is already same - compare all decrypted JSON nodes in packet decoder. That's all what you need for debugging purpose

Killer66 commented 6 years ago

The URL is the same. Tried another instance of the BraveHaxvius solution and worked well, even with very outdated values on MST and APP versions. Thanks for the help anyway.

robidk commented 6 years ago

Hi @Killer66 , where did you get the other instance from? I am having same problem with my version. Have updated data, checked version etc but get an Item with same key already exists error.

robidk commented 6 years ago

This is the error I am getting, ,in case someone can tell me how to fix it? capture

Killer66 commented 6 years ago

Yeah, that's the same error i'm getting. Just picked a backup file with a friend. However, now even runing only airship is giving me the same error here and there. I'm thinking the problem may be some instability in the server, so I will stop using the bot for a while.

robidk commented 6 years ago

@lupier Hi, do you think you can provide a copy of your files? I am not good enough with programming to find the exact problem on my current files :( Everytime I do a data extract I need to edit some of the equipment and challenge entries as they have double "" in the description which does not allow me to recompile without removing these, am not sure if maybe these is why I am getting the above error? I can do TMR farming by catching above error and restarting the missions, but am having trouble with completing the raids and the CoC stages using the bot.

lupier commented 6 years ago

You can escape invalid chars with \ before: Kill Kanshou with "Bakuyas Vengence"" after: Kill Kanshou with \"Bakuyas Vengence\"" This is only one problem (as I remember) in whole challenges. p.s. always wait till data extractor finished it's task. Do not close it (~10 minutes for example)

robidk commented 6 years ago

looks like doing the above instead of just removing the extra "" has resolved the issue! Thanks lupier.