Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Help with DefTool
Thread: Help with DefTool
Pim18
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!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fred79
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pim18
Pim18


Known Hero
posted January 24, 2016 12:57 PM

I can't. It just says that the bitmap is not valid.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fred79
fred79


Disgraceful
Undefeatable Hero
posted January 24, 2016 01:00 PM

lol, then upload a frame.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pim18
Pim18


Known Hero
posted January 24, 2016 01:07 PM



Here it is. Still a work in progress though

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fred79
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pim18
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!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fred79
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
avatar
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pim18
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
avatar
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Pim18
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!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0273 seconds