Jump to content

Polyman

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by Polyman

  1.  

    I'm afraid that you misread what I wrote. I said that, sometimes, factions will become allied with bandits - and by that, I'm referring to "pirates". (I said that they can quote, "join forces with factions to fight Xsotan.")

     

    I changed both the pirateattack.lua and alienattack.lua events. What happens now is once the event starts and creates ships bandit factions(pirates), xsotan, etc. will have -200k reputation with each other. I'm pretty sure this fixes the scenario you're describing.

     

     

     

    hi im really new to the whole lua modding or what not but imi have a quick question i am confused on how i am to install/add the mod and the secter generater one too if u could maybe help me out would be much appreciated. and keep up the good work i like mods that make gameplay more difficult

     

    Just download the ArmedStation.zip and extract inside the Avorion game directory.  ;)

    eventchanges.zip

  2. Thanks for your mod, I'm sure the helpless stations will love their turrets.

     

    One note for the hostile factions, a way I found for players to bypass most bad relations is to sell asteroids from nearby sectors to that faction. This allows them to befriend any faction within minutes and without too many effort.

    Would you know any way to battle this?

     

     

    Yep, easy to solve by modifying the sellobject.lua script.  Change this line of code local reputation = lerp(relations, -100000, 100000, 15000, 1000)

     

    Here's an example that only populates the sell table/list with factions that have at least 1,000 reputation with the player faction.

     

    function getFactions()
    
        local ownFaction = Faction(Entity().factionIndex)
    
        local factions = {}
        local x, y = Sector():getCoordinates()
        local offsets =
        {
            {x = 0, y = 0},
            {x = -8, y = 0},
            {x = 8, y = 0},
            {x = 0, y = -8},
            {x = 0, y = 8}
        }
    
        for _, offset in pairs(offsets) do
            local faction = Galaxy():getNearestFaction(x + offset.x, y + offset.y)
            local relations = ownFaction:getRelations(faction.index)
    
            local price = lerp(relations, -100000, 100000, 500, 40000)
            local reputation = lerp(relations, -100000, 100000, 100, 500) --- mod change 100 and 500 for lower/higher reputation value scale
    
            price = price * Balancing_GetSectorRichnessFactor(x, y)
    
    if relations >= 1000 then factions[faction.index] = {index = faction.index, price = price, reputation = reputation}end --mod only factions with 1k reputation will show up in table
        end
    
        return factions
    end

     

  3. Well I noticed in some new galaxy spawns the player is spawned in a sector near multiple hostile factions and their default 'allied' faction didnt attack enemy ships to the player. I updated the code and everything seems to be working now.

  4. I was in the middle of a battle against Xsotan and a group of pirates, when a faction war happened and two fleets warped in. Shortly after about 5 minutes or so of fighting the game crashed. I cant load the save file anymore which isn't a problem but kind of strange that it happened.

     

    EDIT:I was not lagging, but I did notice that the sound stopped working for some of the enemies turrets.

     

    Log file w/ -t all:

    http://pastebin.com/nur3Chf5

     

    Gamesave:

    http://www.filedropper.com/defaultgalaxy

     

  5. Well, you can run the script in game using the console(`) and typing /run. You could also run the script by calling it from another lua script the game uses like sector events, etc. I normally run my scripts through Avorion\data\scripts\server\server.lua  ;D

  6. The name gen could do with some tweaking.  There are many examples of sci-fi and fantasy name generators that will generally give you pronounceable results.  Also, being able to seed a list with your own names would be cool.

    You can do that by editing Avorion\data\scripts\lib\sectornamegenerator.lua just modify the arrays.

     

  7. Well, I think I finally have something that works. I'm not sure how many players are interested  but I will provide the code below. All you have to do is Copy+paste the code to the factions.lua script, which is located in data\scripts\server. You can still gain reputation by fighting pirates, or participating in faction wars but it will be much harder to gain reputation. I'm also including an optional modification to SectorGenerator.lua that places turrets on most stations, as I was tired of pirates destroying stations with no resistance. Combined with the mod below it makes rushing to the center much harder.

     

     

     

    Code: Find the comment line '-- make sure the player has an early ally' and paste it below 'player:setValue("start_ally", faction.index)'

    -- mod make sure the player has plenty of enemies----------------------------------------------------------
    for i = -499, 999 do
    	local x = i
    	local y = i
    
    	delta = math.random(75000,1000) --min/max values for reputation decrease
    
    	local homeSectorFaction = Galaxy():getNearestFaction(home.x, home.y) -- starting allied faction
    	local getFaction = Galaxy():getNearestFaction(x, y) -- faction that should hate players and their starting ally
    
    	local relation = player:getRelations(getFaction.index)
    
    	if relation == 0 then 
    		Galaxy():setFactionRelations(getFaction, player, -delta) -- makes factions hate the player
    		Galaxy():setFactionRelations(getFaction, homeSectorFaction, -delta) -- makes factions hate our starting ally
    	end		
    
    	--mod make everyone hate pirates
    	local pirates = Galaxy():getPirateFaction(x, y)
    	Galaxy():setFactionRelations(pirates, getFaction, -200000) -- everyone hates pirates
    	Galaxy():setFactionRelations(pirates, player, -200000) -- everyone hates pirates	
    end
    

     

     

    Optional Mod:

    Armed Space Stations(SectorGenerator.zip)

    Desc:Lightly arms all space stations with turrets based on sector turret level. Equipment Docks and Military Outposts are heavily armed.

    ArmedStations.zip

  8. I know this suggestion is TL;DR but w/e :).

     

    New System Upgrade: Anomaly Scanner this works with my below suggestion and gives an option to play as a 'science' vessel.

     

    New Cargo Type: Navigation Buoy. (Used for new mission types, and can be bought at research/science stations)

     

     

    Anomaly System:

     

    All sectors would have a chance of having an anomaly through rngesus. Once you arrive into a sector, if your ship is equipped with an Anomaly Scanner it will detect if there are any anomalies present similar to how the Object Scanner works currently. You would then find and approach the anomaly and start scanning it and after waiting a set amount of time(based on ship processor power), you will receive a  data disk(like xsotan tech fragment) which has a value based on a formula like (anomaly size * anomaly scanner tech level). Anomalies can only be scanned once and the data can be sold to research or science stations. I also figured it would be useful if the anomalies were in categories like Dangerous, Trap, and Harmless. I think their appearance could be similar to how the wormhole looks but they should be transparent so they're hard to find!

     

    (Game story spoiler!)

     

    There should also be an increased chance of encountering the AI faction in these sectors.

     

     

     

    Trap Anomalies:

    Gravity Anomaly:

    -- Has a negative impact on all movement.

    -- Severely reduces your ships sector jump distance.

     

    Dangerous Anomalies:

    Radiation Anomaly:

    -- Could have a small nuclear icon on the map with appropriate tech level radar/scanner upgrade.

    -- High radiation which slowly kill crews, and damages tech blocks.

    -- Larger asteroids in these sectors.

    -- Could contain Abandoned ships, stations.

    -- Could contain single or multiple space stations with high tech level compared to other sectors nearby.

     

    Harmless Anomalies:

    Wormhole Anomaly:

    -- Already in game!

    -- Allows ships to jump vast distances.

     

    New Missions:

    Science Stations or Research Stations would grant three mission types.

     

    Mission Type 1:

    --Go to a random sector with a dangerous or trap anomaly and deploy a navigation buoy.

    --Reward: Credits or random system upgrade

     

    Mission Type 2:

    --Go to a random sector with an anomaly and scan it, and deliver the disk back to the station.

    --Reward: Credits or random system upgrade

     

    Mission Type 3:

    --Go to a random sector with a wormhole anomaly and deploy a navigation buoy.

    --Reward: Credits or random system upgrade

     

×
×
  • Create New...