Iron-Stag-Games / Lync

Lync is a file sync tool for Roblox.
GNU Lesser General Public License v2.1
26 stars 3 forks source link

offline build: error converting Lua string to userdata #25

Closed knnyism closed 1 year ago

knnyism commented 1 year ago
Writing validation script . . .
Validating loadstrings . . .
Writing build script . . .
Building RBXL . . .
error converting Lua string to userdata (expected userdata of type lune_roblox::datatypes::types::enum_item::EnumItem)
[Stack Begin]
    Script '[C]'
    Script 'game.rbxl', Line 165
    Script 'game.rbxl', Line 62 - function lpcall
    Script 'game.rbxl', Line 161 - function setDetails
    Script 'game.rbxl', Line 378 - function buildPath
    Script 'game.rbxl', Line 415 - function buildAll
    Script 'game.rbxl', Line 423
[Stack End]

default.project.json as requested

{
  "name": "Ballistic",
  "tree": {
    "$className": "DataModel",
    "ServerStorage": {
      "$className": "ServerStorage",
      "Lycan": {
        "$path": "source/platform/server"
      },
      "Ballistic": {
        "$path": "source/ballistic/server"
      }
    },
    "ReplicatedStorage": {
      "$className": "ReplicatedStorage",

      "Lycan": {
        "$path": "source/platform/shared",
        "client": {
          "$path": "source/platform/client"
        },
        "packages": {
          "$path": "Packages"
        }
      },

      "Ballistic": {
        "$path": "source/ballistic/shared"
      },

      "Resources": {
        "$path": "resources/resources.manifest.rbxm"
      }
    },
    "ReplicatedFirst": {
      "$className": "ReplicatedFirst",
      "ClientLoader": {
        "$path": "source/ballistic/game.client.luau"
      }
    },

    "ServerScriptService": {
      "$className": "ServerScriptService",
      "ServerLoader": {
        "$path": "source/ballistic/game.server.luau"
      }
    },

    "StarterPlayer": {
      "$className": "StarterPlayer",
      "$properties": {
        "CameraMode": "LockFirstPerson",
        "DevComputerCameraMovementMode": "Classic",
        "DevTouchCameraMovementMode": "Classic",
        "LoadCharacterAppearance": false,
        "UserEmotesEnabled": false,
        "DevComputerMovementMode": "Scriptable",
        "DevTouchMovementMode": "Scriptable"
      }
    },
    "Players": {
      "$className": "Players",
      "$properties": {
        "CharacterAutoLoads": false
      }
    },
    "Workspace": {
      "$className": "Workspace",
      "$properties": {
        "FilteringEnabled": true
      }
    },
    "SoundService": {
      "$className": "SoundService",
      "$properties": {
        "RespectFilteringEnabled": true
      }
    }
  }
}
hoontee commented 1 year ago

For Enums and other scripted properties, encase the value in an array with [ ], for example, ["Enum.CameraMode.LockFirstPerson"].

knnyism commented 1 year ago

Oh nice, that fixed it.