Atrius: I'm trying to fix the site, but it might take a while.

It seems the SQL database had grown larger than our hosting company allows.
I've cleaned out all of the unnecessary log data to get it down to an
acceptable size, but haven't received a response as to why normal
functionality hasn't been restored yet.


 Some idea I had
Golden Sun Hacking Community
July 19, 2018, 09:53:01 AM *
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: Some idea I had  (Read 2321 times)
0 Members and 1 Guest are viewing this topic.
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

« on: August 17, 2016, 11:20:25 AM »

So yeah. I was thinking about emulators ROM's and stuff.
AFAIK there are no roms converted to a PC executable file.
Why not? It does take some time to translate all ROM commands to another Programming language, but so does making an emulator.
The big difference is that the graphics part needs to be designed specially and that you only work on one ROM.
But the advantage is that you can edit the game a lot easier and it would certainly run faster.

Is it even possible to convert a ROM?
Logged

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

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

« Reply #1 on: August 17, 2016, 01:17:41 PM »

It may be possible, but it is likely difficult? (Esp. if 100% automated.)

@100%: I think one of the biggest challenges to automating the process might be knowing what's code and what is not? (One example is to imagine a pointer table of functions (Not all functions, just a group of them.)... and then an index that grabs a pointer... where the index doesn't have a cap.(Superstar Saga and Golden Sun do have pointer tables to a group of functions, for example.)

Not sure how much easier it would be to edit if you still have to manually put in all the names for functions/variables/etc. though. And with compiler optimizations, the flow may not look right either? Etc. (Depends on if said game has any of that info or not, likely not... if we're talking about things like GBA.)

But I suppose another question is: Is it worth it? When you could rewrite the whole thing anyway... in which it'd be even easier to read.)


---
Oh, and if I recall correctly... Making a GBA emulator is pretty easy in comparison to a DS or 3DS emulator... which is harder due to more stuff needing to be coded.
« Last Edit: August 17, 2016, 05:17:46 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...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile
leaf
Potions class is starting
Venus Clan

Death Eater+Grass Snake = Snake Eater? SNAAAAAAAKE

Veteran Member
*

Coins: 10
Offline Offline

Posts: 1322

« Reply #2 on: August 17, 2016, 10:16:26 PM »

This doesn't sound terribly practical. It's mostly a semantic difference anyway. If you turn it into an executable, you're essentially making an emulator that can only run that one game. There's no real advantage to it.
Logged

Spoiler for quotes:
[9:00:50 PM] Randel Peltier: Ok...what did I do last night?
[9:01:19 PM] Kain: Something boring, repetitive, and lasted for about sixty seconds.
---
[10:45:08 AM] Salanewt: But yeah, the elemental phalluses are being... Stroked up by Saturos and co., and the energy will go towards... Mt. Muffin, where the Golden Climax will arise.
[7:28:42 PM] Salanewt: An added bonus is that Isaac and co. were trying to stop Saturos and co. because their beliefs state that Mt. Muffin should remain a virgin.
---
[9:54:21 PM] Randel Peltier: Guess the number in my head an you get to pick what I say. Number between 1-10
[9:54:28 PM] leaf: 11
[9:54:36 PM] Randel Peltier: @#$%!
---
[8:38:13 PM] Randel Peltier: Shes like this queen up on a pedastal that I have yet to court.
[8:38:29 PM] Kain: You've tried courting her.
[8:38:43 PM] leaf: and failed spectacularly
[8:38:44 PM] Randel Peltier: Ive tried...shes the best dating game ever.
---
[12:24:35 AM] Salanewt: I need to find a picture of a naked person to put on the Christmas tree next year.
---
[2:19:06 PM] Zeadra: wait... Rief's a guy???
---
[1:09:57 PM] Zeadra: well if you want to know if its a new effect or something weird, just check GS1, if side step is there maby it is the nimble dodge thing
[1:10:35 PM] Kioll: For once, you've contributed something useful.  o.O
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

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

« Reply #3 on: August 18, 2016, 01:19:22 AM »

I suppose I agree with you... (in a way)... since well... Even if we did do such a conversion to allow for additional space in WRAM/IRAM/VRAM/etc... (and other features like clicking the screen.), we could still do that with the emulator instead. (But then only Homebrew/hacks would use whatever additions were added.)
« Last Edit: August 18, 2016, 01:23:35 AM 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...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
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 #4 on: August 19, 2016, 04:56:40 AM »

Quote from: fox
It may be possible, but it is likely difficult? (Esp. if 100% automated.)

@100%: I think one of the biggest challenges to automating the process might be knowing what's code and what is not? (One example is to imagine a pointer table of functions (Not all functions, just a group of them.)... and then an index that grabs a pointer... where the index doesn't have a cap.(Superstar Saga and Golden Sun do have pointer tables to a group of functions, for example.)

Not sure how much easier it would be to edit if you still have to manually put in all the names for functions/variables/etc. though. And with compiler optimizations, the flow may not look right either? Etc. (Depends on if said game has any of that info or not, likely not... if we're talking about things like GBA.)

But I suppose another question is: Is it worth it? When you could rewrite the whole thing anyway... in which it'd be even easier to read).
So if I understand correctly, emulators put the ROM in the RAM (and some even don't) but only convert the commands while executing?
Quote from: fox
Oh, and if I recall correctly... Making a GBA emulator is pretty easy in comparison to a DS or 3DS emulator... which is harder due to more stuff needing to be coded.
I can understand that.
Quote from: leaf
This doesn't sound terribly practical. It's mostly a semantic difference anyway. If you turn it into an executable, you're essentially making an emulator that can only run that one game. There's no real advantage to it.
Well okay, but wouldn't it go faster because there is no overhead from the emulator?
Logged

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
View Profile
leaf
Potions class is starting
Venus Clan

Death Eater+Grass Snake = Snake Eater? SNAAAAAAAKE

Veteran Member
*

Coins: 10
Offline Offline

Posts: 1322

« Reply #5 on: August 19, 2016, 06:46:05 AM »

Run... faster...? Are you out of your mind? Suppose for a moment that it actually did run faster. What possible benefit could you gain from that? It's already more than possible to play games at 1600% speed in VBA, which is already fast enough to be impossible to accurately play (as a human, that is; the game still emulates correctly). As it is, games already need a frame limiter just to prevent them from going at out of control high speeds due to the processing power of modern computers.

And you still seem to be missing the point that in order to play a game on PC that was built for a different set of hardware, you still need some form of emulation to act as the go-between. Games are optimized for the systems they're built for. This is especially true for old gameboy titles, which weren't made to be portable to other systems. The commands work at a very low level, going so far as to tell the system what registers to use to do something. It's not like we have C++ code or something that we can just compile and run on a PC; we're stuck with already-compiled code that's made to run on a specific set of hardware. Emulators work by essentially tricking the ROM into thinking it's working on the actual hardware, and then intercepting its outputs to convert them into a more PC-friendly state. It's not as simple as just telling it to output its display to a computer monitor instead of the gameboy screen, or changing a few variables to let it receive input from a keyboard. Without access to the source code, that's nontrivial even for modern games, which are specifically built to be cross-platform.

Logged

Spoiler for quotes:
[9:00:50 PM] Randel Peltier: Ok...what did I do last night?
[9:01:19 PM] Kain: Something boring, repetitive, and lasted for about sixty seconds.
---
[10:45:08 AM] Salanewt: But yeah, the elemental phalluses are being... Stroked up by Saturos and co., and the energy will go towards... Mt. Muffin, where the Golden Climax will arise.
[7:28:42 PM] Salanewt: An added bonus is that Isaac and co. were trying to stop Saturos and co. because their beliefs state that Mt. Muffin should remain a virgin.
---
[9:54:21 PM] Randel Peltier: Guess the number in my head an you get to pick what I say. Number between 1-10
[9:54:28 PM] leaf: 11
[9:54:36 PM] Randel Peltier: @#$%!
---
[8:38:13 PM] Randel Peltier: Shes like this queen up on a pedastal that I have yet to court.
[8:38:29 PM] Kain: You've tried courting her.
[8:38:43 PM] leaf: and failed spectacularly
[8:38:44 PM] Randel Peltier: Ive tried...shes the best dating game ever.
---
[12:24:35 AM] Salanewt: I need to find a picture of a naked person to put on the Christmas tree next year.
---
[2:19:06 PM] Zeadra: wait... Rief's a guy???
---
[1:09:57 PM] Zeadra: well if you want to know if its a new effect or something weird, just check GS1, if side step is there maby it is the nimble dodge thing
[1:10:35 PM] Kioll: For once, you've contributed something useful.  o.O
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

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

« Reply #6 on: August 19, 2016, 07:22:32 AM »

Quote
So if I understand correctly, emulators put the ROM in the RAM (and some even don't) but only convert the commands while executing?
Something like that. (Although, the real hardware likely reads straight off the cartridge (GBA has it memory mapped) and/or loads files at a time (like the DS)....)

"Faster" in the sense of human perception for VBA is likely pointless... But perhaps it was a matter of wrong word choice? Like say... how about more efficient? Can never get enough of savings from power consumption/ battery life, can you? (But the effort on work for too little of gains is probably not worth the time... esp. when you consider Moore's Law is already halving the size of the transistors each couple years... or something like that-ish. There are articles on the internet that say that may be coming close to an end, though.... But I'm sure the work on improvements when including tech as a whole, is far from over.) Also, things like solar panels that get power from the sun, thus making electricity potentially money-free in the long run... may make the savings seem nearly pointless. (Eventually./Hopefully.)

I can practically imagine a day in the future... when internet may be free. (Like internet.org)... and also, how computers could possibly be mainly display/sound devices... (With some RAM, obviously, etc.)  where the processor stuff happens over the internet/cloud... and we all know how fast Google servers are, right?  Didn't Google have some cheap Chromebook like that, forget now.
« Last Edit: August 19, 2016, 07:50:42 AM 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...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
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 #7 on: August 20, 2016, 01:24:27 PM »

I see why this doesn't work now.
Logged

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

Cbox
Yesterday at 10:49:52 PM
roger: I can post but it goes to an error page when I submit.
Yesterday at 05:24:12 PM
zman9000: Site is back WOO!
May 09, 2018, 12:35:37 AM
KyleRunner: The "Start In" field is not editable... I'll try making new shortcuts
May 08, 2018, 09:51:08 PM
Fox: If all else fails, you canmake new Shortcuts to do the same thing.
May 08, 2018, 09:49:53 PM
Fox: Export Properties > Shortcut (Tab) > Target / Start In ; Target (for Export) should be: (filename) 0 , and for Import: (filename) 1
May 08, 2018, 08:52:00 PM
KyleRunner: I can't change the path in properties menu...
May 08, 2018, 01:27:19 AM
Fox: You may need to edit something in properties, though... so it uses the exe file in the same directory.
May 08, 2018, 01:24:59 AM
Fox: It is suppose to be a shortcut, yes.
May 03, 2018, 11:48:05 PM
KyleRunner: Fox, the "export" function in your text editor is just a shortcut... Could you please fix it?
May 02, 2018, 09:53:45 PM
KyleRunner: I come here everyday. I'm working on a Portuguese translation, and the people here help me a lot.
May 02, 2018, 08:56:07 AM
Drake baku: My feel as well, I posted a little as well since my return, but silence was all that followed... At least the forum is a great source for data when hacking GS/ GS2, currently looking for something I have read a long time ago cause my PP recovery psy is not working
May 01, 2018, 09:58:04 AM
Fox: I am thinking a lot of this might be because of Discord?
May 01, 2018, 09:56:08 AM
Fox: Yeah, this forum is more dead than ever before.  February and April have 0 new topics. (All other months prior have more.) And March has lowest number of new posts. (It'd be dumb to count the very first month this site was created.)
April 25, 2018, 09:02:13 PM
Fox: Yes. The best tool is a hex editor. Well.... VBA, VBA-SDL-H, no$gba Debugger, GBATEK, and my documentation.... to use these to learn how the code/data works. Best method because it maximizes your editing ability... and then there is my program gsmagic that I was working on. Still in its early stages, though. (Even after year(s).)
April 25, 2018, 04:21:58 PM
Xendrox D: *exept tla editor.
April 25, 2018, 04:21:29 PM
Xendrox D: is there any other tool for hacking gs?
April 23, 2018, 09:26:27 PM
Atrius: Rarely, but not never.
April 23, 2018, 08:01:48 AM
Drake baku: Can it be, the god who created the editor, atrius. I heard you never came back online here anymore
April 20, 2018, 02:46:36 PM
KyleRunner: Atrius!!
April 19, 2018, 11:29:46 PM
Atrius: @Fox, I tried, but for some reason Mario Golf won't boot, and Mario Tennis crashes when you patch out the text compression, and I'm not sure why...  The normal text loading functions in them are basically the same as the ones in the Golden Sun games.

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.06 seconds with 29 queries.