Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Bobboau on November 14, 2002, 12:14:06 am
-
who here is in charge of makeing changes to fred, I would like to add something to it but I'm fiarly sure I'm gona fail misrably
*dong*
ah, MSVC is done trying to compile it
:wtf: cannot open file "nafxcwd.lib", what the hell is that!?
well anyway I want an optional string after
+Persona Index:
called
+nameplate:
it loads a string
I'd like the dialog to be in the misc submenu
or somewere in the ship editor dialog
also one in the wing editor if you could(for all ships in a wing)
so for example
someone puts in "deathsquad" in the mission the line will be
+nameplate: deathsquad
I've just got the mission parseing code done, hmm I should probly update again so you have it too,
anyway who if anyone is willing and able to do this for me
-
Im not doing the fred, but i dont quite understand what you want to do with the nameplate. Could you elaborate? (yes, it does rhyme)
-
I have made nameplate code,
I want someone to add a (or several) dialog(s) in fred that you type in the name of the texture you want to be used into and then that name gets saved as
+nameplate: nameoftexture
at the end of a ship section in the mission file
for example, this is from my test mission that I had to manualy add the nameplate string
$Name: bad 2 ;! Object #2
$Class: GTF Ulysses
$Team: Hostile
$Location: 1.616962, 0.000004, 92.793648
$Orientation:
1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 1.000000
$IFF: IFF 1
$AI Behavior: None
$Cargo 1: XSTR("Nothing", -1)
+Initial Velocity: 33
+Initial Hull: 100
+Subsystem: Pilot
+Primary Banks: ( "Targeting Laser" "Subach HL-7" )
+Secondary Banks: ( "" )
$Arrival Location: Hyperspace
$Arrival Cue: ( false )
$Departure Location: Hyperspace
$Departure Cue: ( false )
$Determination: 10
+Flags: ( "cargo-known" )+Respawn priority: 0
+Group: 0
+Score: 8
+nameplate: deathsquad
note the last line
now in mission bad 2 has the deathsquad logo plastered upon his insigs
if you were to give a capship insig data you could use this as opposed to haveing a diferen't pof for each ship (like the normal Orion then the Bastion and Galitea)
I'm hyped up on tea baised caffeen right now so sorry if I don't make too much sence
-
thats actually an awsome idea... too bad i dont use the source code due to the fact it dosn't run well with my mod (or at all). But still a great idea :yes:
-
we realy should start to focus on makeing FSO more mod frendly
-
here is an example
(http://freespace.volitionwatch.com/blackwater/nameplate.jpg)
as you can see in my hast I got the UV's backward
now this is somewhat deceveing becase it realy isn't rendering that well, but I think it will be more up to the modeler than me though I think I should be able to get it a little better
-
ok I fixed of the rendering code a bit, but the artist will need to remember to use polygons smaller than the face that they areputting the nameplate on, considerably smaller hopefuly
-
Bobboau, you amaze me.
-
this one wasn't too hard, all I did was add an int to the ship structure and loaded the texture number for that ship's nameplate into it when it loaded it on mission load, then it's a simple mater of putting that int in as the default, if there is no texture loaded it uses -1, then I added a flag in the rendering code that gets them to look nicer
oh, I just realised I forgot the default, I'll get it tomaro
-
Just need it to light properly instead of being independant of dynamic lighting.
-
the problem is I don't think insgs have any normal data
-
Damn good idea Bob, I thought it would have been lit OK from the code I've run over in my time, but I guess not.
-
well, no one is in charge of it, DTP has been making the most changes to it recently.
Wanna be "in charge" of it, Bob?
-
nope I look at that code and it scares me :shaking:, I couldn't get to sleep last night :nervous:
not to mention I couldn't get it to compile, it said it was missing some sort of LIB (that I've never heard of)
so...
I hearby nominate DTP offical Fred code ***** :D
-
Ah, the lib, it needs the lib from the main fs2 codebase, one of the things I still need to do is merge that sucker basck into open...
-
I'm trying to get lighting to work but even if I manualy put in an RBG value into the vertex it still renders flat (looks like rbg of 128,128,128 for all verts)
is there some sort of global I need to set to get lighting to work
-
Software rendering is intensity only. Back in the pre-hardware days, doing 1/3 of the work per pixel was pretty important :)
-
Originally posted by Bobboau
nope I look at that code and it scares me :shaking:, I couldn't get to sleep last night :nervous:
not to mention I couldn't get it to compile, it said it was missing some sort of LIB (that I've never heard of)
so...
I hearby nominate DTP offical Fred code ***** :D
:D
and i nominate bobboau
dont know how to put it in short
"somehow he always gets to get started on all those things i plan to look at".
and first come is first served.
"nicking mind reader" :).
but ok ill give the fred code a good hard look and see if i escape from it alive.