It is currently 26 Apr 2024, 01:10
   
Text Size

Adding Avatars to MTG Forge

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Adding Avatars to MTG Forge

Postby Huggybaby » 19 Mar 2009, 16:32

This topic is to discuss adding avatars to MTG Forge. To get started:

Doom Guy
Image

GandoTheBard's Smilies
http://outofthebrokensky.com/images/moods/moods.asp
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Adding Avatars to MTG Forge

Postby Chris H. » 19 Mar 2009, 16:54

I want to move Rob Cashwalker's comment over here since it helps to get an idea of what an avatar can accomplish in forge.

In message:

http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=977&view=unread#p11281

Rob Cashwalker wrote:
There are no smiles I guess because the DOOM guy never smiled.
He did smile when he got a power up - see the 7th column in that image.

I can imagine quite a few of those images used in the project. Beyond the bloodier face as the health drains, the emotion of the open mouth, smile and grin, could show up whenever a spell or ability is played for or against the player, and during any good or bad combats.
open mouth = "Oh no! You've just resolved wrath of god agaisnt me!"
smile = "Heh heh I've just resolved wrath of god against you!"
grin = "You won this combat, but I'll get you next time..."
and so forth.
User avatar
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: Adding Avatars to MTG Forge

Postby Huggybaby » 19 Mar 2009, 17:11

I see transparent overlays too. If he gets fireballed, a transparent flame graphic is overlaid. A lightning bolt gets lightning. You could have an overlay tied to each card. If a card doesn't have an overlay yet, use a generic replacement, one for each color.
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Adding Avatars to MTG Forge

Postby mtgrares » 19 Mar 2009, 19:39

I see transparent overlays too.
Huggybaby, are trying to kill me? :rolleyes:

So does that mean that you play MTG Forge? (I know in the past that you haven't and I am just curious.) Thanks for all the moderating, someone has to keep all the spammers out. :D
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Adding Avatars to MTG Forge

Postby Huggybaby » 19 Mar 2009, 19:53

I play once in a while, sure. Remember on your blog I suggested you make the easy quest mode shorter? It looks like we see eye-to-eye on that now! :P

I must say that running into bugs makes me quit trying a game though. But I don't add cards and certainly don't want to diminish anyone's enthusiasm so I stay out of that. For this project and the manalink project I think it would be better to quit adding cards for a while and squash ALL bugs first before proceeding. That's only my opinion as a casual user though so it doesn't mean much.

Also on your blog you said you weren't an interface expert, so this is my contribution. At least I didn't ask for video support!

No problem with the spammers, I've only had to delete one! The rest get stopped by our captcha. I know for a fact that some legitimate users get rejected and sent to our Inactive Users list too. I don't know what to do about them unless they contact me some other way. I was able to manually activate a friend of mine the other week just because I knew him from another forum and he told me he had registered but never been activated.
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Adding Avatars to MTG Forge

Postby DennisBergkamp » 19 Mar 2009, 19:57

or this project and the manalink project I think it would be better to quit adding cards for a while and squash ALL bugs first before proceeding. That's only my opinion as a casual user though so it doesn't mean much.
I agree. BUT!!! Adding cards is so much fun :lol:
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Removing Cards

Postby mtgrares » 19 Mar 2009, 20:13

Hubbybaby - Remember on your blog I suggested you make the easy quest mode shorter? It looks like we see eye-to-eye on that now!
LOL, yeah I remember. 10 games is long enough for even me. I don't see myself playing any quest longer than that.

I must say that running into bugs makes me quit trying a game though.
I understand. I've thought about trying having 2 versions of MTG Forge. One that has all 100% working cards and one that has more cards and more bugs.

As a quick fix you can remove any cards that you don't like from cards.txt and MTG Forge won't use them. This isn't a great fix because everytime a new version comes out you have to remove the same cards over and over again. Also if you make a mistake with cards.txt MTG Forge will probably just die and not show any error message.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Adding Avatars to MTG Forge

Postby DennisBergkamp » 19 Mar 2009, 20:15

I always add new cards to the top of cards.txt though, so it's easy to keep track of the new ones.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

MTG Forge - Huggybaby Edition

Postby mtgrares » 20 Mar 2009, 18:39

Now you can remove cards from MTG Forge. Just run "remove-cards.exe" and you can choose which cards will not appear. If you play a deck that has any of these removed cards, the card name will be "Removed Card". The file "removedCards.txt" holds all of the cards that you remove.

There might be some errors but overall it seems to work.

MTG Forge - Huggybaby Edition

For DennisBergkamp, I made 2 changes. The source code is in the attachment.
1. add FileUtil.java
2. modify CardFactory constructor and getCard()
Attachments
source code changes.zip
(1.41 KiB) Downloaded 374 times
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Adding Avatars to MTG Forge

Postby DennisBergkamp » 20 Mar 2009, 19:21

Alright, cool! Seems easy enough :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Adding Avatars to MTG Forge

Postby Huggybaby » 20 Mar 2009, 20:05

Thanks mtgrares, I feel really special now. :)
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Adding Avatars to MTG Forge

Postby mtgrares » 23 Mar 2009, 19:14

Well I try to do what I can. I can't improve everything about MTG Forge but I can improve bits and pieces here and there. Huggybaby, I figured you would like having your own edition of MTG Forge.

I should probably try to update the "remove-card" user interface so you could actually see the card's info that you are removing. I should have used the deck editor to remove cards (the program would function the same but all of the cards would be listed on top and the cards at the bottom are cards that would be removed.) Hopefully the "remove-cards" interface isn't too bad but I know it is plain.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Adding Avatars to MTG Forge

Postby vinnie » 23 Dec 2015, 20:05

The only way I've guessed is to place a file called sprite_avatars.png in the directory of the theme used, for example look at /forge-gui-desktop-1.5.47/res/skins/the_simpsons/sprite_avatars.png

The default avatars is in /forge-gui-desktop-1.5.47/res/skins/default

P.s. ok work, for example I added an edited avatar at the end of this attached file in default dir
Attachments
sprite_avatars.png
User avatar
vinnie
 
Posts: 111
Joined: 21 Dec 2015, 14:03
Has thanked: 23 times
Been thanked: 6 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 169 guests


Who is online

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

Login Form