Loading XML Plugins in a app

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Loading XML Plugins in a app

Post by Kurroda »

Ok so i am trying to load XML Plugins for halo 2 but i didnt no how to go about this. Anybody no what to do.
Image
M.A.T.T.





Posts: 12
Joined: Sun Nov 13, 2005 4:46 am

Post by M.A.T.T. »

Are you Trying To make a app like Dothalo's plugin system or just read the plugins to get the offsets for the part that needs editing
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Post by Kurroda »

i am trying to get it to read the plugins like dothalo
Image
chiefdestroyer





Posts: 13
Joined: Thu Mar 03, 2005 7:53 pm

XML Plugin

Post by chiefdestroyer »

well it helps to know the programming language
with C# and any other OOP language
there are two options
you can read it and display it directly
C#
System.IO.StreamReader sr = new System.IO.StreamReader(fileName);
System.Xml.XmlTextReader xr = new System.Xml.XmlTextReader(sr);
System.Xml.XmlDocument plugin = new System.Xml.XmlDocument();
plugin.Load(xr);
XmlElement root = plugin.DocumentElement;
and go through them display them while reading each tag
you could do it a more proper way and read the document into a more
understandable data format but putting the values into some of your own classes like i do and then display it from that data format
and try ifp before the general XML format cause ifps are easier to read
and better all round
I have done a fair bit with plugin reading and a bit with writting plugins mainly in C# and java if you want more direct help you can talk to me over msn or AIM my AIM is chiefdestroyer you will have to get my msn from my AIM cause i don't want everyone having my msn
Post Reply