Wazarr94 / haxball_bot_headless

Ready-to-go scripts and functions for the HaxBall Headless API !
MIT License
46 stars 74 forks source link

Masterpassword not working and local storage transfer. #67

Closed peppewarrior1 closed 1 year ago

peppewarrior1 commented 1 year ago

Hi it's me again... this time I'd like to report a "bug" to you (perhaps) and ask you a question to which unfortunately I didn't get an answer... sorry again for the inconvenience.

1.I followed your advice and started a vps on aws... after 10 hours of programming and a good rest I started hosting however... I still haven't received the password to become admin... nor from the console haxroomie and nor from the discord log. It's strange as a thing because if I host locally I immediately receive the password... Is it a bug? 2.I would like to transfer the statistics that I have locally and combine them with the others that I have in the VPS... transferring the entire Default folder with many useless folders would weigh down my vps a lot, causing more lag.. tinkering I was able (from Chrome) to be able to see and edit the data (F12 - Application - Local Storage) too bad I can't figure out what specific files they are... any advice?

peppewarrior1 commented 1 year ago

In the first point I have no error, it doesn't appear on discord or on the VPS console when I start the room.

Wazarr94 commented 1 year ago
  1. Have you tried to exit and restart? Your situation only happened to me at the first start of the room. Do you have the token ready too?
  2. Instead of using the Defautl folder, try the LocalStorage folder: %LocalAppData%\Google\Chrome\User Data\Default\Local Storage
peppewarrior1 commented 1 year ago

1.Perfect. It was the token, so at each start it will have to change the token... (However, it does not appear in the console but only on discord.) 2.I could do it but I would like to merge them with other stats created since I have the VPS. How should i do?

Another question. Now that the data is saved in the VPS, won't I have to put the admin and master role back on every reboot?

Wazarr94 commented 1 year ago

Unfortunately yes, this is a current limitation of the script

peppewarrior1 commented 1 year ago

Alright, I finally fixed it. How do I do it with json? Can I merge the old stats with the new ones somehow or do I lose them?