.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: Starfury

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old September 19th, 2004, 05:56 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: Slotmodder error / possible new project for me

Well, what I have started on now is a sort of generic Malfador data reader/writer. I know I tried something like this before, but for that I had to specially code each individual data file's reader/writer, but now with what I'm working on, you'll be able to create an XML-based schema to read or write any data file from SE4, Starfury, Dungeon Odyssey, or SE5, when it's released. For instance, here's the schema for a simplistic "mod" format consisting of only CompEnhancement.txt from SE4:

Code:

<?xml Version="1.0" encoding="UTF-8"?>
<MMSchema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MalfadorModSchema.xsd">
<File Name="CompEnhancement.txt">
<RecordType>
<Field Name="Long Name"/>
<Field Name="Short Name"/>
<Field Name="Description"/>
<Field Name="Code"/>
<Field Name="Cost Percent" Type="uint16"/>
<Field Name="Tonnage Percent" Type="uint16" />
<Field Name="Tonnage Structure Percent" Type="uint16" />
<Field Name="Damage Percent" Type="uint16" />
<Field Name="Shield Percent" Optional="true" Type="uint16"/>
<Field Name="Supply Percent" Type="uint16"/>
<Field Name="Range Modifier" Type="int8"/>
<Field Name="Weapon To Hit Modifier" Type="int8"/>
<Field Name="Vehicle Size Minimum" Type="uint16"/>
<Field Name="Vehicle Size Maximum" Optional="true" Type="uint16"/>
<Field Name="Comp Family Requirement" Optional="true" Type="string"/>
<Field Name="Weapon Type Requirement" Type="string" />
<Field Name="Vehicle Type" Type="string" />
<Field Name="Number of Tech Req" Optional="true" Default="0" Type="uint16" />
<FieldArray Name="Tech " Count="Number of Tech Req">
<Field Name="Area Req" Type="uint16" />
<Field Name="Level Req" Type="uint16" />
</FieldArray>
</RecordType>
</File>
</MMSchema>

__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
 

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.