It is currently 09 Sep 2025, 14:39
   
Text Size

Return to Ravnica Spoiler Season

Post MTG Forge Related Programming Questions Here

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

Re: Return to Ravnica Spoiler Season

Postby Hellfish » 02 Oct 2012, 19:26

Just so there is no duplication of effort: I've got a working Tablet of the Guilds (modded AF_ChooseColor), I just gotta figure out why I'm getting prompted for triple the amount of etb replacements when I cast only this card...
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: Return to Ravnica Spoiler Season

Postby Sloth » 03 Oct 2012, 08:12

Hellfish wrote:Just so there is no duplication of effort: I've got a working Tablet of the Guilds (modded AF_ChooseColor), I just gotta figure out why I'm getting prompted for triple the amount of etb replacements when I cast only this card...
This is fixed now.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Return to Ravnica Spoiler Season

Postby Hellfish » 03 Oct 2012, 09:44

Thanks Sloth, but there was a deeper issue I havn't commited a fix for because of net problems.Player.getAllCards() returns multiples of cards in the stack zone.Removing the second if clause in the loop of that function should do it.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: Return to Ravnica Spoiler Season

Postby ArsenalNut » 03 Oct 2012, 12:38

Sloth wrote:Is someone still working on Epic Experiment? I think it's scriptable without many code modifications. The only problematic part is "Then put all cards exiled this way that weren't cast into your graveyard."
I put the comments in the Wiki because I thought it was going to take significant code mods. If you have a solution, go for it.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Return to Ravnica Spoiler Season

Postby friarsol » 05 Oct 2012, 22:41

Ok, I think I have Angel of Serenity scripted. Just testing a few more things. Hopefully noone else was attempting at the same time.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Return to Ravnica Spoiler Season

Postby ArsenalNut » 05 Oct 2012, 22:43

friarsol wrote:Ok, I think I have Angel of Serenity scripted. Just testing a few more things. Hopefully noone else was attempting at the same time.
Just curious, did it take code changes to script it? I had a version scripted early on but I needed to add multiple origin zone support in the ChangeZone AF to make it work.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Return to Ravnica Spoiler Season

Postby friarsol » 05 Oct 2012, 22:50

ArsenalNut wrote:
friarsol wrote:Ok, I think I have Angel of Serenity scripted. Just testing a few more things. Hopefully noone else was attempting at the same time.
Just curious, did it take code changes to script it? I had a version scripted early on but I needed to add multiple origin zone support in the ChangeZone AF to make it work.
Yep, a little bit of code change in AF_ChangeZone. MultiOrigin support was mostly already there, I just cleaned it up to be more consistent.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Return to Ravnica Spoiler Season

Postby RumbleBBU » 26 Oct 2012, 12:03

I have now, finally, committed the RtR Guild Sealed Deck stuff. It missed the current beta, just narrowly. The full commit consists of some minor code tweaks, a new block in the blocks.txt file plus 10 new sealed deck mode cubes (see notes below).

How to use it:
Start a new sealed deck game, choose "Block / Set" and then scroll down until you find "Return to Ravnica Guild Sealed (block)". Select that. From the "Choose Set Combination" menu, select the first option. You will be prompted twice to pick your guild (once for the promo cards, once for the actual booster - you should choose the same guild both times). After that you're ready to go.

Notes:
- In real "guild sealed" games, you get 5 RtR boosters, 1 booster for your selected guild and two fixed promo cards for your selected guild (a guildgate and a rare big creature). Without heavily rewriting the MetaSet/cube code, I couldn't find a 'clean' way of implementing that. I ended up building two cubes for each guild. One for the guaranteed two promo cards, one for the actual booster. That results in some of the peculiarities of this implementation...
- I had to make a fixed block format with 5 identical RtR sets, a choose1 MetaSet for the guild booster cube, and a choose1 MetaSet for the promo cube. Consequently, the "Choose Set Combination" menu shows a lot of irrelevant options. (The option you need to use is the first one.)
- To make sure that the computer got a matching booster and promo cards, its computer 'partiality' for booster selection had to be fixed at 100% (instead of the 80% I had originally put there). Otherwise, the computer would occasionally pick, e.g., a Selesnya booster and Rakdos promo cards. (And even this wouldn't have worked if I had given the promo cubes and the guild cubes different display names in the block definition!)
- The guild-specific cubes (RtRGuild*) contain the cards that can be generated in guild-specific boosters. The guild-specific promo cubes (RtRPromo*) contain just the two promo cards for each cube.
- The 2-card promo cubes showed up in the "Custom" portion of Sealed Deck format selection. If you selected one of them, the game would hang (you would get just 1 creature and 1 guildgate in every booster...the AI would try to build a deck based on them, and fail, endlessly). I made such very small cubes unselectable directly.
- Finally, somehow, I managed to make my original edits to a version of blocks.txt that contained the incorrect version of block #37. I had to re-commit blocks.txt to fix that.

And here's what the actual block definition looks like, for your enjoyment:
Code: Select all
Index:46|Set0:RTR|Set1:RTR|Set2:RTR|Set3:RTR|Set4:RTR|Meta0:CHOOSE1/CUBE/RtRGuildAzorius/Azorius Guild;CUBE/RtRGuildIzzet/Izzet Guild;CUBE/RtRGuildRakdos/Rakdos Guild;CUBE/RtRGuildGolgari/Golgari Guild;CUBE/RtRGuildSelesnya/Selesnya Guild/GUILD|Meta1:CHOOSE1/CUBE/RtRPromoAzorius/Azorius Guild;CUBE/RtRPromoIzzet/Izzet Guild;CUBE/RtRPromoRakdos/Rakdos Guild;CUBE/RtRPromoGolgari/Golgari Guild;CUBE/RtRPromoSelesnya/Selesnya Guild/PROMO|Name:Return to Ravnica Guild Sealed|DraftPacks:3|LandSetCode:RTR|SealedPacks:7
User avatar
RumbleBBU
 
Posts: 394
Joined: 18 Aug 2012, 04:24
Has thanked: 29 times
Been thanked: 66 times

Re: Return to Ravnica Spoiler Season

Postby friarsol » 27 Oct 2012, 00:15

Hey moomarc,

Wanna hook up the LQ Pics?

viewtopic.php?p=101415#p101415
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Return to Ravnica Spoiler Season

Postby moomarc » 27 Oct 2012, 07:08

friarsol wrote:Hey moomarc,

Wanna hook up the LQ Pics?

viewtopic.php?p=101415#p101415
Will do, hopefully today. Have a few family functions planned for the weekend though so not gauranteeing anything until Monday.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Return to Ravnica Spoiler Season

Postby moomarc » 29 Oct 2012, 05:59

moomarc wrote:
friarsol wrote:Hey moomarc,

Wanna hook up the LQ Pics?

viewtopic.php?p=101415#p101415
Will do, hopefully today. Have a few family functions planned for the weekend though so not gauranteeing anything until Monday.
The main images are are up. Just need to get my local copy up to date then I'll finish off the tokens and update the download links.

Should I make the images set specific where tokens already exist from earlier sets?
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Return to Ravnica Spoiler Season

Postby moomarc » 11 Nov 2012, 16:05

Figured it was time to retire this thread from the stickies...
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 49 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 49 users online :: 0 registered, 0 hidden and 49 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 49 guests

Login Form