PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Create nice interface for config creation

Open jabbink opened this issue 7 years ago • 19 comments

Description: The config is getting out of hand. A nice (web) interface to click a config together would be nice. This interface should group options logically together, visually show which option supersedes another (autotransfer=false disables many other parameters completely).

EDIT:

Make a webbased form with something like Timon to easily create a config.properties or JSON. Host it on the website of #1123

jabbink avatar Jul 26 '16 22:07 jabbink

Maybe as a page to @shilch's webui

mluigi avatar Jul 27 '16 08:07 mluigi

I thought of adding a window 'Settings' to the GUI. But there would only be options that can be changed during runtime.

shilch avatar Jul 27 '16 08:07 shilch

Maybe a Settings page for live changes, and a ConfigEditor one to change the config file

mluigi avatar Jul 27 '16 09:07 mluigi

I actually thought about a simple HTML + JavaScript page hosted on GitHub pages that can read the properties file and create a new one that can be copypasted back.

jabbink avatar Jul 27 '16 11:07 jabbink

Nice idea, I will try :D

shilch avatar Jul 27 '16 11:07 shilch

I made one Here Be sure to post ur suggestions ;-; (I added dynamic parsing so that my program can easily keep up with new/custom configs)

chirgjin avatar Jul 29 '16 11:07 chirgjin

ATTENTION ❗ Keep in mind when you use above website you should probably not put your credentials in and instead do that manually. Not saying this site specifically is malicious, just that you should in general be careful. ❗ ATTENTION

langerhans avatar Jul 29 '16 11:07 langerhans

You could also have a map on this page so you can select the bot lat/long.

Taclaa avatar Aug 17 '16 07:08 Taclaa

I started creating one 3 weeks ago but due to lack of time I was not able to finish it. Maybe someone wants to complete the creation tool? https://gist.github.com/shilch/cf75bb509e3fc39a52fc22e9886a17ca

shilch avatar Aug 17 '16 07:08 shilch

I used a map there @Taclaa . Screenshot

shilch avatar Aug 17 '16 07:08 shilch

Nice! @shilch

Taclaa avatar Aug 17 '16 13:08 Taclaa

Feel free to finish it if you have time.

shilch avatar Aug 17 '16 15:08 shilch

I can try to give it a go tomorrow (in about 9/10 hours), I'll join you guys on Discord and let you know.

DiogoRNeves avatar Aug 17 '16 22:08 DiogoRNeves

Update: I changed @shilch 's work to fetch the most recent template from GitHub and replace the options in the page. Added some options, just have to add the rest of them.

I'm not making it dynamic, I thought about it and I don't think it will work well. Also, with this method if a new option is added in the template and it's not yet on the UI, the default value specified in the template will be used. Future updates just need to add the HTML. It's purely javascript, so no server running required and libraries are fetched from CDN's to keep it in one file.

The output properties will be shown in a modal with a "Copy to clipboard" button.

Still have to work the map in order to get the starting coordinates, but it shouldn't be too hard.

Hopefully will make a PR on saturday.

Thoughts?

DiogoRNeves avatar Aug 18 '16 21:08 DiogoRNeves

Oh, I found the time and worked on the config gui. I did it dynamic but it is not finished yet. Maybe I publish mine in ~14h and you can help me?

shilch avatar Aug 18 '16 21:08 shilch

Yeah, what do you need?

DiogoRNeves avatar Aug 18 '16 23:08 DiogoRNeves

Sorry for the late response. I have to add some missing properties to the builder before commiting. You will find the project here. One idea I have is that this gui is able to generate a zip file which includes the jar file, the custom config.properties and maybe a simple batch or exe file.

shilch avatar Aug 19 '16 14:08 shilch

Kay. I'll check it out later tonight.

DiogoRNeves avatar Aug 19 '16 15:08 DiogoRNeves

Ok, I took charge of uploading the config gui. You can find it at https://pogo.bot-builder.xyz/

shilch avatar Aug 22 '16 09:08 shilch