** Tutorial ** - Bar Nebula Background
So, you’ve created, say, a red nebula. Now you want it to show up in your bar, only to find you don’t know how. I discovered the method today, by comparing five bar .thns. This is my first tutorial, so please bear with me.
To do this, you’ll need some simple things:
A calculator.
A .thn decompiler (I use FLED_Thorn).
A word editing program (notepad, Microsoft Word, etc.)
Microsoft Paint, or something similar.
Open up your bar file (I used “br_08_bar_ambi_ew02_01” which is the bar of Ruiz in Omicron Beta). Scroll down until you find something called "ambi_LtG23_Sky_Amb". It should look something like this (minus the arrows):
{
entity_name="ambi_LtG23_Sky_Amb",
lt_grp=23,
lightprops={
on=1,
cutoff=98.999977,
direction={
0,
0,
1
},
range=2000,
ambient={
0.584313725, <------------
0.258823529, <------------
0.690196078 <------------
},
specular={
0,
0,
0
},
type=3,
diffuse={
0,
0,
0
},
atten={
1,
0,
4e-006
},
color={
255,
255,
255
},
theta=90
},
template_name="",
spatialprops={
pos={
2.635458,
0,
1.632055
},
orient={
{
0.636787,
0,
-0.77104
},
{
0,
1,
0
},
{
0.77104,
0,
0.636787
}
}
},
type=5,
usr_flg=0,
srt_grp=0
},
The arrows indicate the lines that need to be changed. This is the same RGB stuff that you deal with, except in decimal form. To find out this color (purple, in this case), you would take those values (0.584313725, 0.258823529, and 0.690196078) and multiply by 255, rounding your answer. Then plug these into your imaging editor under custom colors, and you should get purple. Here is a POC picture:
Take your own RGB values (edit them until you’ve found the color you want), and divide them by 255. You should get a decimal answer. Without rounding this, plug it into the indicated lines above. Save your script, load up the game, and enjoy!
MK
Chips, I'm not good a discovering things; this is my first. So, probably not on the asteroids.
Edited by - mknote on 6/14/2005 4:06:55 PM
To do this, you’ll need some simple things:
A calculator.
A .thn decompiler (I use FLED_Thorn).
A word editing program (notepad, Microsoft Word, etc.)
Microsoft Paint, or something similar.
Open up your bar file (I used “br_08_bar_ambi_ew02_01” which is the bar of Ruiz in Omicron Beta). Scroll down until you find something called "ambi_LtG23_Sky_Amb". It should look something like this (minus the arrows):
{
entity_name="ambi_LtG23_Sky_Amb",
lt_grp=23,
lightprops={
on=1,
cutoff=98.999977,
direction={
0,
0,
1
},
range=2000,
ambient={
0.584313725, <------------
0.258823529, <------------
0.690196078 <------------
},
specular={
0,
0,
0
},
type=3,
diffuse={
0,
0,
0
},
atten={
1,
0,
4e-006
},
color={
255,
255,
255
},
theta=90
},
template_name="",
spatialprops={
pos={
2.635458,
0,
1.632055
},
orient={
{
0.636787,
0,
-0.77104
},
{
0,
1,
0
},
{
0.77104,
0,
0.636787
}
}
},
type=5,
usr_flg=0,
srt_grp=0
},
The arrows indicate the lines that need to be changed. This is the same RGB stuff that you deal with, except in decimal form. To find out this color (purple, in this case), you would take those values (0.584313725, 0.258823529, and 0.690196078) and multiply by 255, rounding your answer. Then plug these into your imaging editor under custom colors, and you should get purple. Here is a POC picture:
Take your own RGB values (edit them until you’ve found the color you want), and divide them by 255. You should get a decimal answer. Without rounding this, plug it into the indicated lines above. Save your script, load up the game, and enjoy!
MK
Chips, I'm not good a discovering things; this is my first. So, probably not on the asteroids.
Edited by - mknote on 6/14/2005 4:06:55 PM