Jump to content

Dirtyredz

Members
  • Posts

    225
  • Joined

  • Last visited

Posts posted by Dirtyredz

  1. from what i can see your file structure looks good,

    did you follow the other instructions (im assuming yes)  editing the server.lua is essential as thats what gets the mod started.

    secondly this mod does nothing by itself except force Entity scripts (scripts/mods attach to a ship) to follow the ship your piloting.

     

    the mod solves the issue of other modders having to write the same code for each mod and costing the players/server performance hits when 10 mods are all doing the EXACT same thing.

     

    by adding a script path to this mods config file. this mod will track the player entering/leaving of a ship and keep any scripts in the config attached to the players current ship.

     

    What mod are you trying to use with this mod?

    can i see your config file?

    also showing me the server.lua file you should have edited just to be sure would be helpfull.

  2. It works on sp as long as you installed it correctly including editing server.lua, sp is technically a restricted server.

     

    If installed propperlly you'll see a new icon in the top right, a box with a mouse icon. Click that and youll open a menu were you can enable disable various ui's

     

  3. I'll need releasing my next version soon , where moveui uses significantly less interactions between server aswell uses client dude data storage so the mod stores its pixel  and other Serbs on the client.

     

    As for the screenshot i still hacer too fix that.

  4. The mod uses another mod of mine Loglevels, use command /consolelevel debug

    to see all hidden console messages. you can open the console with the ' key

    I havent had any issues with the mod in a very long time and we activaly use the mod on the Rusty Servers,

     

    If your stil having issues, i would need to see an error from the console or a copy of the server log which can be found in %appdata%/avorion/galaxies/ if on windows or /home/user/.avorion/galaxies  if on linux.

     

    Hope this helps for now, you can contact me through here or on my discord aswell: https://discord.gg/52YZMPt

  5. you need to remove/add to the inventory object not the item object.

     

    
    local inv = Player(callingPlayer):getInventory()
    
    for index, slotItem in pairs(inv:getItems()) do
      local iitem = slotItem.item
      inv:remove(index)
      iitem.trash = 1
      slotItem.item = iitem
      inv:add(slotItem,index)
    end
    

     

    Untested, but this should help yopu get close to what ya want to achieve

  6. Block cordinates is seperate from sector cordinates, you want to use entity pos like you did in you last example.

    Adjust the vectors from the entities position to hwere you want it.

     

    heres a snippet of code I use to spawn another entity behind and below the original entity. Perhaps you can use this to get what you need.

     

      
      local plan = entity:getPlan()
      local position = ship.orientation
      local sphere = ship:getBoundingSphere()
      local behindAndDown = ((ship.look * (-1)) + (ship.up * (-1))) / 2
      position.translation = sphere.center + behindAndDown  * (sphere.radius + plan.radius + 50);

     

×
×
  • Create New...