-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to load any asset other than geometry #1
Comments
Hi @vrpixel! Please make sure you extract all the required files from the .iwds into a folder and have the proper folder structure as mentioned in the readme. Your folder structure should look like this: The easiest way is to achieve this is to extract directly these folders from every single .iwd and merge their contents. Furthermore if you open the console in blender you should see error messages that are probably related to the plugin not being able to find the models and images due to path error. Let me know if you managed to solve this. |
I actually had to put all these folders inside maps folder, now it loads it. I guess it's a plugin bug? |
Not sure, the plugin always searches for stuff in the "asset path" which should be the root folder where you have all these folders. Probably you selected the folder of the map as the "asset path" and thats why it finds it now. I would advise you to have the same folder structure as shown above. If you want to import a map select the map from the maps folder and set the root folder as "asset path" and it will properly find everything. Same goes for other assets. I will try to make a tutorial video soon when i will have time. |
@GoldenBlack4 as I said in the previous comment, assets don't and shouldn't be in the maps folder. You should follow the folder structure stated in the readme. When you import a map it will find the assets only if you have the correct folder structure. |
Ops, I deleted my comment, I understand how it should work now, but as you said, a video would be amazing! |
@vrpixel @GoldenBlack4 The assets should have this folder structure as seen in the following image: When you want to import a map select a map from the maps folder. If you want to import an xmodel select an xmodel from the xmodel folder. Lastly if you want to import a single texture select an image from the images folder. The tool heavily relies on having the correct folder structure. If you can attach some console logs with the error and also how your assets are structured I will gladly look at them |
Right, that's what I have. Inside the maps folder I have the mp folder too. I was able to extract the mp_toujane map with textures and stuff. Trying now to extract a solo map :) but it takes so much time for some reasons. |
@GoldenBlack4 then that will be the problem. You should not have any subfolders inside these main folders which you can see on the picture I posted before. Just have all maps in the maps folder without any subfolders, because the tool will look for the root asset path 2 folders up in the folder tree from where you import the map. The tool works with relative paths compared to the asset you are importing for importing additional assets which are required for the map/xmodel. For example.:
|
Ok thank you. I gave a try for the rhine map, but no luck, it is 200% slower than your old plugin for some reasons. After 8 hours of extracting I gave up because it was stuck. I have the same folder tree as you, mp maps work great and are textures. I got an high end pc so I don't really know what I am doing wrong? Where you able to extract a solo map too? |
@GoldenBlack4 I did test sp maps as well, although I didn't test them all. An mp map imported for me in ~10-20 mins depending on map size with an i7 4790k and 24GB ram. If you open the console you can see the import logs during importing. Check if there is any errors. The longest part of the import is reading in the textures and converting them to RGBA format. The plugin does not support .dds currently but I plan to make a feature which will allow to use .dds textures. So you can convert all your .iwi textures to .dds beforehand and just use those. Importing an image is much faster than converting and importing one, especially in python. |
@GoldenBlack4 can you please tell me which map you are trying to import? Is it always the sp maps or mp maps get stuck too? I'm using the Steam version of Blender as well, CoD2 version doesn't really matter since the plugin just works with files and not the game itself. The times in the logs should be alright, if an asset uses a texture that is already imported then it won't import it again, but just create a new instance. In the picture you provided, does it always get stuck at this part or it continues and get stuck somewhere else ie.: printing of logs stop and Blender just hangs? If you have some time to make a little video that showcases the situation that could also help. |
I take this screenshot just now as an example, but it's totally random where it get stucks. But it's always the line with the number 407. I am trying to export the sp map : rhine I can make a video in a few hours with the folder setup etc. and the import process for sure. Note: I didn't extract ALL assets from the .iwd (sounds, ui, cfg etc), but only all files contained inside those: ├── images |
@GoldenBlack4 Yes, sounds, ui and other files are not necessary. If you have missed something it would show up in the console as an error log. I will try to test out importing rhine as well and get back to you with the results. |
Thanks, I don't think that I forgot something because I almost put everything I can inside my folder. |
@GoldenBlack4 I have tested sp rhine and it imported in about ~3 hours with an i7 4790k ~4.2Ghz CPU and 24GB memory on Windows 10 Pro 64bit + I was working meanwhile. My assets are on an old external HDD which is pretty slow, which can also make the whole process slower. It indeed stuck a few times for a few minutes, but eventually it did progress further. I will try to investigate what can cause this. What specs does your PC have? Also where do you have your assets (HDD/SSD)? |
Nice! I noticed a little error message on the beggining of the process, I'll send you a screenshot. |
Do you mind sending 2 or 3 screenshots of your subfolder? Just to compare files in it. |
@GoldenBlack4 Ye, specs shouldn't be a problem for you then. Here are all the subfolders (basically I extracted everything as they were in the .iwd files): |
@GoldenBlack4 This error message is not really relevant. It just shows that the given texture has an invalid format that the tool doesn't support. Only DXT1, DXT3, DXT5 compression is supported for textures. It will simply just print the error and omit that texture. |
Okay! So the main problem now is just importing solo map :( |
@GoldenBlack4 try to import the smallest map from sp. Maybe decoytrenches or decoytown and see if those stuck as well. |
I confirm I was able to import beltot in 5084 seconds! |
@GoldenBlack4 I will try to come up with a solution in the upcoming weeks to support .dds. Because I think the image decompression is the most resource intensive task in the whole process. Either by just supporting .dds import (probably will be the fastest solution) or I will try to use existing iwi to dds libraries as a .dll or develop my own in Go (future plan) and make the plugin use that for decompression. |
If I extract all the .iwi to .dds formats before importing the map in blender, would it work and save time? |
@GoldenBlack4 currently .dds is not supported. But I plan to support it. The fastest way will be is that when I will develop .dds support is that you convert all the .iwi files to .dds with some tool like IWI_X_DDS or IWI DDS Fast converter In the long run I want to make my own .iwi to .dds implementation that this plugin can use, so you won't need any third party tools which are not part of the plugin. |
Well thanks for your help, I'll try to import other maps hoping it doesn't
crash!
Le mar. 22 mars 2022 à 12:00, Soma Rádóczi ***@***.***> a
écrit :
… @GoldenBlack4 <https://github.com/GoldenBlack4> currently .dds is not
supported. But I plan to support it. The fastest way will be is that when I
will develop .dds support is that you convert all the .iwi files to .dds
with some tool like IWI_X_DDS
<http://www.diegologic.net/diegologic/CoD_tools/IWI%20X%20DDS.htm> or IWI
DDS Fast converter
<https://www.itsmods.com/forum/Thread-Release-IWI-DDS-Fast-Converter-V1-40.html>
In the long run I want to make my own .iwi to .dds implementation that
this plugin can use, so you won't need any third party tools which are not
part of the plugin.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOL6W73TBTZMFAV3ANGXWZ3VBGR6NANCNFSM5NNVEAKQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Just did a new release which should fix the errors mentioned above and added .dds support. Make sure to reextract the game files to have the exact same structure as they have in the .iwd files. |
Hello,
I'm using the latest Blender version. Map geometry seems to load fine, but I do not ever get any textures or models. The same game folder works with your other plugin. What am I doing wrong?
The text was updated successfully, but these errors were encountered: