|
|
|
 |
|

January 15th, 2004, 04:32 AM
|
 |
Sergeant
|
|
Join Date: Sep 2003
Location: The Urban Wilderness
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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)?
|

January 15th, 2004, 06:00 AM
|
Corporal
|
|
Join Date: Dec 2003
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

January 15th, 2004, 06:47 AM
|
 |
Major General
|
|
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
|
|
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 ...
|

January 15th, 2004, 08:15 AM
|
 |
Major General
|
|
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 
|

January 15th, 2004, 12:52 PM
|
 |
Brigadier General
|
|
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
|
|
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.
|

January 15th, 2004, 08:34 PM
|
 |
Sergeant
|
|
Join Date: Sep 2003
Location: The Urban Wilderness
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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! 
|

January 15th, 2004, 08:42 PM
|
 |
Major General
|
|
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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=)
|

January 17th, 2004, 04:56 AM
|
 |
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
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
|

January 17th, 2004, 09:47 AM
|
 |
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
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
|

January 18th, 2004, 01:36 AM
|
 |
Brigadier General
|
|
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
|
|
Re: Modding unit shadows
Yup, if you use alpha channel you have to make a proper black, alpha 50% shadow too.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|