Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete plugin import #566

Closed
hsl9999 opened this issue Apr 16, 2023 · 12 comments
Closed

Incomplete plugin import #566

hsl9999 opened this issue Apr 16, 2023 · 12 comments
Assignees
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working.

Comments

@hsl9999
Copy link

hsl9999 commented Apr 16, 2023

Blender Niftools Addon Version Info
0.0.14

Blender Version Info
2.9.3.16

Platform information
Windows 10 x64 latest

Context
When importing nif, only bones can be seen, and NiMesh is not imported normally

Expected Result
The plugin works fine

Screenshot
https://drive.google.com/file/d/1a5B2wBf7arFoGtGajJ2a26_WCKaoVWlQ/view?usp=sharing

Nif File
https://drive.google.com/file/d/1FklEJpFoS6VZLBvuF8JMzYko760VSCGO/view?usp=sharing

@hsl9999 hsl9999 added the Bug Issue with specific functionality not working as intended but overall plugin is working. label Apr 16, 2023
@Candoran2
Copy link
Member

Could you specify which game this nif is from?

@hsl9999
Copy link
Author

hsl9999 commented May 10, 2023

Could you specify which game this nif is from?

It's a game called Archlord 2

@hsl9999
Copy link
Author

hsl9999 commented May 12, 2023

I found the file format is "Gamebryo File Format, Version 20.6.0.0"

@Kendaman
Copy link

nif
I would like to look into this a little more, but I can't unzip the dat for this game. The decompression tool has already disappeared from the server. need extractor.

@hsl9999
Copy link
Author

hsl9999 commented May 16, 2023

nif I would like to look into this a little more, but I can't unzip the dat for this game. The decompression tool has already disappeared from the server. need extractor.

Hello, may I ask if this is max or blender? Which version can read it? I hope to make some mods for this game.Thanks.

@hsl9999
Copy link
Author

hsl9999 commented May 16, 2023

Can this problem be solved?@Candoran2 @neomonkeus

@Candoran2
Copy link
Member

Yes. With the most recent code changes to the plugin you can import it and get a (somewhat-working) nif.
image
However, that isn't released yet. If you have a bit of know-how you can create the updated version of the plugin yourself based on the publicly available repos, but otherwise you'll have to wait for a new release. Most small kinks with the large update we've been working on have been worked out, so that should be not too far in the future.

@hsl9999
Copy link
Author

hsl9999 commented May 17, 2023

Yes. With the most recent code changes to the plugin you can import it and get a (somewhat-working) nif. image However, that isn't released yet. If you have a bit of know-how you can create the updated version of the plugin yourself based on the publicly available repos, but otherwise you'll have to wait for a new release. Most small kinks with the large update we've been working on have been worked out, so that should be not too far in the future.

Thank you very much, I will try it myself

@Kendaman
Copy link

Is it possible to import kf in the latest version of the plugin? For this game, NiSequenceData is used.

@hsl9999
Copy link
Author

hsl9999 commented May 24, 2023

The problem with the trunk is still there, can you add a modified branch? I'll try it myself, thanks. @Candoran2

@Candoran2
Copy link
Member

Candoran2 commented May 29, 2023

Steps to use cobra-tools to create the generated module necessary for the blender niftools addon:

  • Clone OpenNaja/cobra-tools.
  • Clone Candoran2/nifxml (branch develop)
  • Clone Candoran2/new-pyffi
  • Create a symbolic link to nifxml/nif.xml in new-pyffi/formats/nif
  • Create a symbolic link to new-pyffi/formats/nif in cobra-tools/source/formats
  • Create a symbolic link to new-pyffi/spells in cobra-tools/source
  • Create a symbolic link to new-pyffi/utils in cobra-tools/source
  • Run codegen.py from cobra-tools.
  • Set the GENERATED_FOLDER variable to point to the cobra-tools/generated folder.
  • Run install.bat
    It's quite a bit of setup, but you only need to do it once (except for running install.bat or setting GENERATED_FOLDER).

My most recent changes are available on https://github.com/Candoran2/blender_nif_plugin/tree/develop, but they'll be pulled into this repository in due time as well. Same goes for my nifxml changes.

@svip
Copy link
Contributor

svip commented Aug 4, 2023

Hey @Candoran2, I recognise this issue is closed, but I felt it might be a bit much to create another issue. When I follow the above steps (though modify makezip.sh to include cp -r "$GENERATED_FOLDER" "${DEPS_OUT:-${BUILD_DIR}/dependencies}/generated"), I get these errors during cobra-tools' codegen.py:

  File "[...]/cobra-tools/codegen/Compound.py", line 102, in read
    condition = union.write_filtered_attributes(f, condition, target_variable="instance")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[...]/cobra-tools/codegen/Union.py", line 309, in write_filtered_attributes
    raise AttributeError(
AttributeError: Default tag without or with overlapping conditionals on type  FORCE_BOMB

Which may be resulting in the somewhat unusual final line to NiAVObject.py:
if instance.context.bs_header.bs_version > 26:
(Yes, that's the final line.)

If you prefer me putting this issue somewhere else, let me know.

Edit: Nevermind, I needed to switch to branch develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working.
Projects
None yet
Development

No branches or pull requests

5 participants