Card.getText()
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
20 posts
• Page 2 of 2 • 1, 2
Re: Card.getText()
by Sloth » 14 Sep 2010, 12:50
The new version works fine for me now.
The only thing that needs to be done:
Either delete all "no text" entries of Text:
or
replace "no text" with "" ingame.
The only thing that needs to be done:
Either delete all "no text" entries of Text:
or
replace "no text" with "" ingame.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card.getText()
by Chris H. » 14 Sep 2010, 12:56
`friarisol wrote:We should probably put a post up on the change so everyone is aware of the new format. And probably actually submit the new folder to the SVN. This will make mass-changes more difficult since devs can no longer just search through one file for a specific string.
I guess that it is possible that this could create more problems than it solves. I think we should go ahead and try it for awhile and see how it all turns out. We should be able to go back to the old system if we decide that this new system is too problematic.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Card.getText()
by Rob Cashwalker » 14 Sep 2010, 14:44
DOH!!! yeah, I did forget about those...The new version works fine for me now.
The only thing that needs to be done:
Either delete all "no text" entries of Text:
or
replace "no text" with "" ingame.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Card.getText()
by Chris H. » 14 Sep 2010, 15:42
I have updated my local copy to r2041. Forge as a jar file will launch fairly quickly and I am not noticing any additional lag.
Our total cards have 2501 different cards without any spellText in the text field. They display "no text" instead. This string is being displayed in the text panel of the deck editor and the battlefield.
ReadCard.java now has a section of code which looks like this:
I made a minor change and this seems to work OK:
Our total cards have 2501 different cards without any spellText in the text field. They display "no text" instead. This string is being displayed in the text panel of the deck editor and the battlefield.
ReadCard.java now has a section of code which looks like this:
- Code: Select all
else if (s.startsWith("Text:"))
{
String t = s.substring(5);
if (!t.equals("no text"));
c.setText(t);
}
I made a minor change and this seems to work OK:
- Code: Select all
else if (s.startsWith("Text:"))
{
String t = s.substring(5);
if (t.equals("no text")) t = ("");
c.setText(t);
}
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Card.getText()
by Chris H. » 14 Sep 2010, 16:30
`Sloth wrote:The only thing that needs to be done:
replace "no text" with "" ingame.
Fixed and merged into the SVN.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
20 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 38 guests