1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Distinguish small from large containers

Discussion in 'Programming Questions and Suggestions' started by Nemesis2310, Oct 4, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Nemesis2310

    Nemesis2310 Trainee Engineer

    Messages:
    6
    Hey there, i am currently working on a script that automatically names all blocks on the grid according to a template.
    When trying to name a container, large containers are named "Large Cargo" as intended, but small ones just get an empty string "" where their name should be.
    I currently am identifying them via their name, if it contains small or large, but i think that's probably prone to causing issues.
    Does anyone know a better way to distinguish them from one another?
    --- Automerge ---
    I also just discovered that reactors are named "Large Cargo" as well. Would it help if i post snippets of my code?
     
Thread Status:
This last post in this thread was made more than 31 days old.