Hamish
February 20th, 2011, 20:19
What am I doing wrong this time? I'm guessing it's in extension.xml, but I'll be damned if I know what it is....
I created a new extension, copied characterlist.lua from the 3.5E ruleset to the scripts subfolder and added just 1 line, just to see if the extension is doing anything at all:
function onUserStateChange(username, statename, state)
print("Test");
if username ~= "" and User.getCurrentIdentity(username) then
I never have Test show up in the console ever.....
Here's extension.xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0" release="1">
<properties>
<name>Extension Test</name>
<version>1</version>
<author>Nils van Schaik</author>
<description>3.5E ruleset test extension</description>
<ruleset>
<name>3.5E</name>
</ruleset>
</properties>
<base>
<script file="scripts/characterlist.lua" />
</base>
</root>
I have succesfully created another extension that modifies chatmanager.lua, so I've got the basics down. Only difference I can find is that chatmanager.lua has a name attribute in the script tag, and characterlist.lua hasn't.
Hope anyone can show me what I'm doing wrong.....
I created a new extension, copied characterlist.lua from the 3.5E ruleset to the scripts subfolder and added just 1 line, just to see if the extension is doing anything at all:
function onUserStateChange(username, statename, state)
print("Test");
if username ~= "" and User.getCurrentIdentity(username) then
I never have Test show up in the console ever.....
Here's extension.xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0" release="1">
<properties>
<name>Extension Test</name>
<version>1</version>
<author>Nils van Schaik</author>
<description>3.5E ruleset test extension</description>
<ruleset>
<name>3.5E</name>
</ruleset>
</properties>
<base>
<script file="scripts/characterlist.lua" />
</base>
</root>
I have succesfully created another extension that modifies chatmanager.lua, so I've got the basics down. Only difference I can find is that chatmanager.lua has a name attribute in the script tag, and characterlist.lua hasn't.
Hope anyone can show me what I'm doing wrong.....