OpenNaja / cobra-tools

A suite of GUI tools for extracting and modifying OVL and OVS archives, as well as editing the associated in-house file formats. Also includes a model plugin for Blender. For downloads, guides, and FAQs visit:
https://opennaja.github.io/cobra-tools/
GNU General Public License v3.0
94 stars 27 forks source link

issue #346

Closed loal007 closed 1 year ago

loal007 commented 1 year ago

helloi have this issue on blender blender cobra

ilodev commented 1 year ago

yeah, I was going to say the same.. adding the new success logging level on the config and not the logger setup makes all other tools error now:

ERROR:root:Could not create OVL: D:\steam\steamapps\common\Jurassic World Evolution 2\win64\ovldata\TestMod\Init.ovl

image

it is probably as simple as to enforce a logging_setup() call, but I'm not sure this will work with every other tool. I'll do some tests in sublime and come back

ilodev commented 1 year ago

for me adding these two lines worked.


from ovl_util.config import logging_setup
logging_setup(__name__)
hexabits commented 1 year ago

for me adding these two lines worked.

from ovl_util.config import logging_setup
logging_setup(__name__)

Yes, to use logging you have to setup logging. The OP has a different issue.

hexabits commented 1 year ago

@loal007 Do you have more than one plugin installed (and possibly enabled) at the same time? Check your add-ons list.

ilodev commented 1 year ago

No, the plugging isn't calling logging_setup() anywhere

I think it is the same issue.

hexabits commented 1 year ago

No, the plugging isn't calling logging_setup() anywhere

I think it is the same issue.

It is not the same issue. Look at the exception message. Also, for Blender, logging_setup is called in __init__.py in the tools root.

ilodev commented 1 year ago

ah you are right, he has redefining issues, not undefined. My bad!!

hexabits commented 1 year ago

Also @ilodev you need to be using Python 3.11 now.

ilodev commented 1 year ago

Also @ilodev you need to be using Python 3.11 now.

:( oh, I'm conflicted with this now, two days ago 3.8 was still usable 🗡️

hexabits commented 1 year ago

Also @ilodev you need to be using Python 3.11 now.

:( oh, I'm conflicted with this now, two days ago 3.8 was still usable 🗡️

3.11 has been the recommended version for 5 months.

ilodev commented 1 year ago

Guess I’ll figure out what is not compatible with 3.8 because sublime gets me stuck with this version for now

On Mon, 24 Jul 2023 at 15:37, Jon @.***> wrote:

Also @ilodev https://github.com/ilodev you need to be using Python 3.11 now.

:( oh, I'm conflicted with this now, two days ago 3.8 was still usable 🗡️

3.11 has been the recommended version for 5 months.

— Reply to this email directly, view it on GitHub https://github.com/OpenNaja/cobra-tools/issues/346#issuecomment-1647932185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG42R74EU6K3YWFVM2S5RSLXRZ273ANCNFSM6AAAAAA2VD4MGE . You are receiving this because you were mentioned.Message ID: @.***>

hexabits commented 1 year ago

@loal007 We confirmed ourselves that you have this issue because you have two copies of the add-on installed and enabled. You will need to remove the duplicate. If you update to latest there is now a better warning message telling you that you've installed or enabled it twice.

loal007 commented 1 year ago

thanks for the answers