Tcll
Smash Lord
just brushing off the cob-webs to boot this thread back up...
I've been working on a function that deals with writing both the vectors and the transforms to my TMP,
and then a function that deciphers them and returns the data as how you sent it
the function works, but only just...
it doesn't test the data it's reading to make sure it's reading the right data...
it only just reads the data assuming it's correct >_>
that would most likely only be about 70% accurate compaired to other things it may run across that would cause it to return an error even though the data is correct...
here's a session in it's current state:
>>>
>>> setWrite()
tmp set to write
>>> setVector([[1,1,1],[1,1,1]],0,0,0,0)
'vertices ' Vectors for object 0 logged successfully
>>> setVector([[2,2,2],[2,2,2]],0,1,0,0)
'vertices ' Transform vectors for object 0 logged successfully
>>> closeWrite()
tmp sucessfully closed
>>> setRead()
tmp set to read
>>> getVector(0,0,0,0)
'vertices' Vectors for object 0 returned sucessfully
[['1.0', '1.0', '1.0'], ['1.0', '1.0', '1.0']]
>>> getVector(0,1,0,0)
'vertices' Transform vectors for object 0 returned sucessfully
[['2.0', '2.0', '2.0'], ['2.0', '2.0', '2.0']]
>>> closeRead()
tmp sucessfully closed
>>>
again... this only just works...
there's no garuntee you won't get an error...
EDIT:
this is the data as it looks in the TMP:
< vertices 0 1.0|1.0|1.0/1.0|1.0|1.0
< transform vertices 0 2.0|2.0|2.0/2.0|2.0|2.0
just so you get a better view of things
I've been working on a function that deals with writing both the vectors and the transforms to my TMP,
and then a function that deciphers them and returns the data as how you sent it
the function works, but only just...
it doesn't test the data it's reading to make sure it's reading the right data...
it only just reads the data assuming it's correct >_>
that would most likely only be about 70% accurate compaired to other things it may run across that would cause it to return an error even though the data is correct...
here's a session in it's current state:
>>>
>>> setWrite()
tmp set to write
>>> setVector([[1,1,1],[1,1,1]],0,0,0,0)
'vertices ' Vectors for object 0 logged successfully
>>> setVector([[2,2,2],[2,2,2]],0,1,0,0)
'vertices ' Transform vectors for object 0 logged successfully
>>> closeWrite()
tmp sucessfully closed
>>> setRead()
tmp set to read
>>> getVector(0,0,0,0)
'vertices' Vectors for object 0 returned sucessfully
[['1.0', '1.0', '1.0'], ['1.0', '1.0', '1.0']]
>>> getVector(0,1,0,0)
'vertices' Transform vectors for object 0 returned sucessfully
[['2.0', '2.0', '2.0'], ['2.0', '2.0', '2.0']]
>>> closeRead()
tmp sucessfully closed
>>>
again... this only just works...
there's no garuntee you won't get an error...
EDIT:
this is the data as it looks in the TMP:
< vertices 0 1.0|1.0|1.0/1.0|1.0|1.0
< transform vertices 0 2.0|2.0|2.0/2.0|2.0|2.0
just so you get a better view of things