Author Topic: Custom Squadron Insignia  (Read 2878 times)

0 Members and 1 Guest are viewing this topic.

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Custom Squadron Insignia
Non-replacement Squadron Insignia do not show themselves in the Pilot room.

Is there any way to adjust that behavior or create a list that it can use to know to use them?

I realize they can still be used by specifying them in a mission, but the player should be able to apply them as well.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Custom Squadron Insignia
The maximum number of squad images is 64 (Same for pilots in case anyone is wondering). Are you going over that?
« Last Edit: November 30, 2008, 08:32:08 am by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Shade

  • 211
Re: Custom Squadron Insignia
That could eventually become a big problem for TCs that are at all focused on multiplayer. Hell, I'm already running close to 30 squadron logos just from what I've picked up playing FS2 multi. Everyone who plays a lot will eventually want to use their own custom pilot images and squadron logos, and with the automatic transfer they will end up in the folders of everyone who plays. In short, if we look a bit into the future, 64 is way too low.

That does pose another problem though. Even if the limit is raised or made dynamic, it will quickly become very cumbersome to find the logo/image you want by scrolling through a list of 100+ that only displays one at a time. So ideally something to address that would be nice as well, though I'm apparently in an idea-drought at the moment as nothing's coming to mind.

[Edit] Maybe some way to select between official, transferred and self-made images would solve the navigation problem. It would require some extra subfolders under data/players/squads and data/players/images to keep them seperate though, as well as an interface art change to add the selection buttons, plus of course the code to make it all work. Not exactly a trivial change.
« Last Edit: November 30, 2008, 09:32:38 am by Shade »
Report FS_Open bugs with Mantis  |  Find the latest FS_Open builds Here  |  Interested in FRED? Check out the Wiki's FRED Portal | Diaspora: Website / Forums
"Oooooooooooooooooooooooooooooooooooooooh ****ing great. 2200 references to entry->index and no idea which is the one that ****ed up" - Karajorma
"We are all agreed that your theory is crazy. The question that divides us is whether it is crazy enough to have a chance of being correct." - Niels Bohr
<Cobra|> You play this mission too intelligently.

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: Custom Squadron Insignia
considering that I only have 4 additional Insignia over the regular retail, I highly doubt I am anywhere close to that limit, considering there are only 22 retail insignia.

If I call to the insignia via mission SquadReassign, they will display in the barracks just fine. Just not selectable in multi-player.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Custom Squadron Insignia
What format are they? Have you tried a debug build?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: Custom Squadron Insignia
DDS. Just like the retail replacement ones. That do show up, only because the file name is identical to the retail ones. The ones I want to show up, WILL show up if I name them after the retail ones. But not if they are named anything but.

Yes I tried a debug build. (I tried it in a box, with a fox, in my sox even.)

Builds I have used that are mine: fso-WIN-20080914_r4814 through to fso-WIN-20081124_r4960 which does total 39.

Missing questions:
Did you try a new pilot?
   Answer: I did indeed, and for the same results.
Did you try Retail?
   Answer: I ran FSO with no flags and no mod other than the folder containing the squad images, as retail directly will not support DDS.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Custom Squadron Insignia
I just tried this recently, and apparently you have to have a PCX (or PCX and DDS for better quality) in the squad logos folder for this to work properly.
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 
Re: Custom Squadron Insignia
so it needs to se a pcx, but if a dds with the same filename is present, it'll use that?
Sig nuked! New one coming soon!

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Custom Squadron Insignia
That sounds like a bug.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Custom Squadron Insignia
so it needs to se a pcx, but if a dds with the same filename is present, it'll use that?
Yes, but please don't remove DDS squad logo support.  The reason being is that DDS files have alpha channels, and therefore you won't get that ugly green background if you make a custom PCX squad logo that doesn't use an FS squad logo palette.

Could custom squad logos in mods (that you select in the launcher) be supported?
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Custom Squadron Insignia
No no, I don't mean the bug is that it uses DDS.  I mean the bug is that a PCX is required for DDS to work.  No one would remove DDS support I don't think.  We know the benefits well enough :)
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: Custom Squadron Insignia
Frak me. Makes sense though. It will only allow DDS as a replacement for something it knows is present to be replaced. Something to vet against while it is loading.

So, how do we get around making single pixel PCX files to display custom DDS insignia then? Allow it to vet players\squads regardless of format?

http://scp.indiegames.us/mantis/view.php?id=1834
« Last Edit: December 01, 2008, 11:50:40 pm by Zacam »
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Custom Squadron Insignia
Well I imagine it should scan for DDS or whatever separately like it does for textures, and pretty much anything else.  You don't need PCX versions of DDS files anywhere else, I don't know why this should.  Unless there really is some strange technical reason for it.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Custom Squadron Insignia
It's probably just a simple case of the scan code looking only for PCX files because no one ever updated it. The image load code on the other hand is probably the same as everywhere else and thus can load DDS files.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: Custom Squadron Insignia
Quote from: karajorma
"Is DDS the only other format it will accept or will it take jpg and tga too?"

I created custom TGA, PNG and JPG (and a  JPeG) insignia and specified it as squadron logo in a skybox test mission. No errors or warnings in fs2_open.log, no insignia on the model. I then re-ran the tests with a PCX also present, still the same.

NOTE: Creating a new pilot and going straight to the tech room for a single mission to test with had an interesting result. Because the player was never assigned to a squadron, no re-assignment took place, so no logo on the player ship. HOWEVER, this also killed any logo's from showing on OTHER ships as defined by using +Squad Logo: on a per wing.

Also, the MISSION has to reference a PCX file. Referencing a DDS file even if a pcx for it ALSO exists results in no logo rendering as well.

In short:

Calling to DDS/JP(e)G/TGA/PNG results in nothing with or without PCX present. Calling to non-existant PCX with existing DDS results in nothing. Calling to PCX with a DDS version present loads the DDS version, calling to existing PCX with a JP(e)/TGA/PNG present results in PCX loading.
« Last Edit: December 04, 2008, 11:57:03 pm by Zacam »
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

  

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Custom Squadron Insignia
So it sounds like, at the moment, the answer is no, jpeg and tga do not work as logos, with or without an existing PCX file.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays