db0 / Android-Netrunner-OCTGN

The Game Definition for the Android:Netrunner LCG OCTGN plugin
http://octgn.gamersjudgement.com/viewforum.php?f=52
87 stars 36 forks source link

Better interface for runner accessing cards #205

Closed Lacrymology closed 11 years ago

Lacrymology commented 11 years ago

The F3 shortcut shows a very ugly popup as interface, which sometimes even doesn't make it clear whether trashing is free or impossible. Also the popup makes it impossible to access the chat box.

On the other hand, the "access x cards" from R&D which I've used for.. precog, I think, is great, you see the cards and can arrange them around, and is integrated with the play area

It'd be great to have that same interface for runner accessing cards

db0 commented 11 years ago

Not possible I'm afraid

Lacrymology commented 11 years ago

Can I know why? I'm a programmer, you can assume I can follow technical.

And is there a way I can use the "access..." interface instead of hitting F3?

jwoodall commented 11 years ago

Is there a way to make it non-modal, so you can still use chat? (same issue with Snare, and a few others)

Is this an OCTGN issue?

On 5/14/2013 8:17 AM, Tomas Neme wrote:

Can I know why? I'm a programmer, you can assume I can follow technical.

And is there a way I can use the "access..." interface instead of hitting F3?

— Reply to this email directly or view it on GitHub https://github.com/db0/Android-Netrunner-OCTGN/issues/205#issuecomment-17882777.

Jason Woodall Software Developer Discovery Software, Ltd 1-888-569-7711 x 2229

db0 commented 11 years ago

Can I know why? I'm a programmer, you can assume I can follow technical.

There is no API for it. The "look at cards" functionality is built-into OCTGN. I manipulate OCTGN via python APIs. Check here: kellyelton/OCTGN#377

And is there a way I can use the "access..." interface instead of hitting F3?

Well, you can manually right-click on the target player's pile but

  1. You won't be able to trash or score cards without also taking control of the pile, and then everything will have to be manually done.
  2. You are not supposed to look all the cards together. You need to see them one-by-one. So you need to look at top 1. Then close, Look at top 2. Close etc.

Is there a way to make it non-modal, so you can still use chat?

Not with my custom winforms. The only way to do that is by using the built-in forms of which there's only two types. A comfirm window with Yes/No (which is already used for Snare so not sure why people keep bringing that up as an example) and a askInteger window

Lacrymology commented 11 years ago

ah, also "look at top X cards" won't give you a random card from hand, unless there's a way to shuffle it beforehand (and you'll mess the player's hand in the process)

OCTGN should probably expose the creation of custom dialogs such as the "look at cards" one uses

In any case, it'd be great if you could somehow mark what cards don't have a trash price, because IIRC they now appear with a cost of [0]

db0 commented 11 years ago

In any case, it'd be great if you could somehow mark what cards don't have a trash price, because IIRC they now appear with a cost of [0]

Huh? No they don't. Card without a trash cost don't have a trash cost. If they appear on an access menu, you don't get an option to trash them, except forcefully (e.g. Imp or Demolition Run)

Lacrymology commented 11 years ago

I think I saw it (when running on HQ) and trashed it (the corp player then got it from the archives and we kept on, no problem), but I might be wrong.

db0 commented 11 years ago

You can always force-trash a card, but the game assumes you have a card effect that allows you to do so. Cards which you can trash natively always have a third option for it.

jwoodall commented 11 years ago

I think this guy's point is it isn't clear to new users.

I understand it now; but when I first played I was very confused and force trashed cards that I wasn't able to by accident.

On 5/14/2013 1:57 PM, Divided by Zer0 wrote:

You can always force-trash a card, but the game assumes you have a card effect that allows you to do so. Cards which you can trash natively always have a third option for it.

— Reply to this email directly or view it on GitHub https://github.com/db0/Android-Netrunner-OCTGN/issues/205#issuecomment-17904626.

Jason Woodall Software Developer Discovery Software, Ltd 1-888-569-7711 x 2229

Lacrymology commented 11 years ago

Yeah, that's most definitively what happened.

jwoodall commented 11 years ago

even something as simple as changing (https://github.com/db0/Android-Netrunner-OCTGN/blob/master/o8g/Scripts/actions.py) line 1211-1213: From: options = ["Leave where it is.","Force trash at no cost.",action1TXT] else: options = ["Leave where it is.","Force trash at no cost."] To: options = ["Leave where it is.","Force trash at no cost (use Imp or other card).",action1TXT] else: options = ["Leave where it is.","Force trash at no cost (use Imp or other card)."]

On 5/14/2013 2:06 PM, Tomas Neme wrote:

Yeah, that's most definitively what happened.

— Reply to this email directly or view it on GitHub https://github.com/db0/Android-Netrunner-OCTGN/issues/205#issuecomment-17905287.

db0 commented 11 years ago

Yeah, I just thought the same thing.

jwoodall commented 11 years ago

Noticed in game last night, great work!