Golden Sun Hacking Community
December 11, 2017, 03:27:11 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Image transforming  (Read 1714 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: 2
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« on: June 19, 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
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 32
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: 4565

« Reply #1 on: June 19, 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: 2
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« Reply #2 on: June 19, 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
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 32
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: 4565

« Reply #3 on: June 19, 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: 2
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« Reply #4 on: June 19, 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
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

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

« Reply #5 on: June 19, 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: June 19, 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...
Did you know? In English, you are suppose to capitalize the languages. (e.g. English is a proper noun.) Subjects like math, science, history can be left lower-cased unless they are a title. (Kind of like how you can say either "my mom" or "Mom" in "I went with (X) to the store.", except that I don't think languages are ever lower-cased in English.) In Spanish, both subjects and languages are left lower-cased. (I put this here because I've noticed people make this mistake quite often. And am curious if they know about this, and whether they use their way because they believe this grammar usage should have never been a thing?
View Profile
Lord Wolfram
The Lone Wolf
Mars Clan

I am the Angel of darkness and I am back.

Regular Member
*

Coins: 2
Offline Offline

Gender: Male
I am: fine!
Posts: 316

« Reply #6 on: June 19, 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
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 32
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: 4565

« Reply #7 on: June 19, 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
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

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

« Reply #8 on: June 19, 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: June 19, 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...
Did you know? In English, you are suppose to capitalize the languages. (e.g. English is a proper noun.) Subjects like math, science, history can be left lower-cased unless they are a title. (Kind of like how you can say either "my mom" or "Mom" in "I went with (X) to the store.", except that I don't think languages are ever lower-cased in English.) In Spanish, both subjects and languages are left lower-cased. (I put this here because I've noticed people make this mistake quite often. And am curious if they know about this, and whether they use their way because they believe this grammar usage should have never been a thing?
View Profile
Luna_blade
The last member of the Luna clan
Luna Clan

Great Member
*

Coins: 0
Offline Offline

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

« Reply #9 on: June 20, 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

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
View Profile
Pages: [1]   Go Up
  Print  
 
Jump to:  

Cbox
December 09, 2017, 04:24:14 AM
Majora: Import old forum posts for reference, perhaps take posts containing important info like documentation away from the old stickied forum post model and make them into their own pages on a site with an in-built search bar. Might help with SEO, too. If nothing else, perhaps whipping them into PDFs and hosting them via Scribd? The possibilities are boundless when it comes to restructuring a site
December 09, 2017, 04:20:02 AM
Majora: Just a nice idea to have even if it doesn't come to fruition. Updating, modernizing, always a good idea. Could probably do something pretty nifty using a good Wordpress theme
December 09, 2017, 04:15:45 AM
Majora: Would be kind of neat to do something like that for GSHC. Could change it up a bit to show all tweets/instagram posts/facebook posts/golden sun subreddit posts all in one sidebar. It would be cool in that it gives the site it's on (and the topic in general) appear more lively and active, which is a plus
December 09, 2017, 04:14:19 AM
Majora: That does sound interesting. One cool thing I've seen some sites use is a sort of unique take on a sidebar option that acts like a social media integration (like, "See GSHC's latest Tweets"). It displays activity from a variety of related sites, such as Reddit, Twitter, Instagram, etc.
December 09, 2017, 12:58:53 AM
Fox: And the way it'd work via code is not that all users would instantly get nicknames the minute you register... but rather, the moment you view a name if it doesn't have a nickname, it gets one. (My Thoughts.)
December 09, 2017, 12:53:55 AM
Fox: (I was thinking that it would be "Name (Nickname)" ... The nickname is what you first known the user as, and you can change that yourself... and the Name is what the user wants to be called... Something like that.
December 09, 2017, 12:47:56 AM
Fox: So like... for starters, one idea I had was to make it so anyone can name anyone... much like how it works on Skype, and you (the namer) would be the only one to see it, and such...
December 09, 2017, 12:45:02 AM
Fox: Would need to be carefully thought out and tested, though.
December 09, 2017, 12:43:02 AM
Fox: I'm thinking I could make it so that name changes can happen whenever... (Without any limit)... Since I believe there's a way to do it with minimum confusion. (I think.) Hmm....
December 09, 2017, 12:31:36 AM
Fox: (I mean an offline version... at least initially.)
December 09, 2017, 12:25:01 AM
Fox: Now that I have thought about it a bit more, would I be right to assume that GSHC would be one of the most interesting websites to administrate, or no? It's sad to see not much going on with it. == I almost want to make a concept website at some point. :D Anyway, how is everyone doing today?
December 06, 2017, 12:12:59 AM
Fox: Like... Start using Github or something... Do like how many of those other projects such as Citra (WIP 3DS Emulator) does. Etc.
December 06, 2017, 12:08:12 AM
Fox: No idea. I just wish OpenGoldenSun would release it as unfinished, but oh well.
December 05, 2017, 06:52:09 AM
MaxiPower: Bummed out that the open golden sun project is dead it seems with no actitivy in close to a year at this point. Is there any hope left in any other projects?
November 27, 2017, 10:25:28 AM
Fox: (When I say research, mainly refering to the data in the game, though checking websites can count to a degree.)
November 27, 2017, 09:52:27 AM
Fox: Maybe. But Dark Dawn is meh, hahah... I still research it, though, because data can be interesting.
November 27, 2017, 05:28:36 AM
Portakin: I'm here! This game is underrated!
November 25, 2017, 08:03:23 PM
Fox: .... and the email listed in that post makes me think we should just make a new rules topic with most of the same information. (So the old ones can be sort o archived.)
November 25, 2017, 07:59:47 PM
Fox: "and in addition to the bot being banned, I will remove the advertisement and lock the thread."  ... From what I've seen in the last couple years, this should be changed to "delete the thread."
November 24, 2017, 03:46:07 AM
Fox: Happy birthday Salanewt (Since it is mentioned in the Upcoming Caledar.) And Thanksgiving to my fellow GSHCers!

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.049 seconds with 23 queries.