Golden Sun Hacking Community
03, July, 2020, 02:02:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: The last working version of the classic TLA Editor is Teawater's unofficial "mapeditor" draft.
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: 1 [2] 3 4   Go Down
  Print  
Author Topic: Class System Hacking Topic  (Read 27055 times)
0 Members and 1 Guest are viewing this topic.
JamietheFlameUser
Diamond Pokémon
Mars Clan

Does this look like the face of mercy?

Prodigy
*

Coins: 20
Offline Offline

Gender: Male
I am: Poke poke poke poke... I can't stop it...
Posts: 2634

« Reply #20 on: 09, February, 2010, 05:11:48 AM »

^see edits for reason why it was busted. XD now I feel like a moron.
Logged

:P

Lloyd: Easy as pie.
Genis: Sweet!
Presea: ...Sweetie pie...
Zelos: Let's not start on this again...

Spoiler for epic mindscrew:
View Profile

Regular Member
**

Coins: 20
Offline Offline

Gender: Male
Emblems: Second in Command of Jupiter
Clan Position: Jovian Head Adviser
Posts: 437

« Reply #21 on: 09, February, 2010, 05:21:40 AM »

From what I've tested so far, any number in the top box of the class editor except for the one's Role listed ( 1,2,6,7,12,13,14,15,16,17) will always result in a NPC class.

Another thing I have found: The base class does not always take precedent over other classes. If you use the same number in the top box as a base class, and create a whole new set of classes with the same requirements as the base while leaving both active, the newly created class seems to be of a higher priority than the old ones.
« Last Edit: 09, February, 2010, 05:28:52 AM by whizkidhvq » Logged

"You seek the truth but are you able to handle it? What you find may not be what you expected... and it may ruin you in the end. Knowing that, will you continue onwards in your journey? Or will you give up and return to a life of apathy? The choice is yours..."
View Profile
Zach
That guy that lives down the street
Mercury Clan

You ain't worth the time

Regular Member
*

Coins: 0
Offline Offline

Gender: Male
I am: Not sure about what to do with myself <.<
Posts: 419

« Reply #22 on: 09, February, 2010, 05:31:05 PM »

I think you have to change the required elemental levels of the first class. For example, the pierrot class has no requirements, so that
automatically takes priority over any other class. You have to make it so that the element requirements for that first class is not 0.

Yeah, I've already said that in an earlier post, except you have to change the required elemental levels of that whole class set.

I did, I set the requirements for the original class to 100 for each element. Instead it used the WRONG CLASS!!!

That's because you far-exceeded the requirements to use a class. The maximum number you can have, if I remember correctly, are as follows:

Base Class: 13
Dual Elemental Class: 7 of one element and 7 of another element
Tri-Elemental Class: 4 of one element, 5 of another element, and 4 of another element
Item Classes: 3 of every element

I just tried it on all the characters, and it works out fine for all of them...Check to see if you have any ? classes that share the same requirements. Right now, I can see that as being the only reason why it isn't working.

Anything named ? are usually empty unless you filled it in with w/e yourself
Logged
View Profile
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #23 on: 04, April, 2010, 04:42:35 AM »

Would you be so kind as to tell me exactly how you did that? I'm trying to do it with the Mysterious Card, but I'm not having any luck.
You have to make a class for EACH ELEMENT with a Class variable equal to that item's designated variable.  For mysterious card, this is 15.  Then you have to make classes with the following requirements:

 Venus / Mercury / Mars / Jupiter

 5 / 0 / 0 / 0
 8 / 0 / 0 / 0
11 / 0 / 0 / 0
14 / 0 / 0 / 0

 0 / 5 / 0 / 0
 0 / 8 / 0 / 0
 0 /11 / 0 / 0
 0 /14 / 0 / 0

 0 / 0 / 5 / 0
 0 / 0 / 8 / 0
 0 / 0 /11 / 0
 0 / 0 /14 / 0

 0 / 0 / 0 / 5
 0 / 0 / 0 / 8
 0 / 0 / 0 /11
 0 / 0 / 0 /14

 1 / 1 / 1 / 1
 2 / 2 / 2 / 2
 3 / 3 / 3 / 3




That should get you not only the ability for mono-element classes, but for an additional three multi-element classes.
« Last Edit: 04, April, 2010, 04:46:16 AM by Role » Logged

View Profile WWW
JamietheFlameUser
Diamond Pokémon
Mars Clan

Does this look like the face of mercy?

Prodigy
*

Coins: 20
Offline Offline

Gender: Male
I am: Poke poke poke poke... I can't stop it...
Posts: 2634

« Reply #24 on: 04, April, 2010, 04:52:58 AM »

^ late response is late. I already figured it out, and I've already made the Mysterious Card do this. Because the original class for it sucked. I mean, backstab is the worst EPA in the game, and the Card abilities are very expensive and very suckish. And the classes' low attack values make Sabre Dance next to useless on anyone, even Felix and Isaac.
Logged

:P

Lloyd: Easy as pie.
Genis: Sweet!
Presea: ...Sweetie pie...
Zelos: Let's not start on this again...

Spoiler for epic mindscrew:
View Profile
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

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

« Reply #25 on: 04, April, 2010, 07:55:10 AM »

Alright, I'm finally diving into the class code to figure out exactly what's going on behind the scenes here.

As suspected the first unknown value in the class editor is derived from the character's elemental level affinity.  The game takes the character's top two elemental levels and assigns a value based on the table below.

 Venus  Mercury  Mars  Jupiter
Venus 1 8 4 8
Mercury 3 6 310
Mars 4 9 2 9
Jupiter 510 5 7

Select the column that represent's the character's primary element, and the row that represent their secondary element.  So if a Mars adept was given a Mercury Djinni their value would be 3.  An adept that has no true secondary element is treated as though their secondary is the same as their primary.  There are a couple oddities as to which combinations are regarded the same, I double checked my work, and I assure you that they're not mistakes on my part.

Now here's the part you're going to hate.  Immediately after this value is loaded there is a block of code that, if we refer to the value as a variable called 'classType', basically translates to this:
Code:
if classType==2 && character==Jenna
{ classType=13 }
else if classType==6 && character==Piers
{ classType=14 }


I'm still working my way through the rest of the code, the next chunk looks like it deals with the class changing items.  From a quick glance it appears to use the specific index in the item list that they are stored at to identify them.


EDIT:
It's also probably worth mentioning how ties between elemental levels are handled in calculating the primary and secondary elements since there can only be one of each.

If two or more elements are tied for primary one of them will become primary, and one will become secondary.  If two or more are tied for secondary only one will become secondary, and the other(s) will not affect the class type value at all.  Merely due to the way the algorithm performs it calculations the elements end up being prioritized as such: Jupiter > Mars > Mercury > Venus.  Basically Jupiter always wins in a tie, and Venus always loses.

EDIT 2:
The actual priority is reversed from what I initially said.  Thank you, Kide, for the correction.
Venus > Mercury > Mars > Jupiter.  Venus always wins in a tie, and Jupiter always loses.
« Last Edit: 08, February, 2015, 05:50:16 PM by Atrius » Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #26 on: 04, April, 2010, 03:10:11 PM »

So I'm guessing the patch that would be needed to give all the characters their own classes would check to see if the character is Felix, Jenna, Sheba, or Piers, and if it is, assign new values? 

Say, if character is one of those four, then class type += 12?
Logged

View Profile WWW
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

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

« Reply #27 on: 04, April, 2010, 05:08:56 PM »

For their multi-elemental classes as well?
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #28 on: 05, April, 2010, 01:49:11 AM »

Of course.  That would prevent having problems like with Piers.  If we can have two sets of classes, we can build them so that they fit their respective teams.  This way, Piers can stay a fighter instead of being stuck as a mage, and Jenna can be a mage, instead of being stuck as a fighter.

Only Item-classes wouldn't be affected.
Logged

View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #29 on: 15, April, 2010, 09:00:12 AM »

Okay, to make it clearer as to what I'm trying to do, here's this:

Team One (Characters 0-3, argument += 0)

  Venus|  Mercury|  Mars|  Jupiter|
Venus 1| 8| 4| 8|
Mercury 3| 6| 3|10|
Mars 4| 9| 2| 9|
Jupiter 5|10| 5| 7|

Arg 12 = NPC, 0/0/0/0

Team Two (Characters 4-7, argument += 12)

  Venus|  Mercury|  Mars|  Jupiter|
Venus 13| 20| 16| 20|
Mercury 15| 18| 15|22|
Mars 16| 21| 14| 21|
Jupiter 17|22| 17| 19|

Arg 23+ - Item classes.  Each argument assigned to a specific item, that item grants the classes with this value.  Overrides other values.
Logged

View Profile WWW
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
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: 4604

« Reply #30 on: 22, April, 2010, 10:09:35 PM »

Quote
  VenusMercuryMars|   Jupiter|
 Venus 1| 8| 4| 8|
 Mercury 3| 6| 3| 10|
 Mars 4| 9| 2| 9|
 Jupiter 5| 10| 5| 7|


Select the column that represent's the character's primary element, and the row that represent their secondary element.  So if a Mars adept was given a Mercury Djinni their value would be 3.

Just to make sure, how again does the NPC (12) value fit into the chart (other than being a declared command)? The reason why I ask is because Isaac has the level required to be a Squire, yet his one Mercury djinni makes him an NPC (yet that value is 3, not 12). It is because his Mercury level overpowers his Venus level, yet Isaac does not have the requirements for any of the other classes, right?

Also, do you know what the bottom two unknown values are (or have I just been unable to see them)? For example, 15391 for the Squire series?

Have a nice day.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #31 on: 23, April, 2010, 04:26:15 PM »

It could be that he meets no Element Level requirements for any of the value 3 classes.
Logged

View Profile WWW
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
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: 4604

« Reply #32 on: 23, April, 2010, 07:42:22 PM »

I think you are right about that. Luckily, I found a way around it, so Isaac can still change classes while not affecting Felix' ability (although his base class is no longer his alone though).

So, now that I think about it, is there anything that we do not know about classes anymore?

Have a nice day.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #33 on: 23, April, 2010, 07:45:29 PM »

We do not know if my patch idea will work.  Atrius, any news on if it will?
Logged

View Profile WWW
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

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

« Reply #34 on: 29, April, 2010, 03:23:57 AM »

I haven't had a chance to try it yet, but I don't see why it wouldn't.
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #35 on: 29, April, 2010, 08:27:45 PM »

If it works, let us know.  Add the patch option to the update and let us beta test it to work out any kinks that show up.
Logged

View Profile WWW

Regular Member
**

Coins: 20
Offline Offline

Gender: Male
Emblems: Second in Command of Jupiter
Clan Position: Jovian Head Adviser
Posts: 437

« Reply #36 on: 03, November, 2010, 08:41:12 PM »

So now that this is solved... should it be unpinned?
Logged

"You seek the truth but are you able to handle it? What you find may not be what you expected... and it may ruin you in the end. Knowing that, will you continue onwards in your journey? Or will you give up and return to a life of apathy? The choice is yours..."
View Profile
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

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

« Reply #37 on: 04, November, 2010, 12:55:33 AM »

Good call, though I'd still like to know what the other unknown value does.
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW

Regular Member
**

Coins: 20
Offline Offline

Gender: Male
Emblems: Second in Command of Jupiter
Clan Position: Jovian Head Adviser
Posts: 437

« Reply #38 on: 04, November, 2010, 01:07:25 AM »

Ah, alright then. What do those values affect anyway? They don't have an effect on class do they?
Logged

"You seek the truth but are you able to handle it? What you find may not be what you expected... and it may ruin you in the end. Knowing that, will you continue onwards in your journey? Or will you give up and return to a life of apathy? The choice is yours..."
View Profile
Atrius
Programmer Extraordinaire
Web Host

Fear my blades

Veteran Member
*

Coins: 100
Offline Offline

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

« Reply #39 on: 04, November, 2010, 01:11:09 AM »

They're stored with the rest of the class data, I can't imagine they'd affect anything else.
Logged

I'm shaking my head in general disapproval of everything
View Profile WWW
Pages: 1 [2] 3 4   Go Up
  Print  
 
Jump to:  

Chatbox
27, April, 2020, 07:54:10 PM
Daddy Poi: I'm having a thought. So I know Atrius's editor is slow at saving sprites.... So I've been thinking.   I am considering another console program.  This time, for importing and exporting sprites/animations. Image files (for sprites), binary files (for animation data), and maybe binary or text files for Settings. Would certainly be cool if it works out. - Console programs are fun, when you can (at least temporarily) cheat out making a full interface editor for them. =P
25, April, 2020, 10:42:07 PM
Daddy Poi: Tried to list those in order of importance, but anyway....
25, April, 2020, 10:37:59 PM
Daddy Poi: GSHC, GS Speedrunning, /r/Golden Sun, GS United Nations, ToK.  Sixth one is border-line I'm not sure.
25, April, 2020, 08:00:21 PM
Daddy Poi: (low as in <100)
25, April, 2020, 08:00:04 PM
Daddy Poi: So while there are quite a few GS Communities out there. There are only up to maybe ~6 Discords worth even the consideration of joining, I think. Most of the rest of them have a fairly low member count. (Of which I can tell?)
14, April, 2020, 10:49:35 AM
Daddy Poi: The Essential Age could be what it stands for?
13, April, 2020, 05:23:32 PM
Misery: Tea editor... that's a cute name for it
01, April, 2020, 02:42:50 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:48 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:09 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
01, April, 2020, 02:42:06 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
31, March, 2020, 07:18:29 PM
Salanewt: Sure thing!
31, March, 2020, 03:38:30 PM
JupiterDjinn: Can I have a question answered?
31, March, 2020, 03:38:27 PM
JupiterDjinn: Can I have a question answered?
28, March, 2020, 12:50:15 AM
Salanewt: I want to shrink it down in size later, but yup!
28, March, 2020, 12:50:13 AM
Salanewt: I want to shrink it down in size later, but yup!
26, March, 2020, 03:24:45 PM
Daddy Poi: The news box is back? :D
19, March, 2020, 05:59:16 PM
Salanewt: Nice work hiding the searchbots Atrius!
19, March, 2020, 04:23:34 PM
Salanewt: I was wondering when I said that stuff! May need to work it out with Kain.
19, March, 2020, 07:03:05 AM
Daddy Poi: (The simplest being to not accept char IDs pass 255, I think.)
19, March, 2020, 05:33:15 AM
Daddy Poi: Heheh.... I'm just testing. You pretty much gave it away. Hahah. It seems to look fairly convincing, but I'm sure there's an easy solution to preventing it.
19, March, 2020, 05:28:50 AM
Atrius: Whelp, there it goes... Just what I didn't want.  Have fun with that I guess...   
19, March, 2020, 05:20:25 AM
Daddy Poi: So like. Replace the "e" with another "e"? Alright. Gotcha.
19, March, 2020, 05:04:41 AM
Daddy Poi: Good work.
19, March, 2020, 04:44:10 AM
Atrius: Nah, any member could change their name to what I did, there's a trick to it.  I just fixed it so that now the Cbox will use your new name if you change it though, so... That part of the problem is fixed.
19, March, 2020, 04:41:53 AM
Daddy Poi: For which? It may be that normal users can't change their names to used names, but admins can?
19, March, 2020, 04:39:57 AM
Atrius: Sorry if the Cbox keeps breaking, I'm trying to make that be less of a thing.
19, March, 2020, 04:02:04 AM
Daddy Poi: Looks like ID Fraud. You're under arrest. :D  Oh wait.
19, March, 2020, 03:57:56 AM
Atrius: Yup, that's a thing.
19, March, 2020, 03:57:08 AM
Atrius: Just testing something, for science.

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