You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I read overlayplugin source code,I try to use IPC to subscribe receive data form overlayplugin;
I follow source code, after I call CreateSubscriber(name),I make Svc.PluginInterface.GetIpcSubscriber<JObject, bool>($"IINACT.IpcProvider.{name}") and then send payload to subscribe "CombatData"
code like that:
varcommandSender=Svc.PluginInterface.GetIpcSubscriber<JObject,bool>($"IINACT.IpcProvider.{Name}");varpayload=JObject.FromObject(new{call="subscribe",events=newstring[]{"CombatData"},data=newstring[]{"CombatData"},});commandSender.InvokeAction(payload);//receive ignore it
but then i saw logs happend nullreference exception;
so i add some log print into mycode and iinact-overlayplugin-DataReceived(JObject data),
and i find this:
this is what i prepare send to data looks like:
and this is what logs print that DataReceived(JObject data) data looks like:
It seems that dalamoud IPC will list information if use JObject,all string data are miss;
and then I changed overlayplugin IPCHandler,all JObject change to string,and every thing works fine instantly:
so I think maybe should change JObject to string like SocketHandler did?(serialize&deserialize to string)
The text was updated successfully, but these errors were encountered:
After I read overlayplugin source code,I try to use IPC to subscribe receive data form overlayplugin;
I follow source code, after I call CreateSubscriber(name),I make Svc.PluginInterface.GetIpcSubscriber<JObject, bool>($"IINACT.IpcProvider.{name}") and then send payload to subscribe "CombatData"
code like that:
but then i saw logs happend nullreference exception;
so i add some log print into mycode and iinact-overlayplugin-DataReceived(JObject data),
and i find this:
this is what i prepare send to data looks like:
and this is what logs print that DataReceived(JObject data) data looks like:
It seems that dalamoud IPC will list information if use JObject,all string data are miss;
and then I changed overlayplugin IPCHandler,all JObject change to string,and every thing works fine instantly:
so I think maybe should change JObject to string like SocketHandler did?(serialize&deserialize to string)
The text was updated successfully, but these errors were encountered: