![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
|
|
Thread Tools | Display Modes |
11-28-10, 05:08 PM
|
#11 |
|
Admiral
![]() |
@Stiebler: Great news. So I save the time for programming your idea and can concentrate on my own idea. So three different approaches to fix the weather bug are better than none!
1) Reduce weather period by a factor of 3 2) Subtract 15m/s from values > 15m/s 3) Force good weather after long bad weather periods. I agree, this weather issue is worth a new thread. So this will be my last answer regarding weather in this thread. Some words: 1) I would not dare such a deep intervention in the algorithm as you did, but that's only my "intention", not knowledge, and I may be wrong. So I'll restrict on a fix that is only active when long bad weather occurs, because I like the sh3 weather from what I've seen so far. Hope, "your" weather isn't too good now. 2) I could give you a unmodded EnvSim.act but with code section write-enabled. So you can store values. But if you store data, I suggest to use relative pointers instead of absolute, because in WinVista and later the DLLs and ACTs can be loaded to different memory locations every time the game is started. So static pointers may work on your sytem, but possibly not on others. This was the reason for the CTDs on Win7/64 in my earlier fixes. 3) Maybe as a programmer you know that already, but let me in spite of that say what could lead to sometimes non-obvious side-effects: In my first patches I was not 100% accurate by reconstructing the state of the CPU and FPU after the patch. FPU registers, FPU stack pointer, CPU registers and CPU stack pointer should look the same before and after your patch. otherwise side-effects are possible (example: crew fatigued instantly when snorkelling, because I forgot to reconstruct FPU registers and so a wrong value was taken to calculate fatigue). 4) Yes, funny, SH3.exe seems to load all files it can find in that directory, it seems not related to the filename. Same behaviuor in the library folder, where I renamed an old Materials.dat to Materials_old.dat but this file was loaded anyhow. It's related to sh3.exe, not OllliDbg. Greetings. h.sie Last edited by h.sie; 11-28-10 at 05:40 PM. |
|
|
| Thread Tools | |
| Display Modes | |
|
|
