Difference between revisions of "User talk:Demolishun"
Jump to navigation
Jump to search
no edit summary
imported>Qazaaq (what was that?) |
imported>Demolishun |
||
Line 1: | Line 1: | ||
WIP | |||
I am working on a plugin for OBSE. It will allow UDP communication between Oblivion and an external app. The plugin will allow for data to be converted to and from JSON messages that will convert to and from oblivion objects. It will also have the ability to launch an external app to connect to the engine and handle more advanced processes like databases, remote resources, and other tasks. The plugin will just be a transport. That will be the scope of the interface. This should allow modders to add significant functionality to the engine without extraneous features. | |||
I am using the boost framework to get a reliable networking code base. I am also using a very mature JSON library to handle parsing of data both to and from the engine. I have just finished the parser and am testing it. I have simple UDP up and running in a thread and I can send and receive data to the engine. | |||
Notes: | |||
In order to convert a FormID or RefID number I needed to build a TESForm and set the ID against it. So this is the code needed to do so if you have the ID: | |||
UInt32 tref; | |||
g_serialization->ResolveRefID(tint,&tref); | |||
TESForm *formref = LookupFormByID((UInt32)tref); |