Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Documentation



General XML/LUA Editing Findings
Moderator: CCGHQ Admins
Re: General XML/LUA Editing Findings
by Epiphany » 13 Jul 2010, 17:20
Good point! I forgot it's meant to be a counter.
But still it should've worked shouldn't it? Regardless of whether it's a -1/-1 counter or just -1/-1?
Thanks though, mate!
But still it should've worked shouldn't it? Regardless of whether it's a -1/-1 counter or just -1/-1?
Thanks though, mate!
-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Yanna » 13 Jul 2010, 17:38
Sorry I must have missed that you posted the card limit before, it seems we're digging the same way with the code...Uresti wrote:well i posted about the 10th card limit few days ago...nobody read my posts!!
you can do that doing:Also there is an hidden method called GetconvertedManaCost. So you could possibly use this :
local TargetCardConvertedManaCost = Object():GetTargetCard:GetconvertedManaCost
Object():GetFilter():SetConvertedCostMin()
Can you share the method you used to extract the Variables and functions from the exe? i tried with and Hex when game came out without susses
The way i've found to have a peek at the exe is this :
- Download XVI32, it's a powerfull free hex editor (but if you have one you prefer that's the same)
- Search for a known string, like for example, Library_GetTop
You will be in the area where 'built-in' functions are indexed. It's just a matter of scanning the whole thing and check if some functions don't sound familiar... Like, Library_GetNth

France ^^ Yeah don't tell me about world cup we suck i knowEpiphany wrote:Oh ok, about to get some sleep but tomorrow I'll have a look at getting things more organised.
Where are you guys based by the way? Just wondering if our time zones ever match!

Back on topic, I'm about to have a working haunting echoes again, Thought the card is now much more complex (using 2 spell abilities and 2 triggered abilities, so 4 abilities). Right now it works perfect on me (


Re: General XML/LUA Editing Findings
by Epiphany » 13 Jul 2010, 17:43
Hehe, I'm actually English but have moved to Estonia. England didn't do much better than France! Except we didn't have to send anyone home.Yanna wrote:France ^^ Yeah don't tell me about world cup we suck i know
Back on topic, I'm about to have a working haunting echoes again, Thought the card is now much more complex (using 2 spell abilities and 2 triggered abilities, so 4 abilities). Right now it works perfect on me () and just removes opponent's graveyard cards... But It looks it's getting close.

I love France, which part are you in?
Good luck with the haunting echoes!

-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Uresti » 13 Jul 2010, 18:08
Anyone have tried to make a Silence ?
that simple code causes a crash in the game
<FILTER>
return GreenSpell() <----just trying with a color
</FILTER>
<EFFECT>
Subject():CantBePlayed()
</EFFECT>


that simple code causes a crash in the game
<FILTER>
return GreenSpell() <----just trying with a color
</FILTER>
<EFFECT>
Subject():CantBePlayed()
</EFFECT>
You dont know what suck is until you know FMF (Mexican Football Federation) those guys really sux!!France ^^ Yeah don't tell me about world cup we suck i know![]()

I dont think so. you are trying to ADD a negative value, besides it must be a counterBut still it should've worked shouldn't it? Regardless of whether it's a -1/-1 counter or just -1/-1?

- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Epiphany » 13 Jul 2010, 18:15
That sounds like a really tough one because I should imagine that effect can only really work as a static ability but instants can't be static. I'll have a play around with it later myself.Uresti wrote:Anyone have tried to make a Silence ?
that simple code causes a crash in the game
<FILTER>
return GreenSpell() <----just trying with a color
</FILTER>
<EFFECT>
Subject():CantBePlayed()
</EFFECT>
Oh well, it's working now anyways!I dont think so. you are trying to ADD a negative value, besides it must be a counter

-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Yanna » 13 Jul 2010, 19:17
Thanks, you must have brought me luck ! Because guess what ? It's done nowEpiphany wrote:Good luck with the haunting echoes!

Ok, there's two minor bugs but they shouldn't affect gameplay that much :
1°) You don't get to see opponent's hand. I didn't code it as it's already messy when it shows a whole deck of cards. Could be implemented thought
2°) Any land will skip the 'remove' thingy. Originally, only nonbasic lands should avoid the remove. This could be fixed with a better filter, but no luck so far...
On the bright side :
- You don't have to select cards anymore, it understands it has to remove everything in graveyard and corresponding in library.
- No matter how many cards need to be removed, it won't stop at 10... I just ran a test (with the annoyings Glimpse the Unthinkable and Traumatize) and sucessfully removed the AI's whole deck ^^
On my release page i'll put a code fix to turn haunting echoes into the real thing.
BTW, i've learned much with this. Now ability zones, forced_skip and triggers make more sense. We ought to write some things about how it all interacts !

Re: General XML/LUA Editing Findings
by Epiphany » 13 Jul 2010, 21:11
Which reminds me...
I forgot to mention, I've added this page http://www.slightlymagic.net/wiki/Duels ... neswalkers
and linked it from the front of the wiki too.
I forgot to mention, I've added this page http://www.slightlymagic.net/wiki/Duels ... neswalkers
and linked it from the front of the wiki too.
-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Huggybaby » 13 Jul 2010, 21:45
That looks awesome, thanks man!
-
Huggybaby - Administrator
- Posts: 3225
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 734 times
- Been thanked: 601 times
Re: General XML/LUA Editing Findings
by Uresti » 13 Jul 2010, 21:53
Awesome!!! congratz for your work!
- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Yanna » 13 Jul 2010, 22:33
Wow this is very nice ! Much appreciated, and thanks huggybaby (and the crew) for the hosting.
Dotp modding is entering a new age
Dotp modding is entering a new age


Re: General XML/LUA Editing Findings
by Uresti » 14 Jul 2010, 02:46
YEAH!!!!!!!!! i just finished Capsize now cards with buyback can be done, just one issue buyback cost cant be tracked for Memory Crystal purposes
APPLAUSE!!
APPLAUSE!!
- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Epiphany » 14 Jul 2010, 06:00
Woohoo! How's it done?Uresti wrote:YEAH!!!!!!!!! i just finished Capsize now cards with buyback can be done, just one issue buyback cost cant be tracked for Memory Crystal purposes
APPLAUSE!!



-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Uresti » 14 Jul 2010, 06:24
Sorry you must wait until my next release 

- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Huggybaby » 14 Jul 2010, 06:26
Now that's what I call showmanship. 

-
Huggybaby - Administrator
- Posts: 3225
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 734 times
- Been thanked: 601 times
Who is online
Users browsing this forum: No registered users and 1 guest