Jump to content

DrMasik

Members
  • Posts

    24
  • Joined

  • Last visited

Posts posted by DrMasik

  1. Server crashed again:

     

    Restoring 778's craft Dragon, type: 1
    An exception occurred: St16invalid_argument: N2cp13ServerScriptsE: Script 'data/scripts/systems/hullbooster.lua' not found. Tried the following paths:
    data/scripts/entity/data/scripts/systems/hullbooster.lua
    data/scripts/entity/data/scripts/systems/hullbooster.lua.lua
    data/scripts/entitydata/scripts/systems/hullbooster.lua
    data/scripts/entitydata/scripts/systems/hullbooster.lua.lua
    data/scripts/systems/data/scripts/systems/hullbooster.lua
    data/scripts/systems/data/scripts/systems/hullbooster.lua.lua
    data/scripts/systemsdata/scripts/systems/hullbooster.lua
    data/scripts/systemsdata/scripts/systems/hullbooster.lua.lua
    data/scripts/systems/hullbooster.lua
    data/scripts/systems/hullbooster.lua.lua
    data/scripts/data/scripts/systems/hullbooster.lua
    data/scripts/data/scripts/systems/hullbooster.lua.lua
    data/scriptsdata/scripts/systems/hullbooster.lua
    data/scriptsdata/scripts/systems/hullbooster.lua.lua
    
    Modders: Make sure to enable Dev-Mode while writing scripts, or files you created while the game was already running might get ignored.
    Error cleaning up lua::WorkerPool: shutdown() not called!
    ../tier1/fileio.cpp (4816) : Assertion Failed: s_bExit
    ../tier1/fileio.cpp (4816) : Assertion Failed: s_bExit
    ../tier1/fileio.cpp (4818) : Assertion Failed: m_vecRegisteredWriters.Count() == 0
    ../tier1/fileio.cpp (4818) : Assertion Failed: m_vecRegisteredWriters.Count() == 0
    Hang of at least 30 seconds detected, sending stack traceCrash report sending is disabled.
    

  2. And some other errors:

    Object: 12ServerPlayer

    Execution Context (inner to outer):

    #0: SpawnGuardian.onSectorEntered data/scripts/player/story/spawnguardian.lua

     

    could not execute function 'SpawnGuardian.onSectorEntered' in '"data/scripts/player/story/spawnguardian.lua"':

     

    data/scripts/lib/story/xsotan.lua:309: attempt to call upvalue 'UpgradeGenerator' (a string value)

    stack traceback:

        data/scripts/lib/story/xsotan.lua:309: in function 'createGuardian'

        data/scripts/player/story/spawnguardian.lua:34: in function <data/scripts/player/story/spawnguardian.lua:15>

  3. I created clean install on CentOS 7 and move over files to CentOS 8. Server started sucessefull.

    But I have new script error:

    Error during first execution of "data/scripts/lib/upgradegenerator.lua":

    /store1/steam/servers/avorion.1/data/galaxies/Cube/workshop/content/445220/1851299080/data/scripts/lib/upgradegenerator.lua:1: attempt to call field 'add' (a nil value)

  4. I have errors on server side:

     

    2018-10-23 13-44-58|     [C]:-1: in function Entity
    2018-10-23 13-44-58|     data/scripts/entity/merchants/factory.lua:1314: in function updateDeliveryShuttleStarts
    2018-10-23 13-44-58|     data/scripts/entity/merchants/factory.lua:1102: in function ?
    2018-10-23 13-44-58|
    2018-10-23 13-44-59| error constructing Entity: Entity with index "f1dd6a48-b542-4344-ad80-007833477324" doesn't exist at
    2018-10-23 13-44-59| stack traceback:
    2018-10-23 13-44-59|     [C]:-1: in function Entity
    2018-10-23 13-44-59|     data/scripts/entity/merchants/factory.lua:1411: in function updateFetchingShuttleStarts
    2018-10-23 13-44-59|     data/scripts/entity/merchants/factory.lua:1103: in function ?
    

  5. 2018-10-23 12-20-55| An error occurred during remote call to 'setTranslatedmailTextUninsurend' in script "data/scripts/entity/insurance.lua". Function doesn't exist.
    2018-10-23 12-20-55| An error occurred during remote call to 'setTranslatedMailTextFraud' in script "data/scripts/entity/insurance.lua". Function doesn't exist.
    

  6. I have some error on server side as post https://www.avorion.net/forum/index.php/topic,4869.msg26581.html#msg26581

     

    2018-10-23 12-19-13| error constructing Entity: Entity with index Uuid doesn't exist at
    2018-10-23 12-19-13| stack traceback:
    2018-10-23 12-19-13|     [C]:-1: in function Entity
    2018-10-23 12-19-13|     data/scripts/sector/factionwar/temporarydefender.lua:69: in function onShotHit
    2018-10-23 12-19-13|     data/scripts/sector/factionwar/temporarydefender.lua:57: in function ?
    

  7. Full log has sensitive information and I'm can't post it in public access.

    I'm cut last second message in previews post. There are message before it:

    2018-10-17 06-08-25| Triggered saving of all server data.
    2018-10-17 06-13-25| Triggered saving of all server data.
    2018-10-17 06-18-25| Triggered saving of all server data.
    2018-10-17 06-23-25| Triggered saving of all server data.
    2018-10-17 06-28-25| Triggered saving of all server data.
    2018-10-17 06-33-25| Triggered saving of all server data.
    2018-10-17 06-33-44| OnP2PSessionRequest from 0000000000000000
    2018-10-17 06-33-46| Steam authentication confirmed for 0000000000000000
    2018-10-17 06-33-46| Authentication successful for 0000000000000000
    2018-10-17 06-33-46| Starting thread [Communicator Message WorkerPool Thread 0]...
    2018-10-17 06-33-46| Started thread [Communicator Message WorkerPool Thread 0] with id 140028458026752
    2018-10-17 06-33-46| Connection to player established
    2018-10-17 06-33-46| Connection accepted from 000.000.000.000:0
    2018-10-17 06-33-49| SectorDatabase: Loading Sector (36:40)<Server> Игрок Some Player Name снова с нами!
    2018-10-17 06-33-49|
    2018-10-17 06-33-49| <Server> msg1
    2018-10-17 06-33-49| <Server> msg2
    2018-10-17 06-33-49| Player logged in: Some Player Name, index: 650
    2018-10-17 06-33-52| Server frame took over 1 second.
    ...

    And after that - server was crushed. I was post log in the first message of the topic.

     

    You can find the bug after last update:

    2018-10-17 06-33-49| SectorDatabase: Loading Sector (36:40)<Server> Игрок Some Player Name снова с нами!
    2018-10-17 06-33-49|
    

    But it is bug for new post :)

  8. Server crushed.

    Total online players: 1

     

    2018-10-17 06-33-52| Server frame took over 1 second.
    2018-10-17 06-33-52| [ void Server::update(float): 1105.85 ms; 100% ]
    2018-10-17 06-33-52|   [ MessageServer update: 452.921 ms; 41% ]
    2018-10-17 06-33-52|   [ void Server::updatePlayerCommunicatorAdministration(float): 320.386 ms; 29% ]
    2018-10-17 06-33-52|   [ void FactionDatabase::update(float, bool): 15.174 ms; 1.4% ]
    2018-10-17 06-33-52|   [ void Galaxy::update(float): 0.997 ms; 0.1% ]
    2018-10-17 06-33-52|     [ void Galaxy::updateJumpingEntities(): 0.963 ms; 0.1% ]
    2018-10-17 06-33-52|     [ void Galaxy::updateEntityTransfers(): 0.004 ms; 0% ]
    2018-10-17 06-33-52|     [ void Galaxy::handleFinishedScriptPacketCallbacks(): 0.003 ms; 0% ]
    2018-10-17 06-33-52|     [ void Galaxy::updateWormHoleResults(): 0.003 ms; 0% ]
    2018-10-17 06-33-52|     [ void Galaxy::updateSectors(float): 0.003 ms; 0% ]
    2018-10-17 06-33-52|   [ void Server::updateDebugDiagnostics(): 0.468 ms; 0% ]
    2018-10-17 06-33-52|
    2018-10-17 06-33-52| Thread 140029556946688 Received signal SIGSEGV
    SectorDatabase: Loading Sector (-2:2)
    2018-10-17 06-33-52| S2018-10-17 06-33-52| ectorDatabase: Loading Sector (-411:182)
    2018-10-17 06-33-52| SectorDatabase: Loading Sector (73:-405)
    2018-10-17 06-33-52| Thread Name [140028458026752]: Communicator Message WorkerPool Thread 0
    2018-10-17 06-33-52| Workpacket [140028458026752]:
    2018-10-17 06-33-52| Total memory in use by process: 18.45EB
    2018-10-17 06-33-52| Total memory in use (whole system): 8.22GB
    2018-10-17 06-33-52| Script Memory: 103.12MB
    2018-10-17 06-33-52| Factions In Memory: 3
    2018-10-17 06-33-52| Players In Memory: 6
    2018-10-17 06-33-52| Players Online: 1
    2018-10-17 06-33-52| Thread Name [140028474812160]: RCON
    2018-10-17 06-33-52| Thread Name [140028483204864]: UDP Connection Receive
    2018-10-17 06-33-52| Thread Name [140028869072640]: Input Commands
    2018-10-17 06-33-52| Modified Script 15: data/scripts/sector/mod.00002.lua
    2018-10-17 06-33-52| Modified Script 12: data/scripts/events/pirateattack.lua
    2018-10-17 06-33-52| GameVersion: Beta 0.19.1 r12932 446beb0c968f
    2018-10-17 06-33-52| Workpacket [140028885858048]:
    2018-10-17 06-33-52| Modified Script 11: data/scripts/commands/peacepl.lua
    2018-10-17 06-33-52| Modified Script 8: data/scripts/commands/reclam1.lua
    2018-10-17 06-33-52| Workpacket [140029652756224]:
    2018-10-17 06-33-52| Sectors Loaded: 0
    2018-10-17 06-33-52| Modified Script 13: data/scripts/player/mod1.lua
    2018-10-17 06-33-52| Workpacket [140029548553984]:
    2018-10-17 06-33-52| Thread Name [140029514983168]: Lua WorkerPool Thread 3
    2018-10-17 06-33-52| Modified Script 6: data/scripts/commands/alleaderset.lua
    2018-10-17 06-33-52| Modified Script 14: data/scripts/player/init.lua
    2018-10-17 06-33-52| Modified Script 9: data/scripts/commands/shark.lua
    2018-10-17 06-33-52| Modified Script 18: data/scripts/server/server.lua
    2018-10-17 06-33-52| CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz 4 Cores
    2018-10-17 06-33-52| Modified Script 1: data/scripts/commands/say.lua
    2018-10-17 06-33-52| Modified Script 12: data/scripts/events/pirateattack.lua
    2018-10-17 06-33-52| GameVersion: Beta 0.19.1 r12932 446beb0c968f
    2018-10-17 06-33-52| Workpacket [140028885858048]:
    2018-10-17 06-33-52| Modified Script 11: data/scripts/commands/peacepl.lua
    2018-10-17 06-33-52| Modified Script 8: data/scripts/commands/reclam1.lua
    2018-10-17 06-33-52| Workpacket [140029652756224]:
    2018-10-17 06-33-52| Sectors Loaded: 0
    2018-10-17 06-33-52| Modified Script 13: data/scripts/player/mod1.lua
    2018-10-17 06-33-52| Workpacket [140029548553984]:
    2018-10-17 06-33-52| Thread Name [140029514983168]: Lua WorkerPool Thread 3
    2018-10-17 06-33-52| Modified Script 6: data/scripts/commands/alleaderset.lua
    2018-10-17 06-33-52| Modified Script 14: data/scripts/player/init.lua
    2018-10-17 06-33-52| Modified Script 9: data/scripts/commands/shark.lua
    2018-10-17 06-33-52| Modified Script 18: data/scripts/server/server.lua
    2018-10-17 06-33-52| CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz 4 Cores
    2018-10-17 06-33-52| Modified Script 1: data/scripts/commands/say.lua
    2018-10-17 06-33-52| Modified Script 4: data/scripts/commands/cmd2.lua
    2018-10-17 06-33-52| Thread Name [140029652756224]: Create Sectors WorkerPool Thread 0
    2018-10-17 06-33-52| Thread Name [140029540161280]: Save Factions WorkerPool Thread 0
    2018-10-17 06-33-52| RAM: 7
    2018-10-17 06-33-52| Seed: 34763
    2018-10-17 06-33-52| Modified Script 5: data/scripts/commands/cmd3.lua
    2018-10-17 06-33-52| Modified Script 10: data/scripts/commands/peace.lua
    2018-10-17 06-33-52| Modified Script 7: data/scripts/commands/rename.lua
    2018-10-17 06-33-52| GameVersionHash: 446beb0c968f
    2018-10-17 06-33-52| Modified Script 3: data/scripts/commands/say2.lua
    2018-10-17 06-33-52| Workpacket [140029506590464]:
    2018-10-17 06-33-52| Workpacket [140028877465344]:
    2018-10-17 06-33-52| Modified Script 16: data/scripts/sector/init.lua
    2018-10-17 06-33-52| Modified Script 2: data/scripts/commands/inv.lua
    2018-10-17 06-33-52| Workpacket [140029556946688]:
    2018-10-17 06-33-52| Workpacket [140029523375872]:
    2018-10-17 06-33-52| Thread Name [140029644363520]: Create Sectors WorkerPool Thread 2
    2018-10-17 06-33-52| Workpacket [140029644363520]:
    2018-10-17 06-33-52| Thread Name [140029635970816]: Create Sectors WorkerPool Thread 3
    2018-10-17 06-33-52| Workpacket [140029540161280]:
    2018-10-17 06-33-52| Workpacket [140029635970816]:
    2018-10-17 06-33-52| Thread Name [140029548553984]: Save Sectors WorkerPool Thread 0
    2018-10-17 06-33-52| Thread Name [140028885858048]: Lua WorkerPool Thread 4
    2018-10-17 06-33-52| Modified Script 17: data/scripts/sector/mod.00004.lua
    2018-10-17 06-33-52| Workpacket [140029531768576]:
    2018-10-17 06-33-52| Thread Name [140029531768576]: Game WorkerPool Thread 0
    2018-10-17 06-33-52| Thread Name [140029523375872]: Game WorkerPool Thread 1
    2018-10-17 06-33-52| Thread Name [140029556946688]: Create Sectors WorkerPool Thread 1
    2018-10-17 06-33-52| Thread Name [140028877465344]: Lua WorkerPool Thread 5
    2018-10-17 06-33-52| Thread Name [140029506590464]: Lua WorkerPool Thread 2
    2018-10-17 06-33-52| Workpacket [140029514983168]:
    2018-10-17 06-33-52|
    2018-10-17 06-33-52| === STACKTRACE =====================================
    2018-10-17 06-33-52| #1: ut::signalBacktrace(int) [0xb16c9e]
    2018-10-17 06-33-52| #2: [ext] ?? [0x7f5b317952f0]
    2018-10-17 06-33-52| #3: [ext] ?? [0x7f59f9b14470]
    2018-10-17 06-33-52| ===================================================
    2018-10-17 06-33-52|
    2018-10-17 06-33-52| Crash report sending is disabled.
    2018-10-17 06-33-52| Thread 140029556946688 Received signal SIGSEGV
    2018-10-17 06-33-52| Thread 140029652756224 Received signal SIGSEGV
    2018-10-17 06-33-52| Thread 140029678389248 Received signal SIGSEGV
    

  9. Well, in theory this could work:

    callback onDamaged(objectIndex, amount, inflictor, damageType) - fires before the damage is dealt

     

    But this callback:

    callback onBlockDamaged(objectIndex, blockIndex, inflictorId, damage, damageType) - fires after damage is dealt, but before block is destroyed.

     

    So you can try to heal the ship immediately after taking damage. It may produce an error, because i'm not sure what is "blockIndex" in this context. It may be an index of the block or type index.

    function MyModNamespace.initialize()
        Entity():registerCallback("onBlockDamaged", "onBlockDamaged")
    end
    
    function MyModNamespace.onBlockDamaged(objectIndex, blockIndex, inflictorId, damage, damageType)
        local entity = Entity(objectIndex)
        entity:heal(damage, blockIndex, vec3(), entity.factionIndex) 
    end
    

     

    I was try it with onCollision callback. But it is does not worked if damage more than ship health

  10. Hi.

     

    You can use this to turn entity invincible. Shield still can be damaged, but durability will not. You can use this in the "update" function when some conditions are met. And you will need to turn it off (false) once you're done.

    Entity():invincible = true

     

    Avorion doesn't have the feature that allows to cancel an event.

     

    Thank you. But I'm used "onDamage" as example. I'm needed to disable player to repair ship on some sectors or disable damage from some type of damage and etc.

  11. Sorry for poor English.

     

    Factory trying to create entity from destroyed entity id.

     

    2018-09-09 11-53-02| error constructing Entity: Entity with index "6e587b13-f80d-4a35-847a-00fde5857317" doesn't exist at

    2018-09-09 11-53-02| stack traceback:

    2018-09-09 11-53-02|    [C]:-1: in function Entity

    2018-09-09 11-53-02|    data/scripts/entity/merchants/factory.lua:1394: in function updateFetchingShuttleStarts

    2018-09-09 11-53-02|    data/scripts/entity/merchants/factory.lua:1101: in function ?

     

    You must check is it entity with index exists.

     

  12. Sorry for poor English.

     

    1) Never use root account for game servers and any other servicies

    2) Trun off firewall and Ubuntu (google + "ubuntu 18.04 firewall")

    3) Check your DNS configuration (back-resolving for IP)

    4) Use tcpdump for debug traffiic :)

    5) Try to add:

    --public 1

    --listed 1

    --use-steam-networking 1

     

  13. Sorry for poor English.

    I'm need to rotate newly create object. The function createObject(BlockPlan plan, Matrix position) needed to set position argument.

    Type Matrix (class) has some properties. How can I calculate values for that properties (right, up, look, translation, pos, position) to rotate object?

×
×
  • Create New...