Open amadeus1171 opened 5 years ago
In a new addon called "test" I have pasted the above code and it works. In problematic addon I have cut out all other code so it resembles the above code and it does not work.
Seriously, am I loosing my mind?!
What?! WHAT?!
I copied the entire bugged addon to the test and addon and it worked...
What... The... Actual... fluck?!
So, I renamed the borked plugin to _borked and renamed the test plugin to the original name of the borked plugin and it stopped working.
Is someone f'in' with me?
Now I renamed the addon to a shortened name: pup_helper from puppetmaster_helper and it worked. Who's f'in' with me?!
Either someone is f'in with me or we're having a buffer overrun error occuring because the addon name is too long.
Addons communicating via IPC need to be named the same. Make sure you're reloading on both processes.
Closed by mistake
Come on Cair. Don't you know who you're talking to? Of course they're the same process/addon names! This is Malthar.
Check the code that stores the addon name. How long is it? I'm 99.2% sure you'll find an error in that.
And if the addon name is to be standardized to a quantum length then the addon should throw an exception if the name is too long.
Can someone private message me? I'll send the entire code. But in the interim, I'll post the problematic code.
for some reason process_ipc(msg) never gets called. Am I going crazy, or is something actually bugged?
A little bit of history:
This bit of code worked before, then I quit for a bit. And when I came back it stopped working. What changed? ` table = require('tables') packets = require('packets')
other_player_jobs = T{}
function process_ipc(msg) windower.add_to_chat(5, 'process_ipc here!') local args = T{} local cmd = "" local sender = nil local player = windower.ffxi.get_player() local invalid_sender = (player and player.name) or "invalid"
end
windower.register_event('ipc message', process_ipc)
windower.register_event('outgoing chunk', function(id, original, modified, injected, blocked) -- Look for the /pet deploy message and send an ipc message to all the other puppet_master helpers that I'm deploying -- on this mob if id == 0x01A then local packet = packets.parse("outgoing", original) --windower.add_to_chat(5, table.tostring(packet)) if packet.Category == 9 and T{69,88,138}:contains(packet.Param) then local tmpmsg = windower.ffxi.get_player().name .. ' deploy_target ' .. tostring(packet['Target']) .. ' ' .. tostring(packet['Target Index']) windower.send_ipc_message(tmpmsg) end end end) `