Video není dostupné.
Omlouváme se.
Coin Count
Vložit
- čas přidán 25. 07. 2016
- I explain how the coin count works in SM64, as well as the other coin-related variables. Because there are multiple variables related to coins and the game doesn’t give each of them a specific name, I just gave them all names that made sense to me. So outside the scope of this video, others (as well as myself) will probably refer to them using slightly different terminology. But within the scope of this video, I’ve defined the variables as follows:
⚫ Coin Count: This is the number of coins Mario has collected so far. It increases instantly when Mario collects coins, namely by +1 for yellow coins, +2 for red coins, and +5 for blue coins. When this variable reaches 100 coins (or goes past it), the 100 coin star appears. This variable is not reset to 0 when Mario leaves a course, but is reset to 0 when Mario enters a course. This variable is a signed short, and so has a range from -32768 to 32767 inclusive. On the NTSC version of the game, it’s capped at 999. On the Japanese version of the game, it has no cap, and so can overflow from 32767 to -32768. When this variable is ≥1000, Mario’s lives will be constantly set to -25.
⚫ Coin Display: This is the value shown up top in the HUD. When this variable is less than the coin count and the global timer is odd, this variable will increment by 1. Thus, pause buffering can be used to prevent this variable from incrementing as it normally would. Once the coin count overflows from from 32767 to -32768, then the condition that this variable be less than the coin count will no longer be true, and so this variable will no longer increment from collecting coins. This variable is a signed short, and so has a range from -32768 to 32767 inclusive.
⚫ Coin Score: This is the highest number of coins collected in each course. Thus, there are 15 of these variables in the game, one for each of the 15 main courses. Right when Mario collects a star, if the current coin count is greater than the current course’s coin score, then this variable is set to the lower byte of the coin count. This variable is an unsigned byte, and so has a range from 0 to 255 inclusive. The coin scores described in this video are the coin scores of the temporary memory. When the game is saved, these values are copied to the corresponding variables of the permanent memory.
⚫ Coin Counter: This is the variable that counts up to how many coins you have after you collect a star and return to the castle. Specifically, it starts at 0 and counts up to the coin display, incrementing by 1 on each frame. If this variable goes above 999, then it will show up as 0, even though it still counts up correctly behind the scenes. This variable is a signed short, and so has a range from -32768 to 32767 inclusive.
Additional Notes
(1) Before anyone starts speculating on the usefulness of multiple 100 coin stars for the A button challenge, please read this. The notion of multiple 100 coin stars has been known for quite some time, and so I’ve already explored its usefulness. In WF, it allows an alternate way to collect the star To the Top of the Fortress in 0x, as demonstrated here: • WF Onto Tower 0xA in J... . However, that strat takes an estimated 10 days to complete, and so it’s inferior to the current strat: • SM64 - To the Top of t... . Concerning the A presses that remain, multiple 100 coin stars would really only be useful in TTC. However, this cannot be achieved, because TTC’s infinite coin method (i.e. coin cloning) doesn’t allow for Mario to collect 65636 coins. That’s because each coin clone occupies an object slot, and there are only 240 of those. So it’s physically impossible to clone more than 240 coins in TTC.
I honestly want to see Pannenkeok release a "true" version of the Mario 64 manual that is several hundred pages long and goes into intricate detail about every game mechanic.
If he did _that_, with his own N64 Mario-styled CGI renders and screenshots of the game, in full Mario 64 manual style, we'd be in for a book longer than Artamène ou le Grand Cyrus, to be honest
"Hitch Hiker's Guide to Parallel Universes."
On the cover it just has Mario doing a BLJ.
How many pages does it spend talking about the actual plot of Mario 64, with Mario having to save the princess and all that yada?
"Congratulations on your purchase of Super Mario 64! How does one play this game you might ask? Well to answer that, we have to talk about parallel universes..."
+1 to this
It sounds like those elementary school rumors that got spread around, "If you collect the coins in the first castle room 250 times in a row, you'll get 200 lives!
13:00 those eyes, staring into your soul...
Actually pretty damn scary
Rudy12345 mc k
Megalovania plays
Rudy12345 mc epilepsie
@@memerboi69.0 WHAT?!
Jesus Christ, that Ice Bully has a family you know.
*the family isnt going to last*
I remember reading in a french video game magazine about 20 years ago a cheat code to have infinite lives in SM64: they were saying you had to go to a Bowser level and collect 1000 coins that appear from Bowser's flames. Feels crazy to discover the truth 20 years later. I remember the article describing the M meaning infinite lives
I really love these "side" videos focusing on tiny gameplay mechanics and how they work.
Thanks!
same
One minute in "And the global timer is odd" OH NO
The seizures >.
[pause buffering intensifies]
dr dr dr dr dr dir dir dir dir dir dir didr didr didr didr didr didder didder didder didder did her did her did her did her
is it just me or did the sound just evolve into that
Astralika Castle
Imagine if bank accounts worked the same way.
"It looks like I have $0 in my account. Oh wait, I forgot to stop pause buffering."
I wonder if there's some way to trick the castle into spawning a 100-coin star somehow. That could be really interesting.
there is! but only via asm-hacking. kaze did. he helped out for this hack ( czcams.com/video/sV9Kb2CQ0ro/video.htmlm33s ), as called out in the credits...this shown stage is officially (for the games thoughts) considered as overworld (aka castle replacement), which also can be seen in aglab2's Star Display Manager for SM64.
@@TheJayKayA ytgģhhhhxhgfhdgfvcgvrhgtggrfyftzgdffohhgjjkkjjjjhhhhggffjffgogiryyuyttrfgfh iftotigkhvj xdnugiyuoyigyijy
@@Headcrab6 oh hey...a virus-bot!!*-*
@@TheJayKayA lol im bee and i cant hygygugugydtsrstfuhihuftstfyhigysrfyhydreuhyftdyhugyguhihifhfjgydtgujufhuftgugyjigyhucjgfyguhuhygugjhuhuhuhhhihiihihjijihijijhihihuhuhihihihuhhuhuhuhuhuuhu
@@Headcrab6 so youre a bee? how u got acces to the whole wide internet? #huhuhuhu
Mario's constant coin exploits must not be good for the mushroom kingdom's economy.
Jorge eduardo gomez lopez yeah he is like wario
So that’s why the exchange rate was so bad in Superstar Saga...
redion1992 That makes sense, I never thought about that woah
@@goomyiscute777 copy and use my kaomoji (´•ωᵔ)
(×_×)
I remember reading this in a Nintendo 64 magazine. Those were the days where it said that if you collected 1000 coins in bowser battle you will get an M next to your lives that set them to negative and you would lose lifes when they increment.
Cant believe they missed the fact you needed a japanese version tho.
Imagine if someone made a ROM hack of SM64 with the A button disabled, with courses that revolved around all of the mechanics in pannenkoek's videos
abc trials
"an easy way to reach 1000 coins"
Easy? Yes. Quick? *250 castle entrances later* Not really.
Easy as in "you can repeat the exact same inputs 250 times"
Unless you TAS, having to do frame perfect glitches to reach 1000 coins is not easy. Better off enter the castle 250 times (?)
"Coin Count"
video is 15 minutes long
that's how you know its pannenkoek/keok
Hell, i just see a video from pannenk??k and don't care about remembering which one of these is main and which is second channel, i just watch it. lol
pannenKEOK2012 changed his name to UncommentatedPannen to avoid confusions.
His main exists
Not anymore, people nowadays make 15 minute videos to rake on that $$$.
He was originally called "pannenkoek2012"
You still get 121 you can't deny we can finally unlock Luigi!
lol, how when the Stars are calculated by bitmask?
you can like get 131 or something like dat
PotatoChips BeatBattles Luigi is a lie.
Ryan 64 yea Luigi is only in SM64 DS
Ryan 64 someone doesn’t know what a joke is
I want the 18 min coin counter video
czcams.com/video/FVTOLj7luWQ/video.html
11:54
When I was a kid and obsessed with this game I got the idea to take advantage of the fact that Bowser's fire breath leaves coins when the fire fizzles out as a means to give bad players more health in the fight. I must have spent hours doing this, just waiting for him to breath fire so I could get some coins, rinse and repeat. I remembered vividly that I got so many coins that when it reached 1000 I thought I'd done something super secret and special, because that green M appeared next to my lives. I had no clue what it meant but I noticed it went down when I got a life and up when I died. I thought I had unlocked infinite lives or something. It amazed me as a child. So fascinating to see what that actually was all this time later. I must have the Japanese version of the game, even though all the text is in English.
Maybe it’s PAL?
@@joechristo2 I dunno how many versions of SM64 there are, just what my childhood memories tell me from in-game.
Hum...maybe you had the Shindou version? Or something like that?
What the mechanic of Mario behind the mirror? How does this clone of Mario work and what interactions are there with this clone? It would be interesting to see nonetheless. I hear that there's some funny shenanigans you can get into if you can get in!
I would love to see a vid on this
I'd love to see a video on that! There's a CZcamsr named 1ted59 that shows weird mirror stuff.
When you enter the room, another mario that you control spawns. The movement controls are inverted though.
i feel like i've already seen a video about that
jan050375
Yes, there exists an older one. But this here has all the fancy new facts!
9:21 I like how you jump into the star before it spawns because you've done that so many times.
Honestly I have no clue how all of the information in all of Pannen’s videos are stored in that small, little, 1996 cartridge
A pretty substantial fact (multiple 100 coin stars) buried in here with the trivia. Too bad it's not useful, the idea of a star that requires 10 days and 65k coins to collect is hilarious.
it used to be the way we got the star in the tower in thwomps fortress with no A presses, but once HOLP got figured out that strat became obsolete
And still, I don't know why this is not being done in TTC.
There's no way to reach 65636 coins in TTC. Since the only infinite coin method is cloning, you'd crash the game from too many coin clones LONG before reaching 65636.
Timestoppa Thanks for explaining. I've meanwhile also seen the BitFS 250 video, so I know it by now.
Nevertheless, this clone limit makes me disagree with pannenkoek's title of another video called "Infinite coin glitches". If the number of coins you can clone is limited, that's not an infinite coin glitch. He should have at least explained that in the video.
I mean, in some cases, the coins are truly unlimited, i.e. if there's a loading point.
0:08 , your red coin synced up perfectly with the music.
nice
0:10
@@TuxerTuxar i see you everywherei go
New pannenkeok video, drop everything and watch
I stopped watching Jontron to watch this video.
It's worth it
sounds like it's pretty worth it
Same
Not to hate on Jontron, he has some amusing shit
But I'll take pannen over him any day
Wompy *Instant release and watch
It's insane to me how one word being off in the Japanese version could cause Mario to become nearly immortal in certain circumstances.
What happens when you talk to Yoshi when you have M25 lives?
What if the coin count is still over 1000? Would it softlock at that point?
+SM64Guy probably.
it goes M24 M23 M22... M2 M1 0 1 2 ... 99 100
as mentioned by others, this only happens when your coin counter is not >=1000 in the Japanese version at it would just set it back to M25 on each frame.
You can softlock the game while you have 999 coins in the coin count while in the castle, collect an extra coin then talk to Yoshi.
in this case the bugged "coin limit enforcer" on a japanese version will set lives to -25 each frame, while the Yoshi code tries to increase your lives at the same time, resulting in a softlock.
The amount of effort this took is astounding. Props to you my good sir.
13:54
Mario is getting tired of you making him wait to move.
Wow. The red coin jingle is just a fragment of the main theme. That's kinda cool.
0:10 perfect timing.
Man, i didnt expect this video to be 15 minutes long, but i guess there really was this much to explain.
I misaligned my QPU while reading this.
why hasn't nintendo just hired you already
Kirbydamasta
What would they need him for?
@@iverson64_ Finding the secrets and describing the hidden mechanics of upcoming Nintendo games.
@@planetearth2249 yep
@@teamawesomeness7137 ayyyyyyy
no, he would glitch test for nintendo
Great video! But I just wanted to mention that both the US and JP versions are NTSC, being NTSC-U and NTSC-J respectively.
So I've been told. But that's one of the nice things about making keok videos - the viewers iron out all the slight mistakes I make before the content becomes a main channel video
+pannenkeok2012 Yeah, it's a neat system. As an idea for a future video, I've heard that collecting a star and then hitting another star causes a softlock. Could you theoretically collect 2+ stars using cloning, by first touching the death barrier and then collecting some cleverly positioned stars? Does this softlock even exist? Would collecting the same 100 coin star twice before touching the ground/on the same frame allow 121 stars? It could make an interesting video.
I don't really know those things off the top of my head, but I could investigate them
+pannenkeok2012 Yeah that's what I meant. If you look into it then good luck :)
I believe the softlock you're thinking of is when you open a star box at the same time you collect a star.
This is probably the only time I actually get enthralled by learning complex stuff
or at least it's complex to me ;-;
yeah... ;-; us little kids should fucking learn to not comment or watch these smart people do crap... lets just watch leafy.
XD nah nah jk. screw that kid.
Evil nachoz
Holy fuck. Since pausing at that stage shows the Snowman Mountain Face.
The pause buffering kept showing 1 quick frames of that Snowman's creepy face as if it was a fucking creepypasta game.
HOW THE HELL DOES ANYONE GET THIS SMART
mega firekid School.
UNIVERSITY.
Green vegetables.
0:10 Holy crap, perfect timing
You know it's Pannenkoek when he talks about coins in mario 64 for 15 minutes
That was 15 minutes!?
Holy shit I didn't even realize it.
*when u waste **_15 minutes_** of ur life watching a pro talking about coins*
in a lot of detail
but it's not actually wasting fifteen minutes because the video is actually interesting.
Watching Pannen's videos is not a waste of time.
@_ D0ct0r _ shut the up
@_ D0ct0r _ you're pretty irritated, wanna talk 'bout it?
@@terraxgaming4117 the up
these videos are brilliant. also, i was half expecting you to make like dozens of 100 coin stars just for the fun of it, although that would take forever
Thanks for making these. No game I know has videos of thid calibur that go into depth in how the game mechanics work. Super facinating.
ngl, there are some things that i don't really get but i still enjoyq the video so much. quality content indeed
I remember the first page or so of the "totally unauthorized" super mario 64 guide brought up the infinite lives thing by suggesting that you collect 1000 coins on a bowser stage and i was really confused as to who would try that. Now i wonder what they were doing with a Japanese copy
When he died and gained a life, I was like...
Wait, isn't it the opposite?
negative numbers are less than zero. subtracting negative numbers makes them smaller, so you get (-25) - 1 = (-26)
similarly, 1 - 2 = (-1)
friskiy moon what was the whoosh
Yes
@@Missmay123p nah that was true r/therewasaattampt
Ashton Smith I guess the person deleted their comment that said wooosh
The -25 lives glitch is only present in original releases of the Japanese version. In the later Japanese rerelease called the Shindou Edition, the glitch was fixed.
The most impressive thing about this is that they actually found this bug in the japanese version and fixed it for the rest of the world.
Nintendo: The bug is fixed for all versions!
Worker: Uhh... look
*The PAL version of Super Mario 64 is seen running on a TV, while Mario's coin count is currently 1,397*
Nintendo: O O F
I don't know why I needed this information, but I did 😂
I like how these videos _end,_ just like that with no warning.
Its been 20 years... why am i still watching these?
Neeeeed to start putting an epilepsy warning in your pause-buffering videos.
He did in one of them.
It's literally killing me watching his vids, but in the end it's all worth it :)
#nowlegje
#nahledge
That and a "giant snowmen will haunt your nightmares" warning.
Pause buffering is my new ringtone and screensaver.
13:55
Mario is getting annoyed by your shenanigans
I'm sorry Mario, you still owe the bank 26 lives, so until you get us more lives we can't let you die. :)
4:35 ah good to know I'm not the only one who makes copy paste errors...
Nintendo be like: I just wanted kids to reach 100 coins... ._.
12:47 GOOOOD... This is creepy...
A snowman in the background flashing with black holes as eyes. Jesus Christ.
Terrifiying.
Love how the red coin sound syncs perfectly with the music at 0:10
I know, it's SO GOOD--
i miss you saying "nine hundred and ninety nine" over and over again, from your other video about the 255 coin limit, but this is a really good summed up version of that, great work!
At first I thought "haven't you made this video long ago?" but as one can expect from you, this is much mor in depth, I like it. And if any of the programmers know you, they will probably stay away from these videos because all of their errors are shown in detail xD It would be cool, if there was a way to despawn coin clones in order to use multiple 100-coin-star clips but I guess that's not going to happen.
Sometimes I just watch this video to decompress. It's really relaxing
Pannen, you could totally be a beta tester for Nintendo.
A programmer*
not really. i think, some "problems" / bugs were known to the programmers...just it doesnt make any sense (in money-purposes) to think about EVERY little thing, which might be posible by doing perfect exercises (like pannen and his TAS)
0:10 We all going to ignore that the red coin collection lines up perfectly with the music?
fat man becomes millionare and achieves immortality
UncommentatedPannen has created a whole new class/subject to study in school with this video.
Professor Pannen - "Can anyone answer this for me, do coins still make a sound if you reach 999 coins in the NTSC Version of Super Mario 64? Come on class, we just learned about this last week in Chapter 10, "Coin Count & Coin Display Max Values (NTSC Version)". You guys are never going to pass the final exam at this rate.".
Lol, this should become a meme in the Super Mario 64 Community. XD
Thanks for raping my eyes with all that pause buffering when you got the 100 coin star
0:10 the red coin grab was in sync with the music
What happens if you collect 2 100 coin stars on the same frame?
Probably nothing interesting. If I had to guess, I would say the game would treat it as only one star.
According to Pannen, even if you touch 2 stars at the same time you can only collect one at a time. The game decides which one becomes collected based on which star is first in the object slot order.
Yay, new vid!
Great video as always :)
The snow mans head when you pause the buffering correctly. Yeesh.
Every youtuber who does try not to get any coins challenges: ITS IMPOSSIBLE
Glitch hunters and speedrunners: Ah sh*t, here we go again.
The point of the disparity between coin count and coin display is most likely to make sure that the player hears a satisfying sound of a coin counter going up. Same deal with the 1-up bonus being tied to the display instead of the count, people hear the satisfying one-up sound as the coins roll in.
One question.
Why are the coin count and life values _signed_?
Why do they even have a symbol in place to represent negative lives?
That doesn't make sense!
Just guessing here, but I think they had a debug screen in development (where they needed to show negative numbers like, idk, coordinates), and used the same number renderer for the other numbers in the game such as lives or coins.
Why the symbol is "M" is anyone's guess; probably because they already had an M stored in sprite memory somewhere and didn't need to create a whole new - sign character.
quaternary Okay that makes sense...
Still, why would you use signed values for lives and coins?
My best guess is to prevent underflow glitches giving the players insane amounts of lives and money, but it kinda backfired
Nintendo devs didn't get a lot of sleep back then.
I think there's an entire alphabet? I always assumed the "M" was for "minus".
How to make Mario go in slow motion: press the start button really fast.
0:09
Perfect red coin timing!
Yes, that was brilliant!
Friend: "How much money do you have?"
Me: -32768 dollars.
4:39
*Every* developer ever: "yeah I definitely never done that fault, right?
Riiiight?"
The -25 lives is a perfect example of why I always use
for some reason i keep thinking this guy is some crazy extreme-skilled math professor
LOL
That perfect timing at 0:11...
“Coin Count” & “Coin Display” what a weird-ass concept. You would think the 2 variables would always be in sync no matter what.
Bad Coding :/
Remember: you will won't need to collect coins unless you take damage
i love these types of vids, very informative
Numbers are so interesting like this O.O
I wish math was like Mario 64
4:36 (pause) If Mario's lives being 999 makes it show up as -25, then I'm guessing the lives display is an 8-bit signed int. Let's see if that's true:
999 % 256 = 231 (231 being the remainder of 999 / 256)
In hex, that's e7, which is definitely negative, as the left-most digit is > 7 (..., 7 = 0111, 8 = 1000, ...).
So to get the negative representation of 0xe7, you would use two's complement.
e7 = 1110, 0111
11100111
00011000 (~)
00011001 (+1)
11001 would be 12 (1100) * 2 (
Maybe you could get a true 121 stars by being so precise that you pick both of them up at exactly the same time?
I can’t watch these anymore, it’s all too smart
Am I the only one who gets proud of themselves when they're able to understand code? I'm able to follow along because I have a programming calculator on my computer. ;)
Also, I'd just thought I'd mention something: In the DS Version, you can collect up to 255 coins within a course, not 999. This is because the coin counter within a course is only 8 bits.
I'm getting kind of proud too, but for me that's just seems like obvious how the code's going to work. I mean, like, really, my classmates went thru school's lessons about Pascal, yet they still look at very simple code to output random characters and don't understand it.
._.
Imagine the code was like
if (lives
Imagine if you were Mario and said: "Oh i'm rich!"
Mario collects 256 coins.
Mario: I'm rich!
Coin score gets saved as 0.
Mario: Dam!
I'd bet the coin counter matches coin display because that section of code was written by a different programmer than the coin display/coin count chunk of code, and/or because the programmer decided that if something screwy happens and coin counter becomes out of sync with coin display, it'd be better to have the coin counter count up to the value the player saw on-screen.
Then they didn't take into account the fact that coin display is still going to be counting up if they're out of sync and out of the castle. Or those chunks of code weren't written at the same time.
6:50 When you are so bad that the game had to give you 100 lives
Basically, if the coin counter used the same hexadecimal value as the coin count but still counted up, we could have higher coin values for the high score, allowing a single map to have < or =32767 coins for it's high score.
Wow. Pannen can make even COINS interesting.
uploaded on my 9th birthday
nice one mate
God this guy is literally making a dissasembly of the entire game engine
He waited 18 minutes to prove how long the max coins would count. He only went and did it the absolute madman
Shame the 100 coin star is tied to the internal coin count rather than the display. It would have been very powerful to be able to pause buffer and spawn the star at will.
omg copy&paste error D: it can literally make you screw around for 2 days for debugging and discover it was the simple Ctrl CV error
Red coin syncs with the music at the beginning, nice touch.
0:10 that coin collection fit perfectly with the song
So you’re invincible if you have -25 lives.
DO NOT TALK TO YOSHI IN THE JAPANESE VERSION. HE WILL SOFTLOCK YOUR GAME.
Why? He gives you 100 lives, but the >999 bug sets it to M25 every frame. Yoshi's 'gift' only ends when the life count is 100. As a result, a conflict ensues.
expect when you do not have M25 lives