It is currently 27 Apr 2024, 21:38
   
Text Size

Manalink update 2009-03-17, codename "I'm seeing red"

The latest Manalink updates are posted here.
PLEASE DO NOT BUMP OLD UPDATES!

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

Manalink update 2009-03-17, codename "I'm seeing red"

Postby LoneFox » 17 Mar 2009, 18:50

Download link: http://www.savefile.com/files/2044566

New cards:
The CIP abilities suffer from the same cancel problem as Man-o'-War does.

Fixed:
  • Balduvian Horde (Converted to C, now dies if you don't discard.)
  • Merrow Reejerey (Converted to C and added its second ability. For some reason the AI does not use it, so it may still need something...)
  • Ohran Viper (Fixed copy-paste error in rules text)
  • Sol'kanar the Swamp King (Triggered ability is now compulsory. Also, there were two ID's assigned to this card in the csv. I reused the inactive one for Goblin Lore to prevent it from causing confusion.)
  • Vodalian Knights (Converted to C. Both islandhome and activated ability work)

Other:
  • Lots of new C API, used by cards mentioned above.
  • Flavor text script has been run again, and now it also fixes dash characters on card type to long ones like in real cards.
  • Disciple of the Vault has been disabled. I didn't need to do anything to it, jatill had disabled it but forgot to run csv2dat before releasing.


LoneFox
Programmer
 
Posts: 71
Joined: 08 Mar 2009, 13:43
Has thanked: 0 time
Been thanked: 7 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby jatill » 17 Mar 2009, 19:58

Nice update, especially the fix to Reejery. One of my goals for the week is to add the extra ability onto cloudgoat ranger as well as fix lightning helix).
Would you do us one more favor, and list which functions you added, and then add them to the API on the wiki?
Much thanks.

Oh, and before I forget... how tough would it be to update your flavor text script to only append flavor text when it won't make the card type line unreadable? I'm all for flavor text, just not when it gets in the way of the functional text.
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby LoneFox » 17 Mar 2009, 20:42

jatill wrote:Would you do us one more favor, and list which functions you added, and then add them to the API on the wiki?
Much thanks.
I'll do that tomorrow. Now I'm too tired to do anything useful.

jatill wrote:Oh, and before I forget... how tough would it be to update your flavor text script to only append flavor text when it won't make the card type line unreadable? I'm all for flavor text, just not when it gets in the way of the functional text.
"Expand text box" can be turned off from right-click menu...
Of course it could count the total length of rules text + flavor text and not add flavor if that total is longer than some limit. It wouldn't very accurate, because the font has variable width.
BTW, would it be a good idea to update rules text from oracle as well? It would clean up a lot of inconsistencies and typos, and save time when making new cards, but some oracle texts don't make sense at all when using these old rules...
LoneFox
Programmer
 
Posts: 71
Joined: 08 Mar 2009, 13:43
Has thanked: 0 time
Been thanked: 7 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby Snacko » 17 Mar 2009, 21:32

I included all my changes and the extra structures / enums.
I'm posting it in here as no cards were added just source changed and recoded ecoded has_creature_type.asm to C with the new structures
Will copy it to wiki later on.

Download Link: http://www.mediafire.com/download.php?zmnmmvlaz3j
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby HarryPitfall » 17 Mar 2009, 21:41

Snacko, your version didn't compile anymore... the version on first post compiles normally...
I get errors about _packed_ and invalid tokens before a *
HarryPitfall
AI Programmer
 
Posts: 175
Joined: 31 May 2008, 00:14
Has thanked: 1 time
Been thanked: 3 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby Snacko » 17 Mar 2009, 21:47

Do you have a full gcc package with inttypes.h ? Most likely you should have a full gcc package as who knows if any other headers will come in handy (most likely not anymore). The header comes with mingwrt-3.15.2-mingw32-dev.tar.gz but depends on other headers from the package too.
It allows for a more fine grain of categorising integer types.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby jatill » 17 Mar 2009, 21:56

LoneFox wrote:BTW, would it be a good idea to update rules text from oracle as well? It would clean up a lot of inconsistencies and typos, and save time when making new cards, but some oracle texts don't make sense at all when using these old rules...
I wouldn't do this quite yet. As you mention, a lot of cards don't actually behave according to their oracle text (especially concecrate land). Also, cards we add that aren't 100%, like Progenitus, need special text to explain how they actually work.

Now if the new core set changes terminology as much as it's rumored to, there's a whole other discussion to be had.
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby HarryPitfall » 17 Mar 2009, 22:32

Even with the headers, I'm getting this error when compile:

functions/has_creature_type.o(.text+0x26):has_creature_type.c: undefined reference to `memcpy'
make: *** [manalink] Error 1
HarryPitfall
AI Programmer
 
Posts: 175
Joined: 31 May 2008, 00:14
Has thanked: 1 time
Been thanked: 3 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby Snacko » 18 Mar 2009, 11:11

Your version of gcc is assembling the byte moves to memcopys which is kind of bad performance wise but you can still link it just fine.
Add
Code: Select all
_memcpy = 0x4D5280;
to manalink.lds
Last edited by Snacko on 18 Mar 2009, 12:36, edited 1 time in total.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby jatill » 18 Mar 2009, 12:29

Snacko wrote:Your version of gcc is assembling the byte moves to memcopys which is kind of bad performance wise but you can still link it just fine.
Add
Code: Select all
_memcpy= 004D5280;
to manalink.lds
Adding that gives me a syntax error on that line. I changed 00 to 0x and still there error.
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby Snacko » 18 Mar 2009, 12:39

Yes it should be 0x instead of 00 copied the value without thinking.
It shouldn't give any errors. Post the actual error you're getting.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby jatill » 18 Mar 2009, 12:49

Snacko wrote:Yes it should be 0x instead of 00 copied the value without thinking.
It shouldn't give any errors. Post the actual error you're getting.
Wow, C is picky. Changing mem= to mem = fixed the error. Also, I had to delete has_creature_type.asm.
Can someone point me to math's update?
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby Snacko » 18 Mar 2009, 13:03

There isn't has_creature_type.asm don't include old files.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby jatill » 18 Mar 2009, 14:02

I don't know if this would help anyone else, but I created build.pl that you can pass a card name into and it'll auto update manalink.asm, run make, and copy the dll. I'll include it in the next release unless someone wants it sooner.
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Manalink update 2009-03-17, codename "I'm seeing red"

Postby aww1979 » 18 Mar 2009, 14:33

I'm not able to see the new cards. I unzipped to magic/program directory.

For Meerow Reejeray, perhaps the reason the AI won't use its twiddle ability has something to do with the Meerow text saying 'tap or untap target permanent when I put my cursor over the name in your post'. This cannot possibly be correct, since an enchantment has never been tapped in the history of magic, with the exception of Copy Artifact, and maybe some weird new ones I've never seen.
aww1979
Tester
 
Posts: 1717
Joined: 03 Mar 2009, 19:36
Has thanked: 0 time
Been thanked: 2 times

Next

Return to Patches

Who is online

Users browsing this forum: No registered users and 43 guests


Who is online

In total there are 43 users online :: 0 registered, 0 hidden and 43 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 43 guests

Login Form