Jump to content

Improving relations between alliance and ai-factions is too slow


unbekannt1984

Recommended Posts

Hi,

 

I tried to improve my alliances' relations to an ai-faction by doing some missions and defeating pirate-attacks. Well, at least for pirate-attacks it seems that an alliance doesn't get that bonus at the end of the event...

 

I think, I found the cause for this in Avorion/data/scripts/events/pirateattack.lua line 199:

            Galaxy():changeFactionRelations(player, faction, reputation)

Shouldn't that be something like in other scripts:

local shipFaction, ship = getInteractingFactionByShip(shipIndex, callingPlayer)
...
Galaxy():changeFactionRelations(shipFaction, stationFaction, relationsChange)

Link to comment
Share on other sites

Hi Qui_Sum,

 

Thank you for reporting, will be fixed in the next update!

maybe a little suggestion... How about splitting that Bonus into 2 parts, one part for the player and one for the ship-faction (in my case the alliance)?

It wouldn't change anything, if you pilot your own ship. But if you are using an alliance-ship, you could improve the relations for both (alliance and player) at the same time.

 

EDIT:

I think I found more of those bugs... In Avorion/data/scripts/lib/entitydbg.lua, lines 2560 to 2579:

function onLikePressed()
    if onClient() then
        invokeServerFunction("onLikePressed")
        return
    end

    local faction, ship, player = getInteractingFaction(callingPlayer)
    Galaxy():changeFactionRelations(faction, Faction(), 5000)
end

function onDislikePressed()
    if onClient() then
        invokeServerFunction("onDislikePressed")
        return
    end

    local faction, ship, player = getInteractingFaction(callingPlayer)
    Galaxy():changeFactionRelations(faction, Faction(), -5000)

end

doesn't work for alliance-ships either.

 

I think there are more of these bugs around...

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...