Jump to content

GhoStalker

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by GhoStalker

  1. I've been super busy so I haven't had time to dig into this. I like the progress that's been made though. I am excited to see what comes out of this discussion. If you need some help testing it I would be more than willing to do so. I could adapt some of the scripts I have now to try to use your system.

  2. I was thinking of something like this as well. I want to be able to update the game, and not have to tracked down all the single changes that were made to customize the server.

     

    I was trying to implement something like you laid out that was pulled from a git repo on restart so I didn't have to login to the linux box every time I wanted to update a mod.

     

    +1

  3. Calling all experienced modders. I have been trying to figure out how to hook Sector onPlayerEntered. I am looking to have it executed on the server.

     

    I have been playing with it, but I haven't had any luck. I am new to LUA and have some cool mod ideas. I am mainly confused on where should I be defining the hook. I tried to place it in server.lua and several other spots.

     

    Not looking for a 100% example, but some tips on where I should be putting the code and maybe file structure.

     

    Thanks in advanced for any input.

  4. hi, thx for that script.

     

    i added the line;

    Sector():addScript("data/scripts/sector/resourcerespawn.lua")

    below the line

    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")

     

    in every file which have that last line;

     

    ~#data/scripts/sectors#grep -r -i 'pirateattack.lua' ./
    ./piratestation.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./piratefight.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./lonewormhole.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./colony.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./lonetrader.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./containerfield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./asteroidfield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./asteroidfieldminer.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./miningfield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./lonescrapyard.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./cultists.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./loneconsumer.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./factoryfield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./smallasteroidfield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./wreckageasteroidfield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./pirateasteroidfield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./stationwreckage.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./loneshipyard.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./gates.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./functionalwreckage.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./lonetradingpost.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    ./wreckagefield.lua:    Sector():addScript("data/scripts/sector/events.lua", "events/pirateattack.lua")
    
    ~#data/scripts/sectors#grep -r -i 'resourcerespawn.lua' ./
    ./piratestation.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./piratefight.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./lonewormhole.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./colony.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./lonetrader.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./containerfield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./asteroidfield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./asteroidfieldminer.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./miningfield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./lonescrapyard.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./factoryfield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./smallasteroidfield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./wreckageasteroidfield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./pirateasteroidfield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./stationwreckage.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./loneshipyard.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./gates.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./functionalwreckage.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./lonetradingpost.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    ./wreckagefield.lua:    Sector():addScript("data/scripts/sector/resourcerespawn.lua")
    

     

    i lowered the respawn time on server to min 10.0 and max 20.0 to test that script.

    does a server restart and a start with a new galaxy.

    but it doesn't work. then i copied the file to my client; no result, too.

     

    i'm running a dedicated public server with ubuntu server.

     

    DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
    NAME="Ubuntu"
    VERSION="16.04.2 LTS (Xenial Xerus)"
    

     

    I'm having the same issue as you. I am looking to hook the sector entered event then use that to add the script. I don't know if it's the correct way, or if it will work...

×
×
  • Create New...