Tab-zoom/supcom view
Moderator: Moderators
Tab-zoom/supcom view
What we really need now is the ability to replace units with little icons, and there was something else I but I forgot, anyway. Agree?
Actually it'd probably be alot easier to stick in / change if it was in its own file. And TGA not BMP, we'll probably need transparencies.FizWizz wrote:Zoombie, quiet. Leave it to people who know what they're talking about. mod-defined ftw, it shouldn't need to be any more complicated than "MapIcon=whatever.bmp;" in the unit file.
TGA < DDS
And it should hopefully be defined in some manner that doesn't involve going through 380 unit files and giving them a pic definition.
There should be a way to define it based on a unit's category. Maybe in a gamedata\uniticons.tdf:
notair=landunit.dds;
vtol=airunit.dds;
notland=waterunit.dds;
commander=commander.dds;
...and so on. Would be much easier to do and would integrate nicely with all existing mods. Also, since JC has a vendetta against new unit tags, this would mean there wouldn't have to be any.
And it should hopefully be defined in some manner that doesn't involve going through 380 unit files and giving them a pic definition.
There should be a way to define it based on a unit's category. Maybe in a gamedata\uniticons.tdf:
notair=landunit.dds;
vtol=airunit.dds;
notland=waterunit.dds;
commander=commander.dds;
...and so on. Would be much easier to do and would integrate nicely with all existing mods. Also, since JC has a vendetta against new unit tags, this would mean there wouldn't have to be any.
-
- Posts: 47
- Joined: 28 Dec 2005, 03:20
-
- Posts: 79
- Joined: 11 Jul 2005, 02:01
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
It could be done like that, but it wouldn't be very flexible. For gamedata\uniticons.tdf: I'm thinking more in the direction of something likeCaydr wrote:(...) Maybe in a gamedata\uniticons.tdf:
notair=landunit.dds;
vtol=airunit.dds;
notland=waterunit.dds;
commander=commander.dds;
...and so on. (...)
Code: Select all
[UNITICONS]
{
RelativeBitmapPath=../icons/;
NumCategories=6;
[DEFAULT]
{
Bitmap=default.dds;
AdjustToFootprint=0;
Rotate=1;
}
[COMMANDER]
{
Bitmap=commander.dds;
AdjustToFootprint=0;
Rotate=0;
}
[BUILDINGS]
{
Bitmap=buildings.dds;
AdjustToFootprint=1;
Rotate=0;
}
[LAND]
{
Bitmap=land.dds;
AdjustToFootprint=1;
Rotate=0;
}
[AIR]
{
Bitmap=air.dds;
AdjustToFootprint=0;
Rotate=1;
}
[SEA]
{
Bitmap=sea.dds;
AdjustToFootprint=0;
Rotate=0;
}
}
You would then need to add a new unit tag to every unit if you don't want it to have the default icon.
But perhaps there are better ways to indicate the icon type for every unit, e.g. via the classes in moveinfo.tdf.
Really, that needs to be generalized for EVERYTHING. Personally, I think an import/header macro language or something would be ideal. Any tag should be able to be applied to a category or a group of units instead of defined per-tdf file. A c-style #include directive would make doing group-wide changes simple.Caydr wrote:TGA < DDS
And it should hopefully be defined in some manner that doesn't involve going through 380 unit files and giving them a pic definition.
There should be a way to define it based on a unit's category. Maybe in a gamedata\uniticons.tdf:
notair=landunit.dds;
vtol=airunit.dds;
notland=waterunit.dds;
commander=commander.dds;
...and so on. Would be much easier to do and would integrate nicely with all existing mods. Also, since JC has a vendetta against new unit tags, this would mean there wouldn't have to be any.
My point is: everything should go by per-unit tags, and then include a structure for making per-unit tags easily applied to groups of units. Otherwise you get silly distinctions where you want somethings to be applied to units and others to be applied to groups, when the distinction is artificial.
Are we trying to rip off supcom in any way possible? If we keep building parralel to what its doing, people will leave spring when supcom comes out, because it will be just like it but worse. Lets try and get some original ideas eh folks? Not like we arent getting original ideas already but well...lets stay clear of the cheap ripoffs.
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
He right! We should move away from SupCom entirely! SupCom is an RTS! We can't be an RTS! That would be copying! Oh noes!
If it's a good idea you're putting yourself at a deliberate disadvantage by not using it yourself.
Exemples:
Ancient Man: hmm. They seem to be rubbing two sticks together to make heat with which to cook their meat. That is a good idea. However, I will not do the same because that would be copying!
Ancient Man later dies from a bacteria in his raw meat that wouldn't have been present if said meat had been cooked
If it's a good idea you're putting yourself at a deliberate disadvantage by not using it yourself.
Exemples:
Ancient Man: hmm. They seem to be rubbing two sticks together to make heat with which to cook their meat. That is a good idea. However, I will not do the same because that would be copying!
Ancient Man later dies from a bacteria in his raw meat that wouldn't have been present if said meat had been cooked
- Drone_Fragger
- Posts: 1341
- Joined: 04 Dec 2005, 15:49
You phail. That was awful. In reality they'd kill eachother, then steal the fire and claim they invented it. It happens all the time in life. Albert einstien, Thomas Edison, the list goes on.Guessmyname wrote:He right! We should move away from SupCom entirely! SupCom is an RTS! We can't be an RTS! That would be copying! Oh noes!
If it's a good idea you're putting yourself at a deliberate disadvantage by not using it yourself.
Exemples:
Ancient Man: hmm. They seem to be rubbing two sticks together to make heat with which to cook their meat. That is a good idea. However, I will not do the same because that would be copying!
Ancient Man later dies from a bacteria in his raw meat that wouldn't have been present if said meat had been cooked