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

This Month's Specials

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

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old January 15th, 2004, 04:32 AM
Potatoman's Avatar

Potatoman Potatoman is offline
Sergeant
 
Join Date: Sep 2003
Location: The Urban Wilderness
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Potatoman is on a distinguished road
Default Modding unit shadows

I've begun a MOD to change Tien'Chi into a nation loosely based on feudal Japan; Samurai, ninjas, Oni, I'm sure you know the theme.

Anyhow, I've been working on forging some nice .tga sprites for my men, but I've run into a rather annoying problem. I can't figure out how to give my men shadows, outside of just coloring them in with RGB=0 0 1 almost-black. I've been using the hoburg mod as my guide for most of this, and the units in that seem to use a peculiar shade of purple which, when cut & pasted, dissapears and has no effect in game.

Anyone know a way around this (aside from vampirism, that is)?
Reply With Quote
  #2  
Old January 15th, 2004, 06:00 AM

void void is offline
Corporal
 
Join Date: Dec 2003
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
void is on a distinguished road
Default Re: Modding unit shadows

Shadow: R 255 G 0 B 255 (#FF00FF)

But something wrong when ur MODUnit paralyzed use this color...
__________________
There are times when destiny calls forth a people and demands an action. Now is the time. We are the people. This is our action. Charge! - Sun hou-zi, Nobel of T'ien C'hi
Reply With Quote
  #3  
Old January 15th, 2004, 06:47 AM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default Re: Modding unit shadows

My guess (havn't checked): It isn't purple, it's transparency.

Unit shadows are very small anyway, so why not use black?

A.
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
Reply With Quote
  #4  
Old January 15th, 2004, 08:15 AM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Modding unit shadows

Potatohead,

I'm working on a Japanese theme as well, and some other people have added input or indicated that they were interested in working on it. Perhaps we could collaborate? You might want to read this thread:

http://www.shrapnelgames.com/cgi-bin...;f=74;t=000404

Also, I've found the combat sim to be quite useful in estimate modded unit power...

-Cherry
__________________
Cherry
Reply With Quote
  #5  
Old January 15th, 2004, 12:52 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Modding unit shadows

Purple (255,0,255) is supposed to be the shadow color. It darkens the color behind it. If you want something more complex, you might try using an alpha channel. I think that should work even though the standard sprites don't use that.
__________________
http://www.illwinter.com
Reply With Quote
  #6  
Old January 15th, 2004, 08:34 PM
Potatoman's Avatar

Potatoman Potatoman is offline
Sergeant
 
Join Date: Sep 2003
Location: The Urban Wilderness
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Potatoman is on a distinguished road
Default Re: Modding unit shadows

Alright, Saber. My mod is loosely based on the Ashikaga Shogunate of feudal Japan, and shares the same name. Overall I plan to have about as many units in my mod as are availible to standard Ulm, mostly ashigaru peasants, noble samurai and sneaky ninja.

So far I have:
1. Created unit sprites (still can't get shadows to work correctly though!) for 4 units: Samurai Swordsman, Samurai Bowman, Aoi Standard Warrior/Samurai Commander--they share the same sprites--, and Ashigaru Spearman.

2. Written unit descriptions for the units I have already created.

3. Successfully modded these starting units into the game so that it does not crash when loaded.

4. Found a nifty banner for the mod.

If you'd like to collaborate I could send you what I've already done. I've looked over your mod thread, and I am unsure exactly how much of what you have talked about is already completed; depending on how much you might not need my help.

Also if you know how to make any of the "new=1" items listed in the modding resouce work spill the beans at once (the items/weapons never appear in unit inventory when added). Samurais running around with falcions and shortswords doesn't have all the desired thematic effect!
Reply With Quote
  #7  
Old January 15th, 2004, 08:42 PM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Modding unit shadows

Quote:
Originally posted by Potatoman:
Also if you know how to make any of the "new=1" items listed in the modding resouce work spill the beans at once (the items/weapons never appear in unit inventory when added). Samurais running around with falcions and shortswords doesn't have all the desired thematic effect!
The new items are only in the combat simulator and cannot be added to the game until weapon and armor modding is added (possibly in the next patch?) I put nation-modding on hold until I can add equipment=)
__________________
Cherry
Reply With Quote
  #8  
Old January 17th, 2004, 04:56 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Modding unit shadows

Alpha channels work, but it's nice to know the official shadow color - makes it easy to match the existing units' shadows.

PvK
Reply With Quote
  #9  
Old January 17th, 2004, 09:47 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Modding unit shadows

Quote:
Originally posted by Johan K:
Purple (255,0,255) is supposed to be the shadow color. It darkens the color behind it. If you want something more complex, you might try using an alpha channel. I think that should work even though the standard sprites don't use that.
Odd - I tried this, but ended up with opaque purple (actually, radioactive pink) instead of a shadow. Maybe because I am also using alpha channels in the tga? Or something else.

PvK
Reply With Quote
  #10  
Old January 18th, 2004, 01:36 AM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Modding unit shadows

Yup, if you use alpha channel you have to make a proper black, alpha 50% shadow too.
__________________
http://www.illwinter.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 01:44 PM.


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