jabbink / PokemonGoBot

DEFUNCT - Bot that plays Pokemon Go
https://www.pogobot.club/
GNU General Public License v3.0
559 stars 232 forks source link

Create nice interface for config creation #450

Open jabbink opened 8 years ago

jabbink commented 8 years ago

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

mluigi commented 8 years ago

Maybe as a page to @shilch's webui

shilch commented 8 years ago

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

mluigi commented 8 years ago

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

jabbink commented 8 years ago

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.

shilch commented 8 years ago

Nice idea, I will try :D

chirgjin commented 8 years ago

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)

langerhans commented 8 years ago

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

Taclaa commented 8 years ago

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

shilch commented 8 years ago

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 commented 8 years ago

I used a map there @Taclaa . Screenshot

Taclaa commented 8 years ago

Nice! @shilch

shilch commented 8 years ago

Feel free to finish it if you have time.

DiogoRNeves commented 8 years ago

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 commented 8 years ago

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?

shilch commented 8 years ago

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?

DiogoRNeves commented 8 years ago

Yeah, what do you need?

shilch commented 8 years ago

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.

DiogoRNeves commented 8 years ago

Kay. I'll check it out later tonight.

shilch commented 8 years ago

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