Raised This Month: $ Target: $400
 0% 

sm_dump_netprops_xml: now readable?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kaffaljidhma
Member
Join Date: Feb 2009
Old 03-01-2009 , 01:13   sm_dump_netprops_xml: now readable?
Reply With Quote #1

So I noticed that sm_dump_netprops is useful for more powerful plugins, but it's a pain to filter through. I tried using sm_dump_netprops_xml to see if I could parse and organize the data, but when I put it through a browser, it looked terrible.


After a lot of bugging people in mIRC, I discovered that I need some sort of stylesheet to organize this xml file into a readable format. I thought xsl + javascript was the key.

However, since I am extremely lazy, I stole code from here (without asking Joe Slovinski) instead of learning the language myself, and modified it by learning from example.

So far, I've got a nested treeview table that's a bit more organized, but like the source, it only works in Internet Explorer.

Any further modification needs to be done by someone who actually knows xsl and/or javascript, since I know no syntax outside of what I read in the example. It still looks kind of ugly:

[IMG]http://img155.**************/img155/7973/contracted.png[/IMG]
[IMG]http://img12.**************/img12/659/expanded.png[/IMG]

As you can see, I've only used CTerrorPlayer serverclass, because if I put in the whole netprop dump it would take forever to load and manipulate.

What you have to do is select the serverclasses you want to show in this table (making sure to include the closing tags </serverclass>) and surround them with <tree>...</tree> tags. Then put <?xml version="1.0"?> at the top and save it in the tree folder as tree.xml. Look at the tree.xml file in /tree for an example if I've confused you.

Then open the Index.html in the root folder in Internet Explorer.

If you know xsl and javascript, I strongly suggest ripping this project out of my hands, as I am underqualified to do it.
Attached Files
File Type: zip netproptree.zip (12.2 KB, 156 views)
kaffaljidhma is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 03-01-2009 , 01:34   Re: sm_dump_netprops_xml: now readable?
Reply With Quote #2

If you get something like this working and its webbased that would be a HUGE help to all source coders.
__________________
CrimsonGT is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode