Jump to content

El Poncho negro

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by El Poncho negro

  1. Thanks for that solution, i changed the code then i found the AI and the artifact. :)

     

    But i don't understand: in theory with your code i must found the AI at every jump (in the good sector) but i only find him one time.

    Maybe we can kill him no more than one time ?

  2. Hi, the mod seems to work but it is not retroactive for me.

     

    - When i create a new game it generate me in the center of the galaxy too.

    - Creative mod is affected : must pay to build

     

    I put " turret.automatic = true " at the wrong place in faction.lua file:

     

    	    -- create turret generator
        local dps, tech = Balancing_GetSectorWeaponDPS(450, 0)
        local turret = InventoryTurret(GenerateTurretTemplate(random:createSeed(), WeaponType.ChainGun, dps, tech, Rarity(RarityType.Uncommon), Material(MaterialType.Iron)))
        player:getInventory():add(turret)
        player:getInventory():add(turret)
    
        local dps, tech = Balancing_GetSectorMiningDPS(450, 0)
        local turret = InventoryTurret(GenerateTurretTemplate(random:createSeed(), WeaponType.MiningLaser, dps, tech, Rarity(RarityType.Uncommon), Material(MaterialType.Iron)))
        player:getInventory():add(turret)
        player:getInventory():add(turret)
    
        player:createShipStyle("TestStyle")
    
    turret.automatic = true
    end
    
            [s]turret.automatic = true[/s]
    
    function matchResources(player)

     

    Apparently it solve the problem

×
×
  • Create New...