Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels) 2012
06/02/12 DOTP2012 Starting my custom pack
Moderator: CCGHQ Admins
Re: 06/02/12 DOTP2012 Starting my custom pack
by thefiremind » 29 Mar 2012, 09:32
Judging from what you said about image size, that's exactly my problem. In fact, I have never resized images to the standard 512x376 size. I have IrfanView, so I'll just have to check how to do batch resizing. Thanks a lot for the program and for the explanation!
< 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
Re: 06/02/12 DOTP2012 Starting my custom pack
by Eglin » 29 Mar 2012, 10:11
You're very welcome. You could add a call to setMaxExtents to resize the images on the fly, but I didn't think about it until afterwards. After compressing my deck box images and frame textures (they use a different compression method and alpha format than the card art), my wad is down to under 30MB in size, which is pretty cool.thefiremind wrote:Judging from what you said about image size, that's exactly my problem. In fact, I have never resized images to the standard 512x376 size. I have IrfanView, so I'll just have to check how to do batch resizing. Thanks a lot for the program and for the explanation! :D
Re: 06/02/12 DOTP2012 Starting my custom pack
by Eglin » 29 Mar 2012, 10:16
That's awesome! I'm thrilled to hear that you find it useful.sadlyblue wrote:I've tried your program, and worked like a charm.
It reduced the total size by at least 40% even when packed with wadprogram.
And what i tested so far there's no problem in game.
Next release will be smaller in size.
Great job.
Re: 06/02/12 DOTP2012 Starting my custom pack
by thefiremind » 29 Mar 2012, 12:07
I used IrfanView to do the following:Eglin wrote:You're very welcome. You could add a call to setMaxExtents to resize the images on the fly, but I didn't think about it until afterwards. After compressing my deck box images and frame textures (they use a different compression method and alpha format than the card art), my wad is down to under 30MB in size, which is pretty cool.
1) Make a resize of the original pictures to 512 width.
2) Make another resize (in another folder) of the same original pictures to 376 height.
Then i kept only the largest version of each picture, so I have some pictures with exceeding width and some picture with exceeding height, but no picture smaller than 512x376. Now I need to crop the exceeding pixels, but IrfanView only allows to batch crop a set number of pixels from each side. I need to make a "center" batch crop, so that if there are 4 pixels to cut out, 2 pixels from one side and 2 pixels from the opposite side will be cut. Do you know some software I can use to achieve this result?
< 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
Re: 06/02/12 DOTP2012 Starting my custom pack
by sadlyblue » 29 Mar 2012, 12:45
I used Fotosizer: http://www.fotosizer.com/
Seemed to do a good work, and easy.
Seemed to do a good work, and easy.
Re: 06/02/12 DOTP2012 Starting my custom pack
by thefiremind » 29 Mar 2012, 13:28
This software only resizes, while I need to crop. Thanks anyway.sadlyblue wrote:I used Fotosizer: http://www.fotosizer.com/
Seemed to do a good work, and easy.
EDIT: I thought if you need something made as you wish, you have to do it yourself... so I made a program that does the crop I needed, and ran it. Now all the images are OK. Sorry if I don't share the program, but I made it really fast so I hard-coded the directories' names as I needed them.
< 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
Re: 06/02/12 DOTP2012 Starting my custom pack
by Eglin » 29 Mar 2012, 14:51
I think that your problem w/ Irfanview was just that you allowed it to force maintaining the aspect ratio. If you override that setting and specify both dimensions, it should work in a batch. I should probably post a new executable that will scale the images automatically - sorry.
Re: 06/02/12 DOTP2012 Starting my custom pack
by sadlyblue » 18 Apr 2012, 15:13
Here's a new update.
http://www.mediafire.com/?uot6pj1c77ray5q
New decks:
Enchantess Legacy (Adapted)
The Other Auramancer
Instantly
Bane of Emrakul elf ball (a request from hoza121)
Also contains:
Boros Landfall
Elf Alarm
Frites
Infectious
Modern Eminent Domain
Prime Knight
Splinter Twin
Tempered Virtue
Tree Of Life
Use Your Land
Hope you like them.
http://www.mediafire.com/?uot6pj1c77ray5q
New decks:
Enchantess Legacy (Adapted)
The Other Auramancer
Instantly
Bane of Emrakul elf ball (a request from hoza121)
Also contains:
Boros Landfall
Elf Alarm
Frites
Infectious
Modern Eminent Domain
Prime Knight
Splinter Twin
Tempered Virtue
Tree Of Life
Use Your Land
Hope you like them.
Re: 06/02/12 DOTP2012 Starting my custom pack
by roflheh » 18 Apr 2012, 15:23
I got a problem with your dlc, the decks looks cool but then i try to play with them my program shuts down and i have only tried 2 decks the infect deck worked for one game but after i won against koth my program shut down! and then i was gonna look at the frites decklist my program shut down. Can anyone help me with this?
- roflheh
- Posts: 2
- Joined: 31 Jan 2012, 14:37
- Has thanked: 0 time
- Been thanked: 0 time
Re: 06/02/12 DOTP2012 Starting my custom pack
by sadlyblue » 18 Apr 2012, 20:41
Sometimes a fatal error might occur at the end of the game. But i didn't found that often, and couldn't troubleshoot it.
Have you tried more than once? With the same deck? And what king of game are you playing (campaign, free-for-all, archenemy)? Maybe then i can find the error.
Thanks for the feedback.
Have you tried more than once? With the same deck? And what king of game are you playing (campaign, free-for-all, archenemy)? Maybe then i can find the error.
Thanks for the feedback.
Re: 06/02/12 DOTP2012 Starting my custom pack
by Ctar » 19 Apr 2012, 07:09
I found the DLC miss BREEDING_POOL_3000006 Card in DECK "Use Your Land" , and miss JOR_KADEEN_THE_PREVAILER_227508 Card in DECK "Tempered Virtue"
Re: 06/02/12 DOTP2012 Starting my custom pack
by ravemotion » 19 Apr 2012, 16:27
I tried The Other Auramancer deck and activiated Nomad Mythmaker skill to return an aura. I chose Celestial Mantle which was in my graveyard. When the ability resolved, the aura card is still in my graveyard, with Nomad tapped.
- ravemotion
- Posts: 12
- Joined: 06 Dec 2011, 16:07
- Has thanked: 15 times
- Been thanked: 0 time
Re: 06/02/12 DOTP2012 Starting my custom pack
by sadlyblue » 20 Apr 2012, 09:25
I confirmed the error, but i'm having some trouble fixing it...
Re: 06/02/12 DOTP2012 Starting my custom pack
by thefiremind » 20 Apr 2012, 10:03
I looked at Nomad Mythmaker code, and it seems OK to me, but I can say nothing about the PutIntoPlayAttachedTo function, since there's no example of how to use it in the core WAD. How did you discover what parameters it needs?
< 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
Re: 06/02/12 DOTP2012 Starting my custom pack
by sadlyblue » 20 Apr 2012, 11:53
The PutIntoPlayAttachedTo works well on other card, like Academy Researchers, Iridescent Drake,... The problems seems to be in the target creature...
I was lucky to find the correct syntax to make this deck.
I was lucky to find the correct syntax to make this deck.
60 posts
• Page 3 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 8 guests