Modding Help Starbound can't find my Lua scripts

Discussion in 'Starbound Modding' started by Michael3038, Jun 30, 2021.

Tags:
  1. Michael3038

    Michael3038 Void-Bound Voyager

    As a new modder, I'm trying to attach scripts to various items. I mostly followed this (https://community.playstarbound.com/threads/lua-mod-tutorial-1-simple-spawner.44035/) thread; move the script to a directory under the assets folder, and supply the path (e.g. /mods/test/test.lua) in the item's JSON.

    However, on every attempt so far, trying to hold the weapon results in an error:
    Code:
    (AssetException) Error loading asset
    /mods/test/test.lua
    I don't know why, since the script should be in the right place: Starbound/assets/mods/test/test.lua
    If anyone knows how to resolve this, please help.
     
  2. bk3k

    bk3k Oxygen Tank

    For one thing, check your capitalization. For example if you have /Test/ instead of /test/ or /test/Test.lua instead of /test/test.lua

    Of course you can use capital letters if you want, just as long as the path to the script in the object file uses them. It simply has to match perfectly.
     
    The | Suit likes this.

Share This Page