Ok here we go...
First up, AAStartH.lua
AzzyAI (hom) version 1.35Main version:1.35AzzyUtil version:1.35Constant version:1.35Config: CustomTactics: Custom
Time: 1320232997 Lua Version:Lua 5.0.2
started successfully.
This AI is installed properly
I went through the A_Friends.lua and made sure that everything was according to the documentation. The new error message now is:
./AI/USER_AI/A_Friends.lua:9: attempt to index global `MyFriends' (a nil value)
Hit OK and I get:
attempt to call a nil value
Hit OK and it repeats the A_Friends.lua:9 message. So here's A_Friends.lua:
--Friendlist for Azzy AI
--Automatically generated by Azzy AI.
--To add friends, put mercenary or homun into standby mode (ctl+T or alt+T as appropriate), and sit 1 cell to the west (to left in default view) of the person who you wish to friend
--To remove friends, put merc/homun into standby mode, and sit 1 cell to the east (to right in default view) of the person you want to remove.
--
--To add KOS/Enemy/Etc lists, get the ID number from ROPD or by friending them, and make a line like
--MyFriends{2322797}=KOS
--Possible values are NEUTRAL, KOS (kill on sight), ENEMY (assume hostile, but don't attack), and ALLY (assume friendly).
MyFriends[943047]=1
Right now in this state I have zero control in game. All I can do is acknowledge the endless loop of errors. So I'll comment out the last line in A_Friends.lua and save it:
--Friendlist for Azzy AI
--Automatically generated by Azzy AI.
--To add friends, put mercenary or homun into standby mode (ctl+T or alt+T as appropriate), and sit 1 cell to the west (to left in default view) of the person who you wish to friend
--To remove friends, put merc/homun into standby mode, and sit 1 cell to the east (to right in default view) of the person you want to remove.
--
--To add KOS/Enemy/Etc lists, get the ID number from ROPD or by friending them, and make a line like
--MyFriends{2322797}=KOS
--Possible values are NEUTRAL, KOS (kill on sight), ENEMY (assume hostile, but don't attack), and ALLY (assume friendly).
--MyFriends[943047]=1
I hit OK on the error window now and I get this:
./AI/USER_AI/AI_main.lua:2277: attempt to index global `MyFriends' (a nil value)
Hit OK and now I get:
./AI/USER_AI/AzzyUtil.lua:248 attempt to index global `MyFriends' (a nil value)
It now just loops the AzzyUtil.lua:248 error every 2 seconds (give or take). It leaves me with just enough time to get /ho (OK) ai (OK) [enter] to switch to the basic and then I hit a wing or a portal depending on where I am to get switch to take place. Now the one odd thing I would notice is that if I left the AzzyUtil:248 error up long enough the AI_main:2277 would pop back up right after hitting OK, then it would continue to pop the AzzyUtil:248 error.
And so I went and replaced the file, and I realized that I jacked it all up by removing one line too many:
MyFriends={}
I confirmed this by copying the contents posted above there that was causing the break, made the break happen, added that line, saved, and... yep, I'm a dope. Fixed it!
Edited by FatherBob, 03 November 2011 - 12:53 AM.