Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Utilities
DOTP2013 Card generator
Moderator: CCGHQ Admins
Re: DOTP2013 Card generator (update 9/11/2021)
by pcastellazzi » 11 Sep 2012, 19:04
I made some new additions to this project of mine.
Changes:
The code is now public. You may find it at https://bitbucket.org/pcastellazzi/dotp-2013-card-generator.
Changes:
- Better UI, support for copying, a text view, and a pop up view of the code. It makes a lot easier to copy the generated text to your favorite text editor.
- New XML generator. It generates better code properly formatted.
- New supported abilities. Infect, Swampwalk.
The code is now public. You may find it at https://bitbucket.org/pcastellazzi/dotp-2013-card-generator.
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
— Ben Kuchera, Mordern Warfare 3 review.
-
pcastellazzi - Posts: 184
- Joined: 25 Apr 2012, 00:40
- Location: Montevideo, Uruguay
- Has thanked: 11 times
- Been thanked: 30 times
Re: DOTP2013 Card generator
by sadlyblue » 11 Sep 2012, 21:19
Your are years ahead of us: "(update 9/11/2021)"
On a serious note, great job.
I haven't had the time to start coding yet. A little busy.
But i'm sure your project would be a great help.
On a serious note, great job.
I haven't had the time to start coding yet. A little busy.
But i'm sure your project would be a great help.
Re: DOTP2013 Card generator
by Persee » 06 Oct 2012, 13:53
I have a lot of issues with accents. The card isn't recognized by the game.
I use notepad ++ for coding.
Any idea ?
Edit : Issues solved : I convert file into UTF-8 code then into ANSI code with notepad++.
I use notepad ++ for coding.
Any idea ?
Edit : Issues solved : I convert file into UTF-8 code then into ANSI code with notepad++.
Re: DOTP2013 Card generator
by pcastellazzi » 07 Oct 2012, 02:23
I updated the XML declaration to make this more clear.Persee wrote:I have a lot of issues with accents. The card isn't recognized by the game.
I use notepad ++ for coding.
Any idea ?
Edit : Issues solved : I convert file into UTF-8 code then into ANSI code with notepad++.
In notedpad++ you can change the default encoding for new files in Settings -> New Document/Default Directory -> Encoding. Personally i use UTF-8 without BOM with the option "Apply to opened ANSI files" enabled.
UTF-8 without BOM is the encoding used by the core files. This is why the generator use it.
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
— Ben Kuchera, Mordern Warfare 3 review.
-
pcastellazzi - Posts: 184
- Joined: 25 Apr 2012, 00:40
- Location: Montevideo, Uruguay
- Has thanked: 11 times
- Been thanked: 30 times
Re: DOTP2013 Card generator
by Persee » 07 Oct 2012, 04:24
You're right, ANSI doesn't work.
I'll use your tip. Thx
I'll use your tip. Thx
Re: DOTP2013 Card generator
by Persee » 15 Oct 2012, 08:08
I have a Internal Server Error when I search for Windswept Heath. But it works with the multiverseid.
Re: DOTP2013 Card generator
by pcastellazzi » 15 Oct 2012, 16:40
From here seems to be working ok. Can you please try again and let me know?Persee wrote:I have a Internal Server Error when I search for Windswept Heath. But it works with the multiverseid.
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
— Ben Kuchera, Mordern Warfare 3 review.
-
pcastellazzi - Posts: 184
- Joined: 25 Apr 2012, 00:40
- Location: Montevideo, Uruguay
- Has thanked: 11 times
- Been thanked: 30 times
Re: DOTP2013 Card generator
by thefiremind » 02 Feb 2013, 21:04
I'm using this web app for the Japanese text in Gatecrash because somehow magiccards.info didn't add the Japanese versions of the new cards (yet), and I noticed a little bug in the Japanese flavour text: when there's the classic bracketed sentence + author of the sentence, the first bracket gets duplicated, and the author's name isn't retrieved.
For example, Mystic Genesis (ID 366401) gives this Japanese flavour text:
For example, Mystic Genesis (ID 366401) gives this Japanese flavour text:
- Code: Select all
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「「シミック連合はヘドロ溜まりから好きなものを育てることができる。彼らがゴルガリ団と手を結ばないことを望むしかないわね。」――オルゾフの大特使、テイサ・カルロフ」
――]]></LOCALISED_TEXT>
- Code: Select all
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「シミック連合はヘドロ溜まりから好きなものを育てることができる。彼らがゴルガリ団と手を結ばないことを望むしかないわね。」
――オルゾフの大特使、テイサ・カルロフ></LOCALISED_TEXT>
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
- Amphok
- Posts: 7
- Joined: 25 Feb 2013, 16:42
- Has thanked: 0 time
- Been thanked: 0 time
40 posts
• Page 3 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 6 guests