Banner
The Overworld Design Contest ends in
10 DAYS, 11 HOURS, 18 MINUTES AND 30 SECONDS
Views: 904,737,318
Time:
10 users online: 7 up, Devazure, GarbitheGlitcheress, janklorde, JonnyManjiro, OEO6, Oskise, qantuum, togemet2, UTF - Guests: 51 - Bots: 81 Users: 50,721 (2,094 active)
Latest: S1eep
Tip: Read Lunar Magic's help file and SMW Central's F.A.Q., as they cover most of the basics of SMW hacking.
Not logged in.
the p switch mystery solved at all
Forum Index - Sunken Ghost Ship - C3 Museum - Winter 2019 - the p switch mystery solved at all
Tags:
Pages: « 1 2 » Link
Just so we are on the same page, this is the P-Switch I'm talking about:



It is also possible to press it:



The state of the P-Switch is saved, the code looks somewhat like this:

Code
$('<div>')
	.css({
		width: '16px',
		height: '16px',
		position: 'relative',
		zIndex: '1',
		margin: '-11px 0 -5px auto',
		backgroundImage: 'url(\'/images/pswitch.gif\')',
		backgroundPosition: pswitchPressed ? '-16px 0' : '0 0'
	})
	.click(function() {
		if(pswitchPressed) {
			$(this).css('backgroundPosition', '0 0');
			pswitchPressed = 0;
		}
		else {
			$(this).css('backgroundPosition', '-16px 0')
			pswitchPressed = 1;
		}
		$.post('/ajax.php?a=pswitch', { pressed: pswitchPressed });
	})
	.appendTo('#mainmenu');


Essentially, clicking the P-Switch changes its displayed graphics and informs the SMW Central server about the new state.

But does it do more than this? Well, it could, and as the thread title says, I managed to solve the mystery.

"But how", you may ask. Very well. First of, I performed backwards long jump into the Staff forum. Unfortunately, there was nothing about that P-Switch here. So suspicious... guess it won't be that easy to find, and only SMW Central programmers know what does it do. Considering there are what, two of those, getting that information ain't going to be easy.

But maybe it's in a Parallel Universe (PU)...



So I gained speed for 12 hours, went to a Staff Room in a parallel universe, and it turned out there were no sprites here. How useless...

My next idea involved stunning a Blue Koopa.



But it turns out that stunning a sliding Blue Koopa is only useful if you want to beat a level, not if you want to figure out what a P-Switch does. I probably could use power-up increment to execute arbitrary code, but juggling with shells into very specific positions doesn't sound like fun. That said, there is a game where arbitrary code execution is easier. First generation Pokemon games, that is. Now, you could point out that using a memory editor is easier... and it is easier, but I don't care.



Using the following set-up
  • (Any Item) x Any
  • (Any Item) x Any
  • Lemonade x 21
  • TM34 x 89
  • Awakening x 28
  • TM40 x 64
  • TM30 x 127
  • TM24 x 64
  • Hyper Potion x 11
  • Potion x 3
  • Fake PP Up x A4
  • Lemonade x 69
  • ????? (Surfboard) x E9
  • HM01 x 1
  • 10F x 10
  • Battle Style x G6
  • RIVAL x 33
  • Coin x 99
  • Lazy x Vamperumbra
  • Coin x 99
  • P-Switch x 1
  • Cascadebadge x 77
  • Trade complete x 12
  • TM54 x 54
  • Super Potion x Potion
  • Potion x Any
We can hack into SMW Central's code and find a mysterious ROM. It doesn't seem particularly important however, let's ignore it. I did convert it to a patch, just so nobody would complain I upload ROMs to SMW Central, because first: that's rude, second: that's copyrighted material and that's big no-no.

There was another thing of interest however, a forum:



Now, I know enough to not press fake big download buttons, they are actually viruses and surveys. So I ignored the threads about P-Switches and went to "Developers' Bar & Grill". The first post here was written by an user called P-Switch (user ID -341).

Originally posted by P-Switch
Congratulations! You have passed all obstacles, and you can learn the secret behind the P-Switch button in a menu. Please don't leak this to anyone.

TEXT REMOVED BY P-SWITCH


A̠͙͝ṇ̲͎̤d͉͞ ņ͙̭̺o̜̮͙͍̜͓͍͡w̲͕̞̙͇̗̘̕ ̤̯́i̳̤̥̙̩̘̺͜t͏̖ ͖̘͍̠̹̝i҉̭̼̬s͉̫̪͞ ͈͕̳̺͡ͅc̶̗̖̲̺̘̜̮l̡͓̖̗͔̱̪e̷̟̫͎̺͔a̩̫̠͉r҉̱̝̟̝ ̦̙͔͙͖͙͝w҉̬h̥̼̬̞͜at̢͖̖̙ ̶P̯̲-̷̞̝ͅS̼̹͉̦̦͇̻w̱̞̠͉͚̟it̺̩͓̼͔̜̼ć̫̜̼͖ͅh̵͕ ̨͇̫̰͚̠͉ͅd҉͙̘̻o̰͍͓͓̳̖̥e̳s̼.̭͔̰̫̠̪͘
So sorry to inform you... this is not the real secret of the P-Switch. This is a fake, planted to stop people just like you from prying too far were you don't belong.

Enjoy your ban.
I never really notice this P-Switch. And reading your investigations i'm not sure if iactually want to know more about this...

--------------------
Originally posted by Sariel
I never really notice this P-Switch. And reading your investigations i'm not sure if iactually want to know more about this...

i̺̘̻̠̝̙͖'̘̪m͓̰͓͘ ͏̺͎̱p̭r͞e҉̩̬͕t̹̙t̗͍̞̗y̡͔̜͍ ̳̮̫͔͔̮s̳̦̹u͉̭̬̜͙͙͎r̡e̞ ͖͉i̜̩̻̞͔̥͢ͅt̢͕̠͖'̨̲s̠̰ ̧h̢̪͖̣̠̱͕a͡r̭̳̱̪͇m̬͔̯͎̩̞͡l̳̝̳͕̟̪̱ȩ̣̼̗͚͕s͏͈̤̥͔s̸

--------------------
Legacy ports zip (now that those went down because Dropbox)
Originally posted by xfix
Using the following set-up
  • Lemonade x 21
  • TM34 x 89
  • Awakening x 28
  • TM11 x 11

Lemonade x21 translates to ld a,$15 - so far so good. TM34 x89 followed by an Awakening is ld ($590E),a. The 28 translates to inc e. A TM11 is an invalid opcode. Busted.

...but I have to admit, this sure is an interesting thread. I never thought anyone would go that far to see what P-Switch does. Noivern is wrong - this is scarily close to the actual truth which not even administrators know, only coders. I'm going to make a note to play the hack you sent to make sure you haven't discovered even more inside information. If you have, I'm afraid I'll have to shut down the website until Kieran tells me what to do, because this could get really bad.
The P-Switch does nothing, go back to sleep.

--------------------
Originally posted by Telinc1
Originally posted by xfix
Using the following set-up
  • Lemonade x 21
  • TM34 x 89
  • Awakening x 28
  • TM11 x 11

Lemonade x21 translates to ld a,$15 - so far so good. TM34 x89 followed by an Awakening is ld ($590E),a. The 28 translates to inc e. A TM11 is an invalid opcode. Busted.

But what if he was playing on 3DS Virtual Console?

--------------------
Check out Team Hack Fix/Translations' thread full of fixed and translated SMW hacks!

Wanted Permabanned or Dead by new staff team
I think it's supposed to turn used blocks into coins, or am I wrong? I don't see any used blocks anywhere...
Maybe the question-mark blocks that used to be on the menu would turn into used blocks somehow, *gasp* (ban'd)


But first, we need to talk about Parallel Universes...
--------------------
C'mon, man, I try my best.
これは「なにか」ですわ
SAN値!ピンチ!
It's actually possible to do with only a half P-switch press.

--------------------


 
Originally posted by Super Maks 64
Originally posted by Telinc1
Originally posted by xfix
Using the following set-up
  • Lemonade x 21
  • TM34 x 89
  • Awakening x 28
  • TM11 x 11

Lemonade x21 translates to ld a,$15 - so far so good. TM34 x89 followed by an Awakening is ld ($590E),a. The 28 translates to inc e. A TM11 is an invalid opcode. Busted.

But what if he was playing on 3DS Virtual Console?

My mistake, fixed a small error in my setup, now it should be better.

--------------------
Legacy ports zip (now that those went down because Dropbox)
The mystery is all at the site backend. A end that can't be accessed though the user.
Maybe we can call it "darkend"? A place full of mystery where all of our data is stored, processed and shown though the staff members. A pure black magic box where people track down our past and memories, using hitech quantum physics algorithms all of our secrets are discovered.

Which in the end we find out that the P-switch does absolutely nothing.

--------------------
GitHub - Twitter - YouTube - SnesLab Discord
Originally posted by WhiteYoshiEgg
It's actually possible to do with only a half P-switch press.

A P-Switch press is a P-Switch press, you can't say it's only a half!

As a previous admin, I can tell you this is not correct.
Last I saw, it turns on and off Kierans'...erma I second thought, maybe I shouldn't say...>_>
Layout by LDA during C3.
Fanatical like a Demon
Originally posted by Lightvayne
As a previous admin, I can tell you this is not correct.
Last I saw, it turns on and off Kierans'...erma I second thought, maybe I shouldn't say...>_>

This explains why I can't remember anything afterwards when I asked staff about the P-Switch...
Major thanks to Suika Ibuki for layout!
SMAS Soundtrack Status: 100% finished
YI Soundtrack Status: 100%
YI Unsampled Soundtrack Status: 100%
NSMB Soundtrack Status: 7.89%
Killer Instinct Soundtrack Status: 14.63%
SPC Thread
From our family to you, keep your pants dry, your dreams wet, and remember, hugs not drugs.
I don't know what the fuss is about, everyone who's played Super Mario World knows the purpose of the P-switch which is turning brown blocks into coins.
The site has no brown blocks, so it doesn't do anything.

bazinga
Strange. I can press that one P-Switch... twice!

Hmmmmmmmmmmm.
Twitter
What's strange is that you can press the same P-switch as many times as you want without disappearing, and Super Mario World didn't have that advantage.
Could it be that this P-switch is stationary and infinite???

hmmmmmmm
Now this is epic #wario{B)}

allow shy guy emojis in post footers you cowards!
I hit a p-switch on the site and it became...
a pressed p-switch
mmhm...
Pages: « 1 2 » Link
Forum Index - Sunken Ghost Ship - C3 Museum - Winter 2019 - the p switch mystery solved at all

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks