XSF CONVERSION EDITOR FOR SKETCHUP TO IMVU USERS
If after reading this file you find you want to try it
Here are the locations of the files you will need to run this program
The Quick basic program
Can be found and can be downloaded from here
Get Qbasic here
The file XSFNEWST3.TXT is found here:
XSFNEWST3.TXT
And the file header.txt is found here:
header.txt
These files are intended for use by those individuals who are currently using Sketchup
for their room development.
And addresses problems that I discovered while developing with it
All the information and programs are based on Sketchup to IMVU file formats only
Let me first state that I use the following conventions when naming my seating nodes
1: I make my seating roots unique when I put them into my Sketchup mesh
Naming them with "Root#(the angle they are at) and Either an "R" for right rotation or
"L" for Left rotation
IE... "Root#30R" for right 30 degrees or "Root#30L" for left 30 degrees
If you have more than 1 seating node with the same rotation just put any letter "a thru z"
behind the "R" or "L"
But DO NOT REPEAT THE "R" OR "L"
This effectively would give you about 9000 possible seating node locations
IE..."Root#30Ra" for right 30 degrees or "Root#30Lb" for left 30 degrees
2: All Furniture nodes are named "Root"
Regardless of whether they are wall, ceiling or other node types
This make sure that they are treated as furniture nodes
I have the ability to separate they built into the program but have not implimented it as of this time
Because of the complexity of the programming involved with the extra handling needed
Although I am currently working on a version for Blender users, Jazzkat's tutorial and
instructions found on his site for creating seating and furniture nodes and xsf files
are more effective for your use with blender
While I have made every attempt to debug the program.
You may encounter problems I did not anticipate.
Therefore, use of this program is at your own risk
I make no warranty as to it's effectiveness for your particular use
I Do give you permission to edit, revise, and use the associated files for your personal
use
!!! THIS IS A FREEWARE AND OPEN SOURCE PROGRAM !!!
But Please give me credit if you do revise and update it
And request that if you do so, please send me a copy of the revisions you made
Thanks;
Tanya AKA LadyQuestio
After unzipping and installing Qbasic, copy the following files to this directory;
XSFNEWST3.txt to c:\BC7\BIN then rename it XSFNEWST3.BAS
Copy "header.txt" to "c:\xsfconvt"
This will make it easier to run using the QBF.PIF File (Program information file)
Then make a directory named "c:\xsfconvt"
Make a copy of your XSF file and paste it into "c:\xsfconvt"
and shorten its name to 8 characters or less
example: IF YOUR XSF FILE IS NAMED Supercalafragilisticexpealadocious.xsf
THE NAME TO BE USED HAS TO BE LESS THEN 8 characters LONG, SO RENAME IT "supercal.txt"
By doing this step will save you some typing when you run the program
Here are the steps to run these programs:
1: Click on the START button in the lower left corner of Windows
2: Click on Run and select c:\bc7\bin\QBX.PIF
3: From the file menu select open program
4: Select XSFNEWST3
bas and press OK
5: Go to the line between this example
'INPUT " Enter file name to convert "; a$
'***** Change the file name below to your xsf file name *****
a$ = "c:\xsfconvt\******andgle.******" <<<<<<< Change this line
'***** the above name was used for testing purposes ******
'*********** Edit above name to your xsf file
and follow the directions there
Once you have changed the name in that line
Press f5 to start
When it finishes press a key to exit the program
Now I advise that you look at the files named Finalver.TXT
This is the finished and changed xsf file.
Which can be used as is or renamed to suit your need when you use previewer
It is found in the c:\XSFCONVT directory
Do any editing necessary to the names of the nodes
Remember the following:
These assumptions were made in writing these programs
1: All Files are found in the "C:\xsfconvt" Directory
2: That you did not put the skeleton node or camera nodes into your file
3: You make your seating roots unique when you put them into my Sketchup mesh
Naming them with "Root#(the angle they are at) and Either a Capital "R" for right rotation
or a Capital "L" for Left rotation
If you have more than 1 seating node with the same rotation just put any letter "a thru z"
behind the "R" or "L"
But DO NOT REPEAT THE "R" OR "L"
This effectively would give you about 9000 possible seating node locations
IE..."Root#30Ra" for right 30 degrees or "Root#30Lb" for left 30 degrees
It and the structure immediately following though the will be deleted
And the rest of the structure following is for seating will be preserved
Being temporarily replaced by a comment line that has the correct angle in it
By the way I caught the problem of multiple roots with the same angle this morning and
corrected the files with just 1 key stroke
Adding the a,b,c,... to the root name
( HMMMM...)
4: All Furniture nodes are named "Root". Regardless of whether they are wall, ceiling or other node types
This make sure that they are treated as furniture nodes
When it finishes press a key to exit the program
Now I advise that you look at the files named FINALVER.TXT found in the c:\XSFCONVT directory
Check to make sure your special nodes and other nodes are still there
A simple search will help you find them for you
Do any editing necessary to the names of the nodes
AND YOU CAN RENAME IT BACK TO YOUR ORIGINAL FILE NAME
Done
I HOPE THIS HELPS MAKE YOUR JOB EASIER
LET ME KNOW OF ANY BUGS OR SUGGESTIONS FOR CHANGES
************** PROGRAM DESCRIPTION AND INFORMATION ****************
The program has hard coded into it several file names, locations and limits
They are as follows:
Lines limit is unlimited
Each node requires 8 lines of coding plus any number of extra lines
for each furniture node
With 237 nodes before editing my test file had 7286 lines of code
After removing the excess line 1228 lines and
then putting back the 1402 lines
A difference of over 5000 lines of code to look at
And before the editing the size was 208 kilobytes after 63.8 kilobytes
This is a space saving of over 144 kilobytes of memory
Every Furniture node you have before using the Sketchup to IMVU converter
will increase the number of lines exponentially
That is to say if you have 100 furniture nodes you will have over
10,000 lines of code added to you file on conversion
EVERY node repeats the previous nodes childid lines
and adds 1 more to the file
I have tested it with over 4000 furniture nodes and it does make a BIG difference
Just a side note: Who would want to hand edit 4000 nodes? Not me!
And I am sure not you
Also the saving in space means I can do more with my room
Program name: XSFNEWST3.BAS
It will strip off the extra tabs and lines and sort out whether a node is for furniture, or seating
Before running the program make a Directory named "c:\xsfconvt"
Make a copy of your XSF file to it and shorten its name to 8 characters or less
example: Supercalafragilisticexpealadocious.
It has to be less than 8 characters so name it supercal.
By doing this step will save you some typing when you run the program
Go to the line in the program between this example
'INPUT " Enter file name to convert "; a$
'***** Change the file name below to your xsf file name *****
a$ = "c:\xsfconvt\******andgle.xsf******" <<<<<<< Change this line
'***** the above name was used for testing purposes ******
'*********** Edit above name to your xsf file
File locations: The files are located in the C:\xsfconvt directory
File name: Header. This file contains the skeleton node and camera nodes for use
The skeleton node is fixed at the 0 x , 0 y, and 0 z locations with no rotation set
Do not erase this file! It is important
Temporary files that can be deleted, these files will be overwritten if the program is rerun
File name: SSEATING.TXT
Will contain only seating nodes information once separated from main (original) XSF file
File name: s4kating.TXT
Will contain only seating nodes information once separated from main (original) XSF file
With the remarks line for the angle of your rotation
File name: FURNIT.TXT
Will contain Furniture, Wall and Ceiling nodes information
File name: ALMOST.TXT
This file contains the combined files
Header.TXT
SSEATING.TXT
FURNIT.TXT
It has all of your roots and nodes from the original XSF file but without the extra SEATING.ROOT nodes
Without the unnecessary lines of code
The correct number of nodes are added using the second program
File Name: IDOOTIT.TXT
This file has the renumbered Nodes but not the correct number of nodes
The second portion of the program that reads the file and
puts in the correct number of lines and changes the counters to does this reflect this figure
It also changes the line to reflect the parent as being the first node
File name: FINALVER.XSF
This is the finished version of the compressed and changed file
It contains the correct number of lines
And the correct NUMBONES and NUMCHILDS counters
This is all there is to saving yourself hours of hand editing,
and trying to figure out how to set the rotations and nodes correctly
I Truly hope it will make the job of making rooms for IMVU easier for you
LadyQuestio AKA Tanya (cruisemisty@lycos.com)