|
Thread: Help with DefTool | |
|
Pim18
Known Hero
|
posted January 24, 2016 12:25 PM |
|
|
Help with DefTool
I am terribly sorry if this question has been asked before but I have been searching through both the Heroescommunity and the VCMI forums and I cannot find a clear answer to my question.
I want to make a def file for VCMI(practice mostly at this point)with deftool. However when I try to add the bitmaps then it keeps saying that the bitmap is not valid.
I know that the bitmap must be 450 by 400 pixels. That the background needs to be cyan(RGB: 0, 250, 250) and that the palette needs to be changed. I also know that the bitmap must be 8bit BPP.
I tried all that yet it will not recognize the bitmap files.
Can anyone point me either in the direction of a tutorial of explain to me why it isn't recognized?
Thanks in advance!
|
|
fred79
Disgraceful
Undefeatable Hero
|
posted January 24, 2016 12:56 PM |
|
Edited by fred79 at 13:01, 24 Jan 2016.
|
upload your def.
edit: lol, i just realized that this post is totally retarded. way to go, brain.
|
|
Pim18
Known Hero
|
posted January 24, 2016 12:57 PM |
|
|
I can't. It just says that the bitmap is not valid.
|
|
fred79
Disgraceful
Undefeatable Hero
|
posted January 24, 2016 01:00 PM |
|
|
lol, then upload a frame.
|
|
Pim18
Known Hero
|
posted January 24, 2016 01:07 PM |
|
|
Here it is. Still a work in progress though
|
|
fred79
Disgraceful
Undefeatable Hero
|
posted January 24, 2016 01:09 PM |
|
Edited by fred79 at 13:30, 24 Jan 2016.
|
you don't see that huge circle that isn't pure cyan?
you have to make sure that all the background in your frames are exactly the same color. run through all your frames, and recolor them to either pure blue or red; this is what i do to find pixel errors.
after recoloring all of your frames' backgrounds to whatever primary color that isn't part of your def's colors, make sure to click this button in h3deftool:
this will make sure whatever color you choose as a background, will be read as the transparent color. after you click in the box, you will notice that the cyan color is replaced by your background color.
good to note, as well, is that the pixel color that is read for the transparent box, is whatever color the pixel is in the upper-left corner of the frames.
|
|
Pim18
Known Hero
|
posted January 24, 2016 01:39 PM |
|
|
I did not see that circle(nor the other pixel errors). Monitor settings were probably too bright. Either way I will recolour everything and fix the pixel errors.
I also read something about changing the colour palette(first 7 colours needed to be transparent?) could you explain a bit about that?
Thank you for telling me this!
|
|
fred79
Disgraceful
Undefeatable Hero
|
posted January 24, 2016 03:00 PM |
|
|
no prob.
i don't work with palette's much, so i can't help you there. to make a def though, nothing but the background has to be transparent, so i don't know what you're referring to. if you mean some kind of compatability with VCMI software, i wouldn't know. i have no knowledge of json files.
|
|
avatar
Promising
Supreme Hero
|
posted January 24, 2016 06:06 PM |
|
|
VCMI has nothing to do with create def files. Just upload your frames and we'll think whats wrong.
|
|
Pim18
Known Hero
|
posted January 24, 2016 06:57 PM |
|
|
I know. For some reason doesn't DefTool see my bitmap files as valid. I think I am saving them incorrectly.
I fixed all the pixel errors and even started again from scratch but nothing works.
|
|
avatar
Promising
Supreme Hero
|
posted January 24, 2016 07:26 PM |
|
|
I know. In that case I convert bmp files in xnView software.
Open bmp file in xnView. Click Tools -> Bath Processing -> General.
Next click Add to add your bmp file -> Transformations.
scroll up to Convert -> Convert to Colours (double-click at this options) -> Choose Parameters '256' and click 'GO'. Your converted bmp file should be fine to deftools.
|
|
Pim18
Known Hero
|
posted January 24, 2016 07:43 PM |
|
|
Huh. That actually worked. Thank you! I have been looking for a solution for this all day. I can finally make defs now!
|
|
|