News for hackers. Stuff that matters.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by 22c on Wednesday October 13, 2021 @10:23PM (#28859874)
> On 64-bit bug that killed the game

I had heard about this bug, I think I saw it on Dave Plummer's YouTube channel[1]. I remember thinking at the time that I am surprised nobody has tried to decompile it and figure it out, looks like k4zmu2a did and couldn't find it. Now I have more questions about the original bug reports.

[1] https://www.youtube.com/channel/UCNzszbnvQeFzObW0ghk0Ckw

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by pedropaulovc on Wednesday October 13, 2021 @10:30PM (#28859920)
The bug lore came from Raymond Chen's blog post [1]

[1] Why was Pinball removed from Windows Vista? https://devblogs.microsoft.com/oldnewthing/20121218-00/?p=58...

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by selcuka on Wednesday October 13, 2021 @11:36PM (#28860246)
This comment made me chuckle and also a bit sad:

> [...] we simply couldn’t figure out why the collision detector was not working. Heck, we couldn’t even find the collision detector!

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by unnouinceput on Thursday October 14, 2021 @01:07AM (#28860708)
And the continuation is:

"We had several million lines of code still to port, so we couldn’t afford to spend days studying the code trying to figure out what obscure floating point rounding error was causing collision detection to fail."

I'd say Ray is right, not lacking the skill, but lacking the time

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by selcuka on Thursday October 14, 2021 @02:13AM (#28861040)
To be clear I was sad about the lack of comments in the original code. It shouldn't be that hard to find where the collision detection occurs.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by mike_san on Thursday October 14, 2021 @04:02PM (#28869255)
Raymond's comment about not being able to find the collision code is a bit absurd. I can't recall if Danny or I named the top-level collision detection function, but it was just named 'pb_collide'.

It's nice to be able to point to this line: https://github.com/k4zmu2a/SpaceCadetPinball/blob/5947727f80...

And, while it is true that the code is sparsely commented, the geometry code that computes ray intersections is commented.

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by selcuka on Friday October 15, 2021 @01:14AM (#28874553)
To be fair it's a huge undertaking to port any code of that size to 64 bits, be it fully commented or not. He probably remembers it vaguely and it might be a different function they had problems finding the exact location in the source code.

I'm curious, didn't they just call you or Danny (I believe that's Danny Thorpe, who is currently working for Microsoft) for assistance?

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by unnouinceput on Thursday October 14, 2021 @03:43AM (#28861543)
Ray wasn't about only to find the collision, but porting or not the game, meaning going through entire uncommented code of the game. And he said they made the executive decision not to port it.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by garaetjjte on Thursday October 14, 2021 @08:41AM (#28863463)
There's a documentary about it: https://www.youtube.com/watch?v=3EPTfOTC4Jw
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by GoblinSlayer on Thursday October 14, 2021 @04:28AM (#28861789)
I unpacked pinball from 64-bit windows xp cd, played it and the only bug I see is that the launcher isn't well visible.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by AshamedCaptain on Thursday October 14, 2021 @05:49AM (#28862196)
It is incredible that even in 2021 people still parrot Chen's original _WRONG_ post about Pinball not being available in x64 Windows. We already even mentioned that in the original entry of his blog before the comments were removed.

Tens of "YouTube videos" appear in this thread and all of them simply parrot the same statement from Chen and not a single one of them even bothers to actually try Windows XP x64 edition and check whether Pinball is there not. Again only in some comments people seem to realize 'hey, you guys may be wrong .. there is a x64 pinball here after all, at least'.

I guess it's a sad reflection of our society.

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by GoblinSlayer on Thursday October 14, 2021 @11:49AM (#28865936)
I just looked in wikipedia, where it says xp had a working amd64 version.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by AshamedCaptain on Thursday October 14, 2021 @12:24PM (#28866379)
Someone edited that in a couple weeks ago. (And cites a "Youtube video" as source. Sigh. )
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by tanjtanjtanj on Thursday October 14, 2021 @10:59AM (#28865186)
I pirated (sorry) the Windows version of Space Cadet Pinball from some big torrent tracker (TBP, Demonoid?)some time after that blog post was put up and it worked on Windows 7. Last time I saw this story making the rounds, around 2017, I checked to see if it still worked on Windows 10 and to my surprise, it did. I don't know what sort of unofficial patch was applied if any, but it has been working on 64 bit windows for nearly a decade from what I can tell.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by leeter on Thursday October 14, 2021 @11:05AM (#28865305)
So there are various Youtubes about this... but it was 'Windows XP 64bit-Edition' (yes 'Edition' is part of the name. This specifically refers to IA-64 and not AMD64. There are rendering issues on the AMD64 versions but the IA-64 version doesn't work. Windows XP 64bit (non-edition) that was on AMD64 actually did ship with 3d pinball, albeit with some rendering issues. Best guess is that it was later removed in vista because it didn't fit the shiny new games theme that existed then. Raymond was giving his view of his part of the port to IA-64.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by GoblinSlayer on Thursday October 14, 2021 @02:09PM (#28867802)
So, Microsoft had an agreement with Intel that Itanium version will be no worse than amd64 version, so they couldn't release pinball only for amd64 version?
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by leeter on Thursday October 14, 2021 @02:37PM (#28868160)
They did release it for the windows XP 64bit editions for AMD64. So no it was definitely released, it has rendering issues but it is there and works AFAIK. As best I can tell it was removed because it didn't fit vista's aesthetic not that they couldn't get it to work.

Because if MS had that agreement... almost nothing would have been released on AMD64 as very little actually made it to IA-64 or was supported there realistically.

Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by AshamedCaptain on Thursday October 14, 2021 @12:28PM (#28866422)
Windows for AMD64 is called x64 Edition, it also includes "Edition" on the name. Windows for IA64 is called 64-bit Edition.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by leeter on Thursday October 14, 2021 @01:34PM (#28867359)
Because Microsoft couldn't make it more confusing... lol
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by AshamedCaptain on Thursday October 21, 2021 @08:10AM (#28943255)
They could not really help it. It was not that clear these days what would exactly succeed x86 as the mainstream 64-bit architecture.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by worker767424 on Wednesday October 13, 2021 @11:20PM (#28860180)
Makes me wonder why they removed Hearts from Windows 8
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows by phinnaeus on Thursday October 14, 2021 @12:13AM (#28860447)
Probably the same collision detector issue⸮