It is currently 31 Oct 2025, 12:43
   
Text Size

General UI support

Post MTG Forge Related Programming Questions Here

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

General UI support

Postby Doublestrike » 05 Feb 2012, 02:20

Yep.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby Doublestrike » 05 Feb 2012, 02:52

The Bazaar has a new(ish) UI :D

The only bug I noticed was when the screen is resized; that's a known bug and on the list. Otherwise, should be OK.
Attachments
bazaar.jpg
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby Doublestrike » 05 Feb 2012, 02:55

I also added a new feature to the bazaar: you can now sell life back to the alchemist - as much as you want.

However, you can only buy 15 life. :twisted: Also, per the previous implementation, the selling/buying price of each goes up by 250 every five levels, up to 15. Should be an interesting twist to strategy - a good way to mortgage some credits to get an important card, or something.

I also upgraded the bazaar items to now have a buying and selling price. Depending on popular opinion, we could sell pets back to the pet shop for a lower price (or something). Anyway, the machinery is in place, should we choose to use it.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby Doublestrike » 05 Feb 2012, 02:58

By the way, not sure if it was intentional, but before, you could buy unlimited life from the Bazaar. In the code, it was supposed to be limited to 15, so I fixed this bug, if it was a bug.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby Chris H. » 05 Feb 2012, 03:17

I will check out the new bazaar tomorrow as it is getting late for me. :)

I was going to push the thumbs up button but it looks like we no longer get the email to let us know that we have been thanked. :(

Oh, have you had a chance to look at the changes submitted by Roujin Patch: New preferences for quest mode Adding this in with lower upper limits and adding these to the quest preferences view might be nice.

The hard coded limits that you mentioned in the past. Are these limits only used while adjusting the settings while in-game? Are people allowed to edit the file in a text editor to get above these hard coded limits?
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: General UI support

Postby Doublestrike » 05 Feb 2012, 04:02

Chris H. wrote:I was going to push the thumbs up button but it looks like we no longer get the email to let us know that we have been thanked. :(
:cry:

Oh, have you had a chance to look at the changes submitted by Roujin Patch: New preferences for quest mode Adding this in with lower upper limits and adding these to the quest preferences view might be nice.
Yeah, could do. @Roujin - Seems like you've volunteered a few patches, maybe request commit status and work them in as you see fit?

The hard coded limits that you mentioned in the past. Are these limits only used while adjusting the settings while in-game? Are people allowed to edit the file in a text editor to get above these hard coded limits?
Exactly right.
Last edited by Doublestrike on 05 Feb 2012, 10:16, edited 3 times in total.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby timmermac » 05 Feb 2012, 04:10

Doublestrike wrote:
Chris H. wrote:I was going to push the thumbs up button but it looks like we no longer get the email to let us know that we have been thanked. :(
Cheers - I'm a bit of a whore for the thumbs up anyway so don't be shy heheh :)

Oh, have you had a chance to look at the changes submitted by Roujin Patch: New preferences for quest mode Adding this in with lower upper limits and adding these to the quest preferences view might be nice.
Yeah, could do. @Roujin - Seems like you've volunteered a few patches, maybe request commit status and work them in as you see fit?

The hard coded limits that you mentioned in the past. Are these limits only used while adjusting the settings while in-game? Are people allowed to edit the file in a text editor to get above these hard coded limits?
Exactly right.
I could use the old quest.preferences file as I could in the past?
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: General UI support

Postby Doublestrike » 05 Feb 2012, 04:12

Not the exact same file, but if you look at the new one (same place, same name) it's the same information. The new one can be edited too, in a text editor, and the new values will work in-game.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby timmermac » 05 Feb 2012, 04:20

It's possible to enter values above the hardcoded limits and have them work?
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: General UI support

Postby Chris H. » 05 Feb 2012, 11:42

timmermac wrote:It's possible to enter values above the hardcoded limits and have them work?
`
Yes, it should be possible to adjust the values with a text editor. I think that the format of the pref file has changed but it should not be too hard to figure out.

quest preferences | Open
BOOSTER_COMMONS=11
BOOSTER_UNCOMMONS=3
BOOSTER_RARES=1
PENALTY_LOSS=15
CURRENT_QUEST=questData.dat
REWARDS_BASE=25
REWARDS_UNDEFEATED=25
REWARDS_WINS_MULTIPLIER=0.3
REWARDS_POISON=50
REWARDS_MILLED=40
REWARDS_MULLIGAN0=500
REWARDS_ALTERNATIVE=100
REWARDS_TURN15=5
REWARDS_TURN10=50
REWARDS_TURN5=250
REWARDS_TURN1=1500
STARTING_BASIC_LANDS=20
STARTING_SNOW_LANDS=5

STARTING_COMMONS_EASY=82
STARTING_COMMONS_MEDIUM=80
STARTING_COMMONS_HARD=78
STARTING_COMMONS_EXPERT=76

STARTING_UNCOMMONS_EASY=40
STARTING_UNCOMMONS_MEDIUM=36
STARTING_UNCOMMONS_HARD=32
STARTING_UNCOMMONS_EXPERT=28

STARTING_RARES_EASY=20
STARTING_RARES_MEDIUM=18
STARTING_RARES_HARD=16
STARTING_RARES_EXPERT=15

STARTING_CREDITS_EASY=250
STARTING_CREDITS_MEDIUM=200
STARTING_CREDITS_HARD=150
STARTING_CREDITS_EXPERT=100

WINS_BOOSTER_EASY=1
WINS_BOOSTER_MEDIUM=1
WINS_BOOSTER_HARD=2
WINS_BOOSTER_EXPERT=2

WINS_RANKUP_EASY=3
WINS_RANKUP_MEDIUM=4
WINS_RANKUP_HARD=5
WINS_RANKUP_EXPERT=6

WINS_MEDIUMAI_EASY=10
WINS_MEDIUMAI_MEDIUM=9
WINS_MEDIUMAI_HARD=8
WINS_MEDIUMAI_EXPERT=7

WINS_HARDAI_EASY=20
WINS_HARDAI_MEDIUM=18
WINS_HARDAI_HARD=16
WINS_HARDAI_EXPERT=14

WINS_EXPERTAI_EASY=40
WINS_EXPERTAI_MEDIUM=36
WINS_EXPERTAI_HARD=32
WINS_EXPERTAI_EXPERT=28

`
The maximum settings that have been mentioned should only limit us to the range of numbers that we can enter while using the in-game quest mode presences tab. :)
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: General UI support

Postby Max mtg » 05 Feb 2012, 13:00

Hey, guys!
It's 21 century and year 2012 - why homebrew config file formats and not xml or json?

Code: Select all
...
rewards: {
  base: 25,
  undefeated: 25,
  poison: 50,
  milled: 40
  ...
}
...
easy : {
  start : {
    credits: 250,
    rares: 20,
    uncommons: 40,
    ...
  },
  wins_rankup: 3,
  wins_to_upgrade_ai: {
    medium: 10,
    hard: 20
  },
},
medium: {
  start : {
    credits: 200,
...
Would be so much better
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: General UI support

Postby Roujin » 05 Feb 2012, 14:35

Doublestrike wrote:Yeah, could do. @Roujin - Seems like you've volunteered a few patches, maybe request commit status and work them in as you see fit?
It was only one patch, until now ;)
I'll have to decline on that offer for now - maybe at a later point. See my post in the other thread.
Roujin
 
Posts: 75
Joined: 01 Nov 2011, 21:58
Has thanked: 6 times
Been thanked: 13 times

Re: General UI support

Postby friarsol » 05 Feb 2012, 15:10

Max mtg wrote:Hey, guys!
It's 21 century and year 2012 - why homebrew config file formats and not xml or json?

Code: Select all
...
rewards: {
  base: 25,
  undefeated: 25,
  poison: 50,
  milled: 40
  ...
}
...
easy : {
  start : {
    credits: 250,
    rares: 20,
    uncommons: 40,
    ...
  },
  wins_rankup: 3,
  wins_to_upgrade_ai: {
    medium: 10,
    hard: 20
  },
},
medium: {
  start : {
    credits: 200,
...
I would love json support here. I had been planning on converting the pets to json but havent had time
Would be so much better
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: General UI support

Postby Roujin » 05 Feb 2012, 15:19

I am getting weird transitions when changing between tabs in the latest daily build. For example when switching from Preferences to Quests. It doesn't look like I'm switching to a new tab, but like the contents of the tab are "morphed" to become the contents of the new tab.

The same in the new bazaar, when I switch from, say, Bookstore (which has 1 item) to Banker (which has 2 items). First, a second item (lucky coin) seems to appear, then the first item is changed (to estates). The subtitle seems to change a tiny bit before the title does, too.
Roujin
 
Posts: 75
Joined: 01 Nov 2011, 21:58
Has thanked: 6 times
Been thanked: 13 times

Re: General UI support

Postby Chris H. » 05 Feb 2012, 18:48

I am trying out the new bazaar and it looks nice.

Is there currently a way to leave this bazaar and to go back to the home screen without quitting and then restarting?

Ah, I clicked on my Mac's close button, the red circle at the top left and it went back to the home screen quest mode screen.

I also noticed that the resizing is not consistent. I noticed that after several resizes that I get wider buttons on the left when at 800 x 600 pixels. And I am getting narrower buttons on the left when the screen is at maximum size. A work in progress. :)

`
Attachments
Screen Shot 1920 x 1200.jpg
1920 x 1200
Screen Shot 800 x 600.jpg
800 x 600
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

Next

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 19 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 19 guests

Login Form