Libsm64: Mario 64 as a library for use in external game engines

193 pointsposted 2 days ago
by klaussilveira

24 Comments

schmeichel

2 days ago

This is one of my favorite libraries from the premise alone. Here is an example of Mario in Half-Life 2: https://www.youtube.com/watch?v=Ld3qhqkegNw

valgaze

a day ago

Astounding that swimming and collisions and all that stuff seems to function!

Commenter explains how it works:

  I can see not enough people know how this addon works. Allow me to explain.

  It is a mod, but it was only possible with a plugin, it can be (with a bit of  tweaking) used for other games and already has been, for example rocket league, sonic generations, blender and minecraft. the way it works is that mario 64 is  running in the background so that the mario physics and gameplay functions work, but the actual character is invisible but the hitbox is still there, so that mario actually can be hit for example. with the plugin mario can pretty easily be put into any game, though some fixes might be needed at some times, for example in sonic generations for the rails to work, mario has to be disabled and sonic's control is taken over again so that "mario" can grind on rails.

  TD;LR: Basicilly this addon use libsm64 which contains original SM64 assets and ported into GMod. So yeah, it's not a recreation and that's also explain why you need a Mario 64 ROM (in z64 file format) to get this addon working.

Dwedit

a day ago

How many Portal test chambers could be solved with Mario 64 jumping alone, and no use of any portal gun?

PcChip

2 days ago

That is amazing and it makes me smile

pizzathyme

a day ago

This is incredible. This was the promise of the proclamations of "the metaverse" or interchangeable crypto game items/characters, but is using none of those things. Like Ready Player One come to life without the hype.

Curious how easy the setup is for gamers who are non-engineers

> Curious how easy the setup is for gamers who are non-engineers

You're still writing a mod for whatever game, it's just that this library gives you an easy way to get the mario-jumping physics right. So unfortunately, non-programmers will probably have to wait for someone to insert mario into your game of choice, although this library will make that process a bit easier.

yaportmax

20 hours ago

Just ask Codex / Claude Code to do it for you :)

echelon

a day ago

Metaverse without Crypto/VR/Facebook is fantastic and is bound to happen.

Metaverse is just people building cool stuff in a way that builds and compounds.

Critically - hopefully - in a way that can't be owned as a central platform.

dev0p

2 days ago

Wrap it in an API, sell Mario 64 as a service.

(@Nintendo: this is a joke, you can put down the rifle)

thebruce87m

2 days ago

I imagine Nintendo is a bit more like malfunctioning ED-209 in the office scene than a person with a rifle.

fhn

a day ago

Nintendo did put down their rifles after they fired multiple shots into the head and then the sued.

Retr0id

2 days ago

Looks like this has been around for a while now, are there any interesting projects using it?

Edit: https://github.com/SuperSonicHub1/awesome-libsm64

cshores

2 days ago

Someone created an AR sandbox using it on the Quest 3. The player draws platforms and mario can jump around on the platforms and on your couch and stuff. That is probably the killer app of VR that everyone has waited for.

deadbabe

2 days ago

So let me get this straight, is the intent of this so that if you have some game like Call of Duty, you could use this to just add Mario running around in there jumping around like it was SM64?

guipsp

2 days ago

It's specifically about the mechanics/physics rather than the model, but yes.

tosti

a day ago

It has the vertices, the surfaces, the textures and the animations.

There's a minecraft mod too, you press m and f5, boom you're mario.

anthk

a day ago

I'd love the Perfect Dark recompilation working under GL 2.1:

https://github.com/perfect-dark-pc-port/perfect_dark

pipes

a day ago

That port is amazing, probably one of my most played games on my steam deck. What is GL 2.1?

anthk

a day ago

OpenGL 2.1, basically between DirectX 8 and 9 level. If the Super Mario 64 PC port can run even under VooDoo 3D graphics card, I'd love a Max Payne level era device (and maybe able to run HL2) being able to play that.

pipes

19 hours ago

Ah, right, retro pc hardware running perfect dark natively. thanks for explaining;)