Skip to content

Wrong parameteres listed in colony Integrator #115

@Riprock

Description

@Riprock

Describe

getWorkOrderResources has some wrong parameter names and types

When looking at the parameter tables and the output from my code

col_box = peripheral.find("colony_integrator")
 
function activeJobs()
    row = 3
    work_orders = col_box.getWorkOrders()
 
    for k, order in ipairs(work_orders) do
        local resources = col_box.getWorkOrderResources(k)
        for i, blk in ipairs(resources) do
            print("Resource #" .. i .. ":")
            -- Print all keys and values in this resource
            for key, value in pairs(blk) do
                print("  " .. key .. " = " .. tostring(value))
            end
            print() -- blank line for readability
        end
    end
end
 
activeJobs()

I can see that

  • item is not a string but a table
  • needed is actually called needs
  • delivering is a integer
Image

Steps to reproduce

  1. Run my code and see the output
  2. Compare results with docs

Direct URL

https://docs.advanced-peripherals.de/latest/peripherals/colony_integrator/#getworkorderresources

Screenshots or Videos

https://github.com/user-attachments/assets/88570711-e744-414c-bc24-eeb34304a099

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions