octgn / OCTGN

Online Card and Tabletop Gaming Network
http://www.octgn.net
Other
359 stars 129 forks source link

Android: Netrunner - Using Game Setup causes entire board to disappear #553

Closed leshrac55 closed 12 years ago

leshrac55 commented 12 years ago

This didn't used to be an issue for me, but seemingly since the latest version of OCTGN whenever I load a deck with the Android: Netrunner module and then "Set Up" it causes the whole board to disappear leaving only a view of the background image (all of the "rectangles" where cards go are no longer visible, nor are any cards that are supposedly being played or dragged to the board).

db0 has been helping me look into this with debug versions and we discovered that it seems to take place after the identity is placed onto the board. While it tries to add it to the correct position, the "actual position" is reported as "4.3e-311,4.3e-311".

db0 commented 12 years ago

This is the code that is running behind this:

      x, y = 125, 240
      identity.moveToTable(x,y)
      x1,y1 = identity.position
      confirm("Identity supposedly Placed at {},{}\n\nActual Position is {},{}".format(x,y,x1,y1))

This is affecting only this person. I have no idea why the moveToTable b0rks.

Because it is zooming out so much to place the card, it gives the impression that the board "disappears"

leshrac55 commented 12 years ago

To clarify, while it is only happening to me, if another user is in the game, he also sees the issue occur when I go to "Set Up" (the table disappears for him as well).

db0 commented 12 years ago

Yeah, this is normal. You're trying to place a card away from the visible location, so the table zooms out for both players so that they can both see the new card and the existing ones as well.

db0 commented 12 years ago

In IRC another person mentioned having the same issue. This time in MTG, so the issue seems to be game agnostic.

<therethere> im having a weird problem
<therethere> i reinstall OCTGN
<therethere> and now each time i host a game
<therethere> when we start to play, well when i cast the first card
<therethere> all the board disappear.
<therethere> and the other player cant see the card either
<therethere> but when the other player start the game instead of me
<therethere> i can see all the cards fine
<therethere> when is my turn, i cast a land and then all the board disappear again and there is no way to get back the cards
<therethere> i tried to zoom out zoom in etc dont solve the problem...
<therethere> when i install, i login, install the game with the o8g file
<therethere> then i install the sets, with the o8s file
<therethere> then i add the patch o8p file
<therethere> then i host and all that happened... :(
<therethere> i was able to play OCTGN couple of days ago...
therethere commented 12 years ago

confirmed. still cant play. i was able to play the game before server goes down one day ago, then it cames up and now this issue is happening.

I think it's related with my installation of OCTGN cause if the others players start the game all works smoothly...

I reinstalled the game again, and to confirm, when i apply the patch it loads with any line appear on the window, dont know if it's normal...

leshrac55 commented 12 years ago

therethere: If the other person hosts then you can play the whole game without an issue? In the posted IRC transcript it sounds like the problem still comes up when it gets to your turn, or is that not the case? I'm fairly certain for my own issue that I still had the issue occur even with another player hosting, but I could test this again.

therethere commented 12 years ago

yes, even with other host the issue still happens, only when it comes to my turn.... :S jesus, im tired of reinstalling the game and figure out why this is happen only to me. (my friends can play with no problems)

therethere commented 12 years ago

hmmm i remembered one thing now!

not sure if there is anything to do with this or something, but i installed android netrunner before started having this problem!

brine commented 12 years ago

I will clear the air now, reinstalling any of the files won't change anything, and reinstalling multiple times DEFINITELY won't. Whatever the case it's more likely than anything else to be a bug in OCTGN somewhere which will need to be traced

brine commented 12 years ago

ok I can confirm this is happening on my home PC (win7) but NOT on my laptop (vista). I tried a very simple card.moveToTable(0,0) and it still causes it. So whatever's happening is DEFINITELY originating from that one python call.

therethere commented 12 years ago

i can confirm that too. im still able to play on my Windows Xp pc, but not on Windows 8. so it's related to how Windows 7 and 8 works with the code right?

db0 commented 12 years ago

Yeah, it's fine for me on Win7 x64. It must be caused by something else.

kellyelton commented 12 years ago

Actually, I tried the chess game on 8 and none of the tokens showed up now that I think of it, but I just assumed I had the wrong version...but it's looking like it's possible that windows 8 may have some weird bug or something.

therethere commented 12 years ago

im not sure if it's windows 8 related, cause it's happening to brine on windows 7 and to leshrac55

brine commented 12 years ago

I dont think the chess game uses moveToTable code (pretty sure it's exclusively table.create() ), it looks like the coordinate system cuz the card gets placed in exponential x and y values regardless of where it's supposed to go

therethere commented 12 years ago

are you sure if it's a problem of the code itself? cause the rest of the people are able to play with the present code with no problems...

i'm wondering on a possible OS/installation bug...

brine commented 12 years ago

It worked perfectly fine before the last updates so that's why I'm leaning more toward a random bug in the code somewhere. Plus it only seems to be linked specifically to moveToTable

leshrac55 commented 12 years ago

Yes, it worked fine in a previous version. Which one was the last to work I'm not exactly sure, but I think the previous installer I have is for .14.

On Sep 5, 2012, at 11:23 AM, brine notifications@github.com wrote:

It worked perfectly fine before the last updates so that's why I'm leaning more toward a random bug in the code somewhere. Plus it only seems to be linked specifically to moveToTable

— Reply to this email directly or view it on GitHub.

therethere commented 12 years ago

But it's working for the rest of people with the newer version, right? Im not seeing any people complaining...

kellyelton commented 12 years ago

None of that stuff was changed though. All I did was add another security exception, so scripts can have a little less restrictions...no gameboard code was changed or anything.

leshrac55 commented 12 years ago

I don't know how many people it's happening to. I thought I was the only one but then some more people were able to confirm it. I didn't change anything else and it doesn't sound like other people did either. I've tried uninstalling and reinstalling OCTGN, .NET4, and vc++ redistributable more times than I can remember and nothing seems to fix it.

On Sep 5, 2012, at 1:39 PM, Kelly Elton notifications@github.com wrote:

None of that stuff was changed though. All I did was add another security exception, so scripts can have a little less restrictions...no gameboard code was changed or anything.

— Reply to this email directly or view it on GitHub.

therethere commented 12 years ago

i already did that too, and i can indeed play on other versions of windows like XP and Vista. Didnt tried on 7.

therethere commented 12 years ago

is it related to the change of installation folder to documents instead of program files x86/x64?

kellyelton commented 12 years ago

It should work now, if anyone can confirm this.

brine commented 12 years ago

yep all good on my end :)

leshrac55 commented 12 years ago

Out of town now so won't be able to check on my win7 machine. I'll check WinXP later, though it may work there regardless. :)

Out of curiosity, what was the issue?

On Sep 5, 2012, at 8:28 PM, brine notifications@github.com wrote:

yep all good on my end :)

— Reply to this email directly or view it on GitHub.

therethere commented 12 years ago

yes, working fine now :) Thanks!