|
 |
« Reply #1167 on: May 17, 2011, 03:26:02 AM » |
|
well, here's an issue I'm having :/
['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '36', '6', '', '', '14852', '', '', '', '', '', '']
it's seeming to only read the first facepoint value
I've almost got it fully working (for model progress (not materials or anything else)) it reads the verts and other vectors just fine  that's the only error I'm having so far...
it's a simple fix... just need to seek to the current facepoint before reading it... XD
EDIT: hmm... maybe this fix isn't quite as simple as I thought... ok... I'll have to redo every function and add a few vars, but it should work 
|
|
« Last Edit: May 17, 2011, 03:27:06 AM by Tcll »
|
Logged
|
|
|
|
|
|
 |
« Reply #1168 on: May 17, 2011, 03:47:16 AM » |
|
I'll just leave this here 
['', '', '', '', '', '', '', '', '', '211', '1167', '', '', '6', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '40', '1210', '', '', '27', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '21', '1166', '', '', '5', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '42', '1213', '', '', '31', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '42', '1213', '', '', '31', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '210', '1211', '', '', '28', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '40', '1210', '', '', '27', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '39', '1209', '', '', '34', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '40', '1210', '', '', '27', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '38', '1208', '', '', '35', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '211', '1167', '', '', '6', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '32', '1168', '', '', '22', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '13', '1', '', '', '53252', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '27', '1', '', '', '9220', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '400', '1', '', '', '8964', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '26', '1', '', '', '8708', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '25', '1', '', '', '8196', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '24', '1', '', '', '8708', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '25', '1', '', '', '8452', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '34', '1', '', '', '8708', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '25', '1', '', '', '2820', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '10', '1', '', '', '8708', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '25', '1', '', '', '54788', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '43', '1', '', '', '9220', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '400', '38913', '', '', '13056', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '3077', '38913', '', '', '2560', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '6149', '42753', '', '', '4096', '', '', '', '', '', ''] ['', '', '', '', '', '', '', '', '', '54021', '43521', '', '', '4608', '', '', '', '', '', ''] Traceback (most recent call last): File "C:\model_convert\UMC_v2.6b.pyw", line 154, in <module> for module in imported_modules: module.impt(imfl,imkey,debug)#import File "C:\model_convert\plugins\melee_dat.py", line 268, in impt if (node[1]).split('_')[2] == 'joint': JOBJ(node[0]) File "C:\model_convert\plugins\melee_dat.py", line 230, in JOBJ if data != 0: DOBJ(data) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 208, in DOBJ if next != 0: DOBJ(next) File "C:\model_convert\plugins\melee_dat.py", line 210, in DOBJ if polygon != 0: POBJ(polygon) File "C:\model_convert\plugins\melee_dat.py", line 140, in POBJ fp4,l4 = facepoint(attr,pos); pos += l4 File "C:\model_convert\plugins\melee_dat.py", line 110, in facepoint verts.append(vector(vinput+(int(vert)*vstride),vdtype,vmult,3)) File "C:\model_convert\plugins\melee_dat.py", line 56, in vector if vec == 3: return [str(NC.GXCDEF(dtype,mult,fr)),str(NC.GXCDEF(dtype,mult,fr)),str(NC.GXCDEF(dtype,mult,fr))] File "C:\model_convert\plugins\NtdoCmn.py", line 14, in GXCDEF if dtyp==3 :return C.rsi(fr.read(2))/pow(float(2),mult) #fixed point si16 File "C:\model_convert\plugins\Cmn.py", line 13, in rsi def rsi(this): return int(long(this.encode('hex'),16)-2**32) #return a signed 8bit, 16bit, or 32bit int ValueError: invalid literal for long() with base 16: ''
still not quite reading properly 
EDIT: sry for 0% explanation XD
that above would be Pichu's face data
the error exists because of a mis-read index >_>
to get the verts you need, you have to search for them using the index from the faces...
vinput+(vert*vstride) would take you to the exact offset of the current vert
'vinput' is the data offset to the vert data 'vert' is the current vert index 'vstride' is the length of the vert data (for a single vert)
so yeh... it's reading from over the end of the data stream... heh
|
|
« Last Edit: May 17, 2011, 03:56:28 AM by Tcll »
|
Logged
|
|
|
|
|