Logo

CS.RIN.RU - Steam Underground Community

IRC: #cs.rin.ru at irc.rizon.net
It is currently Friday, 17 Apr 2015, 21:07

English | Русский




Post new topic Reply to topic  [ 555 posts ] 
Author Message

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 14 May 2013, 01:27   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
the new "version" format is a zip file.
the new "update" format is a custom format (to allow streamed writing and random access reading) internally called "ArchiveFile". Here is how to parse it :

  1.  
  2. typedef struct
  3. {
  4.     char * name;
  5.     ULONGLONG offset;
  6.     ULONGLONG length;
  7.     ULONGLONG compressedLength;
  8. } ArchiveEntry;
  9.  
  10. ArchiveFile::ArchiveFile(File * file) : Object()
  11. {
  12.     this->file=file;
  13.  
  14.     entries=new HashMap<char *,ArchiveEntry>(false);
  15.  
  16.     FileInputStream * in=0;
  17.     try
  18.     {
  19.         in=new FileInputStream(file);
  20.         DWORD magic=in->readInt32();
  21.  
  22.         ULONGLONG lastInt64=file->length()-sizeof(ULONGLONG);
  23.         if (in->setPosition(lastInt64)!=lastInt64) _throw(Exception,"Invalid file format");
  24.         ULONGLONG offset=in->readInt64();
  25.         if (offset>=lastInt64) _throw(Exception,"Invalid file format");
  26.  
  27.         if (in->setPosition(offset)!=offset) _throw(Exception,"Invalid file format");
  28.         if (in->readInt32()!=magic) _throw(Exception,"Invalid file format");
  29.         compressed=in->readInt8()!=0;
  30.  
  31.         init(in);
  32.  
  33.         delete in;
  34.     }
  35.     catch (Exception e)
  36.     {
  37.         if (in) delete in;
  38.         throw e;
  39.     }
  40. }
  41.  
  42. void ArchiveFile::init(InputStream * in)
  43. {
  44.     if (compressed)
  45.     {
  46.         in=new InflaterInputStream(in);
  47.     }
  48.  
  49.     DWORD entriesCount=in->readInt32();
  50.     for (DWORD ind=0;ind<entriesCount;ind++)
  51.     {
  52.         ArchiveEntry entry;
  53.  
  54.         entry.name=base_copyString(in->readString());
  55.         entry.offset=in->readInt64();
  56.         entry.length=in->readInt64();
  57.         entry.compressedLength=in->readInt64();
  58.  
  59.         entries->put(entry.name,entry);
  60.     }
  61.  
  62.     if (compressed)
  63.     {
  64.         InflaterInputStream * inflater=(InflaterInputStream*)in;
  65.         inflater->in=0;
  66.         delete inflater;
  67.     }
  68. }
  69.  
  70. InputStream * ArchiveFile::getInputStream(const char * name)
  71. {
  72.     ArchiveEntry * entry=entries->get((char*)name);
  73.     if (!entry) _throw(Exception,"Entry not found");
  74.  
  75.     InputStream * in=new FileInputStream(file);
  76.     if (in->setPosition(entry->offset)!=entry->offset) _throw(Exception,"Invalid file format");
  77.     ULONGLONG entryLength=in->readInt64();
  78.     if (entryLength!=-1L && entryLength!=entry->length) _throw(Exception,"Invalid file format");
  79.  
  80.     if (compressed) in=new InflaterInputStream(in);
  81.        
  82.     return new PartialInputStream(in,entry->length);
  83. }
  84.  


then retrieve manifest.vdf for a description of the content.


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Sunday, 26 May 2013, 10:40   
I live here Три раза сломал клаву :)
Joined: Sunday, 04 Apr 2010, 08:15
Posts: 4005
Location: Lake Karachay
Something strange happened. TINcft was working fine and now it gives me this error's.

  1. 2013/05/26 09:50:04 |  INFO | Loading ContentDescriptionRecord
  2. 2013/05/26 09:50:17 |  INFO | Loading Steam apps
  3. 2013/05/26 09:50:18 |  INFO | Loaded appmanifest_107100.acf
  4. 2013/05/26 09:50:18 | ERROR | App 107100 info is not available
  5. 2013/05/26 09:50:18 | ERROR | App 107100 info is not available
  6. 2013/05/26 09:50:18 | ERROR | App 107100 info is not available
  7. 2013/05/26 09:50:18 |  INFO | Loaded appmanifest_115100.acf
  8. 2013/05/26 09:50:18 | ERROR | App 115100 info is not available
  9. 2013/05/26 09:50:18 | ERROR | App 115100 info is not available
  10. 2013/05/26 09:50:18 | ERROR | App 115100 info is not available
  11. 2013/05/26 09:50:19 |  INFO | Loaded appmanifest_12750.acf
  12. 2013/05/26 09:50:19 | ERROR | App 12750 info is not available
  13. 2013/05/26 09:50:19 | ERROR | App 12750 info is not available
  14. 2013/05/26 09:50:20 |  INFO | Loaded appmanifest_17410.acf
  15. 2013/05/26 09:50:20 | ERROR | App 17410 info is not available
  16. 2013/05/26 09:50:20 | ERROR | App 17410 info is not available
  17. 2013/05/26 09:50:21 |  INFO | Loaded appmanifest_17460.acf
  18. 2013/05/26 09:50:21 | ERROR | App 17460 info is not available
  19. 2013/05/26 09:50:21 | ERROR | App 17460 info is not available
  20. 2013/05/26 09:50:21 | ERROR | App 17460 info is not available
  21. 2013/05/26 09:50:21 |  INFO | Loaded appmanifest_200710.acf
  22. 2013/05/26 09:50:21 | ERROR | App 200710 info is not available
  23. 2013/05/26 09:50:21 | ERROR | App 200710 info is not available
  24. 2013/05/26 09:50:21 | ERROR | App 200710 info is not available
  25. 2013/05/26 09:50:21 |  INFO | Loaded appmanifest_202170.acf
  26. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  27. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  28. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  29. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  30. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  31. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  32. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  33. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  34. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  35. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  36. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  37. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  38. 2013/05/26 09:50:21 | ERROR | App 202170 info is not available
  39. 2013/05/26 09:50:21 |  INFO | Loaded appmanifest_202970.acf
  40. 2013/05/26 09:50:21 | ERROR | App 202970 info is not available
  41. 2013/05/26 09:50:21 | ERROR | App 202970 info is not available
  42. 2013/05/26 09:50:21 | ERROR | App 202970 info is not available
  43. 2013/05/26 09:50:21 | ERROR | App 202970 info is not available
  44. 2013/05/26 09:50:21 | ERROR | App 202970 info is not available
  45. 2013/05/26 09:50:21 | ERROR | App 202970 info is not available
  46. 2013/05/26 09:50:21 | ERROR | App 202970 info is not available
  47. 2013/05/26 09:50:21 |  INFO | Loaded appmanifest_202990.acf
  48. 2013/05/26 09:50:21 | ERROR | App 202990 info is not available
  49. 2013/05/26 09:50:21 | ERROR | App 202990 info is not available
  50. 2013/05/26 09:50:21 | ERROR | App 202990 info is not available
  51. 2013/05/26 09:50:21 | ERROR | App 202990 info is not available
  52. 2013/05/26 09:50:21 | ERROR | App 202990 info is not available
  53. 2013/05/26 09:53:16 |  INFO | Loading ContentDescriptionRecord
  54. 2013/05/26 09:53:30 |  INFO | Loading Steam apps
  55. 2013/05/26 09:53:31 |  INFO | Loaded appmanifest_215530.acf
  56. 2013/05/26 09:53:31 | ERROR | App 215530 info is not available
  57. 2013/05/26 09:53:31 | ERROR | App 215530 info is not available
  58. 2013/05/26 09:53:31 |  INFO | TINcft Http Server port : 27888
  59. 2013/05/26 09:53:31 |  INFO | HTTP Server started
  60. 2013/05/26 09:53:31 |  INFO | OS : (null)
  61. 2013/05/26 09:53:44 |  INFO | HTTP Server stopped


Deleted appinfo.vdf , but its same. Program just stops working after i choose environment. Wonder what's the problem.

If i remove the .acf's giving me the error App X info is not available its working though.

_________________
Image
Visit FTS Home


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Sunday, 26 May 2013, 12:58   
Super flooder Почетный графоман
User avatar
Joined: Thursday, 04 Feb 2010, 15:35
Posts: 917
demde
Delete "TINcft.errors.db" before starting TINcft and then update AppInfo again. Sometimes this file makes troubles (I don't know why) and it isn't needed for running TINcft.

_________________
My Steam Content Mirror (PWs: cs.rin.ru)
My FTP Server (Login: ftprin, PW: cs.rin.ru)
(the files are compatible to ZippyShare, but it's very slow)


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Sunday, 26 May 2013, 16:35   
I live here Три раза сломал клаву :)
Joined: Sunday, 04 Apr 2010, 08:15
Posts: 4005
Location: Lake Karachay
Deleted it but its the same. I can't reach the place where i can update appinfo.vdf .... After i choose environment the app stops working and gives me the errors is the .log file :cry:

Is there command i can use to update appinfo.vdf trough cmd?

_________________
Image
Visit FTS Home


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Sunday, 26 May 2013, 17:07   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
Hi, i checked the code to see why you had
OS: (null)

there is a bug, i fixed it, it should have displayed "unknown".
you are on windows 8 ?

i'm surprised that the errors database is making problems. anyway as it is not very usefull , i disabled it by default.

appinfo.vdf is not required, but it may crash tincft if invalid.

try to add a file called TINcft.loggers.xml :
  1. <?xml version="1.0"?>
  2. <Loggers>
  3.   <layout>
  4.     <console class="SimpleLayout"/>
  5.     <file class="PatternLayout" pattern="%d | %5l | %m"/>
  6.   </layout>
  7.   <appender>
  8.     <console class="ConsoleAppender" color="true" layout="console"/>
  9.     <file class="FileAppender" layout="file" file="TINcft.trace.log"/>
  10.   </appender>
  11.   <logger appender="console,file" level="trace">
  12.   </logger>
  13. </Loggers>


and look if there is more details
btw, do you have he same problem if u use a fresh new install ?


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Sunday, 26 May 2013, 18:17   
Advanced forumer Завсегдатай
Joined: Tuesday, 03 Mar 2009, 19:21
Posts: 227
demde wrote:
Is there command i can use to update appinfo.vdf trough cmd?

Use "app_info_print" command in Steam client console or SteamCmd or use ACF Verifier.


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Sunday, 26 May 2013, 20:28   
I live here Три раза сломал клаву :)
Joined: Sunday, 04 Apr 2010, 08:15
Posts: 4005
Location: Lake Karachay
Hi @SteamCooker

At first yeah i'm on windows 8.
Tried that .xml file and this is the result
  1. 2013/05/26 19:48:40 |  INFO | Connecting to GDS
  2. 2013/05/26 19:48:41 |  INFO | Dowloading ContentDescriptionRecord
  3. 2013/05/26 19:48:49 |  INFO | Loading ContentDescriptionRecord
  4. 2013/05/26 19:48:58 |  INFO | Cleared Steam apps
  5. 2013/05/26 19:48:58 |  INFO | Loading Steam apps
  6. 2013/05/26 19:48:58 |  INFO | Loaded appmanifest_10.acf
  7. 2013/05/26 19:48:58 | ERROR | App 10 info is not available
  8. 2013/05/26 19:48:58 | ERROR | App 10 info is not available
  9. 2013/05/26 19:48:58 | ERROR | App 10 info is not available
  10. 2013/05/26 19:49:39 |  INFO | Loading ContentDescriptionRecord
  11. 2013/05/26 19:49:47 |  INFO | Loading Steam apps
  12. 2013/05/26 19:49:47 |  INFO | Loaded appmanifest_10.acf
  13. 2013/05/26 19:49:47 | ERROR | App 10 info is not available
  14. 2013/05/26 19:49:47 | ERROR | App 10 info is not available
  15. 2013/05/26 19:49:47 | ERROR | App 10 info is not available
  16. 2013/05/26 19:49:47 | ERROR | App 10 info is not available
  17. 2013/05/26 19:49:47 | ERROR | App 10 info is not available
  18. 2013/05/26 19:49:47 | ERROR | App 10 info is not available
  19. 2013/05/26 19:49:47 |  INFO | Loaded appmanifest_107100.acf
  20. 2013/05/26 19:49:47 | ERROR | App 107100 info is not available
  21. 2013/05/26 19:49:47 | ERROR | App 107100 info is not available
  22. 2013/05/26 19:49:47 | ERROR | App 107100 info is not available
  23. 2013/05/26 19:49:47 |  INFO | Loaded appmanifest_115100.acf
  24. 2013/05/26 19:49:47 | ERROR | App 115100 info is not available
  25. 2013/05/26 19:49:47 | ERROR | App 115100 info is not available
  26. 2013/05/26 19:49:47 | ERROR | App 115100 info is not available
  27. 2013/05/26 19:49:48 |  INFO | Loaded appmanifest_12750.acf
  28. 2013/05/26 19:49:48 | ERROR | App 12750 info is not available
  29. 2013/05/26 19:49:48 | ERROR | App 12750 info is not available
  30. 2013/05/26 19:49:49 |  INFO | Loaded appmanifest_17410.acf
  31. 2013/05/26 19:49:49 | ERROR | App 17410 info is not available
  32. 2013/05/26 19:49:49 | ERROR | App 17410 info is not available
  33. 2013/05/26 19:49:49 |  INFO | Loaded appmanifest_17460.acf
  34. 2013/05/26 19:49:49 | ERROR | App 17460 info is not available
  35. 2013/05/26 19:49:49 | ERROR | App 17460 info is not available
  36. 2013/05/26 19:49:49 | ERROR | App 17460 info is not available
  37. 2013/05/26 19:49:49 |  INFO | Loaded appmanifest_200710.acf
  38. 2013/05/26 19:49:49 | ERROR | App 200710 info is not available
  39. 2013/05/26 19:49:49 | ERROR | App 200710 info is not available
  40. 2013/05/26 19:49:49 | ERROR | App 200710 info is not available
  41. 2013/05/26 19:49:49 |  INFO | Loaded appmanifest_202170.acf
  42. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  43. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  44. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  45. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  46. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  47. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  48. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  49. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  50. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  51. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  52. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  53. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  54. 2013/05/26 19:49:49 | ERROR | App 202170 info is not available
  55. 2013/05/26 19:49:49 |  INFO | Loaded appmanifest_202970.acf
  56. 2013/05/26 19:49:49 | ERROR | App 202970 info is not available
  57. 2013/05/26 19:49:49 | ERROR | App 202970 info is not available
  58. 2013/05/26 19:49:49 | ERROR | App 202970 info is not available
  59. 2013/05/26 19:49:49 | ERROR | App 202970 info is not available
  60. 2013/05/26 19:49:49 | ERROR | App 202970 info is not available
  61. 2013/05/26 19:49:49 | ERROR | App 202970 info is not available
  62. 2013/05/26 19:49:49 | ERROR | App 202970 info is not available
  63. 2013/05/26 19:49:49 |  INFO | Loaded appmanifest_202990.acf
  64. 2013/05/26 19:49:49 | ERROR | App 202990 info is not available
  65. 2013/05/26 19:49:49 | ERROR | App 202990 info is not available
  66. 2013/05/26 19:49:49 | ERROR | App 202990 info is not available
  67. 2013/05/26 19:49:49 | ERROR | App 202990 info is not available
  68. 2013/05/26 19:49:49 | ERROR | App 202990 info is not available


At first run it gave me error only on app 10 missing and crashed. At second it gave me the rest. After that errors TINcft always crashes.
Tried completely new copy of the program even with default .ini path C:/steam, but the result is same.

If i put only 2-3 acf's its working fine. Seems some of the apps fail the program (like Half-Life , Black Ops 2 MP etc.) Have to try narrow them down to see when it will stop crashing.

_________________
Image
Visit FTS Home


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Monday, 27 May 2013, 15:40   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
well when u find it please send it to me so i can fix it :)
edit : seems to happen on windows 8 only ... i don't know why as i have no computer with that os ..


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 28 May 2013, 10:47   
Advanced forumer Завсегдатай
Joined: Saturday, 15 Dec 2007, 17:27
Posts: 58
C.J.Brad wrote:
Hi steamCooker!

I am having problems, running the latest version under XP SP3 (32bit). Strange thing is it doesn't even crash, it simply exits right after launching (process barely shows up in task manager, I can only see it in process monitor log). Completely new & empty folder, just the executable & an unmodified ini file. Have you dropped XP support (it's OK under win7), or am I missing something?


i have this problem too and i did not find any way to fix this
is there any way to fix this ?


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 28 May 2013, 12:59   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
hum yeah i've been using some vista minimum stuff i think ...
i 'm not sure which one in fact ... if really required, i can check if possible to disable those in order to be able to run on xp ...


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 28 May 2013, 13:28   
Advanced forumer Завсегдатай
Joined: Saturday, 15 Dec 2007, 17:27
Posts: 58
steamCooker wrote:
hum yeah i've been using some vista minimum stuff i think ...
i 'm not sure which one in fact ... if really required, i can check if possible to disable those in order to be able to run on xp ...


i appreciate it if you can since i don't have win 7 on my system


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 28 May 2013, 14:37   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
the crash is cause it seems to call a kernel function "GetTickCount64" .
but i'm never calling it ...
it seems to come from the MCF part :(
in other words i don't know how to fix that. sorry


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 28 May 2013, 16:14   
Advanced forumer Завсегдатай
Joined: Saturday, 15 Dec 2007, 17:27
Posts: 58
are you compiling your project in VS2012 ?
i saw an update that will allow you to compile your file with XP Compatibility


Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 28 May 2013, 20:33   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
yes i seen that while searching about that function ... but i'm using VC++2010

sisInstall works on XP, so it must come from MFC ...
i'm currently building the MFC less version (same as on linux), we'll see...

edit, it was not mfc... i have a working build for XP.
the next official version will be XP compatible.

here is a build for XP of the latest beta : edit : release a new version


Last edited by steamCooker on Tuesday, 25 Jun 2013, 01:34, edited 1 time in total.

Top
 Profile  

Post Post subject: Re: TINcft 20130409 - win32 / linux   
Posted: Tuesday, 28 May 2013, 20:53   
User Редкий гость
User avatar
Joined: Friday, 14 Mar 2008, 17:13
Posts: 36
steamCooker wrote:
the next official version will be XP compatible.

here is a build for XP of the latest beta : http://www75.zippyshare.com/v/68914656/file.html

I've just tested it and i can confirm that xp compatibility has been fixed.

Thank you very much, steamCooker! We appreciate your work!

_________________
"Coffee isn't my cup of tea!"


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 555 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17, 18 ... 37  Next


Who is online

Users browsing this forum: 1ka and 19 guests


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum




Powered by phpBB® Forum Software © phpBB Group