Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Stackable items (at least Spiral Knights, maybe others) don't work at all #57

Open
Exxion opened this issue Mar 15, 2015 · 11 comments
Open

Comments

@Exxion
Copy link

Exxion commented Mar 15, 2015

The amount property of the item (both in offerChanged and themAssets) is always the total number the person offering the item has, not the number they offered (unless they offered all they had, of course).

Also, Crowns and Energy (from Spiral Knights) don't trigger offerChanged when the partner adds or removes them and they don't show up in themAssets at all.

Finally, trades seem to silently end at random when offering SK items, though this may just be due to my connection or something.

EDIT: Forgot to mention that changing the number of offered items doesn't emit offerChanged. It also doesn't update the amount property, but I guess that was implied by the rest of the issue report.

@seishun
Copy link
Owner

seishun commented Mar 19, 2015

I've added you on Steam. I would like to see how adding/removing currency looks like on the receiving side.

@seishun
Copy link
Owner

seishun commented Mar 20, 2015

The amount property of the item (both in offerChanged and themAssets) is always the total number the person offering the item has, not the number they offered (unless they offered all they had, of course).

Fixing it in themAssets is simple, although it will make the code ugly. Fixing offerChanged would be complicated, since there is no amount in the object for event 8 which apparently stands for "stackable amount changed" (and Valve's trading code doesn't even handle it, the trading log doesn't reflect amount changes).

Also, Crowns and Energy (from Spiral Knights) don't trigger offerChanged when the partner adds or removes them and they don't show up in themAssets at all.

Yeah, currencies are not supported. I wonder if inserting them at the front of themAssets like in the trade window would work (although the property name would be technically wrong - assets and currencies are different).

Finally, trades seem to silently end at random when offering SK items, though this may just be due to my connection or something.

How exactly do they end? Do you get an error from the library, or what's the trade result?

@Exxion
Copy link
Author

Exxion commented May 18, 2015

I could have sworn I replied to this
Yeah, I think the issue of silently ending the trade was related to something on my end
The rest of that is unfortunate, though
Do you know if a workaround would be possible?

@ylms
Copy link

ylms commented Jul 24, 2015

@seishun Hello, how can I get in touch with you privately?

@seishun
Copy link
Owner

seishun commented Oct 15, 2015

Do you know if a workaround would be possible?

Not a workaround, no. If you meant a fix, then yes, it's possible, but I need your input on the points I raised in my previous response.

@Exxion
Copy link
Author

Exxion commented Oct 18, 2015

What kind of input, exactly?

@seishun
Copy link
Owner

seishun commented Nov 5, 2015

So, there are a couple of issues you pointed out.

  • Unable to know the stackable amount the user has offered.

I could tweak the amount property of the item in themAssets unless you can suggest some other way.

  • Unable to know anything about currencies the user has offered.

See my previous response:

Yeah, currencies are not supported. I wonder if inserting them at the front of themAssets like in the trade window would work (although the property name would be technically wrong - assets and currencies are different).

I would like to get your opinion on this.

Did I miss anything else?

@Exxion
Copy link
Author

Exxion commented Nov 5, 2015

Fixing the stackable amount in themAssets would be sufficient, if imperfect.
Either adding currencies to the front of themAssets or making a currency variable would be fine with me as long as it works properly.

@seishun
Copy link
Owner

seishun commented Nov 6, 2015

Could you take a look at the spirals branch?

@seishun
Copy link
Owner

seishun commented Nov 20, 2015

@Exxion is this issue still relevant to you?

@Exxion
Copy link
Author

Exxion commented Nov 20, 2015

Yes. Sorry about the lack of response. I've been busy. I'll get back to you sometime hopefully in the next couple weeks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants