Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Tracker for modding dedicated server #35

@ZXMushroom63

Description

@ZXMushroom63

by requesting a bug you must check these boxes

  • I just checked all of these boxes without reading the labels
  • I just checked all of these boxes without reading the labels
  • I just checked all of these boxes without reading the labels
  • I just checked all of these boxes without reading the labels

about the bug

This is a tracker for modding the single player dedicated server. Currently, all mods run client-side, even in single player. Exposing the dedicated server is probably going to be hard due to it running in it's own sandboxed web worker (no exposing instances).

Current best idea from me is add a custom packet that you can send to a server that runs a new Function() in the web worker's context. Then, you can use the Web BroadcastChannel API to exchange information backwards and forwards between client and dedicated server.

Additionally, to make use of the already existing ModAPI, using globalThis rather than window. (web workers do not have a window)

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions