Bennu Game Development

English Forums => General => Topic started by: square on June 12, 2011, 03:55:26 PM

Title: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 03:55:26 PM
Hey guys. You don't hear much from me on this board, but I would like to ask a question or two related to mod_crypt and encrypting FPG files.

I am on the brink of releasing a Caanoo demo for "Hero: The Realm" which you will see soon on http://blackcurtainstudio.com/blackcurtain/herotherealm.php

I'm guessing encrypting FPG would be possible, but looking at the example program on this board in the spanish section there is only mention of basic variables to "crypt".

Also there is a comment line within that states:

    // sizeof of this struct must be aligned to 8

Would there be any problem now in encrypting/decrypting an FPG. Because I have no idea, and Sandman states he does not know either.

Thanks guys.

For the sale of the actual game I'm not going to bother with "commerical-type" serials and keys or anything, unless there is another resolution before my full game is released. That would be wonderful though.
(also apoligies for the handy alternative "english board" going down in flames, it was infested with bots and I did not look after it.)
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 04:10:43 PM
I'm Geca from Gp32x forums, and I ask you again, you will sell a game with graphics ripped from SEGA Wonder Boy ?
You will have problems with this man...
Title: Re: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 04:41:02 PM
I would not try to sell a game with graphics ripped from SEGA Wonder Boy!

I admit it has likenesses, I wanted to make a game similar to it.

Please look at the game Wonder Boy and compare, before accusing me. You are welcome to post the results here.

edit: here is a page with description of WonderboyIII: The Dragon's Trap. http://www.retroactive.co.nz/?p=83 (http://www.retroactive.co.nz/?p=83)
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 05:00:25 PM
I'm not acussing you, it's evident  ;D
I have no problems with your decisions, I just give you a friendly advise...

(http://forum.bennugd.org/index.php?action=dlattach;topic=2405.0;attach=1948)

(http://forum.bennugd.org/index.php?action=dlattach;topic=2405.0;attach=1950)
Title: Re: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 05:07:59 PM
Wow.

I honestly completely forgot that sprite! I'll tell you something, I sourced a few graphics in 2002 (and I do remember now taking part of that one) to help me design the whole sprite-set. There used to be a demo for Hero: The Realm on DIV Arena.

Anyhow I hope you can agree it's very slight... and you sir have eagle-eyed vision! You could post any other likenesses if you want to.

Well, can anyone help me with the topic question please?
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 05:25:57 PM
So, I have some reason no ?  :D

It's ok, your game looks great, i hope you release it soon.

About your question, I never used a encripted FPG, why you need this feature ?
Title: Re: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 05:41:18 PM
Yes, you do have reason, I really forgot bits of graphics were in fact sourced from Wonderboy games, not "ripped" as such, is all. I will try and change the graphics, after some research. We all know what SEGA are like!! Plus I would not have the right to release a game with ripped graphics anyhow.

I would not like another Bennu user to use my FPG, I will not even package it with the demo. This is really quite normal, I think, as I spent a lot of work on the graphics alone!

Is FPG encryption possible using mod_crypt? or indeed any other way?
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 06:16:58 PM
You don't need encriptation to protect the fpg, simply compile the dcb with the parameter -a, and all the sources including the fpg is included in the dcb, and is not easy to extract. Try it.
Title: Re: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 06:55:48 PM
That's magical, thank you so much! I guess it's thanks to Bennu crew and SplinterGU that the parameter -a compile is possible.
Title: Re: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 07:25:44 PM
Oh, and would there be a similar solution for compiling modules, dlls etc. into the dcb? I find it's a big problem, having to supply the BennuGD runtime whole package, with a game!
Title: Re: Using mod_crypt for FPGs
Post by: SplinterGU on June 12, 2011, 07:29:40 PM
-a don't protect yours resources, the resources added with -a parameter can be extracted, don't easy, but can be extracted.
Title: Re: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 07:32:16 PM
Well I cannot see too many people trying hard to pull apart a .dcb to get at my resources. ;D

Thanks for making me aware, however.
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 07:34:53 PM
By the way, i sell you my DRM system to protect your comercial game, if you want xDD
Title: Re: Using mod_crypt for FPGs
Post by: square on June 12, 2011, 07:40:57 PM
Quote from: square on June 12, 2011, 07:25:44 PM
Oh, and would there be a similar solution for compiling modules, dlls etc. into the dcb? I find it's a big problem, having to supply the BennuGD runtime whole package, with a game!

Well, is there a possible solution for this?

Thanks for the offer, FreeYourMind. I will have to think about it.
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 07:46:18 PM
I'm jocking a little bit :)
But it's not a bad idea, i will work on a distributable version of my DRM system for developers who interested in this DRM, it works on Wiz and Caanoo sucessfull, and i'm working on pandora implementation right now.
Title: Re: Using mod_crypt for FPGs
Post by: SplinterGU on June 12, 2011, 08:26:22 PM
Quote from: FreeYourMind on June 12, 2011, 07:46:18 PM
I'm jocking a little bit :)
But it's not a bad idea, i will work on a distributable version of my DRM system for developers who interested in this DRM, it works on Wiz and Caanoo sucessfull, and i'm working on pandora implementation right now.

you already release any game with your DRM system?
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 08:32:11 PM
NO, but i release the game very soon.
Title: Re: Using mod_crypt for FPGs
Post by: SplinterGU on June 12, 2011, 08:32:45 PM
I mean, I want test it, I want check if I can copy a dcb DRMed version in my caanoo to my PC and run it.
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 08:37:04 PM
The DRM system is for not run the game in another caanoo not yours, in the case of PC the game not run, because i use other code for that.
But if i release a module with my DRM system, i put all the checks needed on it and options in parameters, all configurable.
Title: Re: Using mod_crypt for FPGs
Post by: SplinterGU on June 12, 2011, 08:52:32 PM
Quote from: FreeYourMind on June 12, 2011, 08:37:04 PM
The DRM system is for not run the game in another caanoo not yours, in the case of PC the game not run, because i use other code for that.
But if i release a module with my DRM system, i put all the checks needed on it and options in parameters, all configurable.

well, I want test it.

you can do a simple "Hello World!" with your DRM and send me it, then I'll install it in my Caanoo?
Title: Re: Using mod_crypt for FPGs
Post by: FreeYourMind on June 12, 2011, 09:12:55 PM
OK, tomorrow I send it

You need 2 caanoo's to test it, test on caanoo and wiz or pc is not the same...
Title: Re: Using mod_crypt for FPGs
Post by: SplinterGU on June 12, 2011, 11:26:54 PM
Quote from: FreeYourMind on June 12, 2011, 09:12:55 PM
OK, tomorrow I send it

You need 2 caanoo's to test it, test on caanoo and wiz or pc is not the same...

cool!

It's the idea, I want install it in Caanoo and run it in PC.
Title: Re: Using mod_crypt for FPGs
Post by: Moogster on June 12, 2011, 11:37:26 PM
I see this thread is slowly drifting away from it's original topic, and just days ago I was trying to do something with mod_crypt myself: I want to save a users password in a file and encrypt either the password or the whole file. The documentation for this module is pretty non-existant on the wiki and the only example code is on this forum but raises more questions than it answers.

So the question is, how exactly is mod_crypt meant to be used? Any explanation would be more than welcome, even better if it would feature some sample snippets..?

Thanks!