It is currently 20 Apr 2024, 00:36
   
Text Size

06/02/12 DOTP2012 Starting my custom pack

Moderator: CCGHQ Admins

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby 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! :D
< 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: 06/02/12 DOTP2012 Starting my custom pack

Postby Eglin » 29 Mar 2012, 10:11

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
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.
User avatar
Eglin
Programmer
 
Posts: 195
Joined: 01 Mar 2012, 14:44
Has thanked: 39 times
Been thanked: 22 times

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby Eglin » 29 Mar 2012, 10:16

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.
That's awesome! I'm thrilled to hear that you find it useful.
User avatar
Eglin
Programmer
 
Posts: 195
Joined: 01 Mar 2012, 14:44
Has thanked: 39 times
Been thanked: 22 times

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby thefiremind » 29 Mar 2012, 12:07

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.
I used IrfanView to do the following:
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...
User avatar
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

Postby sadlyblue » 29 Mar 2012, 12:45

I used Fotosizer: http://www.fotosizer.com/
Seemed to do a good work, and easy.
sadlyblue
 
Posts: 175
Joined: 06 Feb 2012, 13:18
Has thanked: 18 times
Been thanked: 16 times

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby thefiremind » 29 Mar 2012, 13:28

sadlyblue wrote:I used Fotosizer: http://www.fotosizer.com/
Seemed to do a good work, and easy.
This software only resizes, while I need to crop. Thanks anyway.

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. :oops:
< 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: 06/02/12 DOTP2012 Starting my custom pack

Postby 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.
User avatar
Eglin
Programmer
 
Posts: 195
Joined: 01 Mar 2012, 14:44
Has thanked: 39 times
Been thanked: 22 times

Re: 06/02/12 DOTP2012 Starting my custom pack

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

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby 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 :P 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

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

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby 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"
Ctar
 
Posts: 24
Joined: 01 Dec 2011, 01:46
Has thanked: 10 times
Been thanked: 2 times

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby 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

Postby sadlyblue » 20 Apr 2012, 09:25

I confirmed the error, but i'm having some trouble fixing it...
sadlyblue
 
Posts: 175
Joined: 06 Feb 2012, 13:18
Has thanked: 18 times
Been thanked: 16 times

Re: 06/02/12 DOTP2012 Starting my custom pack

Postby 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...
User avatar
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

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

PreviousNext

Return to 2012

Who is online

Users browsing this forum: No registered users and 7 guests


Who is online

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

Login Form