Golden Sun Hacking Community

Golden Sun Hacking Community => News & Announcements => Topic started by: Atrius on 01, July, 2011, 12:09:48 AM



Title: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 12:09:48 AM
(http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/Logo_t.png)
Version 0.4



[Download Link] (http://www.goldensunhacking.net/downloads/GoldenSunTLA_Editor_v0_4.zip)
Version 0.4, June 30, 2011 (1.37 MB .zip)

(http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/th_GSTLA_editor38.png) (http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/GSTLA_editor38.png) (http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/th_GSTLA_editor39.png) (http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/GSTLA_editor39.png) (http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/th_GSTLA_editor40.png) (http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/GSTLA_editor40.png) (http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/th_GSTLA_editor42.png) (http://img.photobucket.com/albums/v698/AtriusV/Games/Golden%20Sun%20Project/GSTLA_editor42.png)



Some of the changes from v0.3
- Artifact editor
- Shop editor
- Innate Ability editing added to party member editor (Only compatible with TLA)
- Ability animations now identified by names of abilities that use them
- Preview pane added to Ability Animation selector (Only compatible with TLA)
- Function call detector added to NPC editor (Allows easy editing of shop & dialogue data called in ASM scripts of NPCs, only compatible with English TLA)
- Improvements to Sprite viewer (You can now view all the sprites in a sprite set)
- Compression efficiency improved
- Improvements to data location detection methods (Slight speed up of loading ROMs)
- Some very basic compatibility with NitroROM filesystem (.NDS files)
- Bug Fixes
-- Error reading byte in map editor
-- Leak in data repointer fixed
-- String mismatches on foreign language versions (Most notably Japanese)
-- "*Crashes Game*" labels on ability animations offset by 1 slot


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: FelixWolf on 01, July, 2011, 12:22:28 AM
Cool V0.4 is finally up =D nice done Atrius


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: dwkjohn on 01, July, 2011, 12:58:34 AM
WOOOHOOOOO!!!! Thank you Atrius. just in time for me to get off work, relax, and hack away. yeah!


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 01, July, 2011, 02:15:31 AM
And to think that I asked just an hour or two ago how close we were to a release.  Anywho, time to fiddle!

Edit:  BLARG!  Still can't run it straight from the start menu!

I get this error message:

Code:
___________________________________________
ERROR in
action number 1
of Create Event
for object obj_editor_sys:

Cannot locate string: title

Edit2:  Darn, still can't use the Marquis class.  Can't wait until the compression tables are fixed for that.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 05:51:56 AM
The shortcut to the editor problem has been frustrating me for a long time...

[Version 0.4 Fix 1] (http://www.goldensunhacking.net/downloads/GoldenSunTLA_Editor_v0_4_f1.zip)  I've also replaced the regular v0.4 link with the fixed version, to verify if have the latest version check the  "Help" > "About" section of the editor, the version should read "Version 0.4 fix 1"

Contains bug fixes:
- Fails to open some ROM files with no error message displayed


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 01, July, 2011, 05:56:38 AM
First of many bugfixes to come, I bet.  If the last one's any indication, as we find bugs, they'll get fixed.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 06:02:22 AM
I only put high priority on program breaking bugs, like not being able to open files or see sprites at all.  For smaller bugs I'll wait to bundle a bunch together before I release a fix version.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 01, July, 2011, 06:06:15 AM
Well, that's why we're going to be testing it.  There's not as many things in this one, so I'll be able to test it a bit better.

I do want to check something, though - is there a way to determine which items go in which shop type, or is that hard coded?  It'd be nice if I could test a psynergy shop out, but if I can't fuse the two equipment shops I'm kinda screwed there...


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 06:08:05 AM
I haven't tested it, but I would think it's based on the item type setting for the item (Value in top-right corner of item editor)


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 01, July, 2011, 06:09:30 AM
If it's just Weapons for weapons, and the seven or so armor types for armor, and we can't change that... that's gonna suck.  It'll really limit what we can do and test.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Griever on 01, July, 2011, 07:33:20 AM
Wah, v0.4 along with a fix .. Nice
Thanks Atrius.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: MaxiPower on 01, July, 2011, 10:56:38 AM
woop woop woop.. thank you Atrius :D <3


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Salanewt on 01, July, 2011, 02:45:58 PM
Hooray, thanks for the new release Atrius! With the new fix, everything should work very well for us now.

Role: Ah, but the General Shop might work, I think. I will do a quick test with a Psynergy bestowing item later. If that works, then we can make some of the Item Shops into General Shops, being easier than doing it the other way around.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 01, July, 2011, 04:13:38 PM
General shops contain all shop types.  They don't specialize in any type, they generalize instead.  Basically, General means "All of the Above".  Item shops can work in a pinch, but ideally what we'd want to do, if limited to 3 types and the catch all, is to combine the weapon and armor shops.  As I said above, Armor shops very rarely ever contain new artifact armor, and the selection of common stuff is never really big, so it'd be easy to combine... as long as the editor/code lets us.  If it's hard coded and requires an ASM editor, we're SOL.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: FelixWolf on 01, July, 2011, 06:57:19 PM
i just don't understand this two things:
1.- It doesn't open the files when the extensions is in caps: .GBA
2.- when i go to patch it says that only in the english version but i have the english version :S


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: ScottTheAdept on 01, July, 2011, 07:05:29 PM
I have no intention of being a nuisance, but is using a fresh rom to hack mandatory? Because as i said in error reports, if you open a rom that has already been edited before with v0.3, with the v0.4 editor and fiddle with it, if you attempt afterwards to open said rom in VBA, it decides to give you a black screen. I apologize if it is only happening to me and i am just spouting personal issues.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 07:08:54 PM
1.- It doesn't open the files when the extensions is in caps: .GBA

The shortcut to the editor problem has been frustrating me for a long time...

[Version 0.4 Fix 1] (http://www.goldensunhacking.net/downloads/GoldenSunTLA_Editor_v0_4_f1.zip)  I've also replaced the regular v0.4 link with the fixed version, to verify if have the latest version check the  "Help" > "About" section of the editor, the version should read "Version 0.4 fix 1"

Contains bug fixes:
- Fails to open some ROM files with no error message displayed

2.- when i go to patch it says that only in the english version but i have the english version :S

Does it just say English version?  It should say "english version of The Lost Age" meaning they also don't work for the original Golden Sun.


I have no intention of being a nuisance, but is using a fresh rom to hack mandatory? Because as i said in error reports, if you open a rom that has already been edited before with v0.3, with the v0.4 editor and fiddle with it, if you attempt afterwards to open said rom in VBA, it decides to give you a black screen. I apologize if it is only happening to me and i am just spouting personal issues.

Only to create patch files.  Also, as I said in error reports, post a patch there of your hack because that's not supposed to happen.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: ScottTheAdept on 01, July, 2011, 07:15:10 PM
Alright. I want it down as soon as you get it though k? It is in the alpha stages and terribly needs to be revised.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Spook on 01, July, 2011, 07:30:02 PM
Oh wow, this is great! Keep up the good work Atrius!


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: ScottTheAdept on 01, July, 2011, 07:45:07 PM
I dunno if it was supposed to be there but it's now in the downloads section. If it's not supposed to be there, it should be removed. (Heck remove it anyway.)


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 07:53:37 PM
I suppose "Error Reports thread" and "Downloads section" do sound kind of similar, thanks for making my job more difficult.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: ScottTheAdept on 01, July, 2011, 07:55:52 PM
Ah sorry. I dont really know how to post a patch on a post...


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 01, July, 2011, 08:06:57 PM
Certainly there is a fifth Shop Type...

081080D0 = I found assembly here that compares the values.. the compare with "04" would be the fifth Shop type.. this is assembly code read when going to artifacts in-game.

Also, I found the the ROM Shop Type value..

0810C4FA (for Daila's Item Shop) = All numbers ABOVE 04 do not have artifacts.

03 and 04 seem to act as a General Shop, only, the intro-dialogue is different making it sound more like a Weapons Shop.

I kind of wonder if there is more to it then that... I will be testing it further.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 08:18:32 PM
That code does the exact same thing if the value is set to 4 as it does when the value is 3...


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 01, July, 2011, 08:26:00 PM
That part of the code is to show that it does use 04, not that it is any different.

Either way.

00 = Items Shop - Sells Item artifacts
01 = Weapons Shop - Sells only weapon artifacts.
02 = Armor Shop - Sells armor artifacts
03 = General Shop with dialogue that Ïf you need it, we got it." -Sells all artifacts
04 = General Shop(?) with dialogue of "Weapons Shop" - Sells all artifacts
05 = Like 04, but sells no artifacts. (Might not be a shop type.)
06 = " and so on.
Anyway, that code is for artifacts, I'm just saying it is what got me into checking the fifth shop type, so the use between 03 and 04 will include the same artifacts.

EDIT: Whoops, fixed numbering.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 01, July, 2011, 09:56:59 PM
[Version 0.4 Fix 2] (http://www.goldensunhacking.net/downloads/GoldenSunTLA_Editor_v0_4_f2.zip)  I've also replaced the regular v0.4 link with the fixed version, to verify if you have the latest version check the  "Help" > "About" section of the editor, the version should read "Version 0.4 fix 2"

Contains bug fixes:
- Some edited ROMs only display a black screen when run
- Attempts to fix "Cannot locate string" errors when run through a shortcut


If you were experiencing the black screen problem you can repair your ROM by editing any character's innate psynergy (Even though you may not have done so before experiencing the error).  Using the arrow buttons to the right of the innate psynergy list to change the order, and saving will suffice.  You can switch the order back afterwards, as long as you save inbetween.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Mastermind on 01, July, 2011, 11:42:59 PM
Great job Atrius, this one came out much sooner than I expected.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Charon on 02, July, 2011, 01:52:51 AM
This is great news, Atrius! A pretty quick release, too.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 02, July, 2011, 01:58:20 AM
Sooner than expected?  He said he'd do it by the end of June, after missing his previous two deadlines...


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Charon on 02, July, 2011, 02:00:54 AM
Well, its better than his last update, which was over a year and a half.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 02, July, 2011, 02:05:41 AM
Aye.  And if this is earlier than you expected... dang, y'all don't really have very high faith in Atrius at all, do ya?


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Charon on 02, July, 2011, 02:06:59 AM
Haha, yeah... but I kinda got used to a long time with no updates  :Sweat:


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 02, July, 2011, 07:36:40 AM
Sooner than expected?  He said he'd do it by the end of June, after missing his previous two deadlines...

I'm pretty sure I never set deadlines.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 02, July, 2011, 08:51:37 AM
You did.  You don't remember?


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 02, July, 2011, 01:04:10 PM
Sooner than expected?  He said he'd do it by the end of June, after missing his previous two deadlines...

I'm pretty sure I never set deadlines.
I'm pretty sure he is right, I'm sure these statements were only giving us an idea when we should expect them, not that they would necessarily have to be out...

0.2 to 0.3
Quote
Hrmm.... I'm not one to publicly announce deadlines I'm not absolutely sure I can meet yet, but at the moment the goal I'm shooting for is to have the next release out before the end of October.  If things keep going the way they have been for me though, that might not be possible.
This is NOT a deadline, this is a goal, as he clearly says.

0.3 to 0.4
Quote
The release will be before the end of June assuming no more program breaking bugs show up.
This one's kinda... harder to tell.. but it still is not really a deadline since if he had program breaking bugs he can still get the editor in later.


-And if there was one from 0.1 to 0.2, I do not believe I was here to read it.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 02, July, 2011, 01:11:19 PM
Wait, so this is just people bitching about terminology?  Really?

Also, this was planned to come out ~march/aprilish, iirc.  Mentioned somewhere in the Cbox back one time we were bugging him about it.  However, that one really bad bug prevented the release for quite some time, and as it was a legit reason, the targeted release date was missed.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: MaxiPower on 02, July, 2011, 01:14:01 PM
it comes when it comes....


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: dwkjohn on 02, July, 2011, 01:16:11 PM
Mentioned somewhere in the Cbox back one time we were bugging him about it.

exactly. he was probably just givinf a very rough estimate to get you off his back. that is not really a definite deadline. I mean, saying that he planned a deadline bcz "he mentioned it in the cbox that one time when we bugged him." really? is there anywhere where he posted an actual date instead of an estimate of what month?


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: MaxiPower on 02, July, 2011, 01:20:32 PM
its not a deadline because you cant make deadlines when it comes to coding, you either work out the code or you dont... What's not to understand about how this works...? All you are doing Role is sounding ungrateful...


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: JamietheFlameUser on 02, July, 2011, 03:29:48 PM
Woohoo! Shop editing!

Awesome!~


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 02, July, 2011, 03:52:32 PM
Yeah, Shop Editing is cool...

I forgot to comment on some earlier comments...

Quote
I do want to check something, though - is there a way to determine which items go in which shop type, or is that hard coded?  It'd be nice if I could test a psynergy shop out, but if I can't fuse the two equipment shops I'm kinda screwed there...

Quote
I haven't tested it, but I would think it's based on the item type setting for the item (Value in top-right corner of item editor)

Quote
If it's just Weapons for weapons, and the seven or so armor types for armor, and we can't change that... that's gonna suck.  It'll really limit what we can do and test.

I did do some research on this yesterday. It is assembly coded. And yes, they are based on the item type values.


00 - Items           - Item Shop
01 - Weapons         - Weapon Shop
02 - Armor           - Armor Shop
03 - Chest Protector - Armor Shop
04 - Head Protector  - Armor Shop
05 - Leg Protector   - Armor Shop
06 - Fan             - Item Shop
07 - Lucky Charm     - GS1: Item Shop ; GS2: Weapon Shop
08 - Ring            - Item Shop
09 - Open            - Armor Shop
0A - Underwear       - Item Shop
0B - ?               - Item Shop

All item types that weren't assigned a shop type is shop type 0 (Item Shop)

Now, Shop Types affect two things that I know of, so far.

-All the dialogue the NPC says.
-What Kind of artifacts are stored in the Shop.

Locations in Assembly to note:
Golden Sun 1:
080B0070 - Function (List artifacts that pass requirements?)
-080B0092 - No comparison with 3 and 4, so there seems to be no General Shops.
08078480 - This function is the Item Type check. It assigns Shop Types to certain Item Types. (More research needed.)
Golden Sun 2:
081080A8 - Function (List artifacts that pass requirements?)
-081080D0 - This area compares the shop type with 3 and 4 and skips the Item Type check.
080AEC68 - This function is the Item Type check. It assigns Shop Types to certain Item Types.


r0 = shop
r1 = item type
r5 = current shop

I was also working on a piece of assembly code for fun that might work for a Shop Type Editor.

This one, much like the innate psynergy, will likely have a custom-made database as well.
I decided to make them flags. The custom database will contain a 16-bit list of shop type data.
The flags will say which item types belong in the shop.

(Untested Code)

mov r0, #0x0 //Item type
ldr r2, [08F00000] //Random address for the database
lsl r3, r5, #0x1
add r2, r3
ldrh r2, [r2, #0x0]
cmp r0, r1
bne (d)
a: lsr r3, r2, r0
and r3, #0x1
cmp r3, #0x1
beq (b)
d: add r0, #0x1
cmp r0, #0xB //Number of item types
ble (a)
b (c)
b: mov r0, r5
c: pop {pc}


That piece of assembly code was a bit more difficult then the innate psynergies, but it was fun. I will test it in the future to make sure all of it is correct.
The goal here was to have items fit in multiple shop types instead of one.


PS - Do not forget that if a Shop Type editor happened, you would need dialogue editing as well. Shop Types 01 and 04 use the same text. Later, I might see if I can change one to not match the other.

Oh yeah, and if my assembly code works, then we have made some progress on being able to have up to like 256 shop types? More then anyone would ever need. Also, You might be able to edit the assembly code I have made in such a way that it is item specific instead of item type specific.  r6 holds the current item being checked, I think.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 02, July, 2011, 05:43:10 PM
I could have sworn there was another way to change the shop dialogue.  As I recall there were some towns where the shop keepers kinda speak with a dialect, but use the same shop type values.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 02, July, 2011, 09:15:53 PM
You mean like Xian in Golden Sun 1? It seems all three shop keepers use a different set of dialogues... Interestingly.

Golden Sun 1:

-Password/etc. text
-Shop text (Like "Your coins:" etc.
Ln 3227 - Come in! Welcome! Take a look at our fine weapons.
Ln 3270 - Ask me anything about armor.
Ln 3313 - Welcome! we have just the gear you need.

Ln 3356 - (Inn Text) - Welcome to our inn. It's ## coin(s) for a room. Would you like to stay?
Ln 3361 - (Sanctum Text) - Welcome, weary wanderers. What aid do you seek?
Ln 3404 - You need weapons, warrior. Check our weapons.
Ln 3447 - Talk to me, warrior. I have good armor.
Ln 3490 - I have much travel gear. Look at it all.

Ln 3533 - (Inn Text) - Welcome to my inn! We charge ## coin(s). Will you stay?
-character names text

Hmm.. It doesn't look like Golden Sun 1 has General Shops text...


Golden Sun 2:

Ln 4684 - Come in! Welcome! Take a look at our fine weapons.
Ln 4727 - Ask me anything about armor.
Ln 4770 - Welcome! we have just the gear you need.
Ln 4813 - (Inn Text) Welcome to our inn. It's ## coin(s) for a room. Would you like to stay?
Ln 4818 - (Sanctum Text) Welcome, weary wanderers. What aid do you seek?
Ln 4861 - (Yallam Forge) Right when I saw those materials, I had to work!
Ln 4887 - (General Shop) Welcome, welcome! If you[3]need it, we've got it![3]See anything you need?[30]
Ln 4930 - Character names.

I find most places use the first set of dialogues.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 03, July, 2011, 01:21:03 PM
Blarg, so we're going to need an ASM editor to change them?  That really sucks.  It almost forces you to have an equip system in the same vein as golden sun itself...

I was talking to Charon earlier about a Suikoden hack, for instance.  It'd need a Item, Armor, and Rune shop - meaning we'd have to swap some lesser used types into Left hand, Right hand, and hopefully Weapon runes...  But without a way to do that, all we can do is just plan...


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 04, July, 2011, 01:10:06 AM
Yeah, but with Atrius's awesome abilities, I'm sure he may be able to rewrite that area of assembly to fit our editing needs. (Like what I was trying to do, and like what happened with the Innate Psynergies.)

I have also edited that post (above) to contain the assembly locations in GS1 as well.

Most recently, I have been looking into how the conversations work for GS2.  Anyway, the way it is done explains why Shop Types 4+ use the first bank of Shop related text. (Weapons Shop Text)

Assembly to note:
0810851E - This area checks the shop type and adds to the line number to get the set of text related to the shop.

More comparing the shop type value with 2, 3, and 0. In which case, it would add to the Line number for the text bank. It adds nothing if it is 1 or any other number.

For those who will actually look at the assembly code, I will put the hexadecimals down to make it easier:

Ln 4684 (0x124C) - Come in! Welcome! Take a look at our fine weapons.
Ln 4727 (0x1277)- Ask me anything about armor.
Ln 4770 (0x12A2)- Welcome! we have just the gear you need.

Ln 4887 (0x1317) - (General Shop) Welcome, welcome! If you need it, we've got it! See anything you need?

And if you have to ask... Yes, it looks like this could be rewritten as well? Though, I am not sure if you have room for more shop type text banks in the text bank. (I kind of doubt it, though.)


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Charon on 04, July, 2011, 01:18:20 AM
Do you think you could copy-paste the Item shop's code and tell the game to use one of the blank arguments to redirect to the copy, and have different phrases?


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 04, July, 2011, 01:21:24 AM
Considering Xian in GS 1 there should already be a way to change the phrases without doing anything ridiculous.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 04, July, 2011, 01:58:15 AM
Golden Sun 1's Shop Type Check for the dialogues is right around here: (I found it very quickly by searching the line number in a hex editor.)

080B04FC

And the part that uses the second group (like Xian) is just below this.. at 080B051C - It loads a byte, but it is used like a Boolean/flag.

Edit: I do not believe Golden Sun 2 has this..? But I will have to check where this byte actually is soon.
Edit2: On first glance, it looks like the byte is in the Shop data. - Edit3: Located in RAM.

I have backtracked the assembly code..

02008434 = Xian's Item Shop Function Call

10 = Weapon Shop
11 = Armor Shop
12 = Item Shop

080B02BA = This is checking the shop numbers. If they are 10, 11, or 12. Then you use the alternate bank.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 04, July, 2011, 10:41:36 AM
Hey, I didn't realize this thing had hex viewer support for Dark Dawn...  Still, can't make heads or tails of it, but still, interesting to see that you're working on adding DD in here...


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 04, July, 2011, 02:52:59 PM
Try any NDS, they all show the filesystem and hex editor.

Anyway, the list of assembly coded here.
GS1:
Shop Type Upgrading
-Artifacts
-Dialogue ( (a) Shop Type and  (b) Shop number based versions.)
GS2:
Shop Type Upgrading
-Artifacts
-Dialogue ( (a) Shop Type ... but (b) might not be coded in here.)


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 05, July, 2011, 08:58:07 AM
While we're on lists of ASM stuff, don't forget Damage Formulas and likely added effects as well.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 09, August, 2011, 01:55:24 AM
Just a thought:  It may be a good idea to link to the latest version of the editor in the official editor thread, rather than the initial 0.4 release.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 09, August, 2011, 03:36:37 AM
The main 0.4 version link is updated with each new fix release.  The separate links are just for convenience so that people don't have to clear their browser cache to download the new version.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 20, February, 2012, 11:54:59 PM
Sooo... it's been half a year.  Anyone who still wants to claim I'm pushing him too hard, bug off.

What updates for 0.5 do we have so far?  I mean, hell, it's been nearly 8 months.  It's about damn time for an update.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: zman9000 on 23, February, 2012, 04:51:13 AM
sure sure role. I'd like that to. I'd also like a non buggy complete update, so I can wait.
I know he's busy, and heck. if i was working on it i wouldn't have anything even done yet due to my free time being so little with college and everything i have going on.
Yes there's one person working on this, but we can't do anything about it.

So .... if you shut up and stop whining about everything that doesn't go as fast as you want, he could be using the time working on it that he uses replying to your nagging posts...

I don't care if it takes a year to come out, i just want it done and done right!


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 23, February, 2012, 05:28:53 AM
Quote
Yes there's one person working on this, but we can't do anything about it.
Ofcourse, if we had more people actually hacking the game itself, we could probably help record a handful of stuff that Atrius can use in the process of making the editor. We already have things like shop_display, and what not displayed in the NPC code.

I once started a list of Golden Sun's functions once, but I never completed it.

I have decided it was time to create a function list for Golden Sun 2. The way this works is that I give the name of the function first (A made up one that will pretty much summarize what the function does.), and then put in parenthesis its arguments. If nothing is in the parenthesis, then there are simply no arguments. Returns are noted by the "as datatype" and/or written out. I think most functions either return nothing, or one thing. I do it this way because there are a lot of functions in this game, and it would be nice to keep things compact. Many topics already talk about many of the functions listed, so I may also put in a link to them for your convience.

Anyway, the end-goal for this topic is to help coders call functions which they need without forcing them to make it themselves- That would simply be a waste of space, now wouldn't it?


* = Needs more researching.

08014878 = rand() as Int16 //Returns a 16-bit random number.

08014DAC = ?(add_to_pointer) //What do pointers at 03000000 and 03000004 refer to?

08016CA4 = locate_char_data(character_id) as Int32 //Returns pointer to character's data (Party Member or Enemy)
08016CE4 = read_flag(flag_number) as Boolean
08016CFC = write_flag(flag_number)
08016D18 = clear_flag(flag_number)
08016D34 = toggle_flag(flag_number) as Boolean //Returns 1 if toggled on, else 0 if toggled off.
08016D5C = read_byte(flag_number) as Byte
08016D6C = write_byte(flag_number, value)
08016D7C = increment_byte(flag_number) as Byte //Returns incremented byte. (Increments by 1.)
08016D98 = decrement_byte(flag_number) as Byte //Returns decremented byte. (Decrements by 1.)
08016DB4 = read_4bit(flag_number) as Int32 //Returns 4-bit value.
08016DD0 = write_4bit(flag_number)
08016DF8 = BIOS call swi $0B - (For copying data.)
08016DFC = swi $19 (0)
08016E04 = swi $19 (1)
08016E0C =

*080B0B78 = Add Djinni
*080AE834 = Add Djinni / Raise flag in Storybook flags. (02000046)
(Party_Member (0-7), Djinni_type (0-3), Djinni (0-19)) http://forum.goldensunhacking.net/index.php?topic=1421.0


080AEE98 = get_item(party_member, item) as Int32 //Returns Item Slot # (0-14, -1 if not in stock.)
080AEEC8 = get_item(item) as Int32 //Returns Party Member (0-7, -1 if not in stock.)

080AF148 = remove_item(party_member, item_slot) //Returns -1 for empty slot, 1 for decremented quantity, 2 for removed altogether.
080AF1C8 = remove_itema(party_member, item_slot) //Returns -1 for empty slot, 1 for decremented quantity, 2 for removed altogether. Artifact check. (Makes the item available as an artifact if it is one.)


080AF298 = remove_item(item) //Returns 0 //Searches all party members for item and removes/decrements it.
080AF2C0 = remove_itema(item) //Returns 0 //Searches all party members for item and removes/decrements it. Artifact check. (Makes the item available as an artifact if it is one.)

080AF348 = add_artifact(artifact_slot, add_quantity) //Returns quantity of artifacts of this item. (0-99)

080AF378 = add_artifact(item, add_quantity) //Returns quantity of artifacts of this item. (0-99)

080AF4B8 = psy_check(party_member, ability) as Boolean //Returns True if s/he has the ability.

080AF6F4 = add_ability(party_member, ability) //Returns an ability_slot

080AFDBC = party_members() as Int32 (0-8) //Returns how many party members are currently in your team.
080AFDD8 = add_party_member(party_member) as Int32 //Returns new number of members in team.
080AFE1C = remove_party_member(party_member) as Int32 //Returns new number of members in team.
080AFE78 = copy_party_members(address) as Int32 //Returns number of members in team. Note: address is where to copy them to. (16-bit spaced.)
080AFEB0 = *unknown(number_to_add) as Int32 //Returns added number. (0 - 999999) More research needed on 02000250.
080AFED4 = *unknown(number_to_add) as Int32 //Returns added number. (0 - 999999) More research needed on 02000378.
080AFF00 = *unknown(number_to_add) as Int32 //Returns added number. (0 - 28) More research needed on 0200037C.
080AFF28 =


080D2414 = psy_check(party_member_and_ability) // 00003C00 = party member, 000003FF = ability; Returns -3 (PC does not have ability), -2 (PC not in party), -1 (PC8+), 0 (PC has ability)
080D2454 = shortcut_update_clear() //If you don't have characters with these psys, then the shortcut(s) are cleared.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 23, February, 2012, 04:52:41 PM
I've brought this up to Atrius several times, and every time he's shot down the idea of a team working on it, zman.  You may be newer here, so you won't really remember, we once had to wait over a year for an update.  I'll be blunt - this is bullshit.  Minecraft, back when it was only being done by one person, still had a much faster rate of updates.  But it's been 8 months now, and nothing.

There comes a time when 'having a job' and 'working for the military' just doesn't cut it anymore - so I'm not whining.  I'm just sick of waiting.  I've waited for nearly three freaking years, and we can still barely do @#$% with this thing.  I think it's time we started getting more regular updates, like he promised us he'd give us LAST time he pulled this.

So stop bitching about me calling him out on the lack of updates.  He told us he'd never do this again after the bullshit that was the wait for 0.3, and yet here we are again.  I've got a damn good right to do this - I've made plenty of efforts to speed things along otherwise, from suggesting a team, to dropping hints, to the occasional direct question, and now after 8 more months of jack @#$% and ignored PMs, I'm getting sick of being in the planning stage still, and am making a public fuss.  I want to actually be able to do something respectable with the editor, zman.

You may be happy making silly stat changes and immature language options for the default game, but some of us actually want to make something new.  You haven't been here waiting from the start like some of us have, and haven't have to deal with the bullshit wait times.

It's time something started happening with this editor.  And I want Atrius himself to come and defend this, not some punk @#$ kid who hasn't been here from the start of the site.

Atrius needs to either make a team, or start actually putting out.  I've been patient long enough - we're now 2 console generations behind, have had a sequel come out, have been waiting so long we developed the site in a totally different direction, introducing clans and stuff despite Atrius wishes against such a thing because there's NOTHING TO @#$%&*! DO HERE.  The point of the site is the editor, and without anything being done, all we can do is twiddle our thumbs and give off a bunch of "You know, it'd be cool if we can do this"es.  Well yeah, it'd be cool if we could do it.  We discussed that back when this was an invisionfree forum!

So don't you dare tell me to shut up, zman.  I've waited for over three @#$%&*! years, I've not made a big deal, only dropping one or two "can we have a status update"s from time to time, with I think one big deal made when 0.3 hit the @#$%&*! 1 year dev point.  I'm sick of this bullshit, and I want something to be done.  We have at least two other people here who can work with the code, so it's time for Atrius to either man up and put out or it's time to get a team together.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Claros Flamestrike on 23, February, 2012, 06:24:41 PM
You know what?  Despite the anger and rage in Role's post, (however needed it is), I totally agree.  We did get promises and reassurances that there would be updates every couple of months.  And yes, Atrius, I understand that you're busy.  (I mean, I can't even set time aside to work on one of the "immature language" hacks of the game, let alone actually do something USEFUL with this tool!)  That's part of life.  But another part of life is knowing when you can't do something on your own and need help from your friends.  I may not actually know anyone here, nor do I claim to regularly interact with anyone outside the forum, but I like to think of this website as a place I can go to get ideas and criticism from people whom I can actually put up with.  Role and I may have had a bad start, but I know for a fact that even that has been left behind in light of all of us PULLING TOGETHER, even as an internet community.  I submitted some ideas for the community hack, and I've chatted with people through forum posts about random crap that I do with the game.  That kind of collaboration is fine, but it's limited.  Now, if I were to get even one other person to help with my extensive hack that I'm doing, then it would be easy peasy; it'd get done WAY faster than if I worked on it alone.

I guess the long and short of it is this: it's a bit childish and naive to keep the Editor's progress solely under your workload.  It doesn't make sense!  Like Role said, there's at least a couple people who would be more than willing and able to help with future updates.  If you're afraid that they'll just take over the project and start releasing the source code or some crap, then man up and assert yourself!  You are not only the creator of this tool, you are the administrator of its progress.  If you don't take steps to get on a regular release schedule, then people are going to leave the site and lose interest.  If getting on a regular, consistent release schedule means teaming up with other people who have the same passions for the game and coding, in general, then so be it.  Where is it etched in diamond that you, and ONLY you, can work on this?  Lighten your own load, man!

And, gods forbid, if you're keeping the Editor's work to yourself with the excuse, "It's MY project," then you shouldn't have made a community for it.  You're a smart guy, from what I gather.  Surely you knew that people would want to work on it at some point, whether with you or on their own.  It may be a tool with TONS of potential and already a good amount of applications, but it's just a program; what would you lose from letting other people work on it?

I've said my piece, and then some.  If you really want people to stay interested in the site and your Editor, Atrius, then figure out some way of giving them at LEAST screenshots of the progress that you're making.  For me, just knowing that there's SOMETHING going on, even behind the scenes, is enough.

- 2br02b


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Misery on 23, February, 2012, 07:07:32 PM
Atrius isn't stopping anyone from making their own editor, nor could he if he wanted. AFAIK he hasn't even turned down anyone actually capable of helping with the editor offering to do so. The lack of updates obviously means there is nothing of interest to report, and the content of your posts ultimately boils down to "we want an editor update", which is just spam. And you're making it sound like he has some kind of obligation to work on it.

It would be such a shame to abandon this project after getting this far, which is why I'm convinced he'd be working on it if he didn't have more important things to do. While it's true that he hasn't posted the promised status reports, you're the ones who should be apologizing this time.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: zman9000 on 23, February, 2012, 07:29:40 PM
actually role, i know about it all. the long update, and also why you can't really have more then one person work on it and still be effective.
he could make a team but they would have to be IRL if it were to help speed up the project.

I get why your mad. but adding a comment stating what you have said a billion times isn't going to make it go faster... heck, if you kept doing that to me I'd make it take longer... luckily Atrius is a nice guy when it comes to harassment... apparently... lol

Also I think your to stressed out role... need to take a chill pill... take a cat nap... or something.

so I beleve this sums up your posts

OMFGWTFBBQRAGEMOFO hurry up damn it JAJAJAJAJAJAJAJAJAJAJA
The translation might be off but I think I'm close ;)

And if your wondering why I'm picking a fight, its because
Quote
my life sucks, I'm in a bad mood, and unlike every other day on here, I DON'T FEEL LIKE PUTTING UP WITH HER SH*T TODAY! (I think I caught some of that BBQRAGE


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Kioll on 23, February, 2012, 09:22:30 PM
Actually, Zman, you're wrong about the real life dev team thing.  It's actually just as effective, if not more so,  to NOT be in real life.  This is why:  In order for multiple people to work on the same project, especially at the same time, it requires multiple computers and file sharing.  While having someone right beside you is nice for talking about ideas, ultimately it's just as easy to do so in an instant messenger.  File sharing is easily enough done, and, done right, you can keep people from taking their own copies of the file and dragging away your work, thus preventing the "he stole my @#$%!" problem.  So, in this case, it would be more effective to form a team online as it's easier to find someone who could prove useful online than it is in real life.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Kain on 24, February, 2012, 03:15:14 AM
Zman, don't provoke people needlessly and spam at the end of your sentence.

Role, that language is uncalled for, as is the attitude.

If I have to say anything again, another warning will be issued.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Salanewt on 24, February, 2012, 05:56:38 PM
As much as we would all love to have an update on the editor, you can't really go up to your employers and say "hi, I'm taking the day off of work today to work on a program for some obscure forum that I run" to them. I'm sure that Atrius will come around sometime soon and give us a minor update or something, if he hasn't already seen this topic yet that is. At least we even have an editor, we could have been forced to rely on hex editors for the bulk of our editing needs.

Besides, you don't actually need to use one to make a hack - a bit of research in the right places could prove quite beneficial to said hack's development. It would be pretty unrealistic to rely on the editor for 100% of a hack's development. It helps a lot as it is, and it comes with so much as well - items, abilities, enemies, PC stuff, text, object/NPC editing, viewing capabilities for so much more, etc. Heck, it does more than several other editors that I have seen. I guess we should just wait patiently for Atrius to come around and say something or other, and then we will all be happy... Right?


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 25, February, 2012, 01:21:52 AM
As much as we would all love to have an update on the editor, you can't really go up to your employers and say "hi, I'm taking the day off of work today to work on a program for some obscure forum that I run" to them. I'm sure that Atrius will come around sometime soon and give us a minor update or something, if he hasn't already seen this topic yet that is. At least we even have an editor, we could have been forced to rely on hex editors for the bulk of our editing needs.

Besides, you don't actually need to use one to make a hack - a bit of research in the right places could prove quite beneficial to said hack's development. It would be pretty unrealistic to rely on the editor for 100% of a hack's development. It helps a lot as it is, and it comes with so much as well - items, abilities, enemies, PC stuff, text, object/NPC editing, viewing capabilities for so much more, etc. Heck, it does more than several other editors that I have seen. I guess we should just wait patiently for Atrius to come around and say something or other, and then we will all be happy... Right?
That only excuses 1 month delays.  He promised us smaller, more frequent updates, remember?

One thing at a time, that's all we need, not huge updates.  Hell, when we found out about the 10x multiplier thing, he could have taken it on and added that functionality to fix it.  It doesn't take 8 months to do something like that, no matter what your excuse.




This all boils down to this:  I'm sick and tired of planning.  I want to start testing.  To have visible results, not just editing freaking stats.  So I can change what people say and make the game harder/easier/stupidly strange, but big freaking deal.  It's still very clearly TLA, isn't it?  I can't tweak formulas, I can't import images, I'm even limited as to what I can do with the stats themselves.  Hell, the last update was barely even a thing!  I don't mind small updates so long as they're frequent, but this is... it's just...

For as much as I would love to do with the editor, it's an exercise in frustration just waiting and depending on a single person.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rockisftw on 25, February, 2012, 02:40:05 AM
@Zman, if you're having such a sh*t day, then don't POST. I've had bad days, posted/pmed what I normally wouldn't but still got my point across. Yours just seems like rage.

@Role, I haven't been here since 0.2 -> 0.3.. nor the part where he promised frequent updates (or maybe I wasn't looking at the forums.. its a more recent thing) but, they have a point when it comes down to releasing an update complete, rather then in pieces/very buggy. Off the top of my head, I'll guess on sprite swapping.. for example. If he released a buggy version of that, in which it didn't call forth the right images, etc, more people would complain. But, the community could help fix it, so I see your point very well.

@Atrius, Thanks for taking the editor to even v0.4, it would take me too long to even begin thinking of hacking a GBA game without a simplified tool like this.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Atrius on 25, February, 2012, 03:56:23 AM
The frustration is understandable, it's all fair criticism.

Hmm... I've been thinking about this for a long time now, and I think I've finally made the decision.  It'll take me time to prepare a proper response, but it's coming, I'll try to have it up by the end of tomorrow.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 25, February, 2012, 01:02:06 PM
Yeah, I've been here since 0.1, so I've got a lot of time invested into this site.  I have a right to be frustrated.

@Atrius:  I hope you get a team together, to be honest.  Sala and Jamie seem to know what they're doing at least, so I suggest looking at them for team members.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: JamietheFlameUser on 25, February, 2012, 05:57:46 PM
Me? I don't code. At all. Well, I know a little bit of Visual Basic, but...

Anyway, I'd suggest getting Salanewt, Teawater, and Kide together as a team for this stuff.


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 25, February, 2012, 06:17:47 PM
Oh, right... Sorry, I keep confusing you and Teawater after his name change... I don't know why. :/


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: JamietheFlameUser on 25, February, 2012, 06:30:53 PM
Do I really make as little sense as he does? That's harsh.

XD


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Rolina on 25, February, 2012, 06:35:24 PM
Not really.  Like I said, I really don't know why.  Maybe it's because you used to be Venusian, and he kinda replaced you in my mind when he changed his name...

Geez, I confuse a lot of people on this site at times.  KoP and Kingzane at times, Sala and Teawater, you and Teawater... I'm so confused! D:


Title: Re: Golden Sun: The Lost Age Editor V0.4 Released
Post by: Daddy Poi's Oily Gorillas on 07, March, 2012, 02:42:01 PM
Quote
Do I really make as little sense as he does? That's harsh.

XD
Is that an insult?

Well, it almost looks like someone wants me in an editor team! That sounds nice, despite my ability to really do anything without PRO. Thank you very much, DLL file(s)!, and what not. (I'd really prefer not to buy it.)  However, I do have plans to see if I can convert this code to something I actually know more about.  Visual Basic.  This idea is only in the alpha stages, so I have put very little thought into it.

So anyway, just for population interest, who prefers Visual Basic over GML?