Modding Help Custom reward bags don't work after 1.3 update

Discussion in 'Starbound Modding' started by Melendroach, Jun 11, 2017.

  1. Melendroach

    Melendroach Subatomic Cosmonaut

    I've created 32 new reward bags, with custom pools, but after the update, they don't drop items anymore. Can anyone help?
    Log:

    Code:
    [10:09:44.357] [Info] Root: Preparing Root...
    [10:09:44.358] [Info] Root: Done preparing Root.
    [10:09:44.358] [Info] Client Version 1.3.0 (windows x86_64) Source ID: 24f2eba0cad0c286b5c44b8515114aca6a09e65d Protocol: 742
    [10:09:44.380] [Info] Root: Scanning for asset sources in directory '..\assets\'
    [10:09:44.380] [Info] Root: Skipping hidden '_unpacked' in asset directory
    [10:09:45.063] [Info] Root: Scanning for asset sources in directory '..\mods\'
    [10:09:47.931] [Warn] Root: Unrecognized file in asset directory 'mods_go_here', skipping
    [10:09:47.931] [Info] Root: Detected asset source named 'base' at '..\assets\packed.pak'
    [10:09:47.932] [Info] Root: Detected asset source named 'Brawlhalla Mod' at '..\mods\Brawlhalla mod'
    [10:09:47.932] [Info] Root: Detected unnamed asset source at '..\assets\user'
    [10:09:47.932] [Info] Loading assets from: '..\assets\packed.pak'
    [10:09:48.722] [Info] Loading assets from: '..\mods\Brawlhalla mod'
    [10:09:48.814] [Info] Loading assets from: '..\assets\user'
    [10:10:06.969] [Info] Assets digest is a517d4ab79cf0a09882e5bb0fffe64b1d1965efa69085652bd6a39e3a7d2022a
    [10:10:06.969] [Info] Root: Loaded Assets in 22.6102 seconds
    [10:10:07.009] [Info] Application: Initializing SDL Video
    [10:10:07.058] [Info] Application: Initializing SDL Joystick
    [10:10:07.654] [Info] Application: Initializing SDL Sound
    [10:10:08.735] [Info] Initialized Steam services
    [10:10:09.039] [Info] Application: Creating SDL Window
    [10:10:12.008] [Info] Application: Enabling VSync with late swap tearing
    [10:10:12.168] [Info] Application: Opened default audio device with 44.1khz / 16 bit stereo audio, 2048 sample size buffer
    [10:10:12.288] [Info] OpenGL version: '4.5.0 NVIDIA 376.53' vendor: 'NVIDIA Corporation' renderer: 'GeForce GTX 750/PCIe/SSE2' shader: '4.50 NVIDIA'
    [10:10:12.750] [Info] Application: initialization...
    [10:10:12.808] [Info] Root: Loaded Configuration in 0.0476254 seconds
    [10:10:12.858] [Info] Application: renderer initialization...
    [10:10:12.910] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 128
    [10:10:12.991] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 64
    [10:10:13.023] [Info] Root: Loaded ImageMetadataDatabase in 7.44e-06 seconds
    [10:10:13.458] [Info] Application: main update loop...
    [10:10:13.482] [Info] No subscribed user generated content
    [10:10:13.870] [Info] Root: Loaded NameGenerator in 0.321377 seconds
    [10:10:18.485] [Info] Root: Loaded PlantDatabase in 4.61458 seconds
    [10:10:24.682] [Info] Root: Loaded ProjectileDatabase in 6.19655 seconds
    [10:10:25.081] [Info] Root: Loaded ObjectDatabase in 11.5318 seconds
    [10:10:25.487] [Info] Root: Loaded NpcDatabase in 0.405753 seconds
    [10:10:25.544] [Info] Root: Loaded StagehandDatabase in 0.0569806 seconds
    [10:10:25.545] [Info] Root: Loaded MonsterDatabase in 0.862831 seconds
    [10:10:25.549] [Info] Root: Writing runtime configuration to '..\storage\starbound.config'
    [10:10:25.829] [Info] Root: Loaded PlayerFactory in 0.283975 seconds
    [10:10:25.834] [Info] Root: Loaded VehicleDatabase in 0.28985 seconds
    [10:10:26.048] [Info] Root: Loaded VersioningDatabase in 0.213766 seconds
    [10:10:26.048] [Info] Root: Loaded EntityFactory in 0.219158 seconds
    [10:10:26.422] [Info] Root: Loaded ParticleDatabase in 0.322892 seconds
    [10:10:35.926] [Info] Root: Loaded MaterialDatabase in 9.87724 seconds
    [10:10:36.108] [Info] Root: Loaded TerrainDatabase in 0.182366 seconds
    [10:10:40.881] [Info] Root: Loaded BiomeDatabase in 4.77276 seconds
    [10:10:41.132] [Info] Root: Loaded LiquidsDatabase in 0.250837 seconds
    [10:10:41.195] [Info] Root: Loaded StatusEffectDatabase in 0.0628249 seconds
    [10:10:44.970] [Info] Root: Loaded DamageDatabase in 3.77484 seconds
    [10:10:45.130] [Info] Root: Loaded EffectSourceDatabase in 0.160398 seconds
    [10:10:45.419] [Info] Root: Loaded FunctionDatabase in 0.288957 seconds
    [10:10:45.786] [Info] Root: Loaded TreasureDatabase in 0.366903 seconds
    [10:10:50.373] [Info] Root: Loaded DungeonDefinitions in 4.58698 seconds
    [10:10:50.417] [Info] Root: Loaded TilesetDatabase in 0.0430787 seconds
    [10:10:50.545] [Info] Root: Loaded StatisticsDatabase in 0.128306 seconds
    [10:10:50.573] [Info] Root: Loaded EmoteProcessor in 0.0277938 seconds
    [10:10:50.743] [Info] Root: Loaded SpeciesDatabase in 0.17031 seconds
    [10:10:50.947] [Info] Root: Loaded QuestTemplateDatabase in 0.203501 seconds
    [10:10:51.068] [Info] Root: Loaded AiDatabase in 0.120621 seconds
    [10:10:51.295] [Info] Root: Loaded TechDatabase in 0.227488 seconds
    [10:10:51.433] [Info] Root: Loaded CodexDatabase in 0.136855 seconds
    [10:10:53.635] [Info] Root: Loaded BehaviorDatabase in 2.2027 seconds
    [10:10:55.595] [Info] Root: Loaded DanceDatabase in 1.95945 seconds
    [10:10:56.522] [Info] Root: Loaded SpawnTypeDatabase in 0.92733 seconds
    [10:10:57.294] [Info] Root: Loaded RadioMessageDatabase in 0.771392 seconds
    [10:11:30.436] [Info] Root: Loaded ItemDatabase in 64.6013 seconds
    [10:11:31.078] [Info] Root: Loaded CollectionDatabase in 33.7841 seconds
    [10:11:41.235] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 256
    [10:13:23.930] [Info] UniverseServer: Acquiring universe lock file
    [10:13:25.344] [Info] UniverseServer: Loading settings
    [10:13:28.296] [Info] UniverseServer: Starting UniverseServer with UUID: 7f0cd3fab5e1e1121f3e0eab465991a2
    [10:13:28.782] [Info] UniverseServer: Logged in player 'Naturam' locally
    [10:13:28.782] [Info] UniverseServer: Logged in account '<anonymous>' as player 'Naturam' from address local
    [10:13:29.906] [Info] UniverseServer: Spawning player at ship
    [10:13:30.036] [Info] UniverseServer: Client 'Naturam' <1> (local) connected
    [10:13:30.086] [Info] UniverseServer: Creating new client ship world ClientShipWorld:564509fc0f8f889bce4ee6bbaa7c8425
    [10:13:30.454] [Info] UniverseClient: Joined server as client 1
    [10:13:33.831] [Info] Protected dungeonIds for world set to (65524)
    [10:13:45.021] [Info] UniverseServer: Warping player 1 to ClientShipWorld:564509fc0f8f889bce4ee6bbaa7c8425
    [10:13:46.145] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 64
    [10:13:46.162] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 128
    [10:13:47.143] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 256
    [10:13:47.143] [Info] detected supported OpenGL texture size 16384, using atlasNumCells 256
    [10:13:47.788] [Info] Flying ship for player 1 to new starter world
    [10:13:47.918] [Info] Searching for new randomized starter world
    [10:13:48.259] [Info] Setting steam rich presence connection as steam id 76561198137849103
    [10:13:53.379] [Error] Cannot set Steam achievement kill10poptops
    [10:13:53.379] [Error] Cannot set Steam achievement trashpet
    [10:13:53.381] [Error] Cannot set Steam achievement capturepoptop
    [10:15:06.697] [Info] Chat: System is down, please reboot.
    [10:15:26.547] [Info] Chat: Rebooting...
    [10:15:26.560] [Info] Chat: Rebooting...
    [10:15:31.232] [Info] Chat: I am S.A.I.L, your Ship-based Artificial Intelligence Lattice. I manage the maintainance of your ship.
    [10:15:36.082] [Info] Chat: I am also programmed to offer you information and advice.
    [10:15:40.941] [Info] Chat: Earth was attacked by an unknown force, and was subsequently annihilated.
    [10:15:45.782] [Info] Chat: The ship's navigation systems were damaged in our escape. Our location is currently unknown.
    [10:15:59.981] [Info] Chat: Rebooting...
    [10:16:01.287] [Info] Chat: Rebooting...
    [10:16:06.137] [Info] Chat: I am S.A.I.L, your Ship-based Artificial Intelligence Lattice. I manage the maintainance of your ship.
    [10:16:12.361] [Info] Chat: I am also programmed to offer you information and advice.
    [10:16:17.344] [Info] Chat: Earth was attacked by an unknown force, and was subsequently annihilated.
    [10:16:22.111] [Info] Chat: The ship's navigation systems were damaged in our escape. Our location is currently unknown.
    [10:16:35.459] [Info] UniverseServer: Found randomized starter world at 601638562:495583283:-291669774:10
    [10:16:46.028] [Info] UniverseServer: Creating new system world at location (601638562, 495583283, -291669774)
    [10:16:46.517] [Info] UniverseServer: Creating celestial world 601638562:495583283:-291669774:10
    [10:16:51.067] [Info] Protected dungeonIds for world set to (65524)
    [10:16:51.067] [Info] Placing dungeon naturalcave
    [10:16:52.593] [Info] Generating dungeon naturalcave
    [10:16:52.601] [Info] Placing dungeon at (2960, 675)
    [10:16:56.752] [Warn] Failed to place dungeon object: metalbarrel1 direction: 1 position: (2912, 525)
    [10:16:56.873] [Warn] Failed to place dungeon object: metalbarrel1 direction: 1 position: (2858, 532)
    [10:16:57.849] [Warn] Failed to place dungeon object: metalbarrel1 direction: 1 position: (2721, 541)
    [10:16:58.671] [Warn] Failed to place dungeon object: metalbarrel1 direction: 0 position: (2850, 558)
    [10:17:00.529] [Warn] Failed to place dungeon object: metalbarrel1 direction: 1 position: (2802, 569)
    [10:17:00.825] [Warn] Failed to place dungeon object: metalbarrel1 direction: 1 position: (2802, 572)
    [10:17:02.034] [Warn] Failed to place dungeon object: metalbarrel1 direction: 1 position: (2774, 608)
    [10:17:02.068] [Warn] Failed to place dungeon object: metalbarrel1 direction: 0 position: (2789, 624)
    [10:17:29.550] [Info] Placing dungeon gardengate
    [10:17:36.271] [Info] Generating dungeon gardengate
    [10:17:36.272] [Info] Placing dungeon at (1113, 675)
    [10:17:42.823] [Info] Protected dungeonIds for world set to (1, 65524)
    [10:18:23.698] [Info] UniverseServer: Arriving ship for player 1 at 601638562:495583283:-291669774:10
    [10:18:23.698] [Info] UniverseServer: Stopping idle world CelestialWorld:601638562:495583283:-291669774:10
    [10:23:11.383] [Error] Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/items/active/unsorted/Ada set/adaset.lua"]:46: attempt to call a nil value (field 'giveOwnerItem')
    stack traceback:
        [C]: in field 'giveOwnerItem'
        [string "/items/active/unsorted/Ada set/adaset.lua"]:46: in function <[string "/items/active/unsorted/Ada set/adaset.lua"]:14>
    [0] 7ff7f1b97483 Star::captureStack
    [1] 7ff7f1b9620e Star::StarException::StarException
    [2] 7ff7f1b6a691 Star::LuaEngine::handleError
    [3] 7ff7f2197ffd Star::LuaEngine::callFunction<float,Star::String,bool,Star::MapMixin<Star::FlatHashMap<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [4] 7ff7f2199337 Star::LuaFunction::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String,bool,Star::MapMixin<Star::FlatHashMap<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > >
    [5] 7ff7f2199238 Star::LuaBaseComponent::invoke<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<Star::FlatHashMap<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [6] 7ff7f219a2d0 Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<Star::FlatHashMap<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [7] 7ff7f219a20b Star::LuaActorMovementComponent<Star::LuaUpdatableComponent<Star::LuaStorableComponent<Star::LuaWorldComponent<Star::LuaBaseComponent> > > >::update<Star::Variant<Star::Empty,bool,__int64,double,Star::String,Star::LuaTable,Star::LuaFunction,Star::LuaThread,Star::LuaUserData>,float,Star::String const & __ptr64,bool & __ptr64,Star::MapMixin<Star::FlatHashMap<Star::String,bool,Star::hash<Star::String,void>,std::equal_to<Star::String>,std::allocator<std::pair<Star::String const ,bool> > > > & __ptr64>
    [8] 7ff7f21a9e53 Star::ActiveItem::update
    [9] 7ff7f203c830 Star::ToolUser::tick
    [10] 7ff7f1ea43a1 Star::Player::update
    [11] 7ff7f20c9a18 <lambda_9fc580ae40b93070d912cafafa15880e>::operator()
    [12] 7ff7f1cebed7 Star::EntityMap::updateAllEntities
    [13] 7ff7f20e1df9 Star::WorldClient::update
    [14] 7ff7f204b713 Star::UniverseClient::update
    [15] 7ff7f1ade327 Star::ClientApplication::updateRunning
    [16] 7ff7f1adcc1f Star::ClientApplication::update
    [17] 7ff7f22da2a2 Star::SdlPlatform::run
    [18] 7ff7f22da45d Star::runMainApplication
    [19] 7ff7f1adfd46 WinMain
    [20] 7ff7f24c449f __scrt_common_main_seh
    [21] 7ffc773b8364 BaseThreadInitThunk
    [22] 7ffc792570d1 RtlUserThreadStart
    [10:23:29.218] [Info] Application: quit requested
    [10:23:29.218] [Info] Application: quitting...
    [10:23:29.218] [Info] Application: shutdown...
    [10:23:29.815] [Info] UniverseClient: Client disconnecting...
    [10:23:29.973] [Info] Client received world stop packet, leaving: Removed
    [10:23:30.894] [Info] UniverseServer: Client 'Naturam' <1> (local) disconnected for reason: 
    [10:23:30.894] [Info] UniverseServer: Stopping idle world ClientShipWorld:564509fc0f8f889bce4ee6bbaa7c8425
    [10:23:33.569] [Info] UniverseServer: Stopping UniverseServer
    [10:23:38.012] [Info] Root: Shutting down Root
    [10:26:18.877] [Info] Application: Destroying SDL Window
    [10:26:21.629] [Info] Application: stopped gracefully
    
    


    Reward bag:

    Code:
    {
      "itemName" : "adaset",
      "price" : 0,
      "maxStack" : 1,
      "rarity" : "Essential",
      "category" : "Starter Set",
      "description" : "Blasters & Spear",
      "shortdescription" : "Ada's Set",
      "twoHanded" : true,
    
      "inventoryIcon" : "adaseticon.png",
      "animation" : "adaset.animation",
      "animationCustom" : {},
      "scripts" : ["adaset.lua"],
    
      "fireTime" : 2.0,
      "fireOffset" : [1.0, 0.0],
    
      "treasure" : {
        "pool" : "ada",
        "level" : 1
      }
    }
    
    


    Code:
    require "/scripts/vec2.lua"
    
    function init()
      self.recoil = 0
      self.recoilRate = 0
    
      self.fireOffset = config.getParameter("fireOffset")
      updateAim()
    
      self.active = false
      storage.fireTimer = storage.fireTimer or 0
    end
    
    function update(dt, fireMode, shiftHeld)
      updateAim()
    
      storage.fireTimer = math.max(storage.fireTimer - dt, 0)
    
      if self.active then
        self.recoilRate = 0
      else
        self.recoilRate = math.max(1, self.recoilRate + (10 * dt))
      end
      self.recoil = math.max(self.recoil - dt * self.recoilRate, 0)
    
      if self.active and not storage.firing and storage.fireTimer <= 0 then
        self.recoil = math.pi/2 - self.aimAngle
        activeItem.setArmAngle(math.pi/2)
        if animator.animationState("firing") == "off" then
          animator.setAnimationState("firing", "fire")
        end
        storage.fireTimer = config.getParameter("fireTime", 1.0)
        storage.firing = true
    
      end
    
      self.active = false
    
      if storage.firing and animator.animationState("firing") == "off" then
        item.consume(1)
        local pool = config.getParameter("treasure.pool")
        local level = config.getParameter("treasure.level")
        local seed = config.getParameter("treasure.seed")
        local treasure = root.createTreasure(pool, level, seed)
        for _,item in pairs(treasure) do
          activeItem.giveOwnerItem(item)
        end
        storage.firing = false
        return
      end
    end
    
    function activate(fireMode, shiftHeld)
      if not storage.firing then
        self.active = true
      end
    end
    
    function updateAim()
      self.aimAngle, self.aimDirection = activeItem.aimAngleAndDirection(self.fireOffset[2], activeItem.ownerAimPosition())
      self.aimAngle = self.aimAngle + self.recoil
      activeItem.setArmAngle(self.aimAngle)
      activeItem.setFacingDirection(self.aimDirection)
    end
    
    function firePosition()
      return vec2.add(mcontroller.position(), activeItem.handPosition(self.fireOffset))
    end
    
    function aimVector()
      local aimVector = vec2.rotate({1, 0}, self.aimAngle + sb.nrand(config.getParameter("inaccuracy", 0), 0))
      aimVector[1] = aimVector[1] * self.aimDirection
      return aimVector
    end
    
    function holdingItem()
      return true
    end
    
    function recoil()
      return false
    end
    
    function outsideOfHand()
      return false
    end
    
    


    Code:
    {
      "animatedParts" : {
        "stateTypes" : {
          "firing" : {
            "default" : "off",
            "states" : {
              "off" : {
                "properties" : {
                  "particleEmittersOff" : [ "confetti" ]
                }
              },
              "fire" : {
                "frames" : 2,
                "cycle" : 0.1,
                "mode" : "transition",
                "transition" : "confetti",
                "properties" : {
                  "immediateSound" : "/sfx/objects/colonydeed_partyhorn.ogg",
                  "particleEmittersOff" : [ "confetti" ]
                },
                "frameProperties" : {
                  "stateNudge" : [ [-0.125, 0], [0, 0] ]
                }
              },
              "confetti" : {
                "cycle" : 0.2,
                "mode" : "transition",
                "transition" : "off",
                "properties" : {
                  "particleEmittersOn" : [ "confetti" ]
                }
              }
            }
          }
        },
    
        "parts" : {
          "gun" : {
            "properties" : {
              "centered" : true,
              "image" : "adaset.png",
              "offset" : [0.0, 0.0]
            }
          }
        }
      },
    
      "particleEmitters" : {
        "confetti" : {
          "emissionRate" : 500.0,
          "emissionRateVariance" : 0.0,
          "active" : true,
    
          "particles" : [
            {
              // Red, drifting
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [255, 0, 0, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 9.0],
                "finalVelocity" : [0.0, -5.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [2, 2.0]
                }
              }
            },
            {
              // Red, falling fast
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [255, 0, 0, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 7.0],
                "finalVelocity" : [0.0, -50.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [5, 2.0]
                }
              }
            },
            {
              // Green, drifting
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [0, 255, 0, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 9.0],
                "finalVelocity" : [0.0, -5.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [2, 2.0]
                }
              }
            },
            {
              // Green, falling fast
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [0, 255, 0, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 7.0],
                "finalVelocity" : [0.0, -50.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [5, 2.0]
                }
              }
            },
            {
              // Blue, drifting
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [0, 0, 255, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 9.0],
                "finalVelocity" : [0.0, -5.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [2, 2.0]
                }
              }
            },
            {
              // Blue, falling fast
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [0, 0, 255, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 7.0],
                "finalVelocity" : [0.0, -50.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [5, 2.0]
                }
              }
            },
            {
              // White, drifting
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [255, 255, 255, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 9.0],
                "finalVelocity" : [0.0, -5.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [2, 2.0]
                }
              }
            },
            {
              // White, falling fast
              "particle" : {
                "type" : "ember",
                "position" : [1.0, 0],
                "size" : 2.0,
                "color" : [255, 255, 255, 255],
                "light" : [50, 50, 50],
                "fade" : 0.9,
                "initialVelocity" : [0.0, 7.0],
                "finalVelocity" : [0.0, -50.0],
                "approach" : [0, 20],
                "timeToLive" : 5,
                "layer" : "middle",
                "variance" : {
                  "initialVelocity" : [5, 2.0]
                }
              }
            }
          ]
        }
      }
    }
    
    

    treasure pool:

    Code:
    {
      // ==============================================================
      //                 COMMON TREASURE POOLS
      // ==============================================================
    
      // ================================
      //     Brawlhalla Sets
      // ================================
      "ada" : [
        [0, {
          "fill" : [
            {"item" : "adagun"},
            {"item" : "adagun"},
            {"item" : "adaspear"}
                 ]
        }]
      ],
      "lucien" : [
        [0, {
          "fill" : [
            {"item" : "luciengun"},
            {"item" : "luciengun"},
            {"item" : "lucienkatar"},
          {"item" : "lucienkatar"}
                 ]
        }]
      ],
        "wu" : [
        [0, {
          "fill" : [
            {"item" : "wuspear"},
            {"item" : "wugauntlet"},
            {"item" : "wugauntlet"}
                 ]
        }]
      ],
        "nai" : [
        [0, {
          "fill" : [
            {"item" : "naispear"},
            {"item" : "naikatar"},
            {"item" : "naikatar"}
                 ]
        }]
      ],
        "val" : [
        [0, {
          "fill" : [
            {"item" : "valsword"},
            {"item" : "valgauntlet"},
            {"item" : "valgauntlet"}
                 ]
        }]
      ],
        "roland" : [
        [0, {
          "fill" : [
            {"item" : "rolandsword"},
            {"item" : "rolandlance"}
           
                 ]
        }]
      ],
        "vraxx" : [
        [0, {
          "fill" : [
            {"item" : "vraxxlance"},
            {"item" : "vraxxgun"},
            {"item" : "vraxxgun"}
                 ]
        }]
      ],
        "hattori" : [
        [0, {
          "fill" : [
            {"item" : "hattorisword"},
            {"item" : "hattorispear"}
           
                 ]
        }]
      ],
        "koji" : [
        [0, {
          "fill" : [
            {"item" : "kojibow"},
            {"item" : "kojisword"}
           
                 ]
        }]
      ],
        "ember" : [
        [0, {
          "fill" : [
            {"item" : "emberkatar"},
            {"item" : "emberkatar"},
            {"item" : "emberbow"}
                 ]
        }]
      ],
        "cross" : [
        [0, {
          "fill" : [
            {"item" : "crossgun"},
            {"item" : "crossgun"},
            {"item" : "crossgauntlet"},
          {"item" : "crossgauntlet"}
                 ]
        }]
      ],
        "asuri" : [
        [0, {
          "fill" : [
            {"item" : "asurisword"},
            {"item" : "asurikatar"},
            {"item" : "asurikatar"}
                 ]
        }]
      ],
        "diana" : [
        [0, {
          "fill" : [
            {"item" : "dianagun"},
            {"item" : "dianagun"},
            {"item" : "dianabow"}
                 ]
        }]
      ],
        "orion" : [
        [0, {
          "fill" : [
            {"item" : "orionlance"},
            {"item" : "orionspear"}
           
                 ]
        }]
      ],
        "thatch" : [
        [0, {
          "fill" : [
            {"item" : "thatchgun"},
            {"item" : "thatchgun"},
            {"item" : "thatchsword"}
                 ]
        }]
      ],
        "bodvar" : [
        [0, {
          "fill" : [
            {"item" : "bodvarsword"},
            {"item" : "bodvarhammer"}
           
                 ]
        }]
      ],
        "cassidy" : [
        [0, {
          "fill" : [
            {"item" : "cassidygun"},
            {"item" : "cassidygun"},
          {"item" : "cassidyhammer"}
           
                 ]
        }]
      ],
        "gnash" : [
        [0, {
          "fill" : [
            {"item" : "gnashspear"},
            {"item" : "gnashhammer"}
           
                 ]
        }]
      ],
        "scarlet" : [
        [0, {
          "fill" : [
            {"item" : "scarletlance"},
            {"item" : "scarlethammer"}
           
                 ]
        }]
      ],
        "mirage" : [
        [0, {
          "fill" : [
            {"item" : "miragespear"},
            {"item" : "miragescythe"}
           
                 ]
        }]
      ],
        "nix" : [
        [0, {
          "fill" : [
            {"item" : "nixscythe"},
            {"item" : "nixgun"},
         {"item" : "nixgun"}
           
                 ]
        }]
      ],
        "mordex" : [
        [0, {
          "fill" : [
            {"item" : "mordexscythe"},
            {"item" : "mordexgauntlet"},
          {"item" : "mordexgauntlet"}
           
                 ]
        }]
      ],
        "sentinel" : [
        [0, {
          "fill" : [
            {"item" : "sentinelhammer"},
            {"item" : "sentinelkatar"},
            {"item" : "sentinelkatar"}
                 ]
        }]
      ],
        "kor" : [
        [0, {
          "fill" : [
            {"item" : "korhammer"},
            {"item" : "korgauntlet"},
            {"item" : "korgauntlet"}
                 ]
        }]
      ],
        "azoth" : [
        [0, {
          "fill" : [
            {"item" : "azothaxe"},
            {"item" : "azothbow"}
           
                 ]
        }]
      ],
        "teros" : [
        [0, {
          "fill" : [
            {"item" : "terosaxe"},
            {"item" : "teroshammer"}
           
                 ]
        }]
      ],
        "brynn" : [
        [0, {
          "fill" : [
            {"item" : "brynnaxe"},
            {"item" : "brynnspear"}
           
                 ]
        }]
      ],
        "ulgrim" : [
        [0, {
          "fill" : [
            {"item" : "ulgrimaxe"},
            {"item" : "ulgrimlance"}
           
                 ]
        }]
      ],
        "yumiko" : [
        [0, {
          "fill" : [
            {"item" : "yumikohammer"},
            {"item" : "yumikobow"}
           
                 ]
        }]
      ],
        "barraza" : [
        [0, {
          "fill" : [
            {"item" : "barrazaaxe"},
            {"item" : "barrazagun"},
          {"item" : "barrazagun"}
           
                 ]
        }]
      ],
        "ragnir" : [
        [0, {
          "fill" : [
            {"item" : "ragniraxe"},
            {"item" : "ragnirkatar"},
          {"item" : "ragnirkatar"}
           
                 ]
        }]
    ],
        "jhala" : [
        [0, {
          "fill" : [
            {"item" : "jhalaaxe"},
            {"item" : "jhalasword"}
           
                 ]
        }]
      ]
    
    }
    
    


    And yes, I got both spear and blasters, and their itemnames are adagun and adaspear.
     
  2. lazarus78

    lazarus78 The Waste of Time

    Not sure if its important, but your bag item doesnt have "level" : 1, like the vanilla ones do.

    Also, the lua script differs from vanilla bags. Not sure if you made any changes or just copied from vanilla origionally, but you might look at that.
     
  3. Melendroach

    Melendroach Subatomic Cosmonaut

    haha, thanks for help, dude :)
    I've solved this already by myself, it was caused by my files. I forgot to unpack the new files after 1.3 came out, and thus my files weren't working anymore.
     
    lazarus78 likes this.
  4. lazarus78

    lazarus78 The Waste of Time

    Why exactly would not having your assets unpacked cause problems?
     
    projectmayhem likes this.
  5. Melendroach

    Melendroach Subatomic Cosmonaut

    I don't remember it anymore, but I think the problem was with .lua file. Tt was changed in the 1.3 update, because it no longer used something, which instead was moved to player.config file...
     
  6. cpeosphoros

    cpeosphoros Orbital Explorer

    Probably, because of not having the new templates for the new API. As I understand it, @Melendroach was using the old API, what has broken some calls when the game went to 1.3
     
  7. Melendroach

    Melendroach Subatomic Cosmonaut

    Yes, exactly.
     

Share This Page