Welcome to the Shining Force Central Forums!
SFC Forums Index Shining Forums Shining Force II
Register for your free forum account now or Login to remove this advert.

The Hack Library

Looking for something hack-related? Check here first.

Discussion about this classic Genesis/Mega Drive game.

Re: The Hack Library

Postby ronnen » Tue Jan 29 2013 8:56pm

Yeah, I was one of the people that helped him figure that stuff out.

I have a module to allows editing the growths... adding new growths though requires more space the ROM doesn't have without doing growth curve compression or moving stuff (obviously the former being considerably easier).

Let me see if I can find the post where we discussed that...

Yeah it was here: viewtopic.php?f=5&t=20731&start=20

And I made a patch for him that did growth curve compression so he could add growth types: http://www.fileden.com/files/2012/1/27/ ... ession.zip
Last edited by ronnen on Tue Jan 29 2013 9:01pm, edited 1 time in total.
ronnen

Shining Member
Shining Member
 
Posts: 162
Joined: Fri Jan 20 2012 9:01pm

Re: The Hack Library

Postby MXC » Tue Jan 29 2013 8:59pm

I found something the other day but found it hard to follow (being my hex knowledge is a nice round 0)
MXC

User avatar
1090
Shining Legend
 
Posts: 24461
Joined: Fri Sep 17 2004 1:48am
Location: Cincinnati, Ohio

Re: The Hack Library

Postby ronnen » Tue Jan 29 2013 9:02pm

Doesn't the CP have an irc channel somewhere? I'd be happy to get on and chat you up on how the SF2 curves work.
ronnen

Shining Member
Shining Member
 
Posts: 162
Joined: Fri Jan 20 2012 9:01pm

Re: The Hack Library

Postby MXC » Tue Jan 29 2013 9:05pm

It does not but you can contact me via AIM and MSN
MXC

User avatar
1090
Shining Legend
 
Posts: 24461
Joined: Fri Sep 17 2004 1:48am
Location: Cincinnati, Ohio

Re: The Hack Library

Postby ronnen » Tue Jan 29 2013 10:33pm

Pinged you on AIM but no response. I guess I smell :(

So basically the way the stat growths work is like this:

Every stat, for every character, has an expected "start" value (SV), "end" value (EV), and "growth type" (GT)

"None" is a special growth type that always returns 0, so it doesn't have a table associated with it... so lets ignore that one.

All other GTs have 29 entries associated with them (because the expected EV is for what we expect the stat to be at for level 30.) Each entry in a GT has two parts, which are basically expressions of percent growth (PG). The first value in the table is a representation of how much "Percent Total Growth" the character should have by this level. The second value is a representation how much "Percent incremental growth" the characters should gain for this specific level.

The crux here is that the first value is used more as a way to "boost" a stat if it falls behind due to bad randomization. The second value is the primary determinant of how much the character gains on a given level up.


So, the game basically takes the difference (EV - SV) and multiplies that times the incremental growth value for that level's entry in the GT table. Then it compares that to the expected total growth value and adds an extra 1 to whatever it determined you should gain based on the (EV - SV) * incremental growth value.

So for example, Bowie SDMN has a start HP value of 12, end value of 60, growth of linear.

When going from level 1 to 2, it will look at the 1st entry in the Linear GT... which turns out is in decimal "8" and "8"

The game will take 60 - 12 = 48 and multiply that times the second entry in the table so... 48 * 8 = 384...
Then generate a random number between 0 and 128, (lets say 108) add that to your value so ... 384 + 108 = 492
Then generate a random number between 0 and 128, (lets say 20) subtract that from your value so ... 492 - 20 = 472
Then add 128 so ... 472 + 80 = 552
Then divide by 256 so ... 552 / 256 = 2 (okay it actually equals 2.15625 but there are no floating points here, so no decimals they just fall off!)
(Call this the incremental growth = 2)

Then we take 60 - 12 = 48, and multiply it times the first entry in the table so... 48 * 8 = 384
Then add 128... 384 + 128 = 512
Then divide by 256... 512 / 256 = 2
(Call this the long term growth = 2)

Then add your base value 12 back into your incremental and long term results
(incremental result) so ... 2 + 12 = 14
(long term result) so ... 2 + 12 = 14

If the long term result is >= the incremental result, add 1 to your incremental growth. Here they are equal (2 and 2) so we add 1... so
2 + 1 = 3

Thus Bowie will gain 3 HP this level up.

Here is the entire "Linear" table for your reference:
WARNING: SPOILER!


Note that in the table the difference between the "total growth" value for one level and its previous level is generally equal to the "incremental growth" value for the level.

In other words, 211 - 203 = 8 for the values...
203 - 9
211 - 8

This isn't always the case though!

Here's the actual code:
WARNING: SPOILER!


Also, I could probably write a python chunk up to do this algorithm... not super familiar with ruby though I'm sure I could figure it out if you really wanted me to (since those seem to be the languages you guys are using in the CP)
ronnen

Shining Member
Shining Member
 
Posts: 162
Joined: Fri Jan 20 2012 9:01pm

Re: The Hack Library

Postby MXC » Tue Jan 29 2013 11:05pm

I responded to the IM (an hour late >.>) check back on there to see if we can connect while I read through this ;)
MXC

User avatar
1090
Shining Legend
 
Posts: 24461
Joined: Fri Sep 17 2004 1:48am
Location: Cincinnati, Ohio

Re: The Hack Library

Postby ronnen » Tue Jan 29 2013 11:33pm

Note to self:

WARNING: SPOILER!


For resolution see viewtopic.php?f=5&t=23959
ronnen

Shining Member
Shining Member
 
Posts: 162
Joined: Fri Jan 20 2012 9:01pm

Re: The Hack Library

Postby Mormegil » Fri Jun 07 2013 5:20pm

well i know i am new here, but the Hack Library seems to have not been updated in a while shouldn't someone do it ?
Mormegil

User avatar
Member
Member
 
Posts: 25
Joined: Fri May 31 2013 10:34am

Re: The Hack Library

Postby RastaOddeye » Thu Jun 13 2013 7:39pm

That's because there aren't any new completed hacks yet.
I'm arrogant, and proud of it.
I'm arrogant, and proud of it.
RastaOddeye

User avatar
Zeons Third General
Shining Legend
 
Posts: 1668
Joined: Tue May 10 2011 9:30am
Location: Sheffield

Re: The Hack Library

Postby Nyfret » Wed Aug 07 2013 9:50am

*Edit* Found the patch, very sorry!!
Nyfret

Newbie
Newbie
 
Posts: 2
Joined: Sun Jul 04 2010 9:21am

Re: The Hack Library

Postby Shining Hopeful » Mon Aug 19 2013 3:07pm

I just tried to get Drakonis' hack and ShiningForceHero's hack, but both links are dead. I think perhaps a mod should (if they have time) mark some hacks with an asterisk to denote dead links.
Shining Hopeful

User avatar
Shining Hero
Shining Hero
 
Posts: 694
Joined: Wed Nov 16 2005 4:10pm

Re: The Hack Library

Postby Corsair » Mon Aug 19 2013 3:15pm

Else, consider hosting them elsewhere.

I'd be willing to use my dropbox as an unofficial SFII hack hosting space, if nobody else has a better option.
Corsair

User avatar
Shining Legend
Shining Legend
 
Posts: 6882
Joined: Mon Apr 21 2008 2:52am


Re: The Hack Library

Postby Drakonis » Mon Sep 02 2013 12:19am

Excuser moi mes dames et mes sieurs, but I am actually kinda somewhat really unexcusably lazy with this topic when I really shouldn't.
Hedge, thank you very much for uploading those. Even though I'm not particularly proud of my delvings into hacking as I always gave up like 50-75% in... Someday I should really do the "Drakonis really means it this time for realz yeah no excuses now" hack. Though I'll probably be busy with the Community project until then. Sorry.
Updated the OP accordingly.
Drakonis

User avatar
Shining Legend
Shining Legend
 
Posts: 2300
Joined: Fri Dec 05 2008 1:16pm
Location: Good ol' Germany

Re: The Hack Library

Postby alex_man » Tue Jan 14 2014 1:45am

alex_man

User avatar
Shining Legend
Shining Legend
 
Posts: 2190
Joined: Sun Nov 14 2004 2:39pm
Location: Argentina

Re: The Hack Library

Postby Helldhaz » Sun Jan 19 2014 12:14pm

Rather than bump Space King's old SF2Edit topic, I'll ask here - is there any way to edit the damage of the Burst Rock's explosion? The "Burst Rock" spell doesn't seem to govern this like other enemy special attacks.
Helldhaz

Shining Member
Shining Member
 
Posts: 287
Joined: Thu Sep 16 2004 3:20pm

Re: The Hack Library

Postby SirHedge » Sat Feb 08 2014 7:57am

Helldhaz wrote:Rather than bump Space King's old SF2Edit topic, I'll ask here - is there any way to edit the damage of the Burst Rock's explosion? The "Burst Rock" spell doesn't seem to govern this like other enemy special attacks.

I just noticed this. You can find a whole bunch of useful hacking information on the first post of this topic. More specifically, the blast rock damage can be found at this link under the "pointer locations" section:

Sir Hedge's Hack Resources
SirHedge

User avatar
Shining Hero
Shining Hero
 
Posts: 816
Joined: Sat Mar 15 2008 4:10am

Re: The Hack Library

Postby Faisal » Sat Feb 08 2014 4:06pm

I would want to play each and every hack but my studies just wont let me (I am asian) .-. ._. :p
Eat food,sleep,wake up,eat food,eat some more,eat a little more,sleep.Repeat everyday and be awesome (Y)
Eat food,sleep,wake up,eat food,eat some more,eat a little more,sleep.Repeat everyday and be awesome (Y)
Faisal

User avatar
The Asian Sensation
Shining Hero
 
Posts: 670
Joined: Sat Aug 11 2012 8:23am
Location: Multan, Pakistan

Re: The Hack Library

Postby Omega Entity » Sun Feb 09 2014 12:39am

Huh. I've only seen that stereotype applied to East Asians, not South Asians.
(8:23:45 PM) ehow1990: stupid question: why do you have hay there?
(8:23:54 PM) YsFanatic18: She was feedigng horses
(8:23:58 PM) MXC0Spike: Barn sex
(8:24:07 PM) ahath714: She stuffs.
(8:24:39 PM) ehow1990: ask a stupid question and everybody has an answer XD
(8:23:45 PM) ehow1990: stupid question: why do you have hay there?
(8:23:54 PM) YsFanatic18: She was feedigng horses
(8:23:58 PM) MXC0Spike: Barn sex
(8:24:07 PM) ahath714: She stuffs.
(8:24:39 PM) ehow1990: ask a stupid question and everybody has an answer XD
Omega Entity

User avatar
*jiggle*
Shining Legend
 
Posts: 11180
Joined: Fri Mar 06 2009 11:43pm

Re: The Hack Library

Postby guntz46 » Tue Sep 30 2014 8:19pm

:thumbsup: im really liking the shining tactics hack, chesters already lvl 99 promoted as peg knight at moun battle ^.^
guntz46

Newbie
Newbie
 
Posts: 1
Joined: Tue Sep 30 2014 8:04pm

PreviousNext

Return to Shining Force II

Who is online

Users viewing this topic: No registered users and 1 guest