Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fog of War
#1
By chance, do any of you guys know if the FoW can be removed with a .dll mod? Or is this something we have to wait for the official tools for? I have some theories I want to test in a controlled environment.
Reply
#2
Hey G4M5T3R,

Yes, this can be done with a DLL mod. We removed the FOW before just to see what the AI was up to. I'll try and see if I can find it and upload it here.
Reply
#3
Sweet, I'd appreciate it.
Reply
#4
I found it. It is uploaded here. 

For those interested in how it was done:

Code:
using HumankindModTool.Framework;
using Amplitude.Mercury.Simulation;
using Amplitude.Mercury.Interop;

[assembly: ModPackage(
    Creator = "AOM",
    Name = "No Fog of War",
    Description = "Removes the fog of war from the game."
)]
namespace AOM.Humankind.NoFogofWar
{

    public class NoFogofWar:DepartmentOfTheInterior
    {
        [PrependMethod(Type= typeof(DepartmentOfTheInterior), Member =nameof(DepartmentOfTheInterior.Load))]
        public void Load_RemoveFOW(){
            this.ProcessOrderEnableFogOfWar(new OrderEnableFogOfWar
            {
                Enable = false
            });
        }
    }
}
Reply
#5
Thanks Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)