|
|
| Author |
Message |
snotRag
Joined: 11 Apr 2007 Posts: 1
|
Posted: Wed Apr 11, 2007 8:47 am Post subject: Format of .dec file? |
|
|
hi,
does anyone know the format of the .dec files? i'd like to parse them...
thanks |
|
| Back to top |
|
 |
kfcman
Joined: 16 Sep 2006 Posts: 492
|
Posted: Wed Apr 11, 2007 8:37 pm Post subject: |
|
|
ummm guy.... .dec files are Dec files
unless im misuderstanding what you mean by format |
|
| Back to top |
|
 |
Laplie League Staff
Joined: 31 Aug 2004 Posts: 528
|
Posted: Wed Apr 11, 2007 9:05 pm Post subject: |
|
|
| I think the format of the deckfiles is pretty obvious if you just look at them (in notepad or your favorite text editor). Comments/headings begin with "//". Otherwise its just the quantity of the card followed by the card name. |
|
| Back to top |
|
 |
Jorbes
Joined: 14 Feb 2006 Posts: 187 Location: Netherland
|
Posted: Thu Apr 12, 2007 5:04 am Post subject: |
|
|
I think he means the binary versions, not the plain text ones, as they are too simple
I have the code to parse them in pascal, i can post it here if you need it.
edit: LIES LIES LIES!! I can't post it, but I can link to it! 
Last edited by Jorbes on Fri Aug 10, 2007 1:51 am; edited 1 time in total |
|
| Back to top |
|
 |
karthic
Joined: 09 Aug 2007 Posts: 2
|
Posted: Thu Aug 09, 2007 4:10 pm Post subject: |
|
|
would you please post that code?
i'm also trying to read the dec file format, and having problems
thanks |
|
| Back to top |
|
 |
Jorbes
Joined: 14 Feb 2006 Posts: 187 Location: Netherland
|
Posted: Fri Aug 10, 2007 1:50 am Post subject: |
|
|
| karthic wrote: | would you please post that code?
i'm also trying to read the dec file format, and having problems
thanks |
Uhm, I can't really _post_ the code, cause it's spread over 2 pascal units, but I'll try to remember to put up a link here to those 2 files (packed in .zip)
If it's not here by this weekend, PM me on the site or irc (jb^3) |
|
| Back to top |
|
 |
Jorbes
Joined: 14 Feb 2006 Posts: 187 Location: Netherland
|
|
| Back to top |
|
 |
karthic
Joined: 09 Aug 2007 Posts: 2
|
Posted: Fri Aug 10, 2007 10:38 am Post subject: |
|
|
your awsome,..
also, do you know how to read the .trd file
or cards.dat?
i'm tryin to make a new feature for my website
www.mtgostats.com
thanks so much |
|
| Back to top |
|
 |
Jorbes
Joined: 14 Feb 2006 Posts: 187 Location: Netherland
|
Posted: Fri Aug 10, 2007 4:20 pm Post subject: |
|
|
| karthic wrote: | your awsome,..
also, do you know how to read the .trd file
or cards.dat?
i'm tryin to make a new feature for my website
www.mtgostats.com
thanks so much |
nope, btw, i did not write that code, it came straight from the guy that wrote apprentice.
good luck! |
|
| Back to top |
|
 |
|