SH3F file TROUBLE!!!

This topic has been viewed 4279 times and has 3 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
MrME
Posts: 13
Joined: Sat Jan 09, 2010 7:11 pm
Country: Tyumen, Russia
Contact:

SH3F file TROUBLE!!!

Post by MrME »

Hi! I tried to create my own furniture catalog. I've made a ZIP file that contains PluginFurnitureCatalog.properties and PluginFurnitureCatalog_ru.properties; PNG prewiews of models and 3ds models in subfolders. Archiver is WinRAR 3.71. When I put the file into furniture directory and run the app... nothing happens :( Can anybody have a glance ans say, what's wrong???

P.S. Can I attach an example of my library? It's 60 KB only!
User avatar
alied
Posts: 40
Joined: Tue Sep 08, 2009 9:53 pm
Country: Rosario, Santa Fe, Argentina

Re: SH3F file TROUBLE!!!

Post by alied »

Hi, Maybe the problem is the compressing algorithm. sh3f files are standard zip files. Ensure Winrar to use deflate algorithm. Just in case, use the jar utility (it comes with the JRE) for help, go to the command prompt and type

Code: Select all

jar
Help should be printed.
This is an example of a .cmd file to jar a directory:

Code: Select all

set DIRECTORY="your_directory/"
set FURNITURE_FILE=my_furniture.sh3f
jar -cvfM %FURNITURE_FILE% -C %DIRECTORY% .
copy this code to a text editor and save it on your furniture directory's parent with .cmd extension. Edit your directory and furniture file, then double click on it.
please answer if it worked
Good luck!
User avatar
MrME
Posts: 13
Joined: Sat Jan 09, 2010 7:11 pm
Country: Tyumen, Russia
Contact:

Re: SH3F file TROUBLE!!!

Post by MrME »

Thank you for the answer.
I've resolved aforementioned problem by carefully examining my PluginFurnitureCatalog.properties. Models' dimensions in my file were starting with a capital letter ("Width" etc.). And it was the evil's root :)
User avatar
alied
Posts: 40
Joined: Tue Sep 08, 2009 9:53 pm
Country: Rosario, Santa Fe, Argentina

Re: SH3F file TROUBLE!!!

Post by alied »

well...
that works too ;-)
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest