www.tombraiderforums.com  

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Software Development

Reply
 
Thread Tools
Old 14-06-13, 07:52   #411
HeinzFritz
Explorer
 
Join Date: Feb 2006
Posts: 526
Default

I have not yet played MoA but If Titak really did manage to encrypt her levels after editing in Meta2tr, then I would be nice if she would write a tutorial about how to do it. I am sure it would be appreciated by all involved level creators, especially those tormented by the horrible dilemma I mentioned.
HeinzFritz is offline   Reply With Quote
Old 14-06-13, 08:22   #412
Niveus
Professor
 
Niveus's Avatar
 
Join Date: Feb 2010
Location: United Kingdom Gender: Male
Posts: 3,287
Default

I think it has been the case for some time, that TRNG had the ability to encrypt .tr4 files that have been messed with by meta2tr. I have no means to check right now though, so I apologise. Maybe it is a feature of meta2tr, instead, but I do not think it is hidden or using some secret method to accomplish it.
Niveus is offline   Reply With Quote
Old 14-06-13, 08:47   #413
meta2tr
Historian
 
Join Date: Apr 2008
Posts: 368
Default

Quote:
Originally Posted by HeinzFritz View Post
If Titak really did manage to encrypt her levels after editing in Meta2tr, then I would be nice if she would write a tutorial about how to do it.
Encrypting levels is now very simple thanks to Paolone's TRNG_Crypter tool which is found in the Tools folder. Here's a quote from the readme:

Quote:
The TRNG_Crypter utilty has a precise target: when you wish your levels were crypted but, at same moment, you need to perform changes on tr4 level in post-production, for example using meta2tr program, you need to use TRNG_Crypter, since it gives you the chance to crypt when you wish a tr4 file in same crypting format of trng engine.
meta2tr is offline   Reply With Quote
Old 14-06-13, 10:01   #414
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 32,555
Default

^
That is indeed what I used, so no big secrets here.

I decided to encrypt my levels so people would not be able to make changes to the levels I made.
If someone contacts me about some objects and textures, I'm willing to share most of the time and I'll compile a wad or TGA with the objects and textures requested.
Unless I'd like to use the objects and textures myself again in the future, like in my next MoA levels. (Zip, Alister and Winston come to mind)

I just don't want people messing around with the levels themselves simply because most of the stuff in them is custom made and it took me a lot of time and effort to make the levels the way I wanted them to be. Hence the encrypting.
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.
Titak is offline   Reply With Quote
Old 14-06-13, 11:31   #415
HeinzFritz
Explorer
 
Join Date: Feb 2006
Posts: 526
Default

@Titak & Meta2tr, thanks for the clarification. I had no idea about this tool for the simple reason that I still use TREP. I suppose that it can not be used for TREP created levels.
Anyway, now it is even more mysterious to me why so few people make use of the wonderful possibilities that the almost limitless Meta2tr tool offers.
HeinzFritz is offline   Reply With Quote
Old 14-06-13, 16:37   #416
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 32,555
Default

TRNG does add a header to the levels and the encrypter might need/use this header to work properly.

But you could try and use the tool on your TREP level anyway.
No harm doen when it fails, right? Especially not if you make a backup of the tr4 file first.
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.
Titak is offline   Reply With Quote
Old 29-06-13, 10:32   #417
HeinzFritz
Explorer
 
Join Date: Feb 2006
Posts: 526
Default Modified version of Meta2tr 7e

To make adding or changing objects to already finished or half finished levels edited in Metaseq, I have taken the liberty to slightly modify Meta2tr's marvelous tool so that when it unpacks an archive .tr4 with another outfit, object etc, it starts numbering the .bmp tiles from Tile101.bmp, Tile201.bmp or Tile301.bmp, (by using 100m2tr.exe, 200m2tr.exe or 300m2tr.exe - depending on the highest number of Tile.bmp in the .tr4 file to be modified).

You may find it useful or not, for me it works like a charm.

Here is the folder with all 3 versions.
HeinzFritz is offline   Reply With Quote
Old 29-06-13, 10:42   #418
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,639
Default

Quote:
Originally Posted by Titak View Post
TRNG does add a header to the levels and the encrypter might need/use this header to work properly.

But you could try and use the tool on your TREP level anyway.
No harm doen when it fails, right? Especially not if you make a backup of the tr4 file first.
It will fail since only TRNG (and Paolone) knows how to decrypt the level data.
A TREP'd tomb4.exe won't know how.

BTW I don't think the header gets encrypted, only the level data.
And for those who know how to use a hex editor you can tell an encrypted TR4 level by the signature first few bytes. Normally it is TR4/0 but for an NG encrypted level it is TR4c.

Last edited by sapper; 29-06-13 at 10:46.
sapper is offline   Reply With Quote
Old 29-06-13, 12:32   #419
Cochrane
Golden
 
Cochrane's Avatar
 
Join Date: Apr 2006
Location: Germany
Posts: 16,309
Default

Is there any public documentation on the encryption format available somewhere? I'm thinking about the OpenTomb engine. It would be great if that could open encrypted levels, too (it currently fails hard when trying to do so).

If someone knows more about it and wishes to disclose it only in private, under condition of secrecy: Please don't. OpenTomb is open source, so the knowledge how levels get decrypted will be made public. If you don't want that, that's okay, but then the only possibly response for any OpenTomb developer is to not implement the decryption at all, and then all the information is just pointless.
__________________
GŁter auf die Bahn!
Cochrane is online now   Reply With Quote
Old 29-06-13, 12:38   #420
Niveus
Professor
 
Niveus's Avatar
 
Join Date: Feb 2010
Location: United Kingdom Gender: Male
Posts: 3,287
Default

Personally I don't think many will want the encryption format to be public

Only those who want to use that encryption format for their own programs, and those who want to take objects, animations and textures without permission. I don't know how useful it would be to the average custom level player, but it still could happen that some programmer might make/edit a program to open the encrypted files.
Niveus is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 11:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.