It is currently 27 Apr 2018, 06:46
   
Text Size

General XML/LUA Editing Findings

Moderators: Xander9009, CCGHQ Admins

Re: General XML/LUA Editing Findings

Postby 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!
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Yanna » 13 Jul 2010, 17:38

Uresti wrote:well i posted about the 10th card limit few days ago...nobody read my posts!! :cry:

Also there is an hidden method called GetconvertedManaCost. So you could possibly use this :
local TargetCardConvertedManaCost = Object():GetTargetCard:GetconvertedManaCost
you can do that doing:
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

Sorry I must have missed that you posted the card limit before, it seems we're digging the same way with the code...

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 :)

Epiphany 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! :)
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 ( :shock: ) and just removes opponent's graveyard cards... But It looks it's getting close.
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time

Re: General XML/LUA Editing Findings

Postby Epiphany » 13 Jul 2010, 17:43

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 ( :shock: ) and just removes opponent's graveyard cards... But It looks it's getting close.
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. ;)

I love France, which part are you in?

Good luck with the haunting echoes! :)
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby 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>

France ^^ Yeah don't tell me about world cup we suck i know :)
You dont know what suck is until you know FMF (Mexican Football Federation) those guys really sux!! :)
But still it should've worked shouldn't it? Regardless of whether it's a -1/-1 counter or just -1/-1?
I dont think so. you are trying to ADD a negative value, besides it must be a counter :)
Uresti
 
Posts: 151
Joined: 25 Jun 2010, 15:26
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Epiphany » 13 Jul 2010, 18:15

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>
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.
I dont think so. you are trying to ADD a negative value, besides it must be a counter :)
Oh well, it's working now anyways! :) Thanks for pointing it out to me.
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Yanna » 13 Jul 2010, 19:17

Epiphany wrote:Good luck with the haunting echoes! :)
Thanks, you must have brought me luck ! Because guess what ? It's done now :lol:

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 !
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time

Re: General XML/LUA Editing Findings

Postby Huggybaby » 13 Jul 2010, 20:52

WIKI! ;) :)
User avatar
Huggybaby
Administrator
 
Posts: 3065
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 566 times
Been thanked: 569 times

Re: General XML/LUA Editing Findings

Postby 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.
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Huggybaby » 13 Jul 2010, 21:45

That looks awesome, thanks man!
User avatar
Huggybaby
Administrator
 
Posts: 3065
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 566 times
Been thanked: 569 times

Re: General XML/LUA Editing Findings

Postby 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

Postby 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 :)
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time

Re: General XML/LUA Editing Findings

Postby 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!!
Uresti
 
Posts: 151
Joined: 25 Jun 2010, 15:26
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Epiphany » 14 Jul 2010, 06:00

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!!
Woohoo! How's it done? :) :) :)
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby 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

Postby Huggybaby » 14 Jul 2010, 06:26

Now that's what I call showmanship. :mrgreen:
User avatar
Huggybaby
Administrator
 
Posts: 3065
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 566 times
Been thanked: 569 times

PreviousNext

Return to Documentation

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form