It is currently 16 Apr 2024, 07:20
   
Text Size

Forge version 1.5.28

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Forge version 1.5.28

Postby Chris H. » 12 Sep 2014, 16:51

Tentative target release date: Friday September 26 2014.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Forge version 1.5.28

Postby elcnesh » 13 Sep 2014, 08:49

As discussed in the Network Multiplayer thread, I'm planning to merge the GUI Refactoring branch into trunk soon (probably tomorrow). There may very well still be some display-related bugs, although all basic functionality is in place and a lot has been tested. I'll fix anything that comes up, before the next release.

If you commit to forge-gui* before tomorrow morning (GMT+2) I'll merge it, otherwise the code may be outdated. I'll try and make a brief manual in the wiki so everyone understands how the new code works.

I think it'd also be good to create a snapshot build for the non-developer users to test, to find bugs even quicker.
elcnesh
 
Posts: 290
Joined: 16 May 2014, 15:11
Location: Netherlands
Has thanked: 34 times
Been thanked: 92 times

Re: Forge version 1.5.28

Postby Hanmac » 13 Sep 2014, 08:51

http://cardforge.org/releases/snapshots/forge/forge-gui-desktop/ is gone, where can i access the snapshots now?
Hanmac
 
Posts: 954
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 158 times

Re: Forge version 1.5.28

Postby Agetian » 13 Sep 2014, 09:25

@ elcnesh: sounds good and i agree about a public test snapshot. Good luck!

To whomever may be able to get to the bottom of this: there are some important-looking regressions in 1.5.26 (see my report in the relevant thread), they may also need solving before 1.5.27 by way of a snapshot).
UPDATE: I tried to fix the Sphinx's Revelation bug (not sure if maybe I introduced an even bigger bug with my fix, please review), but not sure what to do with Extort.

- Agetian
Last edited by Agetian on 13 Sep 2014, 14:46, edited 2 times in total.
Agetian
Programmer
 
Posts: 3471
Joined: 14 Mar 2011, 05:58
Has thanked: 676 times
Been thanked: 561 times

Re: Forge version 1.5.28

Postby KrazyTheFox » 13 Sep 2014, 14:25

Hanmac wrote:http://cardforge.org/releases/snapshots/forge/forge-gui-desktop/ is gone, where can i access the snapshots now?
You can find daily (and whenever I feel like generating them) snapshots here: http://www.krazyweb.net/forge
User avatar
KrazyTheFox
Programmer
 
Posts: 725
Joined: 18 Mar 2014, 23:51
Has thanked: 66 times
Been thanked: 226 times

Re: Forge version 1.5.28

Postby friarsol » 13 Sep 2014, 14:44

Agetian wrote:UPDATE: I tried to fix the Sphinx's Revelation bug (not sure if maybe I introduced an even bigger bug with my fix, please review), but not sure what to do with Extort.

- Agetian
Extort is weird. Sometimes it works and sometimes it doesn't. I just tried casting a spell twice with Extort on the battlefield, one time I gained a life one time i didn't. People have reported issues with it in the past, but each time I could never repro it.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Forge version 1.5.28

Postby Agetian » 13 Sep 2014, 14:47

friarsol wrote:
Agetian wrote:UPDATE: I tried to fix the Sphinx's Revelation bug (not sure if maybe I introduced an even bigger bug with my fix, please review), but not sure what to do with Extort.

- Agetian
Extort is weird. Sometimes it works and sometimes it doesn't. I just tried casting a spell twice with Extort on the battlefield, one time I gained a life one time i didn't. People have reported issues with it in the past, but each time I could never repro it.
I'm pretty much certain that the Extort problem is related to the "Number$0" expression in the Extort keyword setup (CardFactoryUtil.java:2454). It always seems to return 0 (which seems logical) - is it supposed to be somehow magically specially handled by the game somewhere (but sometimes isn't)? As it works right now, it makes the AI lose the correct amount of life (1), but then it passes "Number$0" to the amount part of the life gain sub ability, which returns 0 and makes the human not gain any life. :\

An absolutely definite way to consistently reproduce this issue is given by me here: viewtopic.php?f=26&t=15333#p160762

- Agetian
Agetian
Programmer
 
Posts: 3471
Joined: 14 Mar 2011, 05:58
Has thanked: 676 times
Been thanked: 561 times

Re: Forge version 1.5.28

Postby Chris H. » 13 Sep 2014, 15:50

Forge version 1.5.27 was a test build and deploy that Rob requested last night.

So the next beta and upcoming snapshots should be 1.5.28
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Forge version 1.5.28

Postby drdev » 13 Sep 2014, 15:51

Is there a reason we just suddenly skipped 1.5.27? I had already updated the mobile app to use 1.5.27, but then it got bumped to 1.5.28.

At the moment, I just committed changes to make it go back to 1.5.27 so the mobile app works. If there's a reason the version was skipped, let me know and I'll change it back and update the mobile app.

EDIT: Off by one minute, lol. At any rate, do we really have to skip 1.5.27? I think that's confusing for our end users.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Forge version 1.5.28

Postby Chris H. » 13 Sep 2014, 15:57

The build and deploy Maven command makes changes to both slightlymagic and to cardforge.

If we change the poms back to 1.5.27 we might cause a problem when I run the next beta build and deploy.


It might be safest to revert the poms back to 1.5.28 and then to add a brief expanation about 1.5.27 to CHANGES.txt. We had to do something similar on a couple of past occassions.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Forge version 1.5.28

Postby drdev » 13 Sep 2014, 16:08

Chris H. wrote:The build and deploy Maven command makes changes to both slightlymagic and to cardforge.

If we change the poms back to 1.5.27 we might cause a problem when I run the next beta build and deploy.


It might be safest to revert the poms back to 1.5.28 and then to add a brief expanation about 1.5.27 to CHANGES.txt. We had to do something similar on a couple of past occassions.
Ok, I'll bump it back to 1.5.28. I'll let you add the explanation to CHANGES.txt.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Forge version 1.5.28

Postby Agetian » 13 Sep 2014, 16:11

Ok I think I got Extort fixed up in r27338, the amount of life lost was not propagated in time to the AF LifeGain subability. Looks fine to me now (unless I just broke it some place else ;)).

- Agetian
Agetian
Programmer
 
Posts: 3471
Joined: 14 Mar 2011, 05:58
Has thanked: 676 times
Been thanked: 561 times

Re: Forge version 1.5.28

Postby drdev » 13 Sep 2014, 16:15

Agetian wrote:Ok I think I got Extort fixed up in r27338, the amount of life lost was not propagated in time to the AF LifeGain subability. Looks fine to me now (unless I just broke it some place else ;)).

- Agetian
Looks like you didn't need my help with Sphinx's Revelation or Extort. Nice work.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Forge version 1.5.28

Postby Agetian » 13 Sep 2014, 16:27

drdev wrote:
Agetian wrote:Ok I think I got Extort fixed up in r27338, the amount of life lost was not propagated in time to the AF LifeGain subability. Looks fine to me now (unless I just broke it some place else ;)).

- Agetian
Looks like you didn't need my help with Sphinx's Revelation or Extort. Nice work.
Hehe thanks, yep I got to the bottom of it. Thanks for all your hard work on everything, too! :)

- Agetian
Agetian
Programmer
 
Posts: 3471
Joined: 14 Mar 2011, 05:58
Has thanked: 676 times
Been thanked: 561 times

Re: Forge version 1.5.28

Postby drdev » 13 Sep 2014, 17:30

So I just committed a decent-sized refactoring of the logic used for AI mana payment (and the Auto button) in r27348. People were reporting issues with cards being sacrificed for mana ahead of lands being used, which wasn't right.

The new logic adjusts the scoring logic added previously for cards to increase the score based on the number of non-mana activated abilities available to the card, whether the card can attack or block, additional costs associated with the mana ability (such as paying life for painlands), and most importantly, a large score increase if the mana ability is not undoable (such as a sacrifice effect). That way, mana abilities that are non-undoable should be used as an absolute last resort.

Please let me know if this logic or the specific score adjustments I'm using need to be tweaked.

Thanks.
-Dan
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Next

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 32 guests


Who is online

In total there are 32 users online :: 0 registered, 0 hidden and 32 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 32 guests

Login Form