1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved About the MakeAllInterface

Discussion in 'Developer Support' started by Snufalufugus, Nov 19, 2017.

?

How should available quantities be returned?

  1. An array or list of strings containing each available option

    4 vote(s)
    33.3%
  2. 0 for "All', -1 for "Make X", the respective number for other options

    8 vote(s)
    66.7%
  1. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    Any time you're producing something out of two stackable ingredients, the MakeAllInterface doesn't have a make all option.
    • It's not always a MakeAllInterface, so the name is inaccurate
    • There is no way to get the selectable quantities to get the best option to select (there is `MakeAllInterface.getSelectableItems()` but not a `MakeAllInterface.getSelectableQuantities()`)
    pls resolve

     
    awesome123man likes this.
  2. Best Answer:
    Post #37 by Cloud, Dec 12, 2017
  3. Wet Rag

    Wet Rag easily triggered ✌

    Joined:
    Dec 31, 2015
    Messages:
    4,457
    Likes Received:
    1,695
    Support
     
    Savior likes this.
  4. Mmaaikel

    Joined:
    Mar 11, 2014
    Messages:
    448
    Likes Received:
    106
    Create a method for it then
     
  5. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    u
     
    Serene likes this.
  6. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    MakeAllInterface is what Jagex refers to it as.
     
  7. Wet Rag

    Wet Rag easily triggered ✌

    Joined:
    Dec 31, 2015
    Messages:
    4,457
    Likes Received:
    1,695
    The update did a lot more than interface update, i.e there used to only be X, but now they added an ALL option

    [​IMG]
     
  8. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    I'm referring specifically to the recently renovated, common interface that they have called the Make All Interface in several release notes.
    --- Double Post Merged, Nov 20, 2017, Original Post Date: Nov 20, 2017 ---
    Which is what the API is designed and expected to handle.
    --- Double Post Merged, Nov 20, 2017 ---
    Furthermore @Snufalufugus, regarding a getSelectableQuantities() method, how do you propose that be handled considering there can be the X option along with All (All can be handled by returning a 0, but regarding the X option I don't see a good integer return value for indicating it's there)
     
  9. Dark sage

    Dark sage Misfits

    Joined:
    Nov 21, 2016
    Messages:
    1,333
    Likes Received:
    373
    would -1 be a valid option to use for the Make X option?
     
  10. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Possibly, what does everyone else think?
     
  11. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    You could just return it as an array of strings, and authors could use .equals() since you only use it to know what's there. Or -1 for X.
     
    awesome123man likes this.
  12. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Which would the rest of you prefer?
     
  13. Mmaaikel

    Joined:
    Mar 11, 2014
    Messages:
    448
    Likes Received:
    106
    -1 sounds oke
     
  14. Wet Rag

    Wet Rag easily triggered ✌

    Joined:
    Dec 31, 2015
    Messages:
    4,457
    Likes Received:
    1,695
    support
     
  15. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    @Cloud @Party got votes gonig - its pretty decisive for the -1 option
     
    awesome123man likes this.
  16. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    When would you ever want to use the MakeX option rather than the MakeAll option?
     
  17. Dark sage

    Dark sage Misfits

    Joined:
    Nov 21, 2016
    Messages:
    1,333
    Likes Received:
    373
    When make all is not available
     
  18. Wet Rag

    Wet Rag easily triggered ✌

    Joined:
    Dec 31, 2015
    Messages:
    4,457
    Likes Received:
    1,695
    where is that?
     
  19. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    Do you know of any interfaces where there's a Make-X but no Make-All option?
     
  20. Dark sage

    Dark sage Misfits

    Joined:
    Nov 21, 2016
    Messages:
    1,333
    Likes Received:
    373
    *EDIT* don't know of any that have the MakeX when MakeAll is not available. Altho there are some without MakeAll option
     
    #19 Dark sage, Nov 21, 2017
    Last edited: Nov 21, 2017
  21. Wet Rag

    Wet Rag easily triggered ✌

    Joined:
    Dec 31, 2015
    Messages:
    4,457
    Likes Received:
    1,695
    There is no interface for darts or bolts, arrows has a MakeAllInterface
     

Share This Page

Loading...