.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old December 28th, 2006, 02:24 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default DomII maps in Dom3, and fixing that Alpha channel

Dominions II maps work in Dominions 3. There is at least one glitch (#seaplayers 0 not preventing random nations that start underwater), but this isn't major and probably not limited to DomII maps. However, the fact that Dominions now supports alpha channels can cause some problems.

Parganos (at least version 2 by Ironhawk), The Three Necks, Karan and who knows how many other DomII maps just won't show up in Dominions 3.

Daynarr has posted how to fix the alpha Channels in Gimp. EDIT: Please note that this is inside the bug thread. It's not a very good bug thread, but it'd be better if we at least tried to keep it just for bug-related issues.

Are there any other programs with which this would be easier to do? Gimp may be free, but it's cumbersome to install...
Reply With Quote
  #2  
Old December 28th, 2006, 02:48 PM
Agrajag's Avatar

Agrajag Agrajag is offline
Lieutenant Colonel
 
Join Date: Jul 2004
Location: Israel
Posts: 1,449
Thanks: 4
Thanked 8 Times in 2 Posts
Agrajag is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

There's Photoshop, but then again that costs money (unless you have קומבינו& #1514; ). Though for some reason I've been unable to save .tga files with an alpha channel (it automatically turns into 100% "visible", so it works for converting maps, but not to add some invisibility to the mix)
You can just wander the vast exapnses of the internet for any freeware that supports .tga and alpha support.
*wonders if he can make a little program that will fix alpha-troubled maps*
*realizes he can't write programs to manipulate *.tga files*
__________________
I'm in the IDF. (So any new reply by me is a very rare event.)
Reply With Quote
  #3  
Old December 28th, 2006, 06:40 PM
Agrajag's Avatar

Agrajag Agrajag is offline
Lieutenant Colonel
 
Join Date: Jul 2004
Location: Israel
Posts: 1,449
Thanks: 4
Thanked 8 Times in 2 Posts
Agrajag is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

(this warrants a new post imo)

Apparently, I can create a program that will do the whole process for you automatically, the downside being it will require .NET Framework 2.0 (which requiers SP2, and obviously, WINDOZE).
I'll do that tomorrow though, since its pretty late now :\

Eventually, if I'll get enough help, I plan to make a program that will edit map pictures to reflect changes in dominion and other stuff (like I'm told happened in dom1)
__________________
I'm in the IDF. (So any new reply by me is a very rare event.)
Reply With Quote
  #4  
Old December 28th, 2006, 06:52 PM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

why does it necessarily require windows? you could just use a generic c++ fstream, read the original tga in and write the new one out.

iirc, dom2 only uses 24 bit tgas. the only complication is rle , which is something that i have not really gotten straightened out myself. i have a tga library i wrote that uses windows for file manipulation, but i need to get it to use fstream any way. it's been on the back burner but i can bump it up on my priority list if you think you can use it
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
  #5  
Old December 29th, 2006, 05:08 AM
Agrajag's Avatar

Agrajag Agrajag is offline
Lieutenant Colonel
 
Join Date: Jul 2004
Location: Israel
Posts: 1,449
Thanks: 4
Thanked 8 Times in 2 Posts
Agrajag is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

Quote:
paradoxharbinger said:
why does it necessarily require windows? you could just use a generic c++ fstream, read the original tga in and write the new one out.
Because I don't have any expereince with such things in C.
I could probably manage something if I even knew how to use .dll files :X
However, if you do, you can use this to make a much much better C++ program.

Meanwhile, I'm stuck with Visual Basic .NET (*blech*)

EDIT: ATTACHING TGAFIXER.ZIP
Okay, its attached.
Be aware though that:
1) I didn't do much testing. It should work, but it might not.
2) On a 1.4GHZ Pentium proccessor it can get about 25,000 pixels per second, that means bigger maps will take minutes to work out.

Hope I've helped
Attached Files
File Type: zip 482934-TGAFIX.zip (362.8 KB, 128 views)
__________________
I'm in the IDF. (So any new reply by me is a very rare event.)
Reply With Quote
  #6  
Old December 29th, 2006, 12:05 PM
Esben Mose Hansen's Avatar

Esben Mose Hansen Esben Mose Hansen is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Copenhagen, Denmark
Posts: 410
Thanks: 0
Thanked 0 Times in 0 Posts
Esben Mose Hansen is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

What is cumbersome on installing gimp? Just go to http://gimp-win.sourceforge.net/stable.html and install the two packages. Hardly any more bothersome than any other windows programs (linux people have an easier time, but that applies to all free or open software)

Using GIMP is another matter, the interface is inconventional to some degree. Still, it is not exactly hard, and tutorials abound. I know of no other paint program that span both linux and win32... though on Linux there are alternatives such as Krita.
__________________
"It makes you wonder if there is anything to astrology after all. "Oh, there is," said Susan, "Delusion, wishful thinking and gullibility." (T. Pratchett)
Reply With Quote
  #7  
Old December 29th, 2006, 01:53 PM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

yeah, no idea on how to use .dll either
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
  #8  
Old December 29th, 2006, 02:04 PM

Dragonlord Dragonlord is offline
Sergeant
 
Join Date: Jun 2001
Posts: 287
Thanks: 0
Thanked 0 Times in 0 Posts
Dragonlord is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

I have installed Gimp yesterday and followed the instructions of the post linked to in the first post here. It worked. It fixed the Parganos2 map of Dom2 for me so that it loads in Dom3.
Reply With Quote
  #9  
Old December 30th, 2006, 05:48 AM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default Re: DomII maps in Dom3, and fixing that Alpha chan

i've pretty much finished that c++ header file that handles tga's. just does 24 and 32 bit rle and non rle, but i think that is about all that is needed to handle dom2 and 3 maps.

if anyone is interested, pm me
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:32 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.