MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

GMDC importer/exporter for Blender

by DjAlex88 Posted 13th Feb 2016 at 7:04 PM
19 Comments / replies (Who?) - 11 Feedback Posts, 7 Thanks Posts
The project is on GitHub: https://github.com/djalex88/blender-gmdc/. The purpose of this project is to create a GMDC exporter for a free open-source yet powerful 3D modelling software, Blender.
This tool works on Blender 2.49b. For the latest version of Blender it will be available soon (maybe).
It can import/export rigging data, morphs, as well as bounding geometry.

Morphs are imported/exported as shape keys.


Blender uses vertex groups to assign bone influences. The importer names vertex groups so that a name includes bone index (after '#' symbol). Then the exporter uses this indices. Therefore, it is important not to rename vertex groups.

Also, this tool can export only one UV layer. Some meshes have more than one UV layers, particularly, faces. If you export face mesh, then your character's eyes won't be moving. However, this issue may be overcome by using a simple python script (contact me).

Installation instruction:
1. Download and install Blender2.49b (https://download.blender.org/release/Blender2.49b/)
2. Unpack files into Blender's scripts directory, for example, "C:\Users\<username>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\".

Note. Tested only with objects from TS2, EP1, EP2, EP3.

Hope, you find it useful.
Tags: #Blender, #importer, #exporter, #GMDC, #morps, #UV, #mesh, #sims

Operating System: Windows
Utility Type: Meshing Tools
Plugin Type: Blender

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

Sims 2
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
blender-gmdc_2016-02-12.zip

Size: 35.0 KB · Downloads: 646 · 13th Feb 2016
35.0 KB 646 13th Feb 2016
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:

1. Download: Click the download link to save the .rar or .zip file(s) to your computer.

2. Extract the zip, rar, or 7z file.

3. Place in Downloads Folder: Cut and paste the .package file(s) into your Downloads folder:
  • Origin (Ultimate Collection): Users\(Current User Account)\Documents\EA Games\The Sims™ 2 Ultimate Collection\Downloads\
  • Non-Origin, Windows Vista/7/8/10: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads\
  • Non-Origin, Windows XP: Documents and Settings\(Current User Account)\My Documents\EA Games\The Sims 2\Downloads\
  • Mac: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads
  • Mac x64: /Library/Containers/com.aspyr.sims2.appstore/Data/Library/Application Support/Aspyr/The Sims 2/Downloads
Need more information?
 
19 Comments / Replies (Who?) - 10 Feedback Posts, 7 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Instructor
THANKS POST
#2 Old 13th Feb 2016 at 10:39 PM
Ouah ! I'm the first to comment and I'm so glad to do so.
THANKS !!!!
It's so hard to fight with Sims 2 files when you don't have Milkshape3D.
It's a wonderfull addition to meshing.

Now I'm starting to hope again that someone will do something for animation importer one day....

Thanks again for the hard work.
Test Subject
THANKS POST
#3 Old 14th Feb 2016 at 12:06 AM
Thank you! I'm gonna wait for the latest blender version, it is so much easier than Milkshape, I've been waiting for this since so long.
Theorist
THANKS POST
#4 Old 14th Feb 2016 at 12:42 AM
Thank you.
Test Subject
THANKS POST
#5 Old 14th Feb 2016 at 8:16 AM
I am most certainly adding my gratitude to the list of Blender users here. I could never get my head around Milkshape. This is a much needed tool and I thank you so very much for creating it.
Test Subject
DELETED POST
16th Feb 2016 at 8:50 AM
This message has been deleted by meshulator.
Lab Assistant
THANKS POST
#6 Old 17th Feb 2016 at 4:52 PM
Thank you.
Lab Assistant
THANKS POST
#7 Old 19th Feb 2016 at 12:47 PM
Thank You! I work in Blender and it is cool to have more tools working with it :) Hope You will work on a version for new Blender too :)
Test Subject
#8 Old 27th Feb 2016 at 10:41 AM
Hello! I have installed Blender 2.49b, and this plugin does not work (Python error check the console). Python installed (version 2.6.2.). What am I doing wrong?
Test Subject
Original Poster
#9 Old 28th Feb 2016 at 7:00 PM
Quote:
Originally Posted by Lady_Nana
Hello! I have installed Blender 2.49b, and this plugin does not work (Python error check the console). Python installed (version 2.6.2.). What am I doing wrong?

Hi! Can I see Blender console's screenshot with the error's details?
Test Subject
#10 Old 29th Feb 2016 at 7:35 PM
Quote:
Originally Posted by DjAlex88
Hi! Can I see Blender console's screenshot with the error's details?

Is it?
Test Subject
Original Poster
#11 Old 29th Feb 2016 at 10:49 PM
Quote:
Originally Posted by Lady_Nana
Is it?

No. This:
Screenshots
Test Subject
#12 Old 1st Mar 2016 at 11:34 AM
Quote:
Originally Posted by DjAlex88
No. This:

Ahh, sorry. Here.
Test Subject
Original Poster
#13 Old 1st Mar 2016 at 7:20 PM
Ok. Copy files into scripts folder (no subdirs):
..\.blender\scripts\gmdc_import.py
..\.blender\scripts\gmdc_export.py
..\.blender\scripts\gen_footprint.py
..\.blender\scripts\gmdc_tools\
Test Subject
#14 Old 19th Jan 2017 at 3:00 AM
Thank you, and a Question
Hi DjAlex88!

Thank you so much for sharing your GMDC importer/exporter with us! I was able to get the script to load in blender, but whenever I try to use it I get this error: "Could not load geometry file. See log for details". Then when I check the log, I get this:

==Geometry Data Container Importer======
GMDC file: C:\Users\HOME\Desktop\GMDC\AC4F8687-hair.5gd
CRES file: C:\Users\HOME\Desktop\GMDC\E519C933-hair.5cr
Settings:
--Import bounding geometry: 0
--Remove doubles: 1
--Import all bones: 0

Opening GMDC file "C:\Users\HOME\Desktop\GMDC\AC4F8687-hair.5gd"...
Linked resources (0):
Number of nodes: 1
LookupError("no codec search functions registered: can't find encoding",)
--Function: "begin_import" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_import.py", line: 430
--Function: "load_resource" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_resfile.py", line: 652
--Function: "load" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_resfile.py", line: 531
--Function: "_load_resource" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_resfile.py", line: 596
--Function: "read" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_gmdc.py", line: 83
--Function: "_read_cSGResource" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_node.py", line: 114
--Function: "read_str" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_common.py", line: 80
========================================================================================================
Any advice would be greatly appreciated; I think this is a really amazing tool and I'd really love to use it! :D
Test Subject
THANKS POST
#15 Old 10th Feb 2017 at 2:34 PM
Thank you :)
Test Subject
Original Poster
#16 Old 4th Apr 2017 at 10:48 PM
Hello!
Installing Python2.6 should fix this problem. (https://www.python.org/download/releases/2.6.6/)
Quote:
Originally Posted by WickedPrinceGui
Hi DjAlex88!

Thank you so much for sharing your GMDC importer/exporter with us! I was able to get the script to load in blender, but whenever I try to use it I get this error: "Could not load geometry file. See log for details". Then when I check the log, I get this:

==Geometry Data Container Importer======
GMDC file: C:\Users\HOME\Desktop\GMDC\AC4F8687-hair.5gd
CRES file: C:\Users\HOME\Desktop\GMDC\E519C933-hair.5cr
Settings:
--Import bounding geometry: 0
--Remove doubles: 1
--Import all bones: 0

Opening GMDC file "C:\Users\HOME\Desktop\GMDC\AC4F8687-hair.5gd"...
Linked resources (0):
Number of nodes: 1
LookupError("no codec search functions registered: can't find encoding",)
--Function: "begin_import" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_import.py", line: 430
--Function: "load_resource" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_resfile.py", line: 652
--Function: "load" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_resfile.py", line: 531
--Function: "_load_resource" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_resfile.py", line: 596
--Function: "read" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_gmdc.py", line: 83
--Function: "_read_cSGResource" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_node.py", line: 114
--Function: "read_str" in "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\gmdc_tools\_common.py", line: 80
========================================================================================================
Any advice would be greatly appreciated; I think this is a really amazing tool and I'd really love to use it! :D
Test Subject
#17 Old 8th Apr 2017 at 7:55 PM
Quote:
Originally Posted by DjAlex88
Hello!
Installing Python2.6 should fix this problem. (https://www.python.org/download/releases/2.6.6/)


Thank you so much; it works now! ^-^
Lab Assistant
#18 Old 2nd Feb 2018 at 11:06 PM
Hi! I've got an error and I hope someone might be able to help me with it. Every time I try to use GMDC tools, I get check console error. And here's console output:
"Compiled with Python version 2.6.2.
'import site' failed; use -v for traceback
Checking for installed Python... No installed Python found.
Only built-in modules are available. Some scripts may not run.
Continuing happily.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\username\Desktop\blender-2.49b-windows\.blender\scripts\gmdc_import
.py", line 31, in <module>
from gmdc_tools import *
File "C:\Users\username\Desktop\blender-2.49b-windows\.blender\scripts\gmdc_tools\
__init__.py", line 23, in <module>
from ._common import log, error, set_log_file, close_log_file, chunk, to_he
x, print_last_exception
File "C:\Users\username\Desktop\blender-2.49b-windows\.blender\scripts\gmdc_tools\
_common.py", line 23, in <module>
from __future__ import print_function, division
ImportError: No module named __future__"
Thanks in advance!
Test Subject
#19 Old 11th Mar 2018 at 3:16 PM
Hello I dont know if you've completely abandoned this but Im really desperate for an importer for 2.79 can you direct me to where i can go so I can learn how? I know it wont be easy