2000 cards limit
Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!
PLEASE DO NOT REPORT BUGS HERE!
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
Re: 2000 cards limit
by stassy » 11 Dec 2011, 09:41
Isn't Open Office no longer supported? I though the big switch was to Libre Office...I use Excel 2003 myself - but for the manalink.csv I now use Open Office Calc, which is free for personal use.
- stassy
- Moderator
- Posts: 5274
- Joined: 25 Feb 2009, 07:06
- Has thanked: 471 times
- Been thanked: 337 times
Re: 2000 cards limit
by Mok » 11 Dec 2011, 17:04
I'm currently playing a bit with card_data_t and noticed that there are cards recoded in C and yet not enabled, but versions in manalinkex.dll are used instead. Why is that? Are these broken? Examples: Gorilla Titan, Kami of the Crescent Moon etc.
Re: 2000 cards limit
by Gargaroz » 12 Dec 2011, 01:25
Dunno, but we have recoded some basic cards to work with the "rules expansion" we added (this is true for most of the card that "boost subtypes" or deals with +1/+1 counters. Check "recoded_cards.c", and don't mind strange stuff like Fire Elemental or Craw Wurm, I just injected some code for using them as tokens, but with the new limit we don't need that new code anymore.
----
- 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: 2000 cards limit
by jatill » 14 Dec 2011, 15:58
That was so we didn't have to look in a different file for each card. We threw everything into groups by color instead.Mok wrote:I'm currently playing a bit with card_data_t and noticed that there are cards recoded in C and yet not enabled, but versions in manalinkex.dll are used instead. Why is that? Are these broken? Examples: Gorilla Titan, Kami of the Crescent Moon etc.
Apps by jatill: http://www.slightlymagic.net/wiki/Other_Apps_by_jatill
Re: 2000 cards limit
by Dave » 19 Dec 2011, 17:44
I know you people are almost ready breaking this 2000-limit. But i have another question for Mok, since it could help overcome the next limit (in 20 years from now)
Is it possible to separate the deckbuilder from duel play?
The only reason i can see to include all cards, would be the deckbuilder. But a deckbuilder needs no AI and can be made from scratch (and still look like the old deckbuilder) with a lot more search-options (like http://magiccards.info). Its only purpose would be generating a .dck file with the rigth card-id's.
For sealed deck play you could still use the old deckbuilder.
Duel play should only load the cards from the chosen decks in the 2k-array (or 30k-array by now). That way you never encounter another limit (except for decks with combined 2000+/30000+ cards....). Maybe it can be done too for the subtypes. Then that array (if it is an array) doesn't need expanding either.
Since the arrays will stay small in which the AI has to search, the computer needs no extra time in calculating his moves.
Is it possible to separate the deckbuilder from duel play?
The only reason i can see to include all cards, would be the deckbuilder. But a deckbuilder needs no AI and can be made from scratch (and still look like the old deckbuilder) with a lot more search-options (like http://magiccards.info). Its only purpose would be generating a .dck file with the rigth card-id's.
For sealed deck play you could still use the old deckbuilder.
Duel play should only load the cards from the chosen decks in the 2k-array (or 30k-array by now). That way you never encounter another limit (except for decks with combined 2000+/30000+ cards....). Maybe it can be done too for the subtypes. Then that array (if it is an array) doesn't need expanding either.
Since the arrays will stay small in which the AI has to search, the computer needs no extra time in calculating his moves.
Re: 2000 cards limit
by Gargaroz » 20 Dec 2011, 18:01
Ok, the code is cleaned from "magic numbers" and "get_id_by_name" and similar, so as we got the final CSV, the testing could enter the final stage.
----
- 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: 2000 cards limit
by gmzombie » 20 Dec 2011, 18:07
Awesome man good job. Very excited to see the development come along
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.
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: 857
- Joined: 26 Feb 2009, 01:05
- Location: Wyoming, Mi
- Has thanked: 200 times
- Been thanked: 51 times
Re: 2000 cards limit
by Mok » 20 Dec 2011, 22:36
Hm. I don't think deckbuilder can be easily separated but why bother? You can just write a replacement. This requires new db to reside in dll and export a couple of functions (and import and use a few from the calling application), that shouldn't be hard to implement to be honest. Besides, new limit? MtG exists for almost 20 years and they managed to create ~12000 cards...Dave wrote:I know you people are almost ready breaking this 2000-limit. But i have another question for Mok, since it could help overcome the next limit (in 20 years from now)
Is it possible to separate the deckbuilder from duel play?
Who is online
Users browsing this forum: No registered users and 28 guests