GFXstyLER wrote:maybe another solution:
1. zip your media in a file called data.zip
2. rename it do data.gmf (or .whatever). its not important how the file extension is called, just something that is not known like .zip or .rar etc...
3. now load data.gmf as a zip file in irrlicht
thats a very little protection but users that dont have a clue about computers and just click on game.exe wont figure that out anyways
![Smile :)](./images/smilies/icon_smile.gif)
Haha, that is a bit too weak, I don't want to run into legal issues and say "Well, I changed the extension!"
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
(By the way, Windows boot up screen is "protected"/hidden like that. Bitmap renamed to .sys. By lets be more secure than MS
![Wink :wink:](./images/smilies/icon_wink.gif)
) There must be a way... perhaps to make a petition for adding this feature?I guess not, hmm...
Models are the most imprtant thing. The only thing that matters is that a regular modeling program should not be able to open the model. I think that you may not invent an entire file format, pleas consider this suggestion below and comment it:
What if you make a model, open it with a texteditor and inserts a line of nonsense... say at line 20, but remember what line! I tried to open the model, it crashed one modeler and the other one just gave me a error message. Could we tell irrlitch, or code it, to skip reading that line...?
Someone could still open the file in a text editor and edit it back if they know what they look for. But IMO, this is secure enough! A model I created in the .x format (I pretty much only use that format) is a bit over 800 poyls. In a text editor, that is a bit more than... 8400 lines of code!
![Shocked :shock:](./images/smilies/icon_eek.gif)
See this example:
3;120,490,494;,
3:321.542.222:,
3;493,490,120;,
3;129,128,115;,
3;495,129,115;,
3;496,497,498;,
The line that says "3:321.542.222:," (the second line) messes up the entire model! That is a line added by me with random numbers but with ; -> : and , -> . you see? I guess there are loads of different possibilites on how to sneak in code like this. Now...
A import command with a parameter that tells a line or two to skip, would be like heaven for me...
![Confused :?](./images/smilies/icon_confused.gif)
What do you say? Only one for just the .x format and that would be good! With a parameter for the line to skip, it would pretty much be universial, and usable for different projects but no one can open your model with ease.