Age Builder KI Hack

Many people use ULM to visit their Ages, but I've heard a number of complaints about it not properly detecting Ages that aren't uploaded to the server. If you're building an Age and want a fast way to test it, fiddling with ULM isn't a fun thing to do.
This KI command takes the form "/link [AgeName]" and will link you to whatever Age you specify. Be careful, this does not provide any checks, and assumes that you are smart enough to link only to an Age that actually exists.
You will need the full KI from ABM in order to use this hack. Add the following code to the ICheckChatCommands section of xKI.py.
Thanks to Hoikas for reviewing this and offering suggestions.
This code is provided with no warranty in the hopes that it might be useful. Always back up your files before hacking.
General rule: if you don't understand the hack, don't try it. There is more than enough information here about how to install it if you know what you are doing.
Have fun
This KI command takes the form "/link [AgeName]" and will link you to whatever Age you specify. Be careful, this does not provide any checks, and assumes that you are smart enough to link only to an Age that actually exists.
You will need the full KI from ABM in order to use this hack. Add the following code to the ICheckChatCommands section of xKI.py.
- Code: Select all
if string.lower(chatmessage).startswith('/link '):
age = chatmessage[len('/link '):]
vault = ptVault()
info = ptAgeInfoStruct()
info.setAgeFilename(age)
vLink = vault.getOwnedAgeLink(info)
if (not vLink):
link = ptAgeLinkStruct()
link.setAgeInfo(info)
link.setSpawnPoint(ptSpawnPointInfo("Default", "LinkInPointDefault"))
link.setLinkingRules(PtLinkingRules.kOriginalBook)
else:
link = vLink.asAgeLinkStruct()
mgr = ptNetLinkingMgr()
mgr.setEnabled(1)
mgr.linkToAge(link)
Thanks to Hoikas for reviewing this and offering suggestions.
This code is provided with no warranty in the hopes that it might be useful. Always back up your files before hacking.
General rule: if you don't understand the hack, don't try it. There is more than enough information here about how to install it if you know what you are doing.
Have fun
