So the entries in the file look correct, but when I import the .sh3f file into SH3D, they show up incorrectly.
I'm not sure if I understand your second question. What I did with the libraries was: - download zip file to external drive - unzip file to external drive - make modifications via FurnitureLibraryEditor-1.25.jar - save modified file with a different name on external drive - double-click modified .sh3f file to import it into SH3D
US
Joined: Feb 27, 2014
Post Count: 87
Status:
Offline
Re: Problems with categories in BlendSwap-CC-0 furniture library
Ok, maybe we're getting somewhere. It seems that FLE should be renumbering the entries when saving, and SH3D's reader expects to start at entry #1. I've added, subtracted, and renumbered quite a few entries in all my SH3F files, but they always get listed in numerical order, starting with #1.
Renumber your two entries so that they are listed as #1 and #2 (instead of #85 and #64), and make sure that the edited .properties file is in its correct place in the furniture folder hierarchy, and pull up SH3D again. EDIT: also remove the # in front of the ID line, so that it reads: id=SweetHome3D#BlendSwap-CC-0-Models SH3D may need that ID line, but the # renders it as a comment line.
Does this fix it?
----------------------------------------
[Edit 1 times,
last edit by harbinger at Sep 8, 2020, 4:49:29 PM]
US
Joined: Feb 27, 2014
Post Count: 87
Status:
Offline
Re: Problems with categories in BlendSwap-CC-0 furniture library
Ok, I can verify the problem is not with the numbering. I opened CC-0 with FLE, added and applied a new category to one furniture entry, saved it with the same path name, opened the modified .properties file and verified the category for that entry was indeed changed, opened the SH3F file in SH3D, and saw that the new category was not applied. IOW, I replicated ninja's problem.
US
Joined: Feb 27, 2014
Post Count: 87
Status:
Offline
Re: Problems with categories in BlendSwap-CC-0 furniture library
GOOD NEWS!
I figured out the problem. I thought it was odd that the ID of each entry in the .properties file contained the name of the BlendSwap file within the ID, but this wasn't the case for the other sh3f .properties files. So on a hunch, I took that out of the ID text and left the id name, checked it in SH3D, and sure enough that was the problem.
So here's how you fix it: 1. Open BlendSwap-CC-0.sh3f with 7-zip, or some other decompression program. 2. Extract the file PluginFurnitureCatalog.properties onto your desktop. 3. Open the file with a text editing program like Notepad, and do a Find/Replace. 4. In the Find field, enter Blend Swap CC-0# and mind the spaces and trailing pound sign. Replace all instances. You should notice this text disappear from the id= lines of each furniture entry. 5. Save the file and put it back into the SH3F archive. Close the archive. 6. You can then make changes with FLE, then open it directly with SH3D. The new categorization should be correct.
I don't know why the SH3F reader in Sweet Home would treat an edited file that way, but at least it's there if we need it.
If all goes well, consider this thread [RESOLVED]!
Joined: Aug 23, 2020
Post Count: 9
Status:
Offline
Re: Problems with categories in BlendSwap-CC-0 furniture library
Wow, thank you for your tests harbinger!
Unfortunately I didn't get the same results...
I followed your steps exactly with my modified file and also removed the extra # in front of "id=SweetHome3D#BlendSwap-CC-0-Models", but I still get the same behavior. Then I took the original file and did exactly the same steps, but it still didn't work correctly.
I then compared another modified file (from BlendSwap-CC-BY) that imported correctly and this is what it shows:
# # PluginFurnitureCatalog.properties Sun Aug 23 09:24:06 EEST 2020 # Generated by Furniture Library Editor #
So they look similar when modified but one imports correctly while the other doesn't...
@harbinger: Could you post the start of your modified BlendSwap-CC-0 file and your first entry please? Maybe I can find something in there if I compare it...
Joined: Aug 23, 2020
Post Count: 9
Status:
Offline
Re: Problems with categories in BlendSwap-CC-0 furniture library
I have found the problem!
I checked the contents of BlendSwap-CC-0.sh3f again and noticed that there is PluginFurnitureCatalog.properties but also PluginFurnitureCatalog_en_US.properties. In the en_US file, the item names + categories still had the original names and did not contain my modifications.
My Windows was set to US English, after I changed it to UK English everything was exactly where it needed to be in SH3D
Then I thought I'll try to remove the PluginFurnitureCatalog_en_US.properties file from BlendSwap-CC-0.sh3f and changed the Windows language back to US English and it worked as well. Problem resolved
Thank you so much harbinger, I would have never thought to look into the contents of the *.sh3f file!