It is currently 16 Apr 2024, 14:14
   
Text Size

DOTP2013 Card generator

Moderator: CCGHQ Admins

Re: DOTP2013 Card generator (update 9/11/2021)

Postby pcastellazzi » 11 Sep 2012, 19:04

I made some new additions to this project of mine.

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.
User avatar
pcastellazzi
 
Posts: 184
Joined: 25 Apr 2012, 00:40
Location: Montevideo, Uruguay
Has thanked: 11 times
Been thanked: 30 times

Re: DOTP2013 Card generator

Postby 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.
sadlyblue
 
Posts: 175
Joined: 06 Feb 2012, 13:18
Has thanked: 18 times
Been thanked: 16 times

Re: DOTP2013 Card generator

Postby 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++.
User avatar
Persee
 
Posts: 168
Joined: 02 Jun 2011, 08:33
Has thanked: 42 times
Been thanked: 24 times

Re: DOTP2013 Card generator

Postby pcastellazzi » 07 Oct 2012, 02:23

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++.
I updated the XML declaration to make this more clear.

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.
User avatar
pcastellazzi
 
Posts: 184
Joined: 25 Apr 2012, 00:40
Location: Montevideo, Uruguay
Has thanked: 11 times
Been thanked: 30 times

Re: DOTP2013 Card generator

Postby Persee » 07 Oct 2012, 04:24

You're right, ANSI doesn't work.

I'll use your tip. Thx
User avatar
Persee
 
Posts: 168
Joined: 02 Jun 2011, 08:33
Has thanked: 42 times
Been thanked: 24 times

Re: DOTP2013 Card generator

Postby Persee » 15 Oct 2012, 08:08

I have a Internal Server Error when I search for Windswept Heath. But it works with the multiverseid.
User avatar
Persee
 
Posts: 168
Joined: 02 Jun 2011, 08:33
Has thanked: 42 times
Been thanked: 24 times

Re: DOTP2013 Card generator

Postby pcastellazzi » 15 Oct 2012, 16:40

Persee wrote:I have a Internal Server Error when I search for Windswept Heath. But it works with the multiverseid.
From here seems to be working ok. Can you please try again and let me know?
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.
User avatar
pcastellazzi
 
Posts: 184
Joined: 25 Apr 2012, 00:40
Location: Montevideo, Uruguay
Has thanked: 11 times
Been thanked: 30 times

Re: DOTP2013 Card generator

Postby Persee » 16 Oct 2012, 05:45

It's ok now.
User avatar
Persee
 
Posts: 168
Joined: 02 Jun 2011, 08:33
Has thanked: 42 times
Been thanked: 24 times

Re: DOTP2013 Card generator

Postby 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:
Code: Select all
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「「シミック連合はヘドロ溜まりから好きなものを育てることができる。彼らがゴルガリ団と手を結ばないことを望むしかないわね。」――オルゾフの大特使、テイサ・カルロフ」
――]]></LOCALISED_TEXT>
...but it should be like this:
Code: Select all
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「シミック連合はヘドロ溜まりから好きなものを育てることができる。彼らがゴルガリ団と手を結ばないことを望むしかないわね。」
――オルゾフの大特使、テイサ・カルロフ></LOCALISED_TEXT>
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: DOTP2013 Card generator

Postby Amphok » 02 Mar 2013, 16:45

art associated via numbers doesn't work
Amphok
 
Posts: 7
Joined: 25 Feb 2013, 16:42
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to Utilities

Who is online

Users browsing this forum: No registered users and 11 guests


Who is online

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

Login Form