Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN2 TOOLS

- Jump to comments -
Name  Charlie's XML Conformer
Author  Charlie Vale
Submitted / Updated  03-17-2007 / 11-06-2007
Category  Editing
Patch  1.10
NWN2Game  All
Description
Automatically adds quotes to UI xml attribute values to improve syntax highlighting.

Audience


This program is intended for Neverwinter Nights 2 custom UI developers & UI modders.

Detailed Description


Neverwinter Nights 2 uses xml files to define much of the user interface (e.g. the character sheet). Unfortunately the in game xml parser is very permissive, which has lead to the majority of the UI code being un-parsable by third party programs. This program fills the gap by tidying up xmls files.
Firstly this means the UI xml files will highlight properly in a text editor that knows how to syntax highlight xml. If you do any UI editing this is reason enough to use this program.
Secondly it means you could use an xml viewer, or write a program that manipulates the xml. In other words it is a step in the right direction toward a graphical NWN2 UI editor.

Well Formed Vs Valid NWN2 UI


This program supports two kinds of output: valid NWN2 UI and; well formed xml.
It is not possible for a file to be both a well formed xml document (properly parsable) and work in game. The reason is that the in game parser does not accept xml files with a proper document root. Even so, using this program to tidy up the default xml will improve syntax highlighting in a text editor such as ConTEXT.
It is anticipated that most users of this program will just want tidier valid NWN2 UI xml code, for improved syntax highlighting. It can be used to do just that, no problem.
However, if you have a need to produce well formed xml, you can do so, and then convert that code back to a valid NWN2 UI when you are done manipulating it. Furthermore you are free to use the source code provided in your own programs!

Installation


Unzip to any location.

Useage


To convert your first UI file:
* From the menu bar select File->Open
* Navigate to the .xml file you want to convert. By default these can be found in C:\Program Files\Atari\Neverwinter Nights 2\UI\default
* From the menu bar select Transform->Transform XML - NWN2 Style
* From the menu bar select File-Save As
* Save the file in your custom UI folder. By default that is in My Documents\Neverwinter Nights 2\UI\custom
* You can now view the modified xml in your favorite text viewer.

To convert to well formed xml, select Transform->Transform XML - V 1.0 compliant.

Editor
I recommend ConTEXT as an editor for UI development as it syntax highlights well and closes the file handles so you can keep a scene open for editing while testing in game.

Changelog


V 1.02 - Added batch processing for transforming many files at once.
V 1.01 - Handles encodings other than utf-8; remembers the open file directory
V 1.00 - Initial release

Files

NameTypeSizeDownloads
conformer_source_102.rarconformer_source_102.rar
Submitted: 03-17-2007 / Last Updated: 11-06-2007
rar302.57Kb162
Visual Studio source code for C#/.NET developers.
ui_tidyup.zipui_tidyup.zip
Submitted: 03-17-2007 / Last Updated: 11-05-2007
zip480.79Kb178
NWN2 1.10.1116 ui/default XML code, parsed through my conformer, with a few fixes. List of fixes and test report included. For UI modders/developers.
Charlies_NWN2_XML_Conformer.zipCharlies_NWN2_XML_Conformer.zip
Submitted: 03-17-2007 / Last Updated: 11-05-2007
zip45.02Kb395
Charlies NWN2 XML Conformer - Executable program in zip.
SCORE OUT OF 10
8.75
4 votes
View Stats
Cast Your Vote!
Voting FAQ

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS

Charlie's XML Conformer





You Must Be Logged In to Participate.
Comments (8):

Posted by Boozehound Blue at 2009-07-13 02:07:08    Voted 9.00 on 07/13/09
A must have. I've created two UIs and it is impossible to find minor errors without the syntax highlighting this provides

Posted by charlievale at 2009-02-28 13:48:57    
I have not had much time for NwN2 lately and I am starting uni studies this year. At this point I don't think I will be doing any further updates to my NwN2 Vault submissions. Thank you all for the suggestions and support you have given.

cheers
_________________________
Charlie's Pages | Fournoi Forum | Charlie's UI | Charlie's Item Modifier | Charlie's Item Appearance Changer

Posted by charlievale at 2007-11-06 12:03:10    
I have extended this to handle multiple files at once (batch transform). I have also made available the 1.10.1116 default UIs, already transformed and with a few minor fixes.

cheers
_________________________
Charlie's Pages | Fournoi Forum | Charlie's UI | Charlie's Item Modifier | Charlie's Item Appearance Changer

Posted by charlievale at 2007-11-03 16:42:58    
MotB finally hit Australia, and so now I am back.
_________________________
Charlie's Pages | Fournoi Forum | Charlie's UI | Charlie's Item Modifier | Charlie's Item Appearance Changer

Posted by charlievale at 2007-10-31 00:59:10    
I am moving on to other projects and will no longer be making updates here. Thanks to all of you who have supported these projects with testing and feedback. Should anyone wish to take over one or more of my projects, contact charlievale at gmail dot com and I will have the project transfered to your vault account.

All the best.
_________________________
Charlie's Pages | Fournoi Forum | Charlie's UI | Charlie's Item Modifier | Charlie's Item Appearance Changer

Posted by mlmarkland at 2007-05-31 01:47:32    Voted 9.00 on 05/31/07
Very useful, Charlie.

Posted by Barry_The_Hatchet at 2007-03-19 01:38:35    Voted 9.00 on 03/19/07
Excellent work. This is definately a step in the right direction. Any resource that helps custom UI developers with NWN2's version of "XML" is worthwhile.

Thanks for your efforts.
_________________________
Barry The Hatchet Custom Content
[ BTH Vault Submissions] [ BTH Gallery] [ BTH Blog]

Posted by Caos81 at 2007-03-18 02:46:10    Voted 8.00 on 03/18/07
Not a "I can't live without this" but still handy and helpfull in some cases.
_________________________
DM Client Extension for NwN2- Inventory & Variables Manager
xSoH - eXtended Sleight of Hand System
DragonLance Italia NwN2 Italian Shard
NwN2xLauncher

You must be Logged In to post comments in this section.

10 - A Masterpiece, Genuinely Groundbreaking
9 - Outstanding, a Must Have
8 - Excellent, Recommended to Anyone
7 - Very Good, Deserves a Look
6 - Good, Qualified Recommendation
5 - Fair, Solid yet Unremarkable
4 - Some Merit, Requires Improvements
3 - Poor Execution, Potential Unrealized
2 - Very Little Appeal
1 - Not Recommended to Anyone

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Tools


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters