Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error after updating each version #94

Open
ralts00 opened this issue Aug 26, 2022 · 8 comments
Open

error after updating each version #94

ralts00 opened this issue Aug 26, 2022 · 8 comments

Comments

@ralts00
Copy link

ralts00 commented Aug 26, 2022

when I update the robot from the console it always gives me this error
Captura de Pantalla 2022-08-25 a la(s) 10 52 45 p m
.

@ralts00
Copy link
Author

ralts00 commented Aug 26, 2022

I downloaded the new release and the robot works but it gives me this warning
Captura de Pantalla 2022-08-25 a la(s) 11 06 16 p m

@ironcladmerc
Copy link

I'm getting the same thing every time there's an available update. It never works to update from the bot itself, I always have to download the latest release and manually install it. I'm using the raspberry pi version. I would like to see this fixed, is that string a valid datetime? I think it may be missing the T in between the date and the time, usually the standard ISO datetime format is YYYY-MM-DDTHH:MM:SSZ

@PCJones
Copy link
Owner

PCJones commented Aug 26, 2022

when I update the robot from the console it always gives me this error Captura de Pantalla 2022-08-25 a la(s) 10 52 45 p m .

Could you screenshot the whole error message next time? Sadly it's missing the line on which the error happens.

If you get the Error at checking for update: String... error you can open the version.usb file in the config folder and remove the Z at the end, that fixes it. I'm not quite sure yet why it isn't working on some systems.

@ironcladmerc
For linux/macOS auto update is not working at all I think (even if you fix the Error at checking for update error), I'll try to fix it but it isn't very high priority right now as I'm working on other things, I'm sorry.

Here is a script to easily update your bot on linux to the newest version while keeping your config files, you may need to replace all occurences of linux-x64 with the release you are using.

#This is assuming your bot folder name is linux-x64.
#Execute these commands one folder above bot folder.
mv linux-x64/config/ config_bak_temp/
wget https://github.com/PCJones/Ultimate-Splinterlands-Bot-V2/releases/latest/download/linux-x64.zip
rm -r linux-x64/
unzip linux-x64.zip
rm linux-x64.zip
rm -r ./linux-x64/config
mv config_bak_temp/ linux-x64/config/
chmod +x linux-x64/Ultimate\ Splinterlands\ Bot\ V2

@ironcladmerc
Copy link

this is my screenshot that includes the line number

image

@ironcladmerc
Copy link

thanks for the quick fix for the error and the script, that worked

@ironcladmerc
Copy link

i just downloaded the latest version of the raspberry pi bot (2.16) and when running it it is still telling me there's a new update available, so is there a way to bypass that check? A config setting I can specify?

@PCJones
Copy link
Owner

PCJones commented Sep 5, 2022

Have you tried a clean install? Can you send me your version.usb file?

@ironcladmerc
Copy link

I realized the file was being backed up by the script, so it restores it overtop the fresh install. So I updated the date to current date and now it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants