Well, here's what I've found out:
Compass.tga.tx and Compass1.tga.tx is -exactly- the same image file, with the new compass.
So the images the system switch between when turning the mod on or off are the - very same-.
(the other pictures in the realistic compass switch list are seems to be different as they should.)
The method of turning mods on or off in the files mod_on_off, battleinterface.c , and option_screen.c seems flawless, no matter how vicious I was sniffing around it...
Maybe can be optimised, but I have not yet have any idea how.
I have a CM 1.5 install, I think I can steal the COAS stock compass image from that.
Elderlaw:
I have a nice idea how to check that my mod causes the index trouble or not
![Big Grin :D :D](/styles/emoticons/biggrin.png)
I don't know what gave it, Im drinking coffee, skipping pushups... ... (as in every day since months) cold, damp Mercian air, and I read your posts here.
So maybe some of the posts.
Edit1:
Replaced the compass.tga.tx with the stock one, now it switches to stock compass, so you can see the texture beneath it, supposedly the radar. The problem is, that the indicators_dark_and_center_ship.tga.tx "stock" texture is currently a texture that intentionally covers the whole area, making the radar blank. So I need to put the stock texture there also.
Im going to check the spyglass mod method, as I think there is a need for this covering picture, just need to be implemented right, like indicators_dark_and_center_ship.tga2.tx so it can be used by that mod, as a third texture.
Edit2:
Yes, one directory deeper (in "battleinterface" dir) theres also a battleinterface.c, realistic spyglass activates there- I can put the covering picture there as a third one- so realistic spyglass if on are going to blank the radar, and if off, going to show stock radar.
Edit3:
Huh, had to add the code
if(!REALISTIC_SPYGLASSES) // = If Realistic Spyglass is NOT enabled
{
}
else // = If Realistic Spyglass IS enabled
{
BattleInterface.navigation.emptyTexture = "battle_interface\indicators_dark_and_center_ship2.tga";
}
To the main battleinterface.c, under the realistic compass switch, because in the spyglasses own file it DOES NOT WORK, but now the situation is this:
If you turn on realistic compasses, wind indicator is not present, new reload picture is there, etc., if you turn it off, wind indicator turns on, stock reload picture, etc.
if you turn on realistic spyglasses, all spyglas info is based on the mod, and theres an artistic covering picture instead of the radar, if you turn it off, stock spyglass info, and stock radar.
As spyglasses mod states that it can bring you the stock radar, but turn it off when its on.
So with these two mod on/off you can have:
-wind indicator, but no radar (real spyglass on, real compass off)
-wind indicator with stock radar, (both off)
-stock radar without wind indicator (cannot be done)
-compass instead of radar without wind indicator. (both on)
At least it now works as it stated in the two mod's ingame info.