public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MZ How to write a wasm plugin

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: MZ How to write a wasm plugin
  • Original author: linuxluigi
  • Original date: September 18, 2021
  • Source thread: https://forums.rpgmakerweb.com/threads/how-to-write-a-wasm-plugin.140557/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Learning Javascript

Summary

Hey a friend of me is askingif I could develop a plugin for him. But since I'm a Go developer I was wondering if it would be possible to create a wasm plugin. But I didn't find a way, to load my wasm file within the PRG maker runtime. In the golang wiki is written, that I need to include a JS file as a glue between the wasm file & JS: Golang Wiki -> https://github.com/golang/go/wiki/WebAssembly

Archived First Post

Hey a friend of me is askingif I could develop a plugin for him. But since I'm a Go developer I was wondering if it would be possible to create a wasm plugin.

But I didn't find a way, to load my wasm file within the PRG maker runtime.

In the golang wiki is written, that I need to include a JS file as a glue between the wasm file & JS:
Golang Wiki -> https://github.com/golang/go/wiki/WebAssembly
Include JS file -> wasm_exec.js

And to use the Golang functions from wasm it should be something like this:

const go = new Go(); WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => { go.run(result.instance); });

When I add the wasm_exec.js file as a plugin and a try to load the wasm file in other JS file it only works in the Browser.

Screenshot 2021-09-18 at 16.22.32.png


But it doesn't matter what I tried to include the wasm_exec.js file, it will always say that Go is not defined.

Screenshot 2021-09-18 at 15.34.53.png


Is there some tutorial how to do this?

Thanks for any help

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#js-learning

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar