Golden Sun Hacking Community
December 12, 2018, 05:49:12 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: Question about Messed up map data.  (Read 3656 times)
0 Members and 1 Guest are viewing this topic.
zman9000
Golden sun fan/Map Builder
Luna Clan

Lord Zed

Excellent Member
*

Coins: 0
Offline Offline

Gender: Male
I am: A guy who just really likes golden sun
Posts: 894

« on: September 20, 2015, 04:14:12 AM »

I'm currently working on something that i need the maps from golden sun for.
I decided to download the editor again for the first time in forever so i could view the maps from there.
Before i say anything else I should make it clear I'm using a fresh GS rom and the 0.4 version of the editor.

I think this may have been a problem in the past but i'm not sure. I noticed that while most maps are fine, very few are glitched or corrupted. for an example, maps number 2, 3, 4, 10, 16, and 28 in GS1 are messed up. (number 2 being the world map and not displaying at all)

My question isn't so much how to fix this problem as i'm wondering what is causing this.
I both got a new rom file and tried a few different ones from different sites, and while i know i'm not using the newest version of the editor, i don't need anything else then to just view the maps (preferably with the grid overlay).

Is my issue caused by the editor, since it is an outdated one, or is my rom messed up? I'm pretty sure i've had issues like this in the past but it didn't happen every time, and either reloading it or getting a new rom fixed it.

I think something is different from the last time i used the 0.4 editor. I checked out a GS2 rom file and i'm having the same problem with the maps, including the over-world map, but i know for a fact the last time i used this editor that the over-world displayed correctly...
Logged

Check my youtube channel out for lots of cool gaming related videos at http://www.youtube.com/user/xXzman9000Xx
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 29
Offline Offline

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

« Reply #1 on: September 20, 2015, 07:33:20 AM »

Pretty sure it's not a ROM issue... I think it's the editor's fault.

@World Map - It's formatted a bit differently than the other maps, and compatibility was never added for it. (I never heard of it ever working before, so it is interesting to hear that last sentence of yours... Perhaps I was mistaken and need to check the code to make doubly sure....)
For 3/4/10 (Vale maps.) - Map tiles (The graphic indexes) in GS1 are 12-bit, however, Atrius's editor reads them as 11-bit, because 11-bit is what map tiles are in GS2. It's pretty obvious he didn't know GS1 did them in 12-bit at the time. (From some convos that occured in cbox a long time ago, I can say that I'm pretty sure he knows now, though...)
For 16 (Sol Santum map) - I'm not sure, actually... but I should look it up... (No idea when I'll look it up, though....))
« Last Edit: September 20, 2015, 08:06:18 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: 542

« Reply #2 on: September 20, 2015, 07:47:50 AM »

I'm suprised there are almost no screenshot-maps of GS around the internet.

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
zman9000
Golden sun fan/Map Builder
Luna Clan

Lord Zed

Excellent Member
*

Coins: 0
Offline Offline

Gender: Male
I am: A guy who just really likes golden sun
Posts: 894

« Reply #3 on: September 20, 2015, 09:51:09 AM »

Quote
Map tiles (The graphic indexes) in GS1 are 12-bit, however, Atrius's editor reads them as 11-bit
this I'm now starting to remember... I think i may have asked something to the same effect in the past... but i know at one point i had some of the maps that shouldn't have worked working... more and more i need to go back and get into my old computers files... so many things i only realize now i could totally use.

Quote
I'm surprised there are almost no screenshot-maps of GS around the internet.
when i got GS2 i also bought a complete GS 1 and 2 strategy guide that had every area map in the game, it even had every door chest, and activation point in the game in each area marked with letters and numbers. as long as you went through the doors and did everything in the order listed you would make it through everything, and more or less would have a perfect run.
although even with this awesome guide i still couldn't figure it out for a few years  leaving me stuck in airs rock for months... i was like level 30+ until i got out.

Given all this I am surprised the maps aren't anywhere online... (though judging by the fact you can see little bits of isaac or feilx in every map, i'm pretty sure they just took a crap ton of screen shots of everything and stitched them together which is how they got all the maps... which that's a lot of work for a guide.
Logged

Check my youtube channel out for lots of cool gaming related videos at http://www.youtube.com/user/xXzman9000Xx
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 29
Offline Offline

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

« Reply #4 on: September 20, 2015, 04:54:31 PM »

Quote
but i know at one point i had some of the maps that shouldn't have worked working...
Any chance it could have been a different version of the editor? - I went back to check my bugfix (Since it seems I forgot some of the fixes I made.), and I have one bug fix mentioned in a changelog.txt about the 12-bit map tiles in GS1... http://forum.goldensunhacking.net/index.php?topic=2163.0

It doesn't include fixing the overworld/World Map map... (I never got that working... But I'll probably code that in my new C# program some day, anyway... I think I know most of what I need to know, so shouldn't be that difficult... I guess I'm just lazy at putting it together, sometimes.)
« Last Edit: September 20, 2015, 05:03:30 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
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: 542

« Reply #5 on: September 20, 2015, 07:32:38 PM »

It doesn't include fixing the overworld/World Map map... (I never got that working... But I'll probably code that in my new C# program some day, anyway... I think I know most of what I need to know, so shouldn't be that difficult... I guess I'm just lazy at putting it together, sometimes.)
You could seriously write a code that would let you view the golden sun overworld???
Once you can view it, editing is just a few steps away right?
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
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 29
Offline Offline

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

« Reply #6 on: September 20, 2015, 09:54:19 PM »

Quote
You could seriously write a code that would let you view the golden sun overworld???
Yes... At least the map data without sprites... which is in the Master File Table... (I'm pretty sure I could do sprites as well... but i have not focused on how they were done much.... Yet!)  I am afraid the image will be so big, that doing a virtualized method would probably be the way to go, but in either case, non-virtualized is better than nothing at all.
(@virtualized = Basically dealing with only the blocks of data you need at a time.... so basically you make a new image anytime you scroll.... And by non-virtualized, I mean creating the entire image on load..) Imagine how much data that is with 32bpp, the format I use.

Quote
Once you can view it, editing is just a few steps away right?
Umm... Yeah.... Pretty much.... Whether those steps are hard or not, is up to the coder to decide. - Doing compression where it needs to be done, and repointing data for data that is variable. (Compressed data is usually always variable.)
« Last Edit: September 20, 2015, 11:34:02 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
zman9000
Golden sun fan/Map Builder
Luna Clan

Lord Zed

Excellent Member
*

Coins: 0
Offline Offline

Gender: Male
I am: A guy who just really likes golden sun
Posts: 894

« Reply #7 on: September 20, 2015, 11:54:36 PM »

Quote
Any chance it could have been a different version of the editor?
I joined the site just before version 0.4 was released, and I've never used version 0.5.
So really i don't know what to tell you.
Logged

Check my youtube channel out for lots of cool gaming related videos at http://www.youtube.com/user/xXzman9000Xx
View Profile
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 1
Offline Offline

Gender: Male
Emblems: Website Founder
Clan Position: Creation God of Sol
Posts: 1763

« Reply #8 on: September 30, 2015, 02:00:31 AM »

It's most definitely the editor not reading things right.


All maps are stored as a single two dimensional array, but the layers in the map have different tile offsets so they have to be interpreted differently.  Often larger maps programmatically alter the positioning of layers in the array as the player walks around making it difficult for the editor to figure them out correctly.


It doesn't include fixing the overworld/World Map map... (I never got that working... But I'll probably code that in my new C# program some day, anyway... I think I know most of what I need to know, so shouldn't be that difficult... I guess I'm just lazy at putting it together, sometimes.)
You could seriously write a code that would let you view the golden sun overworld???
Once you can view it, editing is just a few steps away right?

I had ripped the whole thing at one point, it just never made it into the editor because of the complexity of streaming sections of the map into and out of memory as you scrolled around it.  It was just too large to load all of it at once like the rest of the maps.


EDIT:  About the 12-bit tiles, I can't remember if I ever realized that... I seem to recall having made the editor read them as 11-bit instead of 12-bit for a reason, but it was too long ago for me to remember exactly what it was and all of my notes are hidden away in a backup I have stored elsewhere now.
« Last Edit: September 30, 2015, 02:30:05 AM by Atrius » Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 29
Offline Offline

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

« Reply #9 on: September 30, 2015, 06:18:30 AM »

Quote
EDIT:  About the 12-bit tiles, I can't remember if I ever realized that... I seem to recall having made the editor read them as 11-bit instead of 12-bit for a reason, but it was too long ago for me to remember exactly what it was and all of my notes are hidden away in a backup I have stored elsewhere now.
From the cbox:
Quote
September 09, 2012, 07:12:30 AM - Teawater - That'll make importing Vale into GS2 that much harder, unfortunately.
September 09, 2012, 07:01:57 AM - Teawater - Yeah, that might be it. I forgot to check out GS2's.
September 09, 2012, 07:00:01 AM - Atrius - Or maybe it's GS1... In GS2 there is not enough RAM allocated for 12 bits worth of tiles.
September 09, 2012, 06:55:57 AM - Atrius - Vale is wierd...
September 09, 2012, 06:53:43 AM - Teawater - The code itself said it was 12-bit. = http://i900.photobucket.com/albums/ac208/charleysdrpepper/perfectvale.png
September 09, 2012, 06:47:17 AM - Teawater - Vale maps.
September 09, 2012, 06:46:58 AM - Teawater - Then why is it that when I made an edit to the editor that it displayed correctly in testing?
September 09, 2012, 06:43:51 AM - Atrius - What maps are you looking at anyway?
September 09, 2012, 06:37:12 AM - Atrius - Especially considering you can grab them and drag them around in the editor.

Wait, wait wait... You're telling me the tile values are 12 bit?  MADNESS!!  MADNESS I SAY!  There is not room enough allocated in RAM for that many tiles.
September 09, 2012, 06:22:03 AM - Atrius - I think the black /tiles in the Dekan maps were something else.
September 09, 2012, 06:18:15 AM - Teawater - This doesn't fix the black tiles in the DEKAN maps, though... Which is to be expected.
September 09, 2012, 05:51:59 AM - Teawater - *Check Editor* Yup, Atrius reads them as 11-bit.
September 09, 2012, 05:32:20 AM - Teawater - If you remove the "8"s... I get the result of the messed up tiles...  So I assume that's the problem.
September 09, 2012, 05:25:31 AM - Teawater - I'm looking at Vale in GS1 at position 0201A800.
September 09, 2012, 05:23:00 AM - Teawater - Hmm.. So the maptile numbers are 12-bit. And I've noticed some of those messed up tiles are in the x800s...
(Note that the last version of Atrius's official editor was released February 2012)
« Last Edit: September 30, 2015, 06:37:16 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
Pages: [1]   Go Up
  Print  
 
Jump to:  

Cbox
December 09, 2018, 07:43:31 PM
Fox: A banana for you, a banana for me, let's all open a banana and enjoy!
December 08, 2018, 09:48:52 PM
Drake baku: ba... ba.... bana.... bana.... banana.... nanananananananana..... and now back to doing normal, kinda
December 07, 2018, 05:43:02 PM
Luna_blade: Hey I forgot the christmas theme
November 29, 2018, 09:01:09 AM
zman9000: ded
November 19, 2018, 11:05:28 AM
Drake baku: Good day to ya all
October 30, 2018, 09:45:58 PM
Atrius: There used to be where I got the battle sprites for Kraden, but that site doesn't exist any more.
October 26, 2018, 01:31:40 PM
Infitek: Do you know if there any custom Alex battle sprites available on the internet ?
October 26, 2018, 01:31:01 PM
Infitek: Hey everyone
October 13, 2018, 03:23:06 AM
Salanewt: Updated it to provide more info that I forgot to mention.
October 13, 2018, 03:16:48 AM
Salanewt: I'm still trying to iron out IQ 2 but I'm pretty sure it's entirely random targeting.
October 13, 2018, 03:16:29 AM
Salanewt: Oh yeah, I posted some more info about enemy IQ.
October 12, 2018, 09:51:27 PM
FoxThe HTML5 project is too small to count
October 12, 2018, 06:19:48 AM
Luna_blade: there is jjppof's html5 project...
October 12, 2018, 06:19:17 AM
Luna_blade: Though Momo rings a bell it seems I came here after you left
October 11, 2018, 12:49:41 AM
Fox: (If that makes sense.)
October 11, 2018, 12:48:33 AM
Fox: Yeah, I guess so.  More just saying that's a good place to get answers to GS related questions at the moment.
October 11, 2018, 12:42:28 AM
Crystal Sonata: I did before, but I guess I could try it again
October 11, 2018, 12:41:32 AM
Fox: Not much at the moment. This forum seems pretty quiet. Perhaps you'd be interested in joining the Discord for GSHC that seems to have more activity?
October 10, 2018, 11:16:53 PM
Crystal Sonata: Any projects going on? I need a distraction from the daily grind and I'm interested in hacking GS again.
October 10, 2018, 10:02:53 PM
Fox: Thanks, and good to see you too!

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.152 seconds with 22 queries.