January 27, 2021, 07:27:01 AM

Author Topic: protect-pack resources  (Read 501 times)

Offline metamorpho

  • Jr. Member
  • **
  • Posts: 14
  • creator games
protect-pack resources
« on: May 25, 2020, 09:51:17 AM »
Hi all !!
Im using AGK Classic.
Tell me, what are the options to protect-pack resources (graphics, music)?
AGK [Blitz3D]

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 334
Re: protect-pack resources
« Reply #1 on: May 25, 2020, 01:01:31 PM »
I say: Don't worry about protection. It's just not worth it. If your stuff is so great, people will get it anyway and if it happens on the way to the graphics card.

Offline metamorpho

  • Jr. Member
  • **
  • Posts: 14
  • creator games
Re: protect-pack resources
« Reply #2 on: May 25, 2020, 01:43:47 PM »
Xaron, thank you for your opinion.
Yes, I understand that. But I'm not talking about protection against professionals. I'm talking about something that protects against non-professionals. Otherwise, anyone who wants to will use my media.
AGK [Blitz3D]

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2925
  • elgol 2021
Re: protect-pack resources
« Reply #3 on: May 25, 2020, 01:54:09 PM »
Plus some art is sold on the basis you protect it in some way.
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, BBC B, C64, ZX Spectrum

Offline Derron

  • Hero Member
  • *****
  • Posts: 3333
Re: protect-pack resources
« Reply #4 on: May 25, 2020, 02:33:49 PM »
Even non-professionals will be able to rip your assets:
- screenshot plus "rectangle copy paste"
- google for "how to rip assets from a game"
- google for "how to extract graphics from game"
...
Then they just use a tool which logs all the OpenGL calls and there you can extract all the sent textures...



I think it is one of the _good_ things to find out people are interested in copying stuff from you. Most probably nobody will give a whatever on your graphics.
My game is open source - with the graphics being open source too. Yet nobody except one (some years ago) uses the graphics elsewhere. Sure it is not AAA quality but there is a lot of stuff above average.


bye
Ron

Offline metamorpho

  • Jr. Member
  • **
  • Posts: 14
  • creator games
Re: protect-pack resources
« Reply #5 on: May 25, 2020, 03:43:57 PM »
Steve Elliott, Derron, thank you for your opinion. I agree with you, all these facts have a place to be.
But still, when resources are open, then anyone can use them without any difficulty. And when the resources are somehow protected, only a small percentage will look for ways in Google and try various options for hacking my resources. In addition, not everything is so simple with getting resources - and hacking programs come with viruses and these programs do not always work as they should. If a person does not know how to extract resources, then he will have to sweat a lot before extracting something.
In addition, I like it when everything is neatly packed in one file. So let's say I still need to pack my resources, what should I use for the AGK Classic ?
AGK [Blitz3D]

Offline Xaron

  • Sr. Member
  • ****
  • Posts: 334
Re: protect-pack resources
« Reply #6 on: May 25, 2020, 03:55:30 PM »
I think you will need to come up with an own solution then. But again, it's really not worth the time. You can be glad if someone notices your game at all and if so, it still needs a second step to rip out the resources. Usually that is only done when it's really worth it to sell those.

On the other hand, there could be modders who just like to exchange your graphics/textures. If it's "protected" that won't be possible that easily.

So no matter what you do, if you "protect" your stuff, you will fight the good ones (modders) but won't even stop the simplest script kiddies out there who want to rip out your gfx (if they look really that great).

Offline Kris

  • Full Member
  • ***
  • Posts: 118
Re: protect-pack resources
« Reply #7 on: May 25, 2020, 06:36:12 PM »
Check out Steve Vink's article about asset protection using memblocks.

https://www.thegamecreators.com/pages/newsletters/newsletter_issue_151.html

You could also try to use the built in Zip file commands. The ExtractZip has a password option. Zip all your assets with a password and extract it when you need it. You could for example, pack your levels separately so even if the player finds your unpacked files on the hard drive for the current level, there won't be anything from the other/next levels. This might be enough against curious eyes browsing through your whole content easy.

Hope it helps.

Offline metamorpho

  • Jr. Member
  • **
  • Posts: 14
  • creator games
Re: protect-pack resources
« Reply #8 on: May 25, 2020, 07:35:02 PM »
Kris, thanks for the info !!!!
AGK [Blitz3D]

Offline hosch

  • Jr. Member
  • **
  • Posts: 86
Re: protect-pack resources
« Reply #9 on: May 25, 2020, 09:46:31 PM »
I am kind of new to AGK, but another option is to generate the (gfx) assets on the fly. I wrote a little BlitzBasic program some time ago that reads each pixel color of my pixel art and converts it to DATA statements. I used it to scale some graphics, but you could INCLUDE those DATA statements in Blitz and generate the assets when booting up the game. As far as I know, AGK doesn't support DATA statements, so you would have to use an array, but I know you can at least create images at runtime.

Coding these functions shouldn't be too hard either, of course this wouldn't stop anyone from taking screenshots.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal