fausto
FOI SuperMod
Hi all!
I have a little, stupid question.
I'm trying to read a VECTOR3 value from a string stored in the scenario file. Now I suppose that the procedure should be this one:
And this one:
....
....
....
VENTING1_OFS 0 12 3
...
...
,,,
is the string in the scenario file.
Unfortunatley read values are not 0, 12, 3 but some big, incredible values like 8453600000000000000.000000 and more. I realized this because i saved again these numbers in the scenario file by using oapiWriteScenario_vec (scn, "VENTING1_OFS", ex_main_a); function. This is very bad to me :shrug:
Someone can help me fixing this issue?
Thanks a lot!
I have a little, stupid question.
I'm trying to read a VECTOR3 value from a string stored in the scenario file. Now I suppose that the procedure should be this one:
Code:
void padqacont::clbkLoadStateEx (FILEHANDLE scn, void *vs)
{
char *line;
while (oapiReadScenario_nextline (scn, line)){
....
...
else if( !_strnicmp(line, "VENTING1_OFS", 12 ))
sscanf (line+12, "%1f%1f%1f", &ex_main_a_x,&ex_main_a_y,&ex_main_a_z);
......
......
.....
.....
else ParseScenarioLineEx (line, vs);
}
}
And this one:
....
....
....
VENTING1_OFS 0 12 3
...
...
,,,
is the string in the scenario file.
Unfortunatley read values are not 0, 12, 3 but some big, incredible values like 8453600000000000000.000000 and more. I realized this because i saved again these numbers in the scenario file by using oapiWriteScenario_vec (scn, "VENTING1_OFS", ex_main_a); function. This is very bad to me :shrug:
Someone can help me fixing this issue?
Thanks a lot!