|
|
 |
02-22-2006, 03:24 PM
|
#1
|
|
Jr. Malkavian Detective
Join Date: Jan 2005
Location: On the case! Both my minds!
Posts: 2,095
|
Mini-Tutorial: Installing and Creating XML based mods
Basically, I’ve been seeing a bunch of people with the same problem. I thought I would write a mini-tutorial about how to install and create basic mods. (This is only for xmls as for as I know)
A) Downloading a mod.
Download a mod. Read the readme. Most of the mods that have been made so far are simple changes to various xml files. Simply create a folder called “XML” in the game directory –“Program Files\LucasArts\Star Wars Empire at War\GameData\Data.”
Drop the modded xml files into the created “XML” folder (which should be “Program Files\LucasArts\Star Wars Empire at War\GameData\Data\XML”) and you’re done! Enjoy the mod!
B) Creating a mod. (Keep in mind, this is only for editing the xml files.)
As an example, I will increase the health of “Home One”.
1) Download a program that can extract meg files. The one I use can be found here - http://www.technical-difficulties.com/hacks/eaw/ (The site says its for the demo, but version 1.1 will work with the full game.) Unzip the file.
You will get two programs, megExtractor and megInserter. You will not need megInserter, however. (megInserter actually causes the mods to not work.)
2) Create a new folder somewhere on your hard drive outside the game directory. It doesn’t matter where, just make sure you remember where you created it. I made the folder “EAW files” under “Program Files\LucasArts.” Copy and paste megExtractor into this folder. Now return to “Program Files\LucasArts\Star Wars Empire at War\GameData\Data” and copy the file “config.meg” and paste it in the same folder where you pasted megExtractor. You should now have a folder with two files in it, megExtractor.exe and config.meg.
3) Run megExtractor and follow its instructions. It will create a new folder called “config.” Open this folder. Since for my example I will be editing Home One, I need to go to the file “DATA%XML%UNIQUEUNITS.” Copy the file and paste it somewhere outside the “config” folder. (You can just leave it in the “config” folder, but this way, you don’t have to extract the files later if you want to edit something else. I like to put it in a new folder that describes the changes. For my example, I would make a folder called “Home One more health” or some thing along those lines.)
4) Right-click “DATA%XML%UNIQUEUNITS” and select “open with notepad.” Four lines down, you will see “<UniqueUnit Name="Accuser_Star_Destroyer">” I like to copy the part “UniqueUnit Name” and use the “Ctrl+F” trick to easily search through the various units. Do this until you come to “<UniqueUnit Name="Home_One">.” Scroll down until you get to “<Tactical_Health>8000</Tactical_Health>” Change the number to whatever you want. You can increase it slightly, say to 8100, or you can make it virtually invincible by increasing it to something like 9999999 or whatever. (You can also decrease it if you want.) Whenever you are done editing whatever you want, click the “X” at the top right corner of the screen to close notepad. When prompted if you want to save the changes, select “yes.” (**NOTE** If you try to save your changes by clicking “save as…” or “Save” from the “File” menu, it will save it as a text document and will not be useable.)
5) Almost Done!!
You will now have a modded version of the file “DATA%XML%UNIQUEUNITS.” Change the file name to “UNIQUEUNITS.” In other words, for the game to read your modded xmls, you have to get rid of “DATA%XML%” from the file name. Either right-click and copy or right-click and cut the file.
If you have not already done so, create the folder “XML” under your game directory. (See Section:A for further details) Right-click and paste the file in the “XML” folder and your DONE!!
I hope this has helped someone!! Thanks for reading!!
Bob Lion54
EDIT: While notepad is fine as an XML editor, there are other programs available that have more options.
A few XML editors:
Microsoft Visual Web Developer (Free)
Stylus Studio® 2006 XML (30day trial)
XMLwriter XML Editor v2.6 (30day trial)
Altova XML Spy 2006 (30day trial)
Last edited by Bob Lion54; 02-24-2006 at 10:52 AM.
|
|
you may:
quote & reply,
|
02-22-2006, 03:42 PM
|
#2
|
|
Disciple of Megatron
Join Date: Nov 1999
Location: Rochester, NY, USA
Posts: 5,945
Current Game: Starcraft II,College
|
This needs to be stikied immediatly.
|
|
you may:
quote & reply,
|
02-22-2006, 04:02 PM
|
#3
|
|
Jr. Malkavian Detective
Join Date: Jan 2005
Location: On the case! Both my minds!
Posts: 2,095
|
hehe. I'm glad you approve.
Let me know of anything is worded awkwardly or needs to be clarified. Its actually my first tutorial of any kind.
|
|
you may:
quote & reply,
|
02-22-2006, 08:08 PM
|
#4
|
|
Rookie
Join Date: Feb 2006
Posts: 105
|
Hey ill give you credit, can I put this in my readme? Too lazy to type all that in my mod readme. :P
|
|
you may:
quote & reply,
|
02-23-2006, 01:01 AM
|
#5
|
|
Jr. Malkavian Detective
Join Date: Jan 2005
Location: On the case! Both my minds!
Posts: 2,095
|
Yea, you can use it if you want to.
|
|
you may:
quote & reply,
|
02-23-2006, 12:37 PM
|
#6
|
|
Grand Moff
Status: Super Moderator
Join Date: Jan 2002
Posts: 5,806
|
Why isn't this stickied yet?
*stuck*
There.
Much better. 
Empire At War Moderator
&
SWGalaxies Moderator
- What we do in life, echoes in eternity!
- May the pants be with you!
A smile is the shortest distance between people - Victor Borge!
Custom Avatar by Wraith 8
|
|
you may:
quote & reply,
|
02-23-2006, 12:38 PM
|
#7
|
|
Rookie
Join Date: Feb 2006
Posts: 23
|
what is the file for the heros?
|
|
you may:
quote & reply,
|
02-23-2006, 01:15 PM
|
#8
|
|
Forumite
Join Date: Oct 2005
Location: Thessaloniki, Greece
Posts: 561
|
Good work Lion.
Just for history (this mini-tutorial is 100% perfect afterall) new modders may use more advanced XML editting programs. Of course advanced doesn't mean complicated too. I use Microsoft Visual Web Developer that teams the code -very handy- and does plenty more things.
So, you may edit the tutorial with a small list to those XML editting tools. I'll send you a message with them as soon as i gather 3-4 of them.
Good work again 
|
|
you may:
quote & reply,
|
02-23-2006, 03:01 PM
|
#9
|
|
Jr. Malkavian Detective
Join Date: Jan 2005
Location: On the case! Both my minds!
Posts: 2,095
|
Quote:
|
Originally Posted by Evil Jeremy
what is the file for the heros?
|
Ground heros are in "NAMEDHEROUNITS"
Space heros are in "UNIQUEUNITS"
To edit heros that can fight in space and on land (Han and Chewie, for example) you have to edit both files.
Quote:
|
Originally Posted by Athanasios
Good work Lion.
Just for history (this mini-tutorial is 100% perfect afterall) new modders may use more advanced XML editting programs. Of course advanced doesn't mean complicated too. I use Microsoft Visual Web Developer that teams the code -very handy- and does plenty more things.
So, you may edit the tutorial with a small list to those XML editting tools. I'll send you a message with them as soon as i gather 3-4 of them.
Good work again 
|
First, thanks for the complements!
Just send me the links to whatever other programs are good, and I'll edit my post. The more options, the better!
Quote:
|
Originally Posted by Jan Gaarni
Why isn't this stickied yet?
*stuck*
.....
|
COOL! Thanks for my first sticky!
|
|
you may:
quote & reply,
|
02-23-2006, 05:53 PM
|
#10
|
|
Forumite
Join Date: Oct 2005
Location: Thessaloniki, Greece
Posts: 561
|
No glory for me in this area mate  . Keep up the good work.
Last edited by Athanasios; 02-24-2006 at 09:07 AM.
|
|
you may:
quote & reply,
|
02-24-2006, 09:02 AM
|
#11
|
|
Jr. Malkavian Detective
Join Date: Jan 2005
Location: On the case! Both my minds!
Posts: 2,095
|
^^^
Done! You might as well leave your post sinse there really is no reason to delete it. That, and it will look like I'm talking to myself! heh
|
|
you may:
quote & reply,
|
02-24-2006, 04:52 PM
|
#12
|
|
Junior Member
Join Date: Aug 2005
Posts: 375
|
"It may be that the old astrologers had the truth exactly reversed, when they believed that the stars controlled the destinies of men. The time may come when men control the destinies of stars." -Arthur C. Clarke
"Ideals are like stars: you will not succeed in touching them with your hands, but like the seafaring man on the ocean desert of waters, you choose them as your guides, and following them, you reach your destiny." -Carl Schurz
|
|
you may:
quote & reply,
|
02-27-2006, 04:34 PM
|
#13
|
|
Junior Member
Join Date: Jan 2006
Location: Lenexa, Kansas (suburb of Kansas City)
Posts: 264
|
I use MS Visual Studio 2005 and Macromedia Dreamweaver. They're really nice, but not free.
Gary Swift (aka gswift)
Lenexa, Kansas USA
You can try to monkey-proof your program, but you'll never monkey-proof the monkey.
|
|
you may:
quote & reply,
|
03-01-2006, 04:07 PM
|
#14
|
|
obama.png
Join Date: Mar 2005
Location: `(•.°)~
Posts: 7,997
Current Game: all
|
Just so you know, Visual Studio/C++/C#/VB 7+ can edit XML files as well, and there are a number of LUA plugins for it as well.
"No, Mama. You can bet your sweet ass and half a titty whoever put that hit on you already got the cops in their back pocket." ~Black Dynamite
|
|
you may:
quote & reply,
|
03-23-2006, 01:36 PM
|
#15
|
|
Rookie
Join Date: Mar 2006
Posts: 33
|
Placing file in "XML" folder
So I guess that if you place a file that is currently in the config.meg game file, placed into that "XML folder" the game will ignore THAT portion of the official config.meg and use the modded sections?
It's not that I believe you, but I guess that the game must have been programmed to deal with mods if it knows to ignore the existing file and go for the modded file. I would have figured that one would have to mod the actual config file.
Great info! I think that I'll try adding the hangar bays again now that I know that I don't actually mod the config file.
|
|
you may:
quote & reply,
|
03-23-2006, 01:39 PM
|
#16
|
|
Rookie
Join Date: Jan 2006
Posts: 239
|
If you can't add them, there are plenty of mods that do.
|
|
you may:
quote & reply,
|
06-06-2006, 06:13 AM
|
#17
|
|
Lurker
Join Date: Jun 2006
Location: Poland
Posts: 1
|
Hmm, anybody has the full list of the XML tags with the explanation;-)?
Some of them are quite easy to understand, as <Tactical_Health> or <Shield_Points>, but there are some as <Death_Explosions> or <Death_Clone> which I do not understand...
Motto 2006 - "Cos sie skonczylo, cos sie zaczyna"
:: The Outer Rim ::
|
|
you may:
quote & reply,
|
07-05-2006, 04:09 PM
|
#18
|
|
Rookie
Join Date: Mar 2005
Location: Across The Stars
Posts: 151
|
I just use Notepad
I've got SSD, SDs and Venators launching ARC-170s, V-Wings and TIE (Fighters, Avengers, Defenders, Bombers, Interceptors) agaisnt the Rebelions B-Wings, E-Wings, X-Wings, A-Wings, Y-Wings and Eta-2 Interceptors
Just a bunch of ships and models from other mods that I've... collected 
Statemeant: you cannot stop me you cannot harm me, in order to do that I would need to stop being one of you; I have concluded that this is something I am willing to accept!
In short you have just shown me your soft meatbag-like underbellies and said “HK-47 please shot me repeatedly there until I die!”
|
|
you may:
quote & reply,
|
07-05-2006, 04:31 PM
|
#19
|
|
Junior Member
Join Date: May 2004
Location: Korriban
Posts: 344
|
Quote:
|
Originally Posted by KirtanLoor_PL
Hmm, anybody has the full list of the XML tags with the explanation;-)?
Some of them are quite easy to understand, as <Tactical_Health> or <Shield_Points>, but there are some as <Death_Explosions> or <Death_Clone> which I do not understand...
|
Not that I know of to date. The Death explosion is the explosion used when that part or ship explodes. The death clone is the model of the ship dying. Death clone is listed as another ship entry. It appears like a slight of hand trick as this model seems to quickly replace the regular one upon its destruction, not that human eyes actually sees it 
Only the blind can see.
http://www.sunstarentertainmentinc.com
|
|
you may:
quote & reply,
|
07-17-2006, 12:27 AM
|
#20
|
|
Rookie
Join Date: Jul 2006
Posts: 12
|
Ive owned this game since it first came out but I just recently started trying to use 'user-made' mods. For some reason though, I cannot see the new vehicles and space craft in the game. I can see their description, but the icons do not show up on the 'build' or 'fleet view' and of course do not show up during battle.
I am using the 'conflict in space' mod.
I am sure theres something minute that I am not doing correctly.
|
|
you may:
quote & reply,
|
07-17-2006, 06:54 AM
|
#21
|
|
Rookie
Join Date: May 2006
Posts: 29
|
What do you have to type on the black screen?
|
|
you may:
quote & reply,
|
07-17-2006, 07:04 AM
|
#22
|
|
Guest
|
If your mod isnt working, you might need to re-install it. Remember, it will write over your current game files (XML) so allow it do this. If you have patch 1.4, the game has now created a new Mod folder where all your mods should sit. Some mods come with an Icon which you must use as the game exe file to start it up (double click it) and the game will boot up using the new mod.
Dreng - please give more information on what you are trying to do
DMUK
|
|
|
you may:
quote & reply,
|
07-17-2006, 10:09 AM
|
#23
|
|
Rookie
Join Date: Jul 2006
Posts: 12
|
My main 'Mods' folder sits inside my main 'Data' folder... and my actual downloaded mod of "CIS" sits first level inside the main 'Mods' folder that came with the 1.4 update.
Here's where its located:
G:\Games\Lucas Arts\Star Wars Empire at War\GameData\Data\Mods\CIS
Inside the 'CIS' folder sits the mods 'Data' which holds Art, Text, and XML
Should I try to overwrite the default files?
This mod did come with its own .bat file which sits inside the main game directory. I do use it to start the game.
Last edited by Teej2005; 07-17-2006 at 10:11 AM.
Reason: adding more information
|
|
you may:
quote & reply,
|
07-17-2006, 12:12 PM
|
#24
|
|
Rookie
Join Date: May 2006
Posts: 29
|
when i open megExtractor a window pop up and i dunno what to type in there
|
|
you may:
quote & reply,
|
07-17-2006, 12:54 PM
|
#25
|
|
Rookie
Join Date: Jul 2006
Posts: 12
|
see how I am missing some of the model's as well as one of the heroes?
|
|
you may:
quote & reply,
|
07-17-2006, 01:58 PM
|
#26
|
|
Guest
|
What mod are you playing with? More information is needed. Or are you trying to make your own?
DMUK
|
|
|
you may:
quote & reply,
|
07-17-2006, 02:49 PM
|
#27
|
|
Rookie
Join Date: Jul 2006
Posts: 12
|
CIS V.3
Conflict in Space Mod. Here are the installation instructions which I followed. I mean, it cant be that hard but apparently there is something elementary that I am doing wrong or perhaps, though unlikely, maybe the mod itself is just missing the art files??
Quote:
[INSTALLATION]
1) Method for EAW v1.04 and newer (recommended)
Unzip the archive and put "CIS" folder into your "Star Wars Empire at War" Mods directory (e.g. "C:\Program Files\LucasArts\Star Wars Empire at War\GameData\Mods\"). You may need to create this folder ("Mods") in "GameData" directory. Put "conflict_in_space.bat" file into "Star Wars Empire at War\GameData\" folder and double-click on it to start the game with the mod enabled. You can use provided icon to create a desktop shortcut (optional).
2) Method for all versions
Unzip the archive, find "Data" folder and copy it into "Star Wars Empire at War\GameData\" folder, overwrite existing files. It is recommended to backup your original "MasterTextFile_ENGLISH.DAT" file. Start the game with the default shortcut.
|
I downloaded it from:
http://empireatwar.filefront.com/fil...Units_V3;66030
|
|
you may:
quote & reply,
|
07-17-2006, 03:38 PM
|
#28
|
|
Guest
|
Theres a good chance the mod is missing the art files. Its no big deal really, so long as it works.
DMUK
|
|
|
you may:
quote & reply,
|
07-17-2006, 03:42 PM
|
#29
|
|
Rookie
Join Date: Jul 2006
Posts: 12
|
Well... my main purpose was for the extra ships like the B-Wing. They dont show up in battle, they dont show up visually in production. I can hear them like ghosts in my mind when they say "B-wing squadron at your service".
Also, could it be because I dont install to default path on my C drive? I use a different drive for my game installs.
Last edited by Teej2005; 07-17-2006 at 04:30 PM.
Reason: more info
|
|
you may:
quote & reply,
|
08-29-2006, 10:37 PM
|
#30
|
|
Lurker
Join Date: Aug 2006
Posts: 7
|
I created a tool that will take the files in this format: DATA%SCRIPTS%AI%BUILDCANTINAPLAN.LUA and create sub directory structure with this file name:
[CurrentDirectory]\data\scripts\ai\buildcantinaplan.lua
It also has a mode to then parse the data sub directory and move the files back to this:
[CurrentDirectory]\DATA%SCRIPTS%AI%BUILDCANTINAPLAN.LUA
Is this of interest to anyone?
|
|
you may:
quote & reply,
|
10-16-2006, 11:13 AM
|
#31
|
|
Rookie
Join Date: Jan 2006
Posts: 50
|
anyone know which XML file controls the laser graphics?
|
|
you may:
quote & reply,
|
11-17-2006, 05:04 PM
|
#32
|
|
Rookie
Join Date: Mar 2006
Posts: 33
|
Does anyone know if the mods that worked for EaW work exactly the same way for EaW:FoC? I had a mod that successfully made fighters spawn from Mon Cal cruisers for EaW, but it doesn't work when I reapply the same coding to the XML files for FoC.
I was able to make visible changes to things like pop caps, so at least some of the mods are the same. Did they change the coding or did I just make a mistake somewhere?
Proud father of Darth Jack
|
|
you may:
quote & reply,
|
11-17-2006, 05:05 PM
|
#33
|
|
Rookie
Join Date: Mar 2006
Posts: 33
|
(Oh, before people ask, I added the spawn_fighters to space behavior, added the units underneath for specifics, added the hard point and modified the hard points in the other XML file. I used the same structure/wording as for EaW.)
Proud father of Darth Jack
|
|
you may:
quote & reply,
|
11-17-2006, 11:01 PM
|
#34
|
|
Junior Member
Join Date: Jan 2006
Posts: 309
|
There are significant changes. Some basic mods will work such as the Free Camera, but a proper one needs to be made so that the bigger maps distances visuals will show in game.
So basically, 90% + mods will not work.
|
|
you may:
quote & reply,
|
11-20-2006, 02:01 PM
|
#35
|
|
Rookie
Join Date: Mar 2006
Posts: 33
|
Quote:
|
Originally Posted by Slocket
There are significant changes. Some basic mods will work such as the Free Camera, but a proper one needs to be made so that the bigger maps distances visuals will show in game.
So basically, 90% + mods will not work.
|
Thanks. Actually, I finally tracked down my problem. Adding the extra random letter while typing a hardpoint doesn't help. For mods like adding fighter bays, the old EaW versions will work.
I do find it strange that you need rebel_X-Wing, but all other units will work as just the unit, however.
Proud father of Darth Jack
|
|
you may:
quote & reply,
|
11-26-2006, 05:40 PM
|
#36
|
|
Rookie
Join Date: Nov 2006
Posts: 40
|
i followd ur instructions for installing a mod but it still didnt work and i removed the downloaded files and tried to run my game and it would not start
do i need to open the mod and extract something to make it work
and how can i get my game to work again, the box will come up and after i hit play the game will appear for a second then dissapear
i dont have FOC and i have the Collectors Addition
|
|
you may:
quote & reply,
|
12-08-2006, 11:29 AM
|
#37
|
|
Rookie
Join Date: Jul 2006
Posts: 47
|
is there something different you need to do for FOC?
I tried everything you said, but it gives the error "Expect Strange Errors: There is a syntax error in..."
What do I need to do?
"Philosophy is questions that may never be answered. Religion is answers that may never be questioned."
"God is innocent of existence until proven guilty."
"As soon as you make something you think is idiot proof, the world creates a dumber idiot."
Peace is a lie. There is only passion.
Through passion, I gain strength.
Through strength, I gain power.
Through power, I gain victory.
Through victory, my chains are broken.
-The Code of the Sith
|
|
you may:
quote & reply,
|
12-10-2006, 01:45 AM
|
#38
|
|
Junior Member
Join Date: Jan 2006
Posts: 309
|
Some of the FoC XML files do that to me too if you make any changes to them. They have some real syntax errors in them.
I found out using a hex editor to edit the file works, while using wordpad causes thse odd files to puke.
Try out Rouge_Squadron and see what I mean. You will notice the mispelled word...try to fix normally with Wordpad (or make any other change) it will puke. So I used a Hex editor and that took, and worked in game.
I made a post about that bug somewhere, after the small fix..the Rouge Squadron Hero is a heck alot better now that it is being read proper.
There is also a buglet of the same nature to the 'Gallofree Transport' not showing up in GC mode. I posted the fixed file in the Mod section.
These are not openly stated as being fixed in the patch...we will see.
|
|
you may:
quote & reply,
|
12-10-2006, 12:40 PM
|
#39
|
|
Rookie
Join Date: Jul 2006
Posts: 47
|
Quote:
|
Originally Posted by Slocket
Some of the FoC XML files do that to me too if you make any changes to them. They have some real syntax errors in them.
I found out using a hex editor to edit the file works, while using wordpad causes thse odd files to puke.
Try out Rouge_Squadron and see what I mean. You will notice the mispelled word...try to fix normally with Wordpad (or make any other change) it will puke. So I used a Hex editor and that took, and worked in game.
I made a post about that bug somewhere, after the small fix..the Rouge Squadron Hero is a heck alot better now that it is being read proper.
There is also a buglet of the same nature to the 'Gallofree Transport' not showing up in GC mode. I posted the fixed file in the Mod section.
These are not openly stated as being fixed in the patch...we will see.
|
Ok, so it wasn't my fault... that's good. Is there somewhere I can download a Hex editor?
"Philosophy is questions that may never be answered. Religion is answers that may never be questioned."
"God is innocent of existence until proven guilty."
"As soon as you make something you think is idiot proof, the world creates a dumber idiot."
Peace is a lie. There is only passion.
Through passion, I gain strength.
Through strength, I gain power.
Through power, I gain victory.
Through victory, my chains are broken.
-The Code of the Sith
|
|
you may:
quote & reply,
|
01-08-2007, 12:54 PM
|
#40
|
|
Rookie
Join Date: Jan 2007
Location: The Netherlands
Posts: 113
|
I like this tutorial... Good job!
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into
(")_(") your signature to help him on his way to world domination!
|
|
you may:
quote & reply,
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Forum Jump
|
|
|
|
|
|