Golden Sun Hacking Community
August 18, 2017, 06:24:19 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 703 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: 314

« 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: 4559

« 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

And the Wise One is a Mary Sue!

Hey there! I see you over there, looking at me... Wanna come over for a Milk Drink? ;)
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: 314

« 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: 4559

« 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

And the Wise One is a Mary Sue!

Hey there! I see you over there, looking at me... Wanna come over for a Milk Drink? ;)
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: 314

« 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: 2337

« 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...
*Cross my fingers and hope we have Big Brother All-Stars next year... with Paulie & Cody Califorie(sp?)... and Vanessa & Tiffany Rousso.... Would be fun? :P Especially if one of the boys got evicted early since there's usually some all-guy alliance in there, right?
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: 314

« 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: 4559

« 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

And the Wise One is a Mary Sue!

Hey there! I see you over there, looking at me... Wanna come over for a Milk Drink? ;)
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: 2337

« 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...
*Cross my fingers and hope we have Big Brother All-Stars next year... with Paulie & Cody Califorie(sp?)... and Vanessa & Tiffany Rousso.... Would be fun? :P Especially if one of the boys got evicted early since there's usually some all-guy alliance in there, right?
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
Today at 12:18:56 PM
Fox: Welcome back!
Today at 09:12:43 AM
Luna_blade: back from vacation
Yesterday at 02:29:26 AM
Fox: That moment when you realize that there is a lot of chatting going on on Discord, that there is no point in trying to keep up. :P  Hm....
August 16, 2017, 04:50:22 AM
Fox: (Then again, just because posting is disabled, doesn't necessarily mean the buttons would be removed as well.)
August 16, 2017, 04:48:55 AM
Fox: (I mean, buttons I would expect to be similar to that.... rather than those specifically since I recall posting there to be disabled.)
August 16, 2017, 04:33:02 AM
Fox: Yeah... I like to think of it as a page loaded with ads. And it's not just the forum home page either... check the sub-forums/topics themselves. == New Topic/Reply/etc. buttons were affected.
August 15, 2017, 07:04:30 PM
Salanewt: Lol, nice. :P
August 15, 2017, 06:33:02 PM
Foxhttp://z9.invisionfree.com/Golden_Sun_Hacking/index.php? == Hahaha! GSHC Classic looks funny now that Photobucket killed the images. :P Anyway, how is everyone doing today?
August 14, 2017, 07:12:02 PM
Salanewt: So yeah, I'm typing up a non-academic essay on why GS2 was rushed; expect that sometime soon!
August 07, 2017, 05:53:11 AM
Fox: But anyway, such a hack mod is simply an idea, and I do not have any current plans to work on it at this time, so.....
August 07, 2017, 05:51:46 AM
Fox: Okay, cool. I think my idea works best without an ability to swap PCs (OR to just simply make that use it the PC's turn.) Hmmm... And with that, I question if a turn list is even needed with my approach. (Outside of maybe 1 entry, if that shortens the modifications.)
August 07, 2017, 05:13:26 AM
Salanewt: To be honest I've been thinking of expanding the battle turn section and also adding code for PCs to have more than two turns in the AI overhaul, but I probably won't allow anyone to have more than four.
August 06, 2017, 12:22:17 AM
Fox: Oh, and if that approach was taken = Would like to also have it so you select the spell to use when it is actually your turn rather than at round start.
August 06, 2017, 12:12:37 AM
Fox: Would take a lot of balancing, but I can see an adept being very slow, and yet very powerful.
August 06, 2017, 12:06:11 AM
Fox: And bosses can have an Agility that is above half of the maximum possible Agility. Mwahaha.
August 06, 2017, 12:04:14 AM
Fox: Hmm... What if Agility could be recodded to allow for multiple turns per round? Obvious, calculations could be made in a way that depending on your Agility, you could like get a different number of turns each round. (eg. 1 turn this round, 2 the next, 1 turn again.) Obviously, To ensure 2 turns all the time, you should have at least double the opponent's agility,.... erm...something. So... you/or enmy could be so fast, the opponent can't even make a move, unless turns are capped.
August 05, 2017, 08:48:42 PM
Fox: ( That keeps search engines from indexing them... :) )
August 05, 2017, 08:45:44 PM
Fox: Also, it's not 100% public if Guests can't see them. (They can't), but who cares about Guests anyway. =P
August 05, 2017, 08:20:28 PM
Fox: @Clan forums: Mars clan has the most posts, and Venus clan has the most topics. So umm having 1k+ posts makes Mars.... interesting?
August 05, 2017, 08:16:43 PM
Fox: /and they're *

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