It is currently 25 Apr 2024, 07:15
   
Text Size

2000 cards limit

Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!

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

Re: 2000 cards limit

Postby 0rion79 » 11 Dec 2011, 07:28

replied in the CSV thread.
User avatar
0rion79
 
Posts: 1520
Joined: 24 Feb 2009, 18:33
Location: Italy
Has thanked: 94 times
Been thanked: 61 times

Re: 2000 cards limit

Postby stassy » 11 Dec 2011, 09:41

I use Excel 2003 myself - but for the manalink.csv I now use Open Office Calc, which is free for personal use.
Isn't Open Office no longer supported? I though the big switch was to Libre Office...
stassy
Moderator
 
Posts: 5274
Joined: 25 Feb 2009, 07:06
Has thanked: 471 times
Been thanked: 337 times

Re: 2000 cards limit

Postby 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.
Mok
Programmer
 
Posts: 163
Joined: 23 Nov 2011, 14:28
Has thanked: 1 time
Been thanked: 61 times

Re: 2000 cards limit

Postby 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
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: 2000 cards limit

Postby jatill » 14 Dec 2011, 15:58

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.
That was so we didn't have to look in a different file for each card. We threw everything into groups by color instead.
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: 2000 cards limit

Postby 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.
Dave
 
Posts: 97
Joined: 09 Jan 2010, 13:30
Has thanked: 16 times
Been thanked: 14 times

Re: 2000 cards limit

Postby 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
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: 2000 cards limit

Postby 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.
gmzombie
 
Posts: 857
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 200 times
Been thanked: 51 times

Re: 2000 cards limit

Postby Mok » 20 Dec 2011, 22:36

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?
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...
Mok
Programmer
 
Posts: 163
Joined: 23 Nov 2011, 14:28
Has thanked: 1 time
Been thanked: 61 times

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 35 guests


Who is online

In total there are 35 users online :: 0 registered, 0 hidden and 35 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 35 guests

Login Form