AvatarImporter
Posted: Sat Jul 09, 2016 6:16 pm
How to use this blender script to load Avatar *.xbg models ??
Susposed you mean the script Avatar.py from the post as of Sun May 23, 2010 1:59 pm (updated last year) in your linked threadrobertshatty wrote:How to use this blender script to load Avatar *.xbg models ??
When using Win7 and higher you might be required to copy the newGameLib folder into the folder where the blender.exe resides.How use:
1. install Blender version 249b and Python version 26
[unzip Avatar[PC].zip]
2. doubleclick file "Blender[...].blend"
3. press alt+p in Blender Text Window and select [a model file]
Code: Select all
ImportError : No module named newGameLib
Code: Select all
Compiled with Python version 2.6.2.
Checking for installed Python... got it!
--------------------------------------------------
--------------------------------------------------
E:\\James Cameron AVATAR THE GAME\ExtractPAK\gra
phics\av_vehicles_corp\scorpion\scorpion_pilotable.xbg
--------------------------------------------------
--------------------------------------------------
chunk: LTMR 44 (1, 425)
E:\\James Cameron AVATAR THE GAME\ExtractPAK\GRA
PHICS\_MATERIALS\SDORE-M-2009032051553103.xbm
DiffuseTexture1
0 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\dove_drivable\_textures\vehicle_light_halo_d.dds
E:\\James Cameron AVATAR THE GAME\ExtractPAK\GRA
PHICS\_MATERIALS\XPERREAULT-M-2009032441852636.xbm
DiffuseTexture1
1 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\samson_01\_textures\corp_vehicle_samson_alpha.dds
SpecularTexture1
1 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\samson_01\_textures\corp_vehicle_samson_alpha_s.dds
ReflectionTexture
1 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_environment\_rainforest\cubemap\rf_cm_sharp_01.dds
E:\\James Cameron AVATAR THE GAME\ExtractPAK\GRA
PHICS\_MATERIALS\XPERREAULT-M-2009060861432108.xbm
DiffuseTexture1
2 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\scorpion\_textures\corp_scorpion_01_cockpit_unlit.dds
E:\\James Cameron AVATAR THE GAME\ExtractPAK\GRA
PHICS\_MATERIALS\DLAJEUNESSE-M-2008080652289381.xbm
DiffuseTexture1
3 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\scorpion\_textures\corp_scorpion_gun_d.dds
NormalTexture1
3 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\scorpion\_textures\corp_scorpion_gun_n.dds
E:\\James Cameron AVATAR THE GAME\ExtractPAK\GRA
PHICS\_MATERIALS\JDAPRATO-M-2008090532566174.xbm
DiffuseTexture1
4 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\samson_01\_textures\corp_samson_01_helix_d.dds
NormalTexture1
4 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\samson_01\_textures\corp_samson_01_helix_n.dds
E:\\James Cameron AVATAR THE GAME\ExtractPAK\GRA
PHICS\_MATERIALS\DLAJEUNESSE-M-2008072260204500.xbm
DiffuseTexture1
5 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\scorpion\_textures\corp_scorpion_01_d.dds
SpecularTexture1
5 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\scorpion\_textures\corp_scorpion_01_s.dds
NormalTexture1
5 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_vehicles_corp\scorpion\_textures\corp_scorpion_01_n.dds
E:\\James Cameron AVATAR THE GAME\ExtractPAK\GRA
PHICS\_MATERIALS\DPAYNE-M-1812200841647821.xbm
DiffuseTexture1
6 E:\\James Cameron AVATAR THE GAME\ExtractPAK\g
raphics\av_weapons\corp\_textures\iconic_grey_d.dds
chunk: EDON 469 (1, 2930)
chunk: MB2O 3399 (1, 152)
chunk: DIKS 3551 (1, 224)
chunk: DNKS 3775 (1, 5660)
chunk: SDOL 9435 (1, 768549)
Traceback (most recent call last):
File "Avatar.py", line 263, in Parser
xbgParser(filename,g)
File "Avatar.py", line 192, in xbgParser
if chunk == 'SDOL':SDOL(g)
File "Avatar.py", line 29, in SDOL
g.seek(t+indiceSectionSize*2)
File "D:\python\WatchDogs-2014-06-25\newGameLib\myLibraries\binaresLib.py", li
ne 312, in seek
IOError: [Errno 22] Invalid argument