Help Finding/Using AI Logs

Hi all. I am new to the HW modding scene, and I’m troubleshooting some AI behavior.

I see in the AI scripts the aitrace function passing messages which I assume show up in a log somewhere. I found that (at least in HW2 classic) there is a -aiplayerlog switch which I am trying to use in HW Remastered, but I cannot for the life of me find the actual log.

I have been looking in HomeworldRM\Bin\Release\HwRM.log, which seems to contain most of the logging, but I do not see the AI logs here.

Can anyone help me find this?

AIPlayerLog only exists in the Homeworld 1 Classic code. This doesn’t exist in Homeworld 2 Classic or Remastered.

Then * shock * there is some bad information out there on the internet. Thank you for clarifying.

For what it’s worth, I found what I was looking for (in case anyone else ever finds this post and needs it):

aitrace() appears to be disabled at the top of ai/default.lua

starting at line 9

aitrace = function() end


aitrace = function(aiTraceOutput) 

started outputting aitrace messages to the log for me.


This saved my bacon, thank you. I’ve added the tip to the hwmod wiki for safekeeping. :slight_smile:

I haven’t been able to get this to work. Could there be something obvious that I’m missing?

Thanks in advance!

I have experience in ai for hw2c/rm just haven’t done anything with lately. In the process of getting stuff dealt with.