![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
11-16-11, 10:03 AM
|
#1 | |
|
Hellas
![]() |
Quote:
finally , you got this sorted ? one question is : what if one more ship from totally other direction(not a unit of the allready spotted convoy) appears in short time? @Rubini : the ambientlightcolor is NOT doing the trick at day (i am talking for this: edit: this idea just came: lets create an envcolors.dat which has a totally darked (0,0,0) ambientlightcolor value during sunny DAY and see if the detection ranges are reduced like it is night! if this is happening then my 'theory' about the sh3's engine reading the 'night' maybe is correct !) ....BUT i discover that by setting ambientlightcolor to 0-0-0 at night (without changing anything else at NYGM's visual sensors) i am getting MUCH MUCH better results ! i haven't made any tests the last week (becuase i am spending my free time for u-boot-hahd stuff) but i am almost sure that ambientlightcolor (and probably all other 'lights' during night like the 'SunReflectColor') if reduced (to zero if necessery) are giving 'good' results ! need to make more tests ,all that i am saying here are something like 'observations' and not facts . try it ,without changing anything at your sensors settings ,reduce to zero the ambientlightcolor and SunReflectColor during night and tell me : are you getting better results ?
__________________
Knowledge is the only thing that nobody can ever take from you... ![]() Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods |
|
|
|
11-16-11, 12:06 PM
|
#2 | |
|
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
|
Quote:
BTW, IMO, too dark nights in game will make the game (in ours houses) unplayable in normal conditions - i mean, during daytime, night with lights on, etc. So, I am not sure that using a so dark nights in game as unique solution (if it works) for vampire nights is a good solution. Will perhaps fix something but will narrow the game environment options to the players.
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
|
|
|
11-18-11, 01:58 PM
|
#3 | ||
|
Hellas
![]() |
Quote:
hello Rubini , i made some more extensive tests and the results are DEFINETELY much much better with AmbientLightColor and ReflectLightColor setted to 0-0-0 (just for the testing purposes) . i created a new mission with the target 'showing' us all of its hull (AoB=90) for being as easily as possible spoted . i have send you this mission (and something more) to test at your yahoo mail ,make a check there ! here is the results of my tests as for the detect ranges: i run the same mission 10 times on pure NYGM installation (no mods enabled and no tweaks at NUGM's files): 1. 8400 m 2. 13900 m 3. 10200 m 4. 13300 m 5. 14100 m 6. 12200 m 7. 13600 m 8. 13000 m 9. 11900 m 10. 10400 m then i run the same mission again 10 times but with AmbientLightColor and ReflectLightColor setted to 0-0-0 and here are the results at detect ranges: 1. TARGET NOT SPOTED AT ALL ! 2. 7900 m 3. 5600 m 4. TARGET NOT SPOTED AT ALL ! 5. 2600 m 6. TARGET NOT SPOTED AT ALL ! 7. TARGET NOT SPOTED AT ALL ! 8. TARGET NOT SPOTED AT ALL ! 9. 200 m 10. TARGET NOT SPOTED AT ALL ! so , as you can see , the AmbientLightColor and ReflectLightColor are definetely giving better results ! BUT i think that it is absolutely NESECCERY to start by locating what is causing this randomness to detect results and ELIMINATE this randomness during the development - tests (see the second pack results...there is one 7900 m !!!). that way ,we will be able then to have secure results as for the 'effectivness' of AmbientLightColor, ReflectLightColor and light factor's at cfgs files check your pm at yahoo mail , i am very curius to see your results Quote:
__________________
Knowledge is the only thing that nobody can ever take from you... ![]() Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods |
||
|
|
11-18-11, 02:10 PM
|
#4 |
|
Admiral
![]() |
@makman: I've found the code dealing with crew sensors. Different from my first statements, crew sensors do not use the same code as ememy sensors - they use completely different code! Not understood until now how it works.
If still desired, I'll try to add an ability to manually scale up/down the detection probability during gameplay. And I could also try to bypass the influence of random-numbers on detection in order to make influences more visible. Don't know what is possible. Not very optimistic. |
|
|
11-18-11, 02:21 PM
|
#5 | |
|
Hellas
![]() |
Quote:
about the probability of detection : i don't think that is needed a tool for 'scaling' this up or down . i really would like a tool that TOTALLY ELIMINATE the randomness (if possible of course). yes , this tool would help a lot during the development of mod and ,at the end, if the mod is complete we can enable back again this randomness(altered by us as it would be located) at values
__________________
Knowledge is the only thing that nobody can ever take from you... ![]() Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods |
|
|
|
11-18-11, 02:41 PM
|
#6 | |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
Quote:
I could possibly do an external script that will alter the distance detected influenced by the time of day if its not possible to hardcode it. I would need to find the line of code that stores the variables for detection range. Haven't tried it yet - will wait to see how you get on (Hardcoded would be a better solution) Again great work H.sie |
|
|
|
11-18-11, 04:03 PM
|
#7 |
|
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,135
Downloads: 147
Uploads: 12
|
Hi,
I don't know whether it's of interest, but here is an old post from OLC about visual sensors, light factors,... http://www.subsim.com/radioroom/show...postcount=1091 Cheers, LGN1 |
|
|
11-18-11, 05:14 PM
|
#8 | |
|
Hellas
![]() |
Quote:
@LGN1,this post of OLC was a real treasure ! the post of OLC 'showed' me that i hadn't setted to 0-0-0 the third (and seems more critical of all) environment 'light' !so , i setted also the sunlightcolor to 0-0-0 and the results of 10 runs of my previous message's mission are : 1. TARGET NOT SPOTED AT ALL ! 2. TARGET NOT SPOTED AT ALL ! 3. TARGET NOT SPOTED AT ALL ! 4. TARGET NOT SPOTED AT ALL ! 5. TARGET NOT SPOTED AT ALL ! 6. TARGET NOT SPOTED AT ALL ! 7. TARGET NOT SPOTED AT ALL ! 8. TARGET NOT SPOTED AT ALL ! 9. TARGET NOT SPOTED AT ALL ! 10. TARGET NOT SPOTED AT ALL ! OLC gave also another great tip ! that the reflectlightcolor is NOT effecting the visuals ,so i setted sunlightcolor and ambientlightcolor to 0-0-0 BUT i maxed a lot (not till higher max) the reflectlightcolor ! the results of 10 runs of same mission are : 1. TARGET NOT SPOTED AT ALL ! 2. TARGET NOT SPOTED AT ALL ! 3. TARGET NOT SPOTED AT ALL ! 4. TARGET NOT SPOTED AT ALL ! 5. TARGET NOT SPOTED AT ALL ! 6. TARGET NOT SPOTED AT ALL ! 7. TARGET NOT SPOTED AT ALL ! 8. TARGET NOT SPOTED AT ALL ! 9. TARGET NOT SPOTED AT ALL ! 10. TARGET NOT SPOTED AT ALL ! (see the pics of these settings....my crew hasn't spot the target ! neither ,of course my own boat is spotted---don't pay attention at colors ...are just for testing purposes) ![]() what does all these means ??? that he have a SOLUTION for the vampire effect ! a very CAREFULL selection of colors (intensity and RGB) at sunlightcolor and ambientlightcolor during night will give us the desired detect ranges for own crew ! and then we can SAFELY enlight the ships-sub as much we want via the ReflectLightColor and make them to come in harmony with the environment !!.of course ,this is something that must be done to each ones envcolors.dat @H.Sie, i think that this is a perfect solution to vampire effect ! need ,of course , to create the envcolors.dat to see it 'working' in game but i am very optimistic that it will 'work' for sure !! in this case,if you manage to create this tool that will eliminate the random probabilities at detect ranges we will be able to set these colors giving us the desired detect ranges ! i really believe that we are very close to fix it without the need of the 'hardcode' way! =======
__________________
Knowledge is the only thing that nobody can ever take from you... ![]() Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods Last edited by makman94; 11-20-11 at 12:22 PM. |
|
|
|
11-18-11, 07:15 PM
|
#9 | |
|
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 149
Uploads: 0
|
Quote:
My vote, my ask, continues to be to a hard fix on player crew night visual sensor. I´m ready to help h.sie in any test. ![]() I don´t have NYGM installed on my system to make the tests that you asked me. But if it works, it will work at the stock game too. I will have a look and let you know my results
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
|
|
|
11-19-11, 08:31 AM
|
#10 |
|
Admiral
![]() |
@reaper:
I use a single mission with one ship at 16km distance, coming slowly into my direction. If you set a breakpoint at sh3.exe + 0x118F03, you can see a (float)variable on the stack at [esp+10]. This could be something like a detection probability. As long as its value is very small, the ship is not detected. If now distance gets smaller, this value rises, and suddenly jumps up to high values (currently don't know why). In this moment, the ship is detected, reported and shown on the nav-map. If I force this value to 0 by a little hack, the ship is never detected, even if its very near at daylight. Last edited by h.sie; 11-19-11 at 08:51 AM. |
|
|
11-19-11, 09:30 AM
|
#11 | |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
Quote:
And the Range location I posted above appears to activate exactly at the contacts max detection range (The circle shown when you click on the contact on the Nav-map at Easy Realism settings). So I would Imagine the variable you found is 0 upto this point and then rises in a logarithmic fashion the closer you get to the contact (Same way the Stadimeter works for range finding) . That would explain why the value appears to jump to high values all of a sudden.So using both of these Instructions my thinking of a solution would be to NOP the Instruction that write to the (sh3.exe + 0x118F03) so no value is sent to the memory location. Then using the Instruction for distance to nearest contact (Sh3sim.act+16E26) we can send a large value to the sh3.exe + 0x118F03 location whenever we want. So in essence we could send the value for different ranges for different stages of the day. So if its dark send the large value (To activate the contact spotted routine) when the range to contact is between 1200m and 800m. Like wise if its bright out then send the Large Value when target is between 20Km to 16Km out etc. EDIT: Just looked at the code you posted (sh3.exe + 0x118F03) and this is the same value as the (Sh3sim.act+16E26) So the variable on the stack at [esp+14] = Range to Contact while on the [esp+10] = Detection probability Edit2: While the range to contact is read in at (sh3.exe + 0x118F03) from (Sh3sim.act+16E26) its not constant variable keeps reading in from other areas too. so jumps all around when breakpoint not set. So (Sh3sim.act+16E26) is a better solution for range as it value is constant updated for range only. Not sure how to use Ollydebug to find [esp+10] to see the variable you refer to ?? Last edited by reaper7; 11-19-11 at 10:46 AM. |
|
|
|
11-19-11, 09:44 AM
|
#12 |
|
Admiral
![]() |
@reaper: Yup, try that out. That could already be a solution. In the meantime I try to understand how the variable is calculated.
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
