Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved About the MakeAllInterface

How should available quantities be returned?

  • An array or list of strings containing each available option

    Votes: 4 33.3%
  • 0 for "All', -1 for "Make X", the respective number for other options

    Votes: 8 66.7%

  • Total voters
    12
Joined
Aug 23, 2015
Messages
1,961
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
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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
MakeAllInterface is what Jagex refers to it as.
 
easily triggered ✌
Joined
Dec 31, 2015
Messages
4,585
MakeAllInterface is what Jagex refers to it as.
The update did a lot more than interface update, i.e there used to only be X, but now they added an ALL option

v7h1L4X.png
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
The update did a lot more than interface update, i.e there used to only be X, but now they added an ALL option

v7h1L4X.png
I'm referring specifically to the recently renovated, common interface that they have called the Make All Interface in several release notes.
 
Which is what the API is designed and expected to handle.
 
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)
 
Misfits
Joined
Nov 21, 2016
Messages
1,445
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)

would -1 be a valid option to use for the Make X option?
 
Joined
Aug 23, 2015
Messages
1,961
I'm referring specifically to the recently renovated, common interface that they have called the Make All Interface in several release notes.
 
Which is what the API is designed and expected to handle.
 
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)
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.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,760
When would you ever want to use the MakeX option rather than the MakeAll option?
 
Misfits
Joined
Nov 21, 2016
Messages
1,445
*EDIT* don't know of any that have the MakeX when MakeAll is not available. Altho there are some without MakeAll option
 
Last edited:
Top