Jump to content
  • 0

Libgrf 2.0 (0x200)


Driw

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/18/12
  • Last Seen:  

I search in google by libgrf 0x200 (2.0) and not found, just 0x102 (1.2), i'm found source code (.cpp and .h) easy, but not sinal for 0x200.

Someone here have link for 0x200? If possible with source code, not just includes and lib.

 

Reason: I'm make a "new autopatch" based in neoncube (autopatch opensource I found), but "best", custome. And if complete MAYBE I make avaible to download.

 

Thanks for the help already.

Edited by DriwFS
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/18/12
  • Last Seen:  

Thanks, but i think this is 0x103 (0.1.3). I will test \o anyway, I use 0.1.2, this help-me :D

 
doc RELEASE: 0.1.30 7 years ag
 
@edit
 
Oh sorry, I was wrong, I thought this 0x200 were the version, but this is a format, something, this 0.1.30 have this:
 
case 0x102: case 0x103: case 0x200: case 0xCACA: break;

 

Thanks!

Edited by DriwFS
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

If I may ask, what are you trying to do with the lib?

The patchers out there are not good enough? Or do you have some 'new ideas'?  /ic

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/18/12
  • Last Seen:  

The patchers existents like Thor is good, and have encrypt, but I make some modifications.

I fail in repack the files grf e.e

 

What I make was a program in java where read files in a folder and generate a list with yours bytes lenght and patch, My patcher current check files and if have modifications it update the file, and have a validation if be update files have different bytes. For exemple, options ingame it don't update, just download if not exist.

 

A motive for I try make an autopatcher is also to learning mor about c++. The problem with my autopatcher is the size in disk, because it dont is packed by grf :/ but I can try somethings to resolve this if I learning use libgrf.

 

The problem wich I have in the moment with libgrf is the repack, I don't know what put in ONE PARAM T.T

 

 

HANDLE file = CreateFileA(filepath, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
DWORD lenght = GetFileSize(file, NULL);
DWORD readBytes;
 
const size_t BufferElementsCount = lenght;
CONST SIZE_T AllocByteCount = BufferElementsCount * sizeof(uint8_t);
uint8_t * helperBuffer = reinterpret_cast<uint8_t *>(_alloca(AllocByteCount));
 
ReadFile(file, helperBuffer, BufferElementsCount, &readBytes, NULL);
 
grflog("%s - ", bytesPref(lenght));
 
if (grf_put(repacked, line, helperBuffer, lenght, GRFFILE_FLAG_FILE, &err) == 0)
 
I don't know what put in helperBuffer I try this, but dont work, this should be dates of the file I think, the lib show in doc: @param data  Pointer to the file data.
repacked is grf file, line the filepath, lenght bytes of the file, the flat and &err Grferror, this method return who files was put in grf (is odd because is just one file at a time).

 

Sorry my english e.e I'm a noob HAUSHASUSAH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...