Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 677 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Loading .t6 history in C++ #486343
08/03/22 18:29
08/03/22 18:29
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
Hello, wanted to ask if I could find out exactly what is in those .t6 files. The T6 struct is included in one of the headers, but how are structs encoded in the binary files? A simple array, or a vector or something else? It would be nice if I could load them directly in my own C++ code instead of converting them to CSV before reading them again.

Re: Loading .t6 history in C++ [Re: MegaTanker] #486344
08/03/22 18:42
08/03/22 18:42
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
It’s nothing more than an array of T6 structs, sorted from newest (position 0) to oldest (position N-1).

Struct alignment can be 4 or 1.

Re: Loading .t6 history in C++ [Re: MegaTanker] #486345
08/03/22 19:52
08/03/22 19:52
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
Got it, will try that, thanks.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1