The New Order - Halo Role Playing Forum


Go Back   The New Order - Halo Role Playing Forum > TNO Studios > Galaxies at War > Coding Tutorials
New! Halo RPG Community Quick Links Search New Posts Register


 
Thread Tools Display Modes
Old Tutorial 1: Getting Started
Default 07-28-2010
  #1
Naked Crook
Naked Crook is well known to TNONaked Crook is well known to TNONaked Crook is well known to TNONaked Crook is well known to TNONaked Crook is well known to TNO
Naked Crook's Avatar

Naked Crook is going back in time
 

Achievements Three Red LightsMan of the PeopleRehab is Needed
User Title: TNO God
Posts: 27,497
Credits:



Alright, this is as basic as it gets for Empire at War XML coding...getting your tools gathered.
  1. What is an XML file?
  2. What you need to code the XML files?
  3. What you need to code the XML files efficiently?
  4. What you need to make XML coding easier (optional)?
1. What is an XML file?

an XML (Extensible Markup Language) file is essentially a document encoded in machine-readable form.

WHAT!?

Basically...it is a simple text document with tags that, when read by a program (in this case Empire at War), can be understood by the program. XML in most, if not, all cases is in normal readable English grammar. A non-EaW/FoC tag example would be:

<number_of_books> 5 </number_of_books>

Assuming the program is coded to understand the phrase "number_of_books", when the program reads the XML file, it will know that the number of books someone has is 5.

There is some other syntax that you should be aware of:

<number_of_books> </number_of_books> essentially means undefined or null

<number_of_books /> also means undefined or null

<person_info>
<number_of_books>
<number_of_hats>
<number_of_cats>
</person_info>

The above example is called a nested tag structure. the person_info tag would be seen as a person object by the program, and its nested tags would be seen as information on that object. This is the way Empire at War/Forces of Corruption XML's are laid out, except with multiple nest levels at times.

2. What you need to code the XML files?

All things considered...all you really need to edit an Empire at War (Forces of Corruption) XML file is Notepad or Wordpad.

You will also need the Empire at War or Forces of Corruption XML files.

Empire at War XML Files

Or:

Force of Corruption XML Files

(the above are hyperlinks, click them to download them. Extrat all the .XML files into into your /data directory...create this directory if necessary.)

Important Note: If you are making a mod for EaW, download the Empire at War XML files, but if this is a FoC mod, download Forces of Corruption XML files.

3. What you need to code the XML files efficiantly?

I would Highly suggest you get Notepad++. THis is like Notepad or Wordpad, but its use is for coders. It comes with a TON of features that have made my EaW XML life a hell of a lot easier!

Download Notepadd++

4. What you need to make XML coding easier (optional)?
These things are optional:
  1. Secondary monitor
  2. A good mouse with copy, cut, and paste quick buttons on the device
  3. A keyboard with macros (to help perform redundant tasks)

Naked Crook is offline  


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


vBCredits II Deluxe v2.0.0 Copyright © 2010 DragonByte Technologies
Forum created by Naked Crook - The New Order - Online Role Playing Forum

All times are GMT -5. The time now is 08:19 PM.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.