MMO News and theorycrafting for advanced MMO gamers. News and articles that relate to your gameplay. World of Warcraft, SWTOR, Guild Wars 2, Rift, TERA, Eve Online, Star Wars the Old Republic, Diablo3, The Secret World and all Western AAA MMOs

Your login from any MMO-Mechanics forum or site will work here.

Hello There, Guest! Register

Post Reply 
The Rage Project
03-14-2012, 09:00 AM (This post was last modified: 03-14-2012 01:24 PM by Jothay.)
Post: #15
RE: The Rage Project
JSON certainly sounds like a good way to work it, and I've PM'd your account on your forums the same. For the sake of sanity, it may be easier to communicate on an IM platform (since it saves that history for me for referencing and it's the fastest way to talk things out.). OR we could have all the different communities (Rage, SimC, MrRobot, etc) just hash this out on this thread, I would be fine with that.

As of right now, Rage saves character files in an XML format. I could probably just as easily change that to a JSON, and will look into that over the coming days. If you are willing to look at how are code actually does the XML format, head to rage.codeplex.com and check the code out from the Source Code page using an SVN client. The files are in ./Rage.Base/Character.cs and we use standard C# System.Xml.Serialization to serialize the entire class into XML. An output of my Juggernaut character is attached to this post.

The biggest point everyone would need to understand is how a character's item is stated in the file. We took a lesson from WoW's item format and use the following:
Code:
588019.0.641296.641744.642200.0.0
{ItemId}.{PrefixId}.{ArmoringBarrelHiltId}.{ModificationId}.{EnhancementId}.{Col​orCrystalId}.{AugmentId}
ItemId is the item node id in the swtor files shifted 32 bits, which stil results in unique item ids across all items but witha 6 digit number instead of that ridiculous number they use. Knotor.com uses the same convention.
One thing I need to change is the enforcement of which mod is in which placement. Right now items with an augment slot and crystal slot change which mode sits where. I'll fix that tonight.
Edit: This has been fixed, see the changes in above

We also have a list of items that are for the Optimizer, these Items are listed in a file as "available" meaning they either have it equipped or in their Bank/Vault go as:
Code:
// Generic item, can be equipped or modded by the optimizer in any way
<AvailableItems>588019</AvailableItems>
// Generic item that is one of the Tier x crafting versions, like Veracity Greaves [Advanced] whatever, the 1018 is the ID of the specific prefix and the 588019 is the core green recipe it is based on.
<AvailableItems>588019.1018</AvailableItems>
// Specific item with a specific set of mods, can not be changed by the optimizer
<AvailableItems>588019.0.641296.641744.642200.0.0</AvailableItems>


Attached File(s)
.zip  Jothay.zip (Size: 1.81 KB / Downloads: 71)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
The Rage Project - Jothay - 03-13-2012, 03:01 AM
RE: The Rage Project - kray - 03-13-2012, 03:25 AM
RE: The Rage Project - Dreary - 03-13-2012, 08:30 PM
RE: The Rage Project - Ishnu - 03-13-2012, 08:47 PM
RE: The Rage Project - Jeezas - 03-13-2012, 09:42 PM
RE: The Rage Project - Caltiom - 03-14-2012, 01:03 AM
RE: The Rage Project - kray - 03-14-2012, 01:20 AM
RE: The Rage Project - Jeezas - 03-14-2012, 01:19 AM
RE: The Rage Project - Jeezas - 03-14-2012, 01:44 AM
RE: The Rage Project - Ezmode - 03-14-2012, 02:22 AM
RE: The Rage Project - Cenobyte - 03-14-2012, 03:36 AM
RE: The Rage Project - Jothay - 03-14-2012, 07:02 AM
RE: The Rage Project - Yellowfive - 03-14-2012, 08:28 AM
RE: The Rage Project - Jothay - 03-14-2012, 08:37 AM
RE: The Rage Project - Jothay - 03-14-2012 09:00 AM
RE: The Rage Project - Jothay - 03-15-2012, 09:31 AM
RE: The Rage Project - Jothay - 03-22-2012, 10:25 AM
RE: The Rage Project - MagicSN - 03-23-2012, 01:22 AM
RE: The Rage Project - Jothay - 03-23-2012, 01:44 AM
RE: The Rage Project - MagicSN - 03-23-2012, 06:02 PM
RE: The Rage Project - Jothay - 04-02-2012, 04:20 AM
RE: The Rage Project - Lucifel - 05-04-2012, 10:00 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)