NOTE : that is only for 40K 0.33 and Rosigma 1.09D, further version of Rosigma will have different view distances, day and dark visibility settings, so don't use those macro for Rosigma version superior to 1.09D, check the next post for newer versionFound a way to automate the process thanks to Notepad++ macro system (as trying to make it as a minimod would be pure masochism and taking way more time than i have), that as basic as the functionality unfortunately is (as you'll need to copy paste them instead of simply loading my macros) it will do the whole thing very fast and allow you to
- change the max view distance to 30 and carefully rebalance every troops individual day or dark view distance to take in account the new one.
and/or
- remove the additional maphack system given to the AI with the sniper/spotter OXCE function
for this to work you NEED to have Notepad++ installed (as it's the best text editor you should have it anyways) :
https://notepad-plus-plus.org/downloads/If you never had Notepad++ on your computer before, after installing, launch Notepad++ then quit it
Now go to
C:\Users\YourUSERName\AppData\Roaming\Notepad++\
If you never ever worked with Macro function of Notepad++, don't worry i put a detailled step by step tutorial , if you already know, just go download the file and copy paste their content where you know they have to be copy pasted.
With notepad++ , open the file named "shortcuts.xml" that is present there
At the beginning of the file you should see
<?xml version="1.0" encoding="UTF-8" ?>
<NotepadPlus>
<InternalCommands />
<Macros>
<Macro name="Trim Trailing Space and Save" Ctrl="no" Alt="yes" Shift="yes" Key="83">
<Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
<Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
</Macro>
</Macros>
BETWEEN the last 2 </Macro> entries
</Macro>
</Macros>
Copy paste the content of the text files attached to this post (either from both, or from just one of them)
Close shortcuts.xml the file and save the changes.
Now this macro is setup if your installed 40_033 and Rosigram_main are installed to
C:\OpenXCOM WH40K\User\mods\40k_033\Ruleset\
C:\OpenXCOM WH40K\User\mods\ROSIGMA-main\Ruleset\
It's very likely you have installed it differently, in that case, open the shortcuts.xml you already edited, then press CTRL+F
It will bring the Find&Search window.
Click on the "Replace" tab, in front of "Find What", copy paste
C:\OpenXCOM WH40K\User\mods\40k_033\Ruleset\
and in front of "Replace with", type the path where your openxcom is installed, by example if you have installed your openxcom in C:\Games\OXCE\ , you will then type
C:\Games\OXCE\User\mods\40k_033\Ruleset\
Then once you have things correctly setyp, click on the "Replace All" button
Do the same with adding at "Find What"
C:\OpenXCOM WH40K\User\mods\ROSIGMA-main\Ruleset\
and your installed path in front of "Replace With", then click on the "Replace All button.
Close the "shortcuts.xml" and save the changes
Now load notepad++ again.
on the top menu click on "Macro"
You will notice there are 2 more macro
"disable AI Maphack 40k Rosigma" and "40K Rosigma max view distance 30"
click on the one you want to launch
You will have to click OK when asked (+/- 20 times on the max view distance macro)
Once you're done, you may want or not to click on the other macro to launch it (do NOT relaunch the macro you already used, as it would certainly break the carefully setup balancing completely)
When finished, either get rid of both macros (though you may want to re-use them if 40k or Rosigma are updated or you'll get back to the original mega huge view distance) in the Macro menu -> Modify Shortcut/Delete Macro , or simply quit and enjoy your xcom-ised 40k+Rosigam