Thanks, Worstje.
I used your plugin in both versions.
Its output reveals the problem:
Version 4.61
msg = 1
id = 8202bdf6e4d339ae6cae06e5
name = Achaea_Vitals
text =
msg = 1
id = 4a33087c6b66ca6c4611afed
name = Achaea_GMCP_Logger
text = H:1669/1669 M:1708/2002 E:7245/7245 W:8910/8910 NL:37/100
===========================================
Version 4.62
msg = 1
id = MISSING!
name = MISSING!
text =
msg = 1
id = 4a33087c6b66ca6c4611afed
name = Achaea_GMCP_Logger
text = H:1669/1669 M:1708/2002 E:7245/7245 W:8910/8910 NL:37/100
The Achaea_Vitals plugin is patterned after one of Nick's where the data is not sent in the text itself, but stored in variables (require "var") and retrieved using the GetPluginVariableList when the Broadcast is received.
Sending
function build_stats (s)
local tempstats = {}
for item in string.gmatch(s, "%d+") do
tempstats [#tempstats + 1] = item
end
-- Load into plugin table for others to use
var.hp = tempstats [1]
var.max_hp = tempstats [2]
var.mana = tempstats [3]
var.max_mana = tempstats [4]
var.endu = tempstats [5]
var.max_endu = tempstats [6]
var.wp = tempstats [7]
var.max_wp = tempstats [8]
var.tnl = tempstats [9]
var.max_tnl = tempstats [10]
BroadcastPlugin (1, "")
end -- build_status
Receiving
function OnPluginBroadcast (msg, id, name, text)
if msg == 1 and id == "8202bdf6e4d339ae6cae06e5" then
-- get all variables
stats = GetPluginVariableList("8202bdf6e4d339ae6cae06e5")
draw_bar ()
end -- stats changed
end
I also tested the sending plugin with Broadcast(1, "test") and the text shows up nicely with your reporting program...just no id and/or name info.