Author Topic: Specular lighting issue  (Read 2824 times)

0 Members and 1 Guest are viewing this topic.

Specular lighting issue

I have a mission where a number of fighters are going at it with high rate of fire miniguns.  During the hottest part of the battle, it seems like the specular lighting gimps out...the sun "flare" effect shuts down, and the spec lighting on the hulls of every space craft turns off, only to flicker on and off as the firing recedes, then return once nobody is shooting anymore.  This is odd and annoying.  I tried setting -spec_point 0 to make it so the weapons had NO impact on the specular lighting, but everything still happens as outlined above.  I feel like I'm missing something.  Is there any way to fix this issue?

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Specular lighting issue
You may be hitting one of the engine's limits (I suppose either bitmaps or objects, not sure). You are bound to see weird issues crop up there. Only way to fix it is to lower the weapon's ROF.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Specular lighting issue
Run the mission with debug build and analyze the log afterwards. Usually any limits you hit are recorded in debug log.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Specular lighting issue
What is the fire wait of the weapon?
Also, it's lifetime would be helpfull.

 
Re: Specular lighting issue

Firewait 0.1, lifetime 2.0.  It is also Energy Consumed: 6, which on my fighters simulates the "burst" effect to be incorporated into 3.6.11...i.e. it drains your energy reserves fast, but I modded ships.tbl so the recharge rate is pretty quick too.  Anyway, I find that with about 40 fighters going at it, these strange lighting effects begin to kick in.  It seems like there should be someway to knock that off....I mean, if the weapons are contributing NOTHING to specular lighting, why would the sun-based lighting and the solar flare effect suffer as well?

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Specular lighting issue
Run the mission with debug build and analyze the log afterwards. Usually any limits you hit are recorded in debug log.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Specular lighting issue
Yes, do this.
0.1 isn't that fast, I have a gatling gun that fires much faster, but have short lifetime (so the bullets will disappear fast enough not to hit any limits).
40 fighters is quite a lot though, so they may be hitting some limit.
Are you sure you need that many?

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Specular lighting issue
40 fighters with a fast firing weapon that has a 2 second life time like that can probably produce enough projectiles to hit the limit.
One Erinyes alone could produce like 160 shots onscreen that way (if my math isn't horribly mistaken)
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 
Re: Specular lighting issue
Every time I try to run the debug, it gives me a black screen....hitting ESC gets me out of it, but errorlog doesn't update?  This has been an ongoing issue for me.

UPDATE: OK, I got the log to come back but couldn't get into the startup menu.  I could use some help interpreting the log...

[attachment deleted by admin]
« Last Edit: February 17, 2010, 12:14:20 am by killface »

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: Specular lighting issue
Not errorlog.txt.

fs2_open.log in freespace2\data.
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

 
Re: Specular lighting issue

OK, here it is...keep in mind I cannot get into the game at all when running the debug mode, and not sure why.  This is a separate issue from the lighting one...

[attachment deleted by admin]

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Specular lighting issue
Do you have a debug_filter.cfg in your data folder? Please delete it, and run the debug build again. Then post that log. The one you posted just now is unusable due to the +parse option.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Specular lighting issue

Alright, here's the updated file...

[attachment deleted by admin]

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Specular lighting issue
Code: [Select]
WARNING: "$Rearm Rate for ballistic primary CMI 71-KEC not specified.  Defaulting to 100..." at Weapons.cpp:2585
Int3(): From e:\storage\fso\fs2_open_3_6_10\code\globalincs\windebug.cpp at line 1326

You have edited your weapons.tbl, or placed custom mods in either FreeSpace 2\data or mediavps\data. Please remove those, and place them in a custom mod folder.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Specular lighting issue

mediavps is the custom folder...but the tables are all in mediavps\data\tables.  There are some older, duplicate tables hanging out just in the mediavps directory...you're saying I should delete these?

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Specular lighting issue
Delete them, or move them to another mod folder.

Please remember this for the future: Do not put custom content, especially not table files, in the mediavps or base FS2 folder. It makes troubleshooting much, much harder, and as evidenced here, when the custom content is actually bugged, can kill the game.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Specular lighting issue

Thank you for the tip, I had been considering deleting the clutter, but I'm still unclear on where custom content belongs, then.  If mediavps IS the mod I'm using, the tables go in mediavps\data\tables, correct?  Where do custom models and effects go, to still be active in that mod?  Or are you saying that during troubleshooting, all custom content has to be temporarily moved?  If so, how does this help me identify the spec lighting trouble with the custom weapon I made via weapons.tbl?

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Specular lighting issue
1. Create a new folder in your FS2 directory. Name it "mymod" or whatever. Place all your custom data in mymod\data\whatever, following the rules as laid out here: http://www.hard-light.net/wiki/index.php/FS2_Data_Structure

2. Create a new text file in the mymod directory. Rename it to "mod.ini". Copy the following text into that file:
Code: [Select]
[multimod]
secondarylist = mediavps;
Save the file.

3. Use the Launcher to select "mymod" as the active mod. The game will now load data from mymod before the mediavps, enabling both mods.

Now, none of these issues help you find the issues directly, but they make organizing your modding work easier, and as I said before, makes helping you once you run into problems easier.

It seems to me that you should spend a good deal of time absorbing the info in the Wiki's modding portal, especially with regards to tbms.

As for your current problem, first see if the issue appears with the unmodified mediavps. If it does, we'll work from there. If it doesn't, post the weapons' tbl entry, so that we can take a look at it.

EDIT:
Code: [Select]
WARNING: "$Rearm Rate for ballistic primary CMI 71-KEC not specified.  Defaulting to 100..." at Weapons.cpp:2585
Int3(): From e:\storage\fso\fs2_open_3_6_10\code\globalincs\windebug.cpp at line 1326

This is one error in the weapon entry you _need_ to correct.
« Last Edit: February 17, 2010, 11:19:55 pm by The E »
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Specular lighting issue
OK, folder rearranged per the wiki.  The only remaining problem with this rearrangement is that when I attempt to test out my mission again, it's telling me that the mission is incompatible with my currently selected mod (which is the new folder, mymod).  None of the ships and weapons are pulling from the tbl files, which are within the mymod subdirectories now.  How do I "redirect" this mission to pull the data from the new folder?

EDIT: Disregard the above....retesting mission now
« Last Edit: February 17, 2010, 11:49:46 pm by killface »

 
Re: Specular lighting issue

Reposting the fs2_open log now...it crashed on startup again.

[attachment deleted by admin]