LennardF1989 / BF2042-Portal-Extensions

Browser extensions to add additional functionality to the BF2042 Portal Rules Editor.
https://bf2042-portal-extensions.lennardf1989.com/
GNU General Public License v3.0
20 stars 11 forks source link

Plugins never load on page other than `/experience/rules` #22

Closed p0lygun closed 2 years ago

p0lygun commented 2 years ago

this happens because this plugins is checking for available blocks

https://github.com/LennardF1989/BF2042-Portal-Extensions/blob/ba58467e605dc9ea29a2bfd348d5dd790767bc43/src/web/app.js#L962-L966

LennardF1989 commented 2 years ago

There is no use in loading plugins if there is no Blockly, and Blockly is only loaded/started once you get into the Rules Editor.

What are you trying to do/achieve?

LennardF1989 commented 2 years ago

I see what you mean now - seems like they changed a few things and the Rules Editor is not actually supposed to be available when you haven't created your experience yet. There are some ways around the restriction, but things will go wrong regardless.

I've restructured this whole setup now, which should load plugins properly whenever the workspace changes.