Golden Sun Hacking Community
06, April, 2020, 11:46:23 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: The last working version of the classic TLA Editor is Teawater's unofficial "mapeditor" draft.
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Image transforming  (Read 14139 times)
0 Members and 1 Guest are viewing this topic.
Lord Wolfram
The Lone Wolf
Mars Clan

I am the Angel of darkness and I am back.

Regular Member
*

Coins: 100
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« on: 19, June, 2017, 01:37:43 PM »

So the other day I was talking with my Programming teacher and an idea came in my mind.
"Let's load image in game from the game's code."
So the idea follows - We take the image's data and transform it into HEX code. Then we write an array of each hex value for the image, then we load the image from Array into the game and we have our sprite.
Logged
View Profile WWW
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4601

« Reply #1 on: 19, June, 2017, 02:11:22 PM »

Wait, so we load an image and then save the image to the game again?
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Lord Wolfram
The Lone Wolf
Mars Clan

I am the Angel of darkness and I am back.

Regular Member
*

Coins: 100
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« Reply #2 on: 19, June, 2017, 02:13:01 PM »

Wait, so we load an image and then save the image to the game again?
Idea is that we don't have to have the image, we just have the HEX data of the image in game's code
Logged
View Profile WWW
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4601

« Reply #3 on: 19, June, 2017, 02:16:48 PM »

It sounds like a cool idea, though I'm afraid I am still lost on the reason for doing this. Would you mind elaborating a bit?
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Lord Wolfram
The Lone Wolf
Mars Clan

I am the Angel of darkness and I am back.

Regular Member
*

Coins: 100
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« Reply #4 on: 19, June, 2017, 02:25:31 PM »

It sounds like a cool idea, though I'm afraid I am still lost on the reason for doing this. Would you mind elaborating a bit?
I just came up with such idea, well some engines do not compress images etc. and hackers can easier MOD the game. This way they don't, AND if they were to edit your code, they would have to recompile it, and you can add uncompleted code there, which at first does nothing but serves as the defense system of the game, and we can punish the players for hacking
Logged
View Profile WWW
Daddy Poi
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1000
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2477

« Reply #5 on: 19, June, 2017, 02:43:19 PM »

@ 1st post:  Yep. I do believe that is the way you do it.

@ Last post: I see it more as a way for hiding information / decluttering the user experience rather than anti-hack, but okay. (Maybe anti-hack for the inexperienced, though...) Closest I can think of to anti-hacking is a server+client approach that requires an internet connection. Any sensitive data (e.g. Save data) could stay on the server. (That being the server isn't on the player's machine, but the client connects to it.) But of course... if one is going to build a server+client thing... then there's the possible issue of DDOS and such... so, eh. It's never that simple.

Anyway... the client should only send input data like mouse clicks and keyboard presses... and receive image data/audio data.... in best case circumstances... but that's probably a lot of data, though... (graphics/audio), so probably not recommended. But if it was done... I recommend a small resolution (e.g. 240x160=0x9600 pixels)that could possibly be zoomed in to full screen. (So less data is sent across the internet than otherwise.) As for music... I'd say just send the audio file over to the user... As people will probably document it anyway. And less internet traffic=better.)
@My idea:  I can see its potential for a 4-player game, maybe... but a large MMO, probably not. - In that case, image caching would be the way to go, most likely.
« Last Edit: 19, June, 2017, 03:12:58 PM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.
View Profile
Lord Wolfram
The Lone Wolf
Mars Clan

I am the Angel of darkness and I am back.

Regular Member
*

Coins: 100
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« Reply #6 on: 19, June, 2017, 05:32:23 PM »

@ Last post: I see it more as a way for hiding information / decluttering the user experience rather than anti-hack, but okay. (Maybe anti-hack for the inexperienced, though...)

It's more of like a message, don't mess with this engine, I don't like what you're doing, I.E. Easter egg.
Logged
View Profile WWW
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4601

« Reply #7 on: 19, June, 2017, 05:43:43 PM »

Wait, so you want the potential for a hacking community dedicated to hacking the game to make it harder to hack the game? :o

Or do you mean in general, like as a security feature for other games or sites?
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Daddy Poi
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1000
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2477

« Reply #8 on: 19, June, 2017, 06:50:12 PM »

A message? Might as well spell out to them.... that you are the copyright holder/etc.

But anyway... in the situation where a program is not open-sourced... data/images that are stored outside the program can still be checked against a checksum/signature type thing... if they need not be edited by a user. If editing was the main concern and not necessarily exposure/etc. But that's more me just speaking of an alternative. (That is definitely not foolproof. But then again, neither method is.)

Now I wonder if it is possible to encrypt a file using certain built-in techniques... and make it so one's own program can decrypt it... but only into RAM. (Without actually grabbing any encryption related code yourself.)
« Last Edit: 19, June, 2017, 06:58:25 PM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.
View Profile
Luna_blade
The last member of the Luna clan
Luna Clan

Great Member
*

Coins: 28
Offline Offline

I am: Timeless. As in, i don't have much free time.
Posts: 543

« Reply #9 on: 20, June, 2017, 03:32:04 AM »

Okay pretty nice.
But what kind of format are you going to use? I guess that would be the first step in this problem.

Now that I think about it, you might only need to specify a width for the image and then simply just load RGB values, which makes an extremely easy format.
Logged

"Hear the sounds and melodies
Of rilets flowing down
They're the verlasting songs
Whispering all the time
As a warning that behind some rocks
There's a rigid grap even
Oreads fear the tread"
View Profile
Pages: [1]   Go Up
  Print  
 
Jump to:  

Chatbox
01, April, 2020, 02:42:50 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:48 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:09 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
01, April, 2020, 02:42:06 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
31, March, 2020, 07:18:29 PM
Salanewt: Sure thing!
31, March, 2020, 03:38:30 PM
JupiterDjinn: Can I have a question answered?
31, March, 2020, 03:38:27 PM
JupiterDjinn: Can I have a question answered?
28, March, 2020, 12:50:15 AM
Salanewt: I want to shrink it down in size later, but yup!
28, March, 2020, 12:50:13 AM
Salanewt: I want to shrink it down in size later, but yup!
26, March, 2020, 03:24:45 PM
Daddy Poi: The news box is back? :D
19, March, 2020, 05:59:16 PM
Salanewt: Nice work hiding the searchbots Atrius!
19, March, 2020, 04:23:34 PM
Salanewt: I was wondering when I said that stuff! May need to work it out with Kain.
19, March, 2020, 07:03:05 AM
Daddy Poi: (The simplest being to not accept char IDs pass 255, I think.)
19, March, 2020, 05:33:15 AM
Daddy Poi: Heheh.... I'm just testing. You pretty much gave it away. Hahah. It seems to look fairly convincing, but I'm sure there's an easy solution to preventing it.
19, March, 2020, 05:28:50 AM
Atrius: Whelp, there it goes... Just what I didn't want.  Have fun with that I guess...   
19, March, 2020, 05:20:25 AM
Daddy Poi: So like. Replace the "e" with another "e"? Alright. Gotcha.
19, March, 2020, 05:04:41 AM
Daddy Poi: Good work.
19, March, 2020, 04:44:10 AM
Atrius: Nah, any member could change their name to what I did, there's a trick to it.  I just fixed it so that now the Cbox will use your new name if you change it though, so... That part of the problem is fixed.
19, March, 2020, 04:41:53 AM
Daddy Poi: For which? It may be that normal users can't change their names to used names, but admins can?
19, March, 2020, 04:39:57 AM
Atrius: Sorry if the Cbox keeps breaking, I'm trying to make that be less of a thing.
19, March, 2020, 04:02:04 AM
Daddy Poi: Looks like ID Fraud. You're under arrest. :D  Oh wait.
19, March, 2020, 03:57:56 AM
Atrius: Yup, that's a thing.
19, March, 2020, 03:57:08 AM
Atrius: Just testing something, for science.
18, March, 2020, 04:05:12 PM
Salanewt: Sounds good; thanks for looking into it!
18, March, 2020, 04:05:11 PM
Salanewt: Sounds good; thanks for looking into it!
17, March, 2020, 01:14:25 PM
Atrius: Hmm... Actually I need a different way to hide them.  Now there are 4 guests spread over 3 pages of users...
17, March, 2020, 01:04:22 PM
Atrius: Yeah, their usernames don't get changed, they're hidden now.
09, March, 2020, 11:37:02 PM
Daddy Poi: So um. When sorting by User, does it treat Guest and Searchbot as being the same name?
09, March, 2020, 11:20:43 PM
Daddy Poi: Most likely. Perhaps we could do a toggle, or a second page that becomes the new default.(Which can have a link to the old original page.) My thoughts.
09, March, 2020, 10:21:11 PM
Salanewt: Hey Atrius; would it be possible to hide the searchbots from the "users online" list?

Affiliates
Temple of Kraden Golden Sunrise
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.128 seconds with 23 queries.