Donkey Kong Forum

Other Lists => Steve's List Forum => Topic started by: stella_blue on September 16, 2013, 08:45:37 am

Title: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: stella_blue on September 16, 2013, 08:45:37 am

Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: LMDAVE on September 16, 2013, 09:01:03 am
I love trying to figure out code without even looking at code.

Given when you do get a hammer you usually see fireballs change to a "scare" mode, now towards the end of the hammer the hammer starts flashing, so there is obviousy a flag/timer that knows this point to tell it to start flashing, my "guess" is that same flag that starts the hammer flashing also releases the fireballs from "scare" mode.
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: danman123456 on September 16, 2013, 09:04:45 am
It HAS to have an influence on the fireballs. So many times on the barrel stage right when the hammer is going out the fireball decides its time to climb up the broken ladder on the right and try and trap me on the 5th girder. It does it so much there HAS to be so logic in the code for it to just be random.
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: hchien on September 16, 2013, 09:19:27 am
I swear the fireballs run away from you as soon as you grab the hammer on rivets (especially the first/mid-left hammer).

Actually I don't really believe that, but it does seem that way.  My bet is the hammer has no influence on the fireball AI-- it's all in our heads.  But I'm willing to listen if anyone does a code analysis.
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: Jeffw on September 16, 2013, 10:24:07 am
I've read the fireball algorithm and there was nowhere that I saw in which the hammer status has an impact on fireball behavior. Specifically, the probability of reversing direction appears to be fixed at 50% for each decision point and not dependent on hammer status or anything else. Similarly, the decision of whether or not to climb a ladder also appears to be fixed at 25% probability when it is moving right (but 0% when moving left) as long as taking the ladder is permitted but not forced.

There are still two possibilities in which hammer status could have an impact on fireball behavior. The first is the possibility that the programmers put the code for this behavior is some other area of the code outside of the fireball AI routine, which is unlikely. The second possibility is that there is a bug that causes hammer status to affect fireball behavior. While it is possible for such a bug to exist, in general behavior that is both complex and coherent is unlikely to be produced by a bug. In this case, the behavior described by both Dave and Dan is complex in the sense that the fireball behavior would require knowledge of where the fireball is, where Mario is, which direction is towards Mario and how long before the hammer expires and would need to affect each of the 5 fireballs individually in order to produce the appropriate behavior. The behavior is also coherent in the sense that it is behavior that might have feasibly been intentionally programmed in. So with this in mind I think you can have fairly high confidence that behavior like Dave and Dan describe does not exist.
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: LMDAVE on September 16, 2013, 11:53:46 am
Yeah Jeff, I found that old thread where you posted some fireball movement code and couldn't see anything, and yes I get quickly reminded on how trival/random the movement of them are. But, without reading code and just observing, one may believe that there is complex behavior behind them. It's funny how that happens. For example, it almost looks like sometimes two fireballs on rivet act as a team to trap mario. This is just one of those aspects of DK that I prefer believing in the complex because it makes the game more fun and playable. LOL



Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: danman123456 on September 16, 2013, 04:44:17 pm
I know there shouldnt be but how many times do you grab the hammer on the rivets and they all immediately take off and climb the far ladder on the right? How many times does the fireball come up at the LAST second of your hammer? Why wouldnt the code know where you are and how much hammer is left? :)
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: stella_blue on September 16, 2013, 05:08:28 pm
Why wouldnt the code know . . . how much hammer is left? :)

The code has no business prying into my personal life.   ;)

Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: JCHarrist on September 16, 2013, 05:34:03 pm
The fireball's natural tendency is to go up and to the right. They do it all the time. I think you are just a lot more likely to notice it right after you get the hammer.
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: up2ng on September 16, 2013, 05:42:28 pm
The fireball's natural tendency is to go up and to the right. They do it all the time. I think you are just a lot more likely to notice it right after you get the hammer.

This is why it's absolutely amazing to me how often the fireballs flee up the LEFT side ladder immediately upon grabbing the TOP hammer on the rivets.  I mean, it's really beyond ridiculous.
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: danman123456 on September 16, 2013, 08:54:10 pm
Yeah but im talking about tonight. 3 times in one game the fireball game up the broken ladder on the right  JUST as the hammer was ending on the barrel stage. Trying to pinch me in the corner. I mean literally JUST as the hammer ends he is up missing getting smashed by what 1 frame? I know maybe it just seems like a coincidence but damn....

Plus like Dean said why do they go up the left side so often too the minute the hammer is grabbed and they change directions as well. I'm certain there is some affect on them other then nothing we just need to find it. Otherwise DK has more moods then ZK ever thought of having ;)
Title: Re: Top 5 Suspicions I'd Like to Confirm in the DK Code
Post by: LMDAVE on September 17, 2013, 08:52:46 am
but explain this

http://www.twitch.tv/lmdave/c/2810864 (http://www.twitch.tv/lmdave/c/2810864)