Commit graph

219 commits

Author SHA1 Message Date
Vishal
88834bd979
Update - 1.0.9 2024-04-20 02:22:22 +05:30
rikkolovescats
85b572707e
Bump plugin manager to v1.0.8 2024-04-11 12:51:06 +05:30
rikkolovescats
4b140f29c9
Wait for SceneAppMode to activate
Reported in ballistica's official discord server:
https://discord.com/channels/1001896771347304639/1218201750440247296/1227731932838760521.

We were calling `_bascenev1.protocol_version()` before SceneAppMode was
activated (by ballistica), which isn't allowed in newer ballistica
versions.

It was the cause of the following traceback:
```sh
$ CMAKE_BUILD_TYPE="Debug" make prefab-gui-debug

BA_WSL_TARGETS_WINDOWS=1 tools/pcommand make_prefab gui-debug
make[1]: Entering directory '/home/rikkolovescats/ballistica'
Lazybuild: skipping "meta" (checked 89 inputs in 0.0026s).
Lazybuild: skipping "assets-cmake" (checked 376 inputs in 0.0018s).
Staging for cmake at build/prefab/full/linux_x86_64_gui/debug...
make[1]: Leaving directory '/home/rikkolovescats/ballistica'
cd build/prefab/full/linux_x86_64_gui/debug && ./ballisticakit
root: BallisticaKit 1.7.34 build 21800.
root: Error loading plugin class 'plugin_manager.EntryPoint'.
Traceback (most recent call last):
  File "/home/rikkolovescats/ballistica/build/prefab/full/linux_x86_64_gui/debug/ba_data/python/babase/_plugin.py", line 283, in attempt_load_if_enabled
    cls = getclass(self.class_path, Plugin)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rikkolovescats/ballistica/build/prefab/full/linux_x86_64_gui/debug/ba_data/python/babase/_general.py", line 83, in getclass
    module = importlib.import_module(modulename)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/rikkolovescats/.ballisticakit/mods/plugin_manager.py", line 70, in <module>
    protocol_version = _bs.protocol_version()
                       ^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Attempting to access SceneAppMode while it is inactive.
```

This commit improves the compatibility layer such that any calls that
require SceneAppMode to be active aren't made before it gets active.
2024-04-11 12:48:14 +05:30
! Freaku
4be6330733
Fix searching in plugin manager with capital letters 2024-02-22 01:04:52 +05:30
Loup-Garou911XD
e5a0e9069d [ci] auto-format 2023-12-26 09:33:21 +00:00
Loup-Garou911XD
66bd5675d0 Fixed plugman throwing errors on older builds 2023-12-26 15:02:49 +05:30
! Freaku
cd1c858bbd
Fix oops 2023-12-11 22:20:07 +05:30
! Freaku
e417f4130c
Fix a unnoticed typo 2023-12-11 21:17:22 +05:30
Rikko
94abe80e3a
Fix a memory leak 2023-12-08 23:44:14 +05:30
Rikko
8ce09ea0a3
Make sure filter widget exists when looking for filter text 2023-12-08 22:26:29 +05:30
! Freaku
1a764046c1
Update plugin_manager
Fixes warning in 1.7.30: `set_main_menu_window() should be passed a 'from_window' value to help ensure proper UI behavior`
2023-12-08 21:46:14 +05:30
Rikko
2a5ce50834
Add a compatibility layer for older builds 2023-10-06 22:16:07 +05:30
brostos
68360e7714
Update plugin_manager.py 2023-10-03 12:08:21 +03:00
brostosjoined
e57c541762 [ci] auto-format 2023-10-03 08:20:09 +00:00
brostos
5c86064223
Update plugin_manager.py 2023-10-03 11:19:36 +03:00
brostos
c90face51e
Update 2023-10-03 10:50:14 +03:00
brostosjoined
f3d874d3ec [ci] auto-format 2023-10-02 22:28:17 +00:00
brostos
c92737eb8c
Loop and backward compability fix 2023-10-03 01:18:42 +03:00
Rikko
818ec655be
Bump plugin manager source version 2023-10-01 18:43:25 +05:30
Loup
41cc38af1f Removed deprecated methods 2023-10-01 17:48:20 +05:30
Rikko
7dba50e95b Remove a debug print 2023-06-30 04:46:38 +05:30
rikkolovescats
e31a7890c7 [ci] auto-format 2023-06-29 23:09:26 +00:00
Rikko
8a8df69e36 Specify branch names in custom plugin sources 2023-06-30 04:38:42 +05:30
rikkolovescats
0b55bc2233 [ci] auto-format 2023-06-20 19:26:47 +00:00
Rikko
da62efcf2b New fixes 2023-06-21 00:56:02 +05:30
Rikko
4cb7d218d0 New build version changes 2023-06-21 00:33:31 +05:30
Rikko
62dcd314a1 Rename babase.GameActivity -> bascenev1.GameActivity 2023-06-21 00:28:16 +05:30
Rikko
fe2fac53df Rename bastd stuff 2023-06-21 00:27:32 +05:30
rikkolovescats
decdc815e3 [ci] auto-format 2023-06-21 00:27:06 +05:30
Rikko
c0fa2dbd79 Parse long export class names 2023-06-21 00:27:04 +05:30
Rikko
40f7a6c498 Bump to v1.0.0
If this works out fine, then we are stable enough to mark this release
as 1.0.0.
2023-06-21 00:26:16 +05:30
Rikko
6af340da3d Migrate plugin manager to API 8 2023-06-21 00:25:42 +05:30
Rikko
72d2d62601 Replace "Loading..." text with the exception message if any 2023-06-16 00:18:04 +05:30
Rikko
2d74b52d2f Optimize new plugin detection mechanism 2023-05-14 15:41:24 +05:30
Sravan
b48119bd36 updated the screenmessage for new plugins
Prints only a single message depending on number of plugins.
2023-05-13 20:32:48 +05:30
Sravan
263ee994ae bump to new version
Change the version
2023-05-13 19:51:45 +05:30
Sravan
ddf150e08b Added new api version check with that of the game and plugin supported.
This checks the game api version and plugin version and only prints screenmessage of only game supported plugins.
2023-05-13 17:40:55 +05:30
kingsamurai123
0c2b7becaf [ci] auto-format 2023-05-13 07:36:46 +00:00
Sravan
599a215faa Changed the key in dictionary to plugin name
Removed the extra property from the plugin class and also changed the key to plugin name in the new sorted plugin dictionary to increase the stability.
2023-05-13 13:04:30 +05:30
kingsamurai123
1eef94f77a [ci] auto-format 2023-05-10 19:26:00 +00:00
Sravan
59b7bdbdc4 Changed the logic to print new plugins
Instead of checking the locally present plugins details. This will print the n latest plugins based on release date.
2023-05-11 00:50:42 +05:30
Sravan
60dee789ae Display new plugins details
Whenever new plugins get added to the manager, the game displays the count and names of the plugins.
2023-05-10 00:43:02 +05:30
Rikko
789f95f6b1 Bump to v0.3.2 2023-04-30 22:46:21 +05:30
Rikko
7cf7f7b6d1 Resolve spaces to underscores when searching for plugins 2023-04-30 22:45:54 +05:30
Rikko
c81e3a6af7 Set current tag dynamically 2023-04-30 22:33:01 +05:30
Rikko
dbbb0ba32c Fix double sounds 2023-04-30 22:24:56 +05:30
Sravan
0b856baf34 Y-axis typo 2023-03-04 18:15:08 +05:30
Sravan
cedd1b1501 Increase plugin window width
Increased the plugin window size and moved the buttons to the left.
2023-03-04 15:40:01 +05:30
Sravan
2ff6d49834 Changed the version in PM and index
Added the version change in PluginManager.py and index.json
2023-03-04 13:28:23 +05:30
Sravan
71479e5b5e Resize the window and buttons
Resized the plugin window popup and also moved the buttons to limit the overlapping with the description.
2023-03-04 13:01:48 +05:30