[fixed/closed]Quicksand can't be activated when...
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
20 posts
• Page 1 of 2 • 1, 2
[fixed/closed]Quicksand can't be activated when...
by Aswan jaguar » 26 Jul 2014, 14:33
Describe the Bug:
Quicksand can't be activated because if you haven't got another card that activates or can be played instantly fast effects menu doesn't open.
Which card did behave improperly ?
Quicksand
Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
2014/05/06: Journey into Nyx
What exactly should be the correct behavior/interaction ?
Quicksand can be activated,fast effects menu appear in attack phase even if there isn't another card to activate them.
Are any other cards possibly affected by this bug ?
-
Quicksand can't be activated because if you haven't got another card that activates or can be played instantly fast effects menu doesn't open.
Which card did behave improperly ?
Quicksand
Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
2014/05/06: Journey into Nyx
What exactly should be the correct behavior/interaction ?
Quicksand can be activated,fast effects menu appear in attack phase even if there isn't another card to activate them.
Are any other cards possibly affected by this bug ?
-
- Attachments
-
quicksand.rar
- (2.15 KiB) Downloaded 344 times
Last edited by BAgate on 26 Jan 2016, 02:54, edited 4 times in total.
Reason: closed
Reason: closed
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
Re: Quicksand can't be activated when...
by Nexhro » 26 Jul 2014, 15:14
This also affects Kor Haven, Tectonic Edge, Strip Mine, Kher Keep and Wasteland.
I bet there's more.
Do you want me to post all of them separately? Maybe someone should compile a list.
I bet there's more.
Do you want me to post all of them separately? Maybe someone should compile a list.
- Attachments
-
HavenTecEdgeCo.zip
- (3.73 KiB) Downloaded 324 times
-
Nexhro - Posts: 1613
- Joined: 23 Jan 2014, 18:08
- Location: HRO, UTC +1
- Has thanked: 78 times
- Been thanked: 103 times
Re: Quicksand can't be activated when...
by Aswan jaguar » 26 Jul 2014, 15:25
This list should be fine here but we better here from devs in the rare case that this can be fixed "globally" without needing a list and you waist your time.
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
Re: [confirmed]Quicksand can't be activated when...
by Gargaroz » 27 Jul 2014, 13:03
Damn, it seems an hardcoded problem, I'll ask Korath and let you know 

----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Gargaroz
- Programmer
- Posts: 7097
- Joined: 06 Nov 2009, 11:11
- Has thanked: 82 times
- Been thanked: 595 times
Re: [wait news from devs]Quicksand can't be activated when..
by Korath » 29 Jul 2014, 04:44
Any similar lands (i.e., with both mana and non-mana activated abilities) that do work?
Are they still broken if you flag them as an artifact? (Type: Artifact column in ct_all.csv)
How about if Flags: Mana Source is removed?
(I can't conveniently run the game here.)
Are they still broken if you flag them as an artifact? (Type: Artifact column in ct_all.csv)
How about if Flags: Mana Source is removed?
(I can't conveniently run the game here.)
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
Re: [wait news from devs]Quicksand can't be activated when..
by Gargaroz » 29 Jul 2014, 09:56
1) It's a global bug, even the manlands are affected.
2) Added "type: artifact" to Mishra's Factory : it still cannot be used during combat.
3) Removed "flags: mana source" from Kor Haven: manastripes gone but it can be used during combat.
I was wondering: isn't there any flag the we could forcefully set during combat to make them activeable (TENTATIVE_LCBP_DURING_COMBAT ?) ?
2) Added "type: artifact" to Mishra's Factory : it still cannot be used during combat.
3) Removed "flags: mana source" from Kor Haven: manastripes gone but it can be used during combat.
I was wondering: isn't there any flag the we could forcefully set during combat to make them activeable (TENTATIVE_LCBP_DURING_COMBAT ?) ?
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Gargaroz
- Programmer
- Posts: 7097
- Joined: 06 Nov 2009, 11:11
- Has thanked: 82 times
- Been thanked: 595 times
Re: [wait news from devs]Quicksand can't be activated when..
by Korath » 29 Jul 2014, 18:21
These only fail during combat, then? Is it only that the phase skips past Fast Effects/Assign Attackers and Fast Effects/Assign Blockers, or are you prevented from responding to the AI in those phases too?
(TENTATIVE_LCBP_DURING_COMBAT is already set, so far as I can tell, during combat; which is why I named it that.)
Do non-land mixed activateables like Mind Stone work?
And is the problem recent - that is, anyone have a pre-Theros version around to test with? Strip Mine and Mishra's Factory make this testable all the way back to the original MicroProse versions.
(TENTATIVE_LCBP_DURING_COMBAT is already set, so far as I can tell, during combat; which is why I named it that.)
Do non-land mixed activateables like Mind Stone work?
And is the problem recent - that is, anyone have a pre-Theros version around to test with? Strip Mine and Mishra's Factory make this testable all the way back to the original MicroProse versions.
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
Re: [wait news from devs]Quicksand can't be activated when..
by Nexhro » 29 Jul 2014, 19:04
^ Yes, exactly. The game skips Fast Effects/Assign Attackers and Fast Effects/Assign Blockers, unless you have other (not land-based) fast effects you could play/activate like instants, creature abilities etc, in which case they can be activated during said steps.
Mind Stone can't be sacced to draw a card either (fast effects steps skipped).
Not sure how recent of a problem this is, though.
Mind Stone can't be sacced to draw a card either (fast effects steps skipped).
Not sure how recent of a problem this is, though.
-
Nexhro - Posts: 1613
- Joined: 23 Jan 2014, 18:08
- Location: HRO, UTC +1
- Has thanked: 78 times
- Been thanked: 103 times
Re: [wait news from devs]Quicksand can't be activated when..
by Aswan jaguar » 29 Jul 2014, 20:19
It is working with the previous update:Manalink Update 2014/04/17: Apr14
I tested Strip Mine and others,so something changed with the last update.
I don't know if it helps but if you manually put stops in the attack steps for fast effects you can activate them.
I tested Strip Mine and others,so something changed with the last update.
I don't know if it helps but if you manually put stops in the attack steps for fast effects you can activate them.
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
Re: [wait news from devs]Quicksand can't be activated when..
by Gargaroz » 30 Jul 2014, 14:14
Could someone test the non-ASM coded card like Kor Haven too in a JOU / pre-JOU patch ?
I tried to revert the minimal changes I made to 'produce_mana.c' for implementing strange stuff like Quarum Trench Gnomes / Deep Water, but no luck, that was not the culprit...
I tried to revert the minimal changes I made to 'produce_mana.c' for implementing strange stuff like Quarum Trench Gnomes / Deep Water, but no luck, that was not the culprit...
Last edited by Gargaroz on 30 Jul 2014, 14:25, edited 1 time in total.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Gargaroz
- Programmer
- Posts: 7097
- Joined: 06 Nov 2009, 11:11
- Has thanked: 82 times
- Been thanked: 595 times
Re: [wait news from devs]Quicksand can't be activated when..
by Gargaroz » 30 Jul 2014, 14:24
Tried also to revert the insertions I made to make stuff like Staff of the Ages codeable: still no luck 

----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Gargaroz
- Programmer
- Posts: 7097
- Joined: 06 Nov 2009, 11:11
- Has thanked: 82 times
- Been thanked: 595 times
Re: [wait news from devs]Quicksand can't be activated when..
by Aswan jaguar » 30 Jul 2014, 14:55
I already have tested with ASM and non ASM cards including Kor Haven and both work with previous update = April ,and don't work now under Joy update.I didn't mention as Korath mostly asked for Strip Mine.
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
Re: [wait news from devs]Quicksand can't be activated when..
by Korath » 30 Jul 2014, 20:27
Since this used to work, the right tool to find out exactly how it broke is git bisect. Reverting changes at random isn't likely to help.
In the meantime, you should be able to work around the problem by adding stops to the pre-block and post-block phases.
In the meantime, you should be able to work around the problem by adding stops to the pre-block and post-block phases.
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
Re: [wait news from devs]Quicksand can't be activated when..
by Gargaroz » 31 Jul 2014, 00:29
Edit: This is the culprit. Since no other patch to the EXE was done after the April release, I tried taking that version of the EXE and updating it with the new CSVs.
Result: lands with activated abilities works back at instant speed during combat.
-----
I found an interesting commit, I report it here for you Korath, but since is all ASM, I really can't help with it :
Result: lands with activated abilities works back at instant speed during combat.
-----
I found an interesting commit, I report it here for you Korath, but since is all ASM, I really can't help with it :
- Code: Select all
diff --git a/Magic.exe b/Magic.exe
index bdacf00..d9466be 100644
Binary files a/Magic.exe and b/Magic.exe differ
diff --git a/src/patches/patch_charge_mana_can_activate.pl b/src/patches/patch_charge_mana_can_activate.pl
index 4393be0..6d2de87 100644
--- a/src/patches/patch_charge_mana_can_activate.pl
+++ b/src/patches/patch_charge_mana_can_activate.pl
@@ -3,6 +3,8 @@
# Updates Magic.exe in-place.
# 1. Always sends EVENT_CAN_ACTIVATE when manually drawing mana during charge_mana(), rather than assuming tapped permanents and summoning-sick creatures can
# never activate, and (otherwise) lands always can.
+# 2. Allows cards flagged both EA_MANA_SOURCE and EA_ACT_ABILITY to be activated whenever one with just EA_MANA_SOURCE can, by essentially gutting
+# is_mana_source_but_not_act_ability().
use strict;
use warnings;
@@ -29,6 +31,7 @@ patch("Magic.exe", 0x42e913,
################################
# Skip check against TYPE_LAND #
################################
+# Previous contents:
#42e9b9: 8b 45 f0 mov eax, dword [ebp-0x10] ; eax = iid
#42e9bc: c1 e0 03 shl eax, 0x3 ; eax <<= 3
#42e9bf: 8a 8c c0 38 70 7e 00 mov cl, byte [eax+eax*8+0x7e7038] ; cl = cards_data[iid].type
@@ -39,3 +42,13 @@ patch("Magic.exe", 0x42e913,
patch(0x42e9b9,
"eb 10", # jmp 0x42e9cb
0x90);
+
+###################################################################################################
+# Allow cards flagged both mana-source and act-ability to be activated whenever a mana-source can #
+###################################################################################################
+# Previous contents:
+#435c58: f6 84 c0 4c 70 7e 00 01 test byte [eax+eax*8+0x7e704c], 0x1 ; if (cards_data[iid].extra_ability & EA_ACT_ABILITY
+#435c60: 74 02 je 0x435c64 ; == 0) goto 0x435c64
+patch(0x435c58,
+ "eb 0a", # jmp 0x435c64
+ (0x90) x 6);
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Gargaroz
- Programmer
- Posts: 7097
- Joined: 06 Nov 2009, 11:11
- Has thanked: 82 times
- Been thanked: 595 times
Re: [wait news from devs]Quicksand can't be activated when..
by Korath » 31 Jul 2014, 03:38
The bug that was put in to fix.
is_mana_source_but_not_act_ability() is called from dispatch_event_to_single_card() and two places in sub_475A30() (which is part of the user interface). I suspect, based on absolutely no evidence whatsoever, that we'll need to call something equivalent to the current (changed) version from the former, and something equivalent to the old version from the latter.
is_mana_source_but_not_act_ability() is called from dispatch_event_to_single_card() and two places in sub_475A30() (which is part of the user interface). I suspect, based on absolutely no evidence whatsoever, that we'll need to call something equivalent to the current (changed) version from the former, and something equivalent to the old version from the latter.
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
20 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 16 guests