Skip to content

About

Next Big No Visual coding for Schedule 1, (blueprints)

Resources

Contributing

Stars

6 stars

Watchers

2 watching

Forks

Latest commit

 

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schedule 1 Modding Tool

Schedule 1 Modding Tool is a WPF desktop editor for building Schedule I mods on top of S1API.

It is aimed at people who want a GUI-first workflow instead of writing every mod feature by hand. The tool stores project data in its own editor format, generates real C# source that targets S1API, builds a mod project, and helps deploy or launch the game for testing.

What It Does

The tool currently focuses on these authoring workflows:

  • Quests
    • quest settings, objectives, rewards, finish behavior, trigger wiring, and generated hook scaffolds
  • NPCs
    • schedules, dialogue containers/nodes/choices, dialogue injection, runtime settings, reactions, and hook scaffolds
  • Items
    • item registration, shops, equippables, buildable settings, additive settings, recipes, and advanced item hooks
  • Custom clothing
    • clothing-specific item flow, legality/stack settings, texture workflows, clothing studio helpers, and texture extraction/import support
  • Weed strains
    • native S1API 3.2.0 weed products with a stable namespaced ID, 1–8 effects, and optional main, secondary, leaf, and stem colors
  • Custom products
    • S1API products with a logical product kind, optional native mixing, price, legality, addictiveness, quality, packaging, effect durations, discovery, shop stock, console alias, and optional Product Manager section
  • Project resources
    • embedded assets, icons, textures, and generated mod resource packaging
  • 3D Models
    • project library for GLB models and Unity AssetBundles; offline GLB viewer and scene editor
  • Live helper workflows
    • connector-assisted game launch, runtime catalog access, and in-editor help via ? explanations on complex fields

How It Works

The editor is not a replacement runtime for S1API. It is an authoring layer on top of it.

The pipeline is:

  1. Create or edit content in the GUI.
  2. Save it as project data inside the mod creator project format.
  3. Generate C# files that target S1API.
  4. Generate a mod project with resources and references.
  5. Build that project into a normal mod DLL.

That means the output is still real generated C# and a real buildable mod, not a closed custom format.

Create a weed strain

Use Add > Weed Strain in the menu or workspace, then set a permanent ID such as mymod:blue_dream, a name, and 1–8 distinct effects such as Euphoric, Calming. Optionally set the four weed color channels. The generated mod registers the strain on S1API's load-complete event; S1API's native weed creator handles mixing, price, discovery, visuals, persistence, and network replication. The ID is saved in game data, so changing it later can break existing saves.

Use Add > Custom Product for a product such as a tablet or powder. Set its product ID and kind ID, choose a live game product as the representation template (the default is ogkush), then configure effects, price, legal status, base addictiveness, quality, durations, packaging, discovery, shop stock, an optional console alias, and an optional Product Manager section. Enable mixing to select a native mixer map and optionally color generated mixes from their effects. Mixing settings belong to the Product Kind ID, so every product with the same kind ID must use the same settings. Generated outputs keep the player's mix name, the source product's kind, and its source price. The generated mod registers a save provider during initialization, builds the definition before save restoration, and optionally discovers or lists it after the save loads. Production station recipes remain separate from mixing. See the S1API mixing profile API for runtime details.

Add a production recipe

Open an ordinary item or custom product and use Production Recipes to add a Chemistry Station recipe. Set a stable namespaced recipe ID, title, cook time, output quantity, and liquid color. Add ingredient groups; each group requires its own quantity, and its item IDs are alternatives. Choose whether the recipe starts visible and unlocked. The generated mod registers the recipe through S1API after its output item exists. Custom products can have production recipes without enabling mixing. S1API currently exposes this recipe builder for the Chemistry Station; other production stations are not included in this editor workflow.

Use a 3D model

Open 3D Models in the sidebar, import a Unity AssetBundle containing a GameObject prefab, and enter the prefab's exact asset name. Select that model in an item editor's 3D Model section. The editor copies the bundle into the project and embeds it in the generated mod.

Custom products use S1API presentation profiles for loose, held, stored, station, and generated icon visuals. Non-brick packaging also uses the selected model as its contents. Furniture uses S1API's furniture builder for the placed object and placement ghost. Ordinary items, additives, and clothing use the prefab as a stored-item visual; these prefabs must contain a StoredItem component. Worn clothing also needs a compatible clothing component and rig. Native weed strains currently support custom colors but do not have a S1API custom-model hook. Raw OBJ and FBX files must first be converted into GLB or a Unity prefab AssetBundle.

For Custom Products and Furniture, you can import a .glb directly. Use Preview GLB in the model library to inspect it, or Preview and adjust GLB in an item's model picker to edit uniform scale, XYZ rotation (degrees), and XYZ offset (metres). The viewer supports orbit, zoom, pan, framing, and wireframe. Placement changes are saved with the item and applied inside a model wrapper by the generated mod. Preview lighting approximates materials; game lighting can differ.

For a composition, click Open scene editor on the 3D Models page, or Add to scene on a GLB card. Add library GLBs or basic shapes, including a torus, then select them in the viewport or scene collection. Use the Move, Rotate, and Scale gizmos or numeric fields, Snap, World/Local axes, front/right/top views, orthographic projection, grid visibility, and Undo/Redo while arranging objects. For shapes, edit color, metalness, and roughness. Place an object on the ground, isolate it, or use Show all to restore hidden objects. The eye in the scene collection hides an object from preview and export. You can also rename, duplicate, copy/paste, reset transforms, delete, frame, and inspect objects in wireframe. Save scene stores the editable object list in the .s1proj file. Enter a name and click Export GLB to create a new model in the library; select that model on a Custom Product or Furniture item to use it in a mod. Closing a changed scene offers Save, Discard, and Cancel. This is a static scene composition editor with simple shapes and object transforms rather than full mesh sculpting.

To adjust one item's model, click Preview and adjust GLB in its 3D Model tab. Edit scale, rotation, and offset in the offline preview, then click Save placement to project. The scene editor also works offline and does not require the game.

The preview runs locally using bundled Three.js and requires Microsoft Edge WebView2 Runtime. No model uploads or CDN downloads are used. A missing preview runtime does not prevent import or export. AssetBundle previews are not included.

GLB imports currently require glTF 2.0, a maximum 64 MB file, one scene with all model nodes, one embedded binary buffer, indexed triangle meshes, dense float positions/normals/tangents/one UV set, consistent attributes across a mesh's material slots, explicit materials, and embedded PNG/JPEG images. The editor checks these requirements again during export. Animation, skinning, morph targets, sparse or quantized attributes, vertex colours, compressed geometry/textures, external files, and extensions other than KHR_materials_emissive_strength and KHR_materials_specular are rejected. This conservative profile targets the existing MAPI 2.0.1 loader; it does not yet enable unreleased importer changes.

Generated GLB mods require S1MAPI 2.0.1 or a compatible newer version in addition to S1API. Install S1MAPI_Mono.dll for Mono or S1MAPI_Il2cpp.dll for IL2CPP in the game's UserLibs folder before building. The generated project first checks the UserLibs folder belonging to the selected runtime assembly directory, then the selected game folder, and copies the dependency into its build output; an advanced command-line build can override S1MapiPath. Only projects with items using GLB models gain this dependency. See the generated GLB-DEPENDENCY.md for distribution instructions. Existing bundle projects retain their loading path and saved fields.

Building and testing the GLB viewer

Install .NET 8 and Bun 1.3.5 or later. The editor build restores the pinned viewer dependencies with Bun and bundles the viewer locally; no Node package manager is required. Release workflows also install Bun. Run:

dotnet build Schedule1ModdingTool.csproj -c Release
dotnet test Schedule1ModdingTool.Tests/Schedule1ModdingTool.Tests.csproj -c Release

For runtime acceptance, export a textured GLB as both a custom product and furniture, compile each runtime, and inspect mesh/material loading, placement transforms, generated icons, and scene reloads in each game backend. Editor tests and generated-project compilation do not establish loaded-save or multiplayer behavior.

Current Highlights

  • S1API 3.2.0-oriented quest and trigger generation
  • Expanded NPC dialogue and runtime authoring
  • Broader item support with shop routing and advanced item options
  • Clothing Studio with texture helpers and game-data texture extraction
  • Inline field help for more confusing editor sections
  • Connector workflow for live game-assisted tooling

Project Layout

  • Models/ contains editor data models and project blueprints
  • ViewModels/ contains MVVM state and commands
  • Views/ contains the WPF editor UI
  • Services/ contains generators, runtime helpers, build/deploy services, and editor support logic
  • Utils/ contains formatting and helper utilities
  • Resources/ contains editor assets and styles
  • ModCreatorConnector/ contains the helper mod used for live editor/game workflows

Status

This project is still in active development.

  • Pre-release builds may be available before a stable release
  • Some advanced features still rely on generated hook files for manual C# additions

Support Us

About

Next Big No Visual coding for Schedule 1, (blueprints)

Resources

Contributing

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages