Reminder: Internet Explorer 6 or below are NOT supported.





|
There are currently 87 users playing Freelancer on
86 servers. | May. 19, 2013 |
Browsing this Thread:
1 Anonymous Users
Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Just popping in
![]()
Joined:
2008/8/13 17:40 Group:
Registered Users
Posts:
6
![]() |
Hello all,
I've just put some weapons in-game but I would like to "theme" them for different factions. Right now I'm using ku_capgun_01 effect and with the orange and yellow and white it is perfect for the faction I made it for. However, I'd like to theme a purple one and a green one for two other factions in my mod. The trouble is, I don't know how to do this. Through my vast research I've narrowed it down to the ku_capgun_01 effect in FX/WEAPONS. I've also noticed that chances are I need to edit either the ALE file or the ANL file, and so I downloaded the ALE editor packaged by Digital Brilliance and posted on this forum. Unfortunately I haven't the slightest clue what to edit to change the color. I'm up a creek at the moment so any help anyone can offer would be extremely appreciated! Thanks
Posted on: 2008/8/13 21:36
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2974
![]() |
Once you've decoded the ALE file with the ALE Editor, look in the TMP folder and find the Node_Color. All colors are written as TRGB (timing, red, green, blue) in decimal count (so 0.5 is 255/2).
Posted on: 2008/8/13 22:26
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
Joined:
2008/2/12 22:38 Group:
Registered Users
Posts:
33
![]() |
Just further, I would suggest using FF's excellent FLDev program (found here on this site) for calculating RGB into decimal, as it includes some extremely helpful Math Tools, including the RGB to decimal converter and vice versa.
Which brings me to a couple of my own questions. 1. Is there any particular upper limit to the 'timing' value? I haven't really had a chance to play around with it yet, mainly as up until I read this thread I didn't have the foggiest what the first value was, lol. 2. Also, do you have to keep the decimal values with the same number of decimal places? To explain. Original: 0.8000000715255737 New: 0.1759386039582745 Do I have to keep my new values to the same number of decimal places? Or can I have a number that only goes to, say, four decimal places (like calculated decimals from FLDev)? And FL will still be able to read it correctly. I'm fairly sure (from memory) that I've had some work either way, so I may as well ask someone who definitely knows rather than just play around and make my own (possibly incorrect) assumptions. Hope that makes some sense. Avenger
Posted on: 2008/8/14 0:55
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/2/10 22:00 Group:
Registered Users FLServer Admins Senior Members
Posts:
1258
![]() |
No, you can use any number of decimal places you want. A perfect example is the version number.
After further tests since that version of the ALE Editor was release, it looks like FL is based on a 10 digit based decimal system, so I will probably reduce the decimal output to 10 digits. Timing in the color section is usually 0.0 to 1.0. It depends on how you are using the color as well. A basic FX would simply use the entire range of 0 to 1, but an engine requires it to be at specific sub-sections of that time frame. An example of this is for a 5 sec anim, at 0 the FX happens immediately. At 0.5 the FX happens at 2.5 secs, at 1.0 it happens at 5 secs.
Posted on: 2008/8/14 1:17
|
|||
|
Galaxy Empire Youtube Videos |
||||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Just popping in
![]()
Joined:
2008/8/13 17:40 Group:
Registered Users
Posts:
6
![]() |
Much to my chagrin I don't see any reference to Node_Color in the decoded ALE. Here is a copy of the file I'm working with:
Code: Can you guide me to the specific element I'm to be editing? EDIT: I checked out the ANL file and there seems to be some references to color in here. Can you guide me specifically which ones have the effect on the weapon effect? (IE: Inner glow, Outer glow, etc.) Code: Side note: I can't find FLDev in the downloads or the archive ![]() Thanks for the replies! I'm dyin' here!
Posted on: 2008/8/14 4:41
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
Joined:
2008/2/12 22:38 Group:
Registered Users
Posts:
33
![]() |
This I can help you with. The section of the .ANL file you are looking for is 'ku_capgun_01_proj.app', which is the section of the ALE file you are referencing to through various references in weapon_equip.ini, effects.ini etc.
The actual section of the file you want to be editing is BasicApp_Color in the ku_capgun_01_proj.app section of the .ANL file. That controls the colour of the projectile. But my best advice is to just change one value at a time, encode it to an .ale file, put it in the relevant folder in FX, test it in-game and note what section of the projectile it changes. Rinse and repeat. I usually change the colour of one section to a really obvious colour compared to the rest of the effect, EG: gf_nomadwormholeopening_horizbeam.app, and I noted that the normally blue beam coming out of the top and bottom of the effect had changed to blood-red, and hence I confirmed that gf_nomadwormholeopening_horizbeam.app was that particular part of the effect. It's tedious, but you can pick it up fairly easily once you get into the groove. As for FLDev, I just remembered that there is only a link in a post that link's to another site. Here's the link. http://www.eredivine.net/FLDev_1.001b01.zip That should help set you on the right path.
Posted on: 2008/8/14 5:04
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Just popping in
![]()
Joined:
2008/7/24 14:27 From South Africa
Group:
Registered Users
Posts:
18
![]() |
OK, sorry to but in here but just want to help, the weaon_equip.ini references everything, just read the names of the FX_Type = FxBasicAppearance and FX_Type = FxRectAppearance in the anl. Some effects also use a FX_Type = FLBeamAppearance. They will have _flash, _proj, _impact and other extras attached to the names. These are pretty simple to figure what part of the weapons effects they are used for and these are all used by the weapon in the ini.
As FF said, node_color under Node_Name = ku_capgun_01_proj.app (_proj for projectile ) is what you want to change.The appearence sections are what you want to change for things like opacity (or varying levels thereof), color (once again varying levels if you want) and size. (also if you want to be flashy and create animated textures you would specify how the animation plays under the appearence section but leave that for now). So if you want it to be say green then you would change it to this: SubEntry = 0.0000000000000000, 0.0000000000000000, 1.0000000000000000, 0.0000000000000000 SubEntry = 1.0000000000000000, 0.0000000000000000, 1.0000000000000000, 0.0000000000000000 So now it will be green from start to finish, but you could have a rainbow effect too: SubEntry = 0.0000000000000000, 0.0000000000000000, 1.0000000000000000, 0.0000000000000000 SubEntry = 0.2000000000000000, 1.0000000000000000, 0.0000000000000000, 0.0000000000000000 SubEntry = 0.4000000000000000, 1.0000000000000000, 1.0000000000000000, 0.0000000000000000 SubEntry = 0.6000000000000000, 0.0000000000000000, 1.0000000000000000, 1.0000000000000000 SubEntry = 0.8000000000000000, 1.0000000000000000, 0.0000000000000000, 1.0000000000000000 SubEntry = 1.0000000000000000, 0.0000000000000000, 0.0000000000000000, 1.0000000000000000 Just my 5cents, hope it helps a bit more.
Posted on: 2008/8/14 11:40
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Just popping in
![]()
Joined:
2008/8/13 17:40 Group:
Registered Users
Posts:
6
![]() |
Okay, I've found the releavant part of the file - thanks for the guidance!
Now I'm looking at the daunting task of knowing which of those decimal values to edit, IE: Code: Since the FLDev program doesn't seem to give RGP values from decimal values it's tough to know what is what. Are these gradients? Is one SubEntry all one color? What's the method to the madness? EDIT: I've tried changing the values to see what happens but unfortunately I can't figure out how to properly re-encode the files ><. When I use ALE editor it just gives me my_effect.tale. My kingdom for a Readme.
Posted on: 2008/8/14 17:43
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2974
![]() |
.tale is just like .ale. Replace the old ALE file with the new one and it'll do the trick.
FLDev actually does swap through between RGB and Decimal in the Math Tools. As long as the syntax is correct, it should work. Remember however that the first value in the SubEntry is timing and should NOT be put in FLDev.
Posted on: 2008/8/14 20:11
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Just popping in
![]()
Joined:
2008/8/13 17:40 Group:
Registered Users
Posts:
6
![]() |
Quote:
Ah, of course . I made the changes, fixed a few FUBARs I made, and BAM It works! Thanks so much to all of you! I would never have figured that out without your assistance!Unfortunately I've still got one last problem. The effect that I originally was copying from, is now mimicing the same colors (even though I put this in a totally seperate file. Here's my references WEAPONS_ALE.INI Code: EFFECTS.INI Code: I have a feeling it is the effect_crc number being the same since the two are in different fx files - but how do I generate a new one? Google yields no help yet again.
Posted on: 2008/8/14 21:25
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2974
![]() |
You should find a CRC calculator on digitalbrillance.com in the downloads section, made by our one and only Lancer Solurus (look for DB software).
Posted on: 2008/8/14 23:04
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Just popping in
![]()
Joined:
2008/8/13 17:40 Group:
Registered Users
Posts:
6
![]() |
But which number do I use? All the ones I tried made the effect not display (invisible firing)
Posted on: 2008/8/14 23:12
|
|||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2974
![]() |
You take the effect's name in the AEL file and plug it into the calculator, then get the CRC out of it.
Posted on: 2008/8/15 0:02
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/6/25 18:56 From Temecula, California
Group:
Registered Users Senior Members
Posts:
284
![]() |
removed
FF's Pic should be more than enough :p
Posted on: 2008/8/15 0:25
|
|||
|
be always firm in belief, yet never rigid My Nomad Hive project website -which I can no longer update (thx verizon!) |
||||
|
||||
Re: Change Color of Weapon Effect |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2974
![]() |
Both are the same...
Remember Freelancer uses unsigned integers for CRCs. this means there are always two possible ways to represent a CRC in decimal, one positive and one negative. 0xFFFFFFFF = 4 294 967 295 (maximum value of any integer) Say I take "test" as a CRC, it gives me either -4192492930 or 102474366... -4 192 492 930 + 4 294 967 295 = 10 2474 366
Posted on: 2008/8/15 1:09
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||










Donations
Forum






) is what you want to change.
. I made the changes, fixed a few FUBARs I made, and BAM It works! Thanks so much to all of you! I would never have figured that out without your assistance!