Jump to content

T4Ken

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by T4Ken

  1. function onSectorChanged()
        if onServer() then
            local stations = {Sector():getEntitiesByType(EntityType.Station)}
            local ships = {Sector():getEntitiesByType(EntityType.Ship)}
            
            playerShip = Entity()
            player = Player()
            
            if playerShip.factionIndex == player.index then
                addRenameScriptToEntities(stations)
                addRenameScriptToEntities(ships)
                
                if touched then
                    print("***================================***")
                    if craftTouched == 1 then
                        print("RenameShips Migrator: Added ShipRename to 1 craft in this Sector.\n")
                    else
                        print("RenameShips Migrator: Added ShipRename to "..tostring(craftTouched).." craft in this Sector.\n")
    				local craftTouched = 0
                    end
                end
            end
        end
    end

     

     

    someone knows how to change this

     

            if playerShip.factionIndex == player.index then

     

    for Alliance ships ? if this is the matter ?

  2. error constructing Player: no player found in script context at 	[C]:-1: in function Player
    mods/RenameShips/scripts/player/shipRenameMigrator.lua:32: in function ?
    could not execute function 'onSectorChanged' in '"mods/RenameShips/scripts/player/shipRenameMigrator.lua"':
    mods/RenameShips/scripts/player/shipRenameMigrator.lua:34: attempt to index global 'player' (a nil value)
    stack traceback:
    mods/RenameShips/scripts/player/shipRenameMigrator.lua:34: in function <mods/RenameShips/scripts/player/shipRenameMigrator.lua:26>

     

     

    maybe a Problem with Alliance ships ? but it´s still working

  3. someone used this on 0.15.8 ? does it work ?

     

    As the mods have their own files they should still work in 0.15.8.

     

    well i did tested it... 562.000.000 Credits for a common bi-weaveshield seems a little bit buggy ? ^^ and the common weaponthing with +3 a little bit overpowered ?

  4. I got allready a Mega big Modpack in work for 0.15.8 , but i screwed it up with my last try to fix it :-/ wanna take a look at it ?

     

    Close to drop it away...

     

    edit : maybe i get it to run... a little ^^

×
×
  • Create New...