AcidWeb/CurseBreaker

Allow us to toggle sources

tarto-dev opened this issue · 1 comments

Issue

Hello Acid,

I used to manage addons with Cursebreaker, first of all, a big THANK for your work !

But recently, I have to reinstall whole game projects, and when I type "import install", it raise for some reasons "features require wago api key", and, I guess someone ran into the same issue previously (#354).

As I already used this software, I'm pretty sure it's not a scam, but for newcomers, I understand it can be "weird".

Regarding code, I would say

CurseBreaker/CB/Core.py

Lines 611 to 614 in a32688b

def detect_addons(self):
if self.config['WAAAPIKey'] == '':
raise RuntimeError('This feature requires the Wago Addons API key.\n'
'It can be obtained here: https://addons.wago.io/patreon')
is involved in this issue

Reproduce steps

  • Install some addons with any methods, cursebreaker, curseforge, zip exctract ...
  • Ensure you got fresh new installation (using latest version (v4.3.4) and remove GAMEFOLDER/WTF/CurseBreaker.json
  • As mentioned by CLI, type import install
  • It should scan folders to get addons name then, regarding to code, download latest versions and include managed addons through newly created CurseBreaker.json
    Instead, it ask for Wago_Addon API key to scan their website.

image

Fix ?

  • I would suggest to continue code execution without Wago Addons if API key isn't set
    OR
  • Let us decide what sources to use/enable

I just need to improve that error message as import is using only Wago as the source. As it was using only CF before.
So nothing to toggle there.

Autocomplete in install already takes this into account automatically.