Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: JarC on April 29, 2004, 03:25:42 am

Title: 'Custom Paint' textures?
Post by: JarC on April 29, 2004, 03:25:42 am
Got a question, have been trying to find something about this, but can't. The only reference vaguely getting close seems to be the texture replacement feature. What I would like to know is if this feature also makes it possible for the player to have a custom paint skin for the player selected ship?

Was thinking that it could perhaps be possible to have the engine look for 'personalized' textures by combining the player name with the texture name, but then I ran into texture name length problems...is anything similar to this in the planning?
Title: 'Custom Paint' textures?
Post by: kasperl on April 29, 2004, 03:27:58 am
not sure, really. check the tex replacement docs toroughly, i geuss.

BTW, FSCZ is really interested in this for Multiplayer....
Title: 'Custom Paint' textures?
Post by: JarC on April 29, 2004, 05:43:59 am
:? where do I find these tex replacement docs?

FSCZ ???
Title: 'Custom Paint' textures?
Post by: kasperl on April 29, 2004, 06:07:21 am
FSCZ is Freespace 2: Confict Zone
www.sectorgame.com/FSCZ/

tex replacement docs, well, doc, are found in the wiki. Do a search on texture replacement there, or just browse through the new features bit for the SCP.

[wiki]JarC[/wiki]

EDIT: dang, i need to update me bookmarks.
Title: 'Custom Paint' textures?
Post by: karajorma on April 29, 2004, 11:32:25 am
From what I've seen on other topics the texture replacement system doesn't work well with anything that comes in wings so I doubt it would work for this.

Although they may consider this a bug and be fixing it as we speak :)
Title: 'Custom Paint' textures?
Post by: Unknown Target on April 29, 2004, 06:49:47 pm
Ever play IL-2 Sturmovik?
You have a base texture, modify it, save it as a .BMP (or whatever FSO would want to use) in the aircraft's textures folder, then load it up in an in-game menu.

So, for FSO, you could simply have either a new folder, called custom textures (probably would require lots of programming), or just have the game look for a "fighter2t-01-customA" in the root textures folder. The game would look through only names starting with "fighter2t" to load for, say, a Perseus, so only that shi's textures would show up.
Title: 'Custom Paint' textures?
Post by: JarC on April 30, 2004, 04:36:11 am
Quote
Originally posted by Unknown Target
So, for FSO, you could simply have either a new folder, called custom textures (probably would require lots of programming), or just have the game look for a "fighter2t-01-customA" in the root textures folder. The game would look through only names starting with "fighter2t" to load for, say, a Perseus, so only that shi's textures would show up.
Well, what I was thinking of would be more personal, so you could have 'per-pilot' skins. Like you I was thinking of a name trick using a combo of texture name and pilotname. The required code change would in single play then only be adding an additional file existance check.

The 'fan' starts getting hit when you move this to a multiplayer field, since then this check must also be done for other player's ships and precautions would have to be in place to move all these personalized textures to every other player...all in all a 'bit' more work than you would think on the surface...still, single player would be the best place to start...

At any rate, it should be as transparant as possible, should not require extra mission data (in fact I would not want missions to  even be able to change this personalized texture), but only an extra texture set for each ship you want to have a personalized texture on, pilotname should be added to the filename, either as prefix or as suffix. Or, say a table using the name of the pilot, which would specify which personalized texture would be for which model, although I like it less if folks would actively need to edit files. Kinda prefer the idea of having the game just do an extra file check and using them if they're there. Would be very much like as with the file types. If it finds a preferred file type it uses that one over the retail texture...
Title: 'Custom Paint' textures?
Post by: Trivial Psychic on April 30, 2004, 01:15:59 pm
When I used to race Need For Speed: High Stakes online, your player name would appear on the license place of your car.  I guess you're after kind of the same thing here.
Title: 'Custom Paint' textures?
Post by: JarC on April 30, 2004, 03:21:46 pm
yes, something like that, only I want to be able to a total make over, not just a nameplate or confirmed kills...hmmm, now that would be nice in multiplayer, an option to have your 'kills' from the stats automatically overlayed...
Title: 'Custom Paint' textures?
Post by: Starks on April 30, 2004, 05:59:12 pm
*Stamps 1500 Shivan craft symbols on fuselage*
Title: 'Custom Paint' textures?
Post by: Flaser on April 30, 2004, 09:10:03 pm
It has a vast singleplayer potential too - don't forget the campaign makers.

This way you can quickly setup different factions or create special divisions/groups in a nation/army using different skins.

For example you can give a rusty unattanded look for the pirates, while the imperial guard will have their ships super-overpainted with golden highlights - and the police with their plain red-blue painjob and scratchmarks...

...as I said it has infinite possibilities.