1. Please be advised of a few specific rules and guidelines for this section.

Colonies: v1.0.0 [Deleted]

Discussion in 'Outdated Mods' started by severedskullz, Dec 22, 2013.

Thread Status:
Not open for further replies.
  1. FangTheKeidran

    FangTheKeidran Void-Bound Voyager

    I've only place down two, one on two different saves. lol It's all good, now. It seemes to have fixed itself. Thanks, though ^_^
     
  2. Beauty of my failsafes. :)
    More often than not this should be the case now... but if I can prevent this from happening in the start then things will be even better.
     
    FangTheKeidran likes this.
  3. FangTheKeidran

    FangTheKeidran Void-Bound Voyager


    Yeah, and awsome mod, btw. Now that I know (partially) what happened on my other save, I'll make a new Avali character. I ended up deleting the other and starting over as an Avian.
     
  4. Xentor Antarix

    Xentor Antarix Ketchup Robot

    Here guess that is it:
    Error: Could not instantiate item '[cstructBarracks, 1, {}]'. ItemException: No such item 'cstructBarracks'
    ./starbound_server(_ZN4Star13StarExceptionC2ERKSs+0xfe) [0xdc4ece]
    ./starbound_server(_ZNK4Star12ItemDatabase8itemDataERKNS_6StringE+0x59) [0x9f52c9]
    ./starbound_server(_ZNK4Star12ItemDatabase10createItemERKNS_14ItemDescriptorE+0x30) [0x9f5710]
    ./starbound_server(_ZNK4Star12ItemDatabase4itemERKNS_14ItemDescriptorE+0x92) [0x9f6582]
    ./starbound_server(_ZNK4Star12ItemDatabase8readItemINS_4ItemEEEbRKNS_9ByteArrayERSt10shared_ptrIT_E+0xd9) [0xa06d59]
    ./starbound_server(_ZN4Star8ToolUser12getNetStatesEPNS_5WorldEPNS_14ToolUserEntityE+0x5c) [0xcd3d9c]
     
  5. Did you not copy everything over? That error is saying the item if physically missing from my mod.
     
  6. Xentor Antarix

    Xentor Antarix Ketchup Robot

    hmm I did put all what was in the Compressed File to Download.

    Trying it again moment. Perhaps some files got not transfered to the Gameserver. while the FTP Transfer.
     
  7. Then just try and reinstall the mod... ill go double check and see if the item is missing from the Zip, but I'm pretty sure I would have plenty of people screaming at me if that were the case.

    Edit: Just checked Dropbox... Its in there. I think it just didn't copy over for you.
     
  8. Xentor Antarix

    Xentor Antarix Ketchup Robot

    It was a transferbug. Works now, thanks.
     
    severedskullz likes this.
  9. Xentor Antarix

    Xentor Antarix Ketchup Robot

    Next Bug (Server restart generated)
    It seems when the Server of aMultiplayer World restarts, your system forgets the link to the Stockpile thing
    When I come in after the restart it says: Error an Internal Script Call Fails

    (Logfile)
    Error: Exception while invoking lua method 'hasMaterial'. LuaException: [string "/objects/colonystockpile/stock.lua"]:48: bad argument #2 to 'min' (number expected, got nil)
    ./starbound_server(_ZN4Star13StarExceptionC2ERKNS_6StringE+0x105) [0xdc4c75]
    ./starbound_server(_ZN4Star3Lua11handleErrorEP9lua_State+0x4c) [0xd5ad3c]
    ./starbound_server(_ZN4Star3Lua13LuaEngineImpl8doInvokeEiRKNS_6StringERKNS_4ListINS_7VariantESt5dequeIS6_SaIS6_EEEEb+0X388) [0xd5e0a8]
    ./starbound_server(_ZN4Star3Lua13LuaEngineImpl13invokeNoThrowEiRKNS_6StringERKNS_4ListINS_7VariantESt5dequeIS6_SaIS6_EEEE+0x1e) [0xd5e25e]
    ./starbound_server(_ZN4Star3Lua14LuaContextImpl13invokeNoThrowERKNS_6StringERKNS_4ListINS_7VariantESt5dequeIS6_SaIS6_EEEE+0x20) [0xd5e2e0]
    ./starbound_server(_ZN4Star10WireObject10callScriptERKNS_6StringERKNS_4ListINS_7VariantESt5dequeIS5_SaIS5_EEEE+0x19) [0xc85969]
    ./starbound_server() [0xc859d1]
    ./starbound_server(_ZNKSt8functionIFN4Star7VariantERKSt10shared_ptrINS0_14ScriptedEntityEERKNS0_6StringERKNS0_4ListIS1_St5dequeIS1_SaIS1_EEEEEEclES6_S9_SG_+0x1a) [0xcef61a]
    ./starbound_server() [0xcee02d]
    ./starbound_server(_ZN4Star12LuaCallbacks14invokeFunctionEmNS_4ListINS_7VariantESt5dequeIS2_SaIS2_EEEE+0x8b) [0xd5afcb]
    ./starbound_server(_ZN4Star3Lua13LuaEngineImpl21invokeCallbackClosureEP9lua_State+0X36d) [0xd5e6bd]

    This is only fixable when I debuild the whole Colony, kill all NPc`s and start it new.

    Bye the way... from where they get wood?
     
  10. FangTheKeidran

    FangTheKeidran Void-Bound Voyager

    I have a quick question, How do I get food to generate?
     
  11. telles0808

    telles0808 Cosmic Narwhal

    You should use a stone hoe on the surface, then place a farm plot, and use the stone hoe on a NPC, then show to the NPC a seed, but this part is where I didn't could make work, because the NPC is talking random things instead of make his farm, lol

    But at least they farm my own farm, so, I placed my seeds and they farm it form me =D
     
    Last edited: Feb 7, 2014
  12. FangTheKeidran

    FangTheKeidran Void-Bound Voyager

    Lol, I got the farm part working. You need to press "E" on the farm plot while holding a seed. I just don't know how to get the food to generate.
     
  13. The NPCs do it automatically. C'mon man this was in the instructions post! :p

    Man. Its so much easier tracking down issues when I actually get an error! Its always been "My builders dont work! Fix it! :mad:". I should have threatened not to help at all unless i get a log AGES ago. Would've saved loads of time and frustration.

    Figured it out. Probabbly wouldnt have caught this as I never have had more than one stockpile. You apparently had at-least 2 for this to happen... (If you did NOT then let me know... cuz that means something is also up with my unlinking method)
    Code:
    function hasMaterial(material, amount)
        if not self.buildings["Stockpile"] then
            self.buildings["Stockpile"] = {}
        end
    
        for k, v in pairs(self.buildings["Stockpile"]) do
            amount = world.callScriptedEntity(k, "hasMaterial", material, amount)
            if amount then -- Potentially returned nil
                if amount <= 0 then
                    return true
                end
            end
        end
    
        return false
    end
    So to all you wanna-be coders... This is why you must always be careful about when to reuse variables! If the cSE returns nil, then guess what... I now have 'nil' in my amount, which is going to get passed in to EVERY SINGLE FOLLOWING call in that loop. Fixed.

    New Code in colonyBeacon.lua
    Code:
    function hasMaterial(material, amount)
       if not self.buildings["Stockpile"] then
         self.buildings["Stockpile"] = {}
       end
       
       for k, v in pairs(self.buildings["Stockpile"]) do
         -- How much did we find?
         local sAmount = world.callScriptedEntity(k, "hasMaterial", material, amount)
         
         if sAmount then -- Potentially returned nil
           amount = amount - sAmount
         end
         if amount <= 0 then
           return true
         end
       end
    
       return false
    end
    
    In regards to wood, see the FAQ: You cant yet...
     
    Last edited: Feb 7, 2014
    Leinad Werecat likes this.
  14. FangTheKeidran

    FangTheKeidran Void-Bound Voyager

    Oh, lol I might have missed that part....mybad. :3
     
  15. telles0808

    telles0808 Cosmic Narwhal

    My builder is saying error, while inside a tier two construction.

    Code:
    Info: Done loading Star::Root.
    Info: Writing Star::Configuration to '..\starbound.config'
    Info: UniverseServer: Creating world alpha:-26109880:68200387:9821487:10:7
    Info: Generating 1 dungeons
    Info: Generating a dungeon
    Info: Placing dungeon at (1219, 427)
    Warn: Failed to place dungeon object: sacrificialaltar direction: 0 position: (1487, 360)
    Warn: Failed to place dungeon object: sacrificialaltar direction: 0 position: (1350, 366)
    Warn: Perf: DungeonDefinition::buildDungeon millis: 1703
    Warn: Perf: DungeonGenerator::generate millis: 1757
    Warn: Perf: UniverseServer::createWorld millis: 10020
    Info: UniverseServer: client connection made from local
    Info: UniverseServer: Sending Handshake Challenge
    Info: UniverseClient: Sending Handshake Repsonse
    Info: UniverseServer: Loading ship world received from client <1> <User: Trovador>
    Warn: Recovering SimpleDatabase at device: <unnamed temp file>
    Warn: Recovery finished
    Info: UniverseServer: Loading world db for world sectorx:25929297:48717860:-605260:10
    Warn: Perf: ClientApplication::update millis: 11294
    Warn: Perf: StarApplicationBase::run.innerLoop.update millis: 11294
    Warn: Perf: StarApplicationBase::run.innerLoop millis: 11504
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = nil
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = nil
    Info: COLONIES: Registered stockpile with beacon
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked Stockpile with beacon!
    Info: COLONIES: Registered stockpile with beacon
    Info: UniverseServer: Client 'Trovador' <1> (Fifo <0x10723bc0>) connected
    Warn: Perf: UniverseServer::doTriggeredStorage millis: 3865
    Warn: Perf: UniverseServer::run.innerloop millis: 5303
    Info: Client received world stop packet, leaving: Removed
    Error: Exception while invoking lua method 'hasMaterial'. LuaException: [string "/objects/colonystockpile/stock.lua"]:48: bad argument #2 to 'min' (number expected, got nil)
      00868F2B starbound_opengl.exe
      0086D106 starbound_opengl.exe
      0086D2B2 starbound_opengl.exe
      0086D34C starbound_opengl.exe
      007A186A starbound_opengl.exe
      007A18D7 starbound_opengl.exe
      00A89AF2 starbound_opengl.exe
      0077361E starbound_opengl.exe
      0086915F starbound_opengl.exe
      0086CC4D starbound_opengl.exe
      6D785C8F lua52.dll
      0CF62CF8 0
      0EED3EA8 0
      22B72550 0
      0CF62CF8 0
    
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    Error: Exception while invoking lua method 'hasMaterial'. LuaException: [string "/objects/colonystockpile/stock.lua"]:48: bad argument #2 to 'min' (number expected, got nil)
      00868F2B starbound_opengl.exe
      0086D106 starbound_opengl.exe
      0086D2B2 starbound_opengl.exe
      0086D34C starbound_opengl.exe
      007A186A starbound_opengl.exe
      007A18D7 starbound_opengl.exe
      00A89AF2 starbound_opengl.exe
      0077361E starbound_opengl.exe
      0086915F starbound_opengl.exe
      0086CC4D starbound_opengl.exe
      6D785C8F lua52.dll
      0CF62CF8 0
      0EED3EA8 0
      24597020 0
      0CF62CF8 0
    
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    Info: UniverseServer: Shutting down world alpha:-26109880:68200387:9821487:10:7 due to inactivity
    Error: Exception while invoking lua method 'hasMaterial'. LuaException: [string "/objects/colonystockpile/stock.lua"]:48: bad argument #2 to 'min' (number expected, got nil)
      00868F2B starbound_opengl.exe
      0086D106 starbound_opengl.exe
      0086D2B2 starbound_opengl.exe
      0086D34C starbound_opengl.exe
      007A186A starbound_opengl.exe
      007A18D7 starbound_opengl.exe
      00A89AF2 starbound_opengl.exe
      0077361E starbound_opengl.exe
      0086915F starbound_opengl.exe
      0086CC4D starbound_opengl.exe
      6D785C8F lua52.dll
      0CF62CF8 0
      0EED3EA8 0
      291A44F8 0
      0CF62CF8 0
    
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    error.gif

    After replacing the Colony construction table and the stockpile, they worked again.
     
  16. You've got the same issue that @FangTheKeidran has. Fixed it already. To both of you, Do me a favor and redownload the mod and give it a shot. I just updated the dropbox link.
    Let me know if that fixes it.
     
    telles0808 and ahappydude like this.
  17. telles0808

    telles0808 Cosmic Narwhal

    When I pressed the button to upgrade the barrack, got this error:
    Code:
    Info: Preparing Star::Root...
    Info: Loading Star::Configuration from '..\starbound.config'
    Info: Done preparing Star::Root.
    Info: Client version 'Beta v. Furious Koala' '636'
    Info: Running from : C:\Program Files\Steam\steamapps\common\Starbound\win32\starbound_opengl.exe
    Info: Starting from the title screen
    Info: Initialized SDL
    Info: Initialized SDL Video
    Info: Initialized SDL Joystick
    Info: Initialized SDL Sound
    Info: Opened default audio device with 44khz / 16 bit stereo audio, 2048 sample size buffer
    Info: Initializing SDL Window
    Info: Loading Star::Root...
    Info: Loading Star::Configuration from '..\starbound.config'
    Info: OpenGL version: '4.3.12618 Compatibility Profile Context 13.251.0.0' vender: 'ATI Technologies Inc.' renderer: 'AMD Radeon HD 5670' shader: '4.30'
    Info: Created initial window 1000x600
    Info: Initializing SDL Window
    Info: OpenGL version: '4.3.12618 Compatibility Profile Context 13.251.0.0' vender: 'ATI Technologies Inc.' renderer: 'AMD Radeon HD 5670' shader: '4.30'
    Info: Re-created window 1378x878
    Info: Not loading ImageMetadataDatabase from file '..\image.cache', digest mismatch or assets not digestable
    Warn: Missing inventoryIcon for chestplant1, using default
    Warn: Missing inventoryIcon for barvent, using default
    Warn: Missing inventoryIcon for wreckvent, using default
    Error: Error loading object file /objects/spawner/spawners/starspawnerguns.object: VariantException: Improper conversion to int from string in get("price")
      00A6D1F3 starbound_opengl.exe
      00831EC4 starbound_opengl.exe
      0061174B starbound_opengl.exe
      00614DDD starbound_opengl.exe
      004FB506 starbound_opengl.exe
      0040494C starbound_opengl.exe
      0097FC8C starbound_opengl.exe
      75A2ED5C kernel32.dll
      774F37FB ntdll.dll
      774F37CE ntdll.dll
    
    Error: Could not instantiate item '[starspawnerguns, 1, {}]'. ItemException: No such item 'starspawnerguns'
      0059B57A starbound_opengl.exe
      0059B9C8 starbound_opengl.exe
      0059CD10 starbound_opengl.exe
      005D1C5D starbound_opengl.exe
      005D1FB4 starbound_opengl.exe
      005D23FB starbound_opengl.exe
      004FB50E starbound_opengl.exe
      0040494C starbound_opengl.exe
      0097FC8C starbound_opengl.exe
      75A2ED5C kernel32.dll
      774F37FB ntdll.dll
      774F37CE ntdll.dll
    
    Error: Could not instantiate item '[starspawnerguns, 1, {}]'. ItemException: No such item 'starspawnerguns'
      0059B57A starbound_opengl.exe
      0059B9C8 starbound_opengl.exe
      0059CD10 starbound_opengl.exe
      0059D0B7 starbound_opengl.exe
      005D2486 starbound_opengl.exe
      004FB50E starbound_opengl.exe
      0040494C starbound_opengl.exe
      0097FC8C starbound_opengl.exe
      75A2ED5C kernel32.dll
      774F37FB ntdll.dll
      774F37CE ntdll.dll
    
    Error: Could not instantiate item '[starspawnerguns, 1, {}]'. ItemException: No such item 'starspawnerguns'
      0059B57A starbound_opengl.exe
      0059B9C8 starbound_opengl.exe
      0059CD10 starbound_opengl.exe
      0059D845 starbound_opengl.exe
      005D2486 starbound_opengl.exe
      004FB50E starbound_opengl.exe
      0040494C starbound_opengl.exe
      0097FC8C starbound_opengl.exe
      75A2ED5C kernel32.dll
      774F37FB ntdll.dll
      774F37CE ntdll.dll
    
    Info: Done loading Star::Root.
    Info: Writing Star::Configuration to '..\starbound.config'
    Info: UniverseServer: Creating world alpha:46835325:-96054055:-26903991:7:12
    Info: Generating 1 dungeons
    Info: Generating a dungeon
    Info: Placing dungeon at (4060, 1244)
    Warn: Perf: UniverseServer::createWorld millis: 10990
    Info: UniverseServer: client connection made from local
    Info: UniverseServer: Sending Handshake Challenge
    Info: UniverseClient: Sending Handshake Repsonse
    Info: UniverseServer: Loading ship world received from client <1> <User: Trovador>
    Warn: Recovering SimpleDatabase at device: <unnamed temp file>
    Warn: Recovery finished
    Info: UniverseServer: Loading world db for world sectorx:25929297:48717860:-605260:10
    Warn: Perf: ClientApplication::update millis: 12308
    Warn: Perf: StarApplicationBase::run.innerLoop.update millis: 12309
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = nil
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = nil
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = nil
    Info: COLONIES: Relinked Stockpile with beacon!
    Info: COLONIES: Registered stockpile with beacon
    Info: UniverseServer: Client 'Trovador' <1> (Fifo <0x1573f6a0>) connected
    Info: COLONIES: attempting to register merchant
    Info: COLONIES: Merchant Registered
    {"id":42,"location":[13,3049],"merchType":"Blacksmith"}
    Info: COLONIES: Registered an Anvil
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked Stockpile with beacon!
    Info: COLONIES: Registered stockpile with beacon
    Warn: Perf: StarApplicationBase::run.innerLoop millis: 12789
    Warn: Perf: StarApplicationBase::run.innerLoop millis: 1686
    Warn: Perf: WorldServerThread::sync millis: 2323
    Warn: Perf: UniverseServer::doTriggeredStorage millis: 2980
    Warn: Perf: UniverseServer::run.innerloop millis: 4470
    Info: UniverseServer: Shutting down world alpha:46835325:-96054055:-26903991:7:12 due to inactivity
    Info: UniverseServer: Shutting down world sectorx:25929297:48717860:-605260:10 due to inactivity
    Info: UniverseServer: Loading world db for world sectorx:25929297:48717860:-605260:10
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = nil
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = nil
    Info: COLONIES: Registered stockpile with beacon
    Info: COLONIES: attempting to register merchant
    Info: COLONIES: Merchant Registered
    {"id":30,"merchType":"Blacksmith","location":[13,3049]}
    Info: COLONIES: Registered an Anvil
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked SPad with beacon!
    Info: COLONIES: Attempt to register building = true
    Info: COLONIES: Relinked Stockpile with beacon!
    Info: COLONIES: Registered stockpile with beacon
    Info: Client received world stop packet, leaving: Removed
    Info: COLONIES: ERROR CSE failed trying to get hasMaterial
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    Info: COLONIES: ERROR CSE failed trying to get hasMaterial
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    Info: COLONIES: ERROR CSE failed trying to get hasMaterial
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    Info: COLONIES: ERROR CSE failed trying to get hasMaterial
    Info: COLONIES: ERROR Calling canBuildNextBlock failed!
    
     
  18. FangTheKeidran

    FangTheKeidran Void-Bound Voyager

    Oh, sweet, I'll do that when I get back on the computer, Mom wanted it back, and I told my brother he can get on until 9:00 when mom gets off. (its 6:47 now)
     
  19. That's after redownloading and reinstalling?

    Edit: seems like it cant talk to the beacon. Might be out of range? Seems like it linked though. Looking into it.

    Code:
    function hasMaterial( material, amount )
        if material == "None" then return true end
        local result = world.callScriptedEntity(storage.colony.id, "hasMaterial", getCost(material, amount))
      
        if not result then -- CSE could fail here!
            result = false
            world.logInfo("COLONIES: ERROR CSE failed trying to get hasMaterial")
        end
        return result
    end
    Edit: I also may have given out some false positives in those last minuet debug lines I just added for you guys... if canBuildNextBlock is false then I issued out an Error. Obviously its not an error if they cant build a block due to no materials! :p
     
    Last edited: Feb 7, 2014
    Leinad Werecat likes this.
  20. telles0808

    telles0808 Cosmic Narwhal

    severedskullz likes this.
Thread Status:
Not open for further replies.

Share This Page