ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Jan 17, 2018 3:03 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Survivalist .xnb
PostPosted: Sun Jan 14, 2018 12:38 pm 
User avatar

Joined: Sun Aug 17, 2014 7:27 pm
Posts: 794
Game: http://store.steampowered.com/app/340050/Survivalist
Image

Image


Attachments:
.xnb files.rar [1.34 MiB]
Downloaded 15 times
Top
   
 Post subject: Re: Survivalist .xnb
PostPosted: Sun Jan 14, 2018 7:37 pm 
User avatar

Joined: Tue Oct 13, 2015 1:26 pm
Posts: 45
It's easy but... the texts length are in 7BitEncodedInt(I think)... I tried read this value in Pascal but no success... ¬¬

C implementation:
Code:
int Read7BitEncodedInt()
{
   int result = 0;
   int bitsRead = 0;
   int value;
   do
   {
      value = ReadByte();
      result |= (value & 0x7f) << bitsRead;
      bitsRead += 7;
   }
   while (value & 0x80);
   return result;
}

Pascal implementation (attempt)
Code:
function Read7BitEncodedInt: Integer;
var
   VByte: Byte;
   Offset: Integer;
begin
   Offset := 0;
   Result := 0;
   repeat
      FInput.Read(VByte, 1);
      Result := Result or ((VByte and $7F) shl Offset);
      Inc(Offset, 7);
   until (VByte and $80) = 0;
end;

_________________
Tribo Gamer Brasil


Top
   
 Post subject: Re: Survivalist .xnb
PostPosted: Tue Jan 16, 2018 1:04 am 
User avatar

Joined: Tue Jul 21, 2015 10:51 am
Posts: 9
Excuse me, makc_ar from which hexeditor is taken your screenshot?

_________________
-I am the Ancient, I am the Land.-


Top
   
 Post subject: Re: Survivalist .xnb
PostPosted: Tue Jan 16, 2018 6:06 am 
User avatar

Joined: Sun Aug 17, 2014 7:27 pm
Posts: 794
Vecna wrote:
Excuse me, makc_ar from which hexeditor is taken your screenshot?

viewtopic.php?p=5594#p5594


Top
   
 Post subject: Re: Survivalist .xnb
PostPosted: Tue Jan 16, 2018 10:05 am 
User avatar

Joined: Tue Jul 21, 2015 10:51 am
Posts: 9
Thank you very much.

_________________
-I am the Ancient, I am the Land.-


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


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

Search for:
Powered by phpBB® Forum Software © phpBB Limited