Jump to content

entitydbg.lua - 'Planetary Trading Post' has no goods


Rinart73

Recommended Posts

Avorion: 0.21.4

 

"Planetary Trading Post" button in the "Spawn Station" tab of entitydbg.lua spawns station with no goods because function passes incorrect planet data.

 

function onCreatePlanetaryTradingPostButtonPressed()
    -- code
    local planets = {specs:generatePlanets()}
    station:addScript("data/scripts/entity/merchants/planetarytradingpost.lua", planets)
    -- code
end

 

1. It should pass only 1 planet, not table of planets.

2. Not every sector has planets. Maybe just pass table with random but valid planet type since it determines trading goods?

Link to comment
Share on other sites

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...