It is currently 24 Jun 2019, 17:19
   
Text Size

Manalink BETA update : 2000 limit NO MORE !

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

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

Manalink BETA update : 2000 limit NO MORE !

Postby Gargaroz » 01 Jan 2012, 15:59

And now, for something completely different... The "2000 limit no more" Manalink version ! No, seriously, this is only a "beta" release, everything seems fine, but we still need to test it. In fact, please backup your original Magic folder, just in case something goes wrong.
As Mok reported in the development subforum, our original hopes for a version with 30.000 slots is undoable as now, but we still have this version, which has 16384 (!) slots, which are more that the actually existing magic cards and will suffice for some years of new expansions.

There are some changes in the standard Deckbuilder (new symbols available for Phyrexian mana, XX and more), but the greatest changes are in the way we'll have to edit this version from now on. Unfortunately, the classic SkyMagic editor cannot read correcyly the "exe" part of the new executable, so in this version you'll find a new folder called "magic_updater", in which there are the CSV (in both Excel and CSV version) and another file called "ct_all" (this too in Excel and CSV) that host all the data of the Exe part, which finally undisclose many of the mysteries linked to the infamous "Reserved infos".
So, if you want to change something, just modify the CSV files (or edit their Excel counterparts and then convert them to CSV), doubleclick on the "Magic_updater.bat" and copy to the main Magic directory the files you'll find in the "updated_files" folder. If something goes wrong, check the "ERRORS.txt" (there's everytime something in there, but usually are only harmless differences). You'll notice a new file that is created every time, "cards_id.h" : it's an enumerator file used by the C functions to get the ID of specific files without parsing the entire CSV.

Now, for more infos about the changes, here's directly Mok (aka The Genius) for you :

Manalink.csv is changed a bit. There's a new column that contains text representation of card casting cost. The old "calculated" mana cost was not suitable for many newer cards and things like |X|X|1.

The rest of the file is a bit moved around.

In the first columns, I left the things necessary for the card to work (this ends at legacy effect texts).

Unless you use them in C code, the majority of AI_* columns are *ONLY* used by the non-working sealed deck construction code and are now moved after the important data. These don't need to be filled at all for the card to work, but might be needed if you ever get the original sealed deck part fixed/upgraded. Mana Source Colors isn't used by other code either, but I left it in the "important" side, as it should be used, instead of the lame hardcoded stuff in the original engine.

After these, there's 10 columns of data used only by the deck builder. DB_CardType2, NumOfDBAbilities, and DBAbilities 1-8. These are no longer stored in cards.dat but more about it later.

And at the end, theres 104 columns with expansion rarity. Yes, it's a lot of useless/obsolete "expansions" but since we don't care about a few bytes of memory and all the cards are already filled, there was no need to get rid of them and it made it much easier to convert from gatherer dump. The only expansions that are gone are unhinged and unglued. Promo rarity is at the very end.

csv2dat.exe will now dump 3 .dat files. Cards.dat with the usual stuff, dbinfo.dat with the 10 columns for deck builder and rarity.dat with the expansion rarity. I modified deck builder to load dbinfo.dat already but rarity.dat is currently not used at all. It's format is very simple: it starts with a long int containing the number of cards, then a long int with number of expansions, and then raw data for all cards. Each expansion takes 3 bits, so to calculate the amount of bytes each card uses, you count (number_of_expansions*3+7)/8. I hope it will be usuful for the main code but so far, it's just that, an extra file. The 3-bit rarity is currently defined like this:
NONE = 0
COMMON = 1
UNCOMMON = 2
RARE = 3
MYTHIC = 4
LAND = 5
SPECIAL = 6
value 7 is unused. To get card's original expansion you can simply look for a first non-zero byte and from that get the expansion position. A couple of cards do not have any expansions set though (like goblin tutor, and probably that card from the unreleased expansion, and the data/empty stuff).

There's now 7 extra columns before old Subtype1 and Subtype2. These are new and incompatible with the old subtypes. Originally I planned only to expand old subtypes, but that would only prolong the bugs in the current code like treating other types/subtypes like creature types whenever a card is animated and so on. The "new" definition is in file "stypes.h". The old subtypes are unchanged and currently no code uses new types at all (except deckbuilder to find artifact creatures as you removed creature subtype from artifacts in your versions which was used by the db).

Ok, let's test this !

http://www.mediafire.com/?1h58d4zkvf58x3q

---- BUGS FIXED / IMPROVEMENTS / CARDS RECODED ----
* Fixed code for Consuming Vapors.
* Fixed code and activation cost for Cellar's Door.
* Fixed code for Blazing Torch.
* Fixed code for Dragon Arch
* Fixed code for Memory's Journey
* Fixed code for Angelic Overseer.
* Fixed code for Shriekhorn.
* Fixed code for Gutter Grime.
* Fixed crashing due to Adaptive Automaton when Ai plays it.
* Fixed code for Garruk Relentless.
* Fixed code for Creepy Doll.
* Fixed code for Tree of Redemption.
* Fixed code for Kiln Walker.
* Fixed code for Gaea's Blessing.
* Fixed code for Time Reversal.
* Fixed subtype for tokens of Conqueror's Pledge and Nomads' Assembly.
* Fixed code for Angelic Destiny and Rancor.
* Fixed code for Myr Propagator.
* Fixed code for Elder of Laurels.
* Fixed code for Mortis Dogs.
* Fixed code for Life's Finale.
* Fixed code for Nezumi Shortfag / Stabwhisker the Odious.
* Fixed the interaction between Kozilek's Predator, Nest Invader and Acidic Slime with Torpor Orb.
* Fixed code for Apostle's Blessing.
* Fixed code for Trepanation Blade.
* Fixed code for Ghoulcaller's Chant.
* Fixed code for Sphere of the Suns.
* Fixed code for Oona's Blackguard.
* Fixed code for Cloistered Youth / Unholy Fiend
* Fixed interaction between Phantasmal Image and Fiend Hunter / Faceless Butcher.
* Fixed "false targeting" bug when a Phantasmal Image try to copy another Phantasmal Image.
* Fixed code for Kessig Cagebreakers.
----
- 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: 7095
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 593 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Kalki50 » 01 Jan 2012, 17:18

I installed this beta but it won't start. Are there any specific installation instructions? I simply extracted the zipped folder and tried to execute the "Magic" application file. Should the game run that way or am I missing something?
Kalki50
 
Posts: 19
Joined: 02 Apr 2011, 02:40
Has thanked: 0 time
Been thanked: 0 time

Re: Manalink BETA update : 2000 limit NO MORE !

Postby muaddib » 01 Jan 2012, 17:49

I am joining, error is occuring when executing Magic.exe.
User avatar
muaddib
Tester
 
Posts: 111
Joined: 03 Mar 2011, 08:37
Location: Russia
Has thanked: 0 time
Been thanked: 0 time

Re: Manalink BETA update : 2000 limit NO MORE !

Postby gmzombie » 01 Jan 2012, 19:05

i got the game to load up fine but what i did notice is snackos mod on the cardartlib.dll isnt included into this. it is still using the old version or are we still in the test phase for that dll?
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Aswan jaguar » 01 Jan 2012, 21:42

Found bugs about cards should be posted in the usual bug forum or here(beta release)? of course we should concentrate on big problems.
Thinks look really good and the gameplay is faster.


Edit.All creatures with infect have also banding.
---
Just playtesting.
User avatar
Aswan jaguar
Super Tester
 
Posts: 6324
Joined: 13 May 2010, 12:17
Has thanked: 532 times
Been thanked: 274 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Mok » 01 Jan 2012, 22:17

Kalki50 wrote:I installed this beta but it won't start. Are there any specific installation instructions? I simply extracted the zipped folder and tried to execute the "Magic" application file. Should the game run that way or am I missing something?
Any specifics? What kind of error, what kind of system?
gmzombie wrote:got the game to load up fine but what i did notice is snackos mod on the cardartlib.dll isnt included into this. it is still using the old version or are we still in the test phase for that dll?
That's because snacko's mod is not necessary. If you want to use it, install it and use. I have problems on my system with accented characters in filenames (especially the AE sign), so it's a no-go here. But it doesn't mean you shouldn't just replace the cardartlib.dll with the mod, it's a simple image cache, doesn't really matter which one you'll use.

Edit: Just a reminder, that there will be problems with things that worked fine before. This update was made by merging several different patches and some things might have ended taken from a "wrong" side :)
Mok
Programmer
 
Posts: 163
Joined: 23 Nov 2011, 14:28
Has thanked: 1 time
Been thanked: 61 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby gmzombie » 01 Jan 2012, 22:29

yup i got snackos mod to work and this is great!
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Kalki50 » 01 Jan 2012, 22:41

Sorry. Windows 7, 64 bit.
Kalki50
 
Posts: 19
Joined: 02 Apr 2011, 02:40
Has thanked: 0 time
Been thanked: 0 time

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Kalki50 » 01 Jan 2012, 22:43

"Application was unable to start correctly (0xc0000142)"
Kalki50
 
Posts: 19
Joined: 02 Apr 2011, 02:40
Has thanked: 0 time
Been thanked: 0 time

Re: Manalink BETA update : 2000 limit NO MORE !

Postby gmzombie » 01 Jan 2012, 22:49

i can already tell you that your missing something. usually that code comes up if your missing some artwork i think but i havent ran it in windows 7 before esp. 64bit edition
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Mok » 02 Jan 2012, 00:00

Kalki50 wrote:"Application was unable to start correctly (0xc0000142)"
Hm. This seems like a typical error when some dll is missing. Are you sure you unpacked the files over an older version of manalink (that worked before)? I have indeed added another dependency to the game, which is gdiplus (used now to draw a couple of things like mana symbols) but I believe it's preinstalled on both vista and w7. I have no access to w7 64-bit machine but I will try it on vista 64-bit tomorrow.
Mok
Programmer
 
Posts: 163
Joined: 23 Nov 2011, 14:28
Has thanked: 1 time
Been thanked: 61 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Snacko » 02 Jan 2012, 00:22

There's a problem with Æ in cards.dat. It didn't get encoded as 198 according to western latin1 code page, but was converted to ? character (63).
There's also a problem with my dll not reading those files, but I fixed that and will upload an update.
Unicode filenames are supported on NTFS and FAT32 volumes so there's no way you can't have those.

Edit: It was and error in csv files.
However Æ gets replaced with A in all names during conversion.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 73 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Mok » 02 Jan 2012, 00:46

Snacko wrote:There's a problem with Æ in cards.dat. It didn't get encoded as 198 according to western latin1 code page, but was converted to ? character (63).
There's also a problem with my dll not reading those files, but I fixed that and will upload an update.
Unicode filenames are supported on NTFS and FAT32 volumes so there's no way you can't have those.

Edit: It was and error in csv files.
However Æ gets replaced with A in all names during conversion.
Ah. The possible reason might be that my codepage have a different character in place of AE. So it's possible that either .xls files that I originally sent to Gargaroz are already broken, or it broke when converting to .csv on an old version of Excel that he uses. Unfortunately for reasons unknown he removed my simple batch converter that was doing the work automatically, but can anyone load the .xls file into excel and see if it displays AE symbol correctly? Then save it to csv and check how it looks then? If it's broken in .xls, then a simple solution is just find/replace the character that shows in place of AE with real AE. I believe only uppercase versions are used so it shouldn't be a problem.
Mok
Programmer
 
Posts: 163
Joined: 23 Nov 2011, 14:28
Has thanked: 1 time
Been thanked: 61 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Gargaroz » 02 Jan 2012, 01:03

As for the bugs, post them in the usual forum, but please specify if you're using the beta patch.
----
- 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: 7095
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 593 times

Re: Manalink BETA update : 2000 limit NO MORE !

Postby Sonic » 02 Jan 2012, 01:14

Mok wrote:Unfortunately for reasons unknown he removed my simple batch converter that was doing the work automatically, but can anyone load the .xls file into excel and see if it displays AE symbol correctly? Then save it to csv and check how it looks then? If it's broken in .xls, then a simple solution is just find/replace the character that shows in place of AE with real AE. I believe only uppercase versions are used so it shouldn't be a problem.
According to both the Manalink.xls and the ct_all.xls all instances of the Æ character has been replaced with Ć. Similarly, û in Lim-Dûl has been replaced with ű and à in Déjà Vu by ŕ.
Working On: Life, the Universe, and Everything.
User avatar
Sonic
Apprentice
 
Posts: 827
Joined: 27 Feb 2010, 00:37
Has thanked: 3 times
Been thanked: 160 times

Next

Return to Patches

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 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 1 guest

Login Form