Well, I'm trying to add my custom units to the official maps. I think I understand what I have to do, here are the steps I took. First I copied the imp folder into a new project. Next, I added my custom unit and tested him to see if he worked, he did. Then, I took the imp.lvl and impshell.lvl out of the mod folder and put it in the SIDE folder for the game, where the original imp.lvl and impshell.lvl are located(now backed up elsewhere). When I boot up a level to test him out on an official map, all the classes are the same, nothing is changed. Now i'm assuming I need to replace the dark trooper with my custom unit by way of the req files or something to that effect, but i'm reluctant to try it.
The question is, am I doing this right? did I miss a step? or was I wrong from the start?
Question about adding custom units
Moderator: Moderators
-
- Rebel Colonel
- Posts: 566
- Joined: Tue Apr 12, 2005 7:03 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- minilogoguy18
- Master Bounty Hunter
- Posts: 1512
- Joined: Wed Nov 09, 2005 11:12 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Question about adding custom units
you should be able to add it to the map without having to replace any units by having the lua file read your side
RE: Question about adding custom units
he wants to add it to the official maps that would only work on a new one, i think.
anyways, i havent tested this at all, but i'd guess that you would need to rename your unit so it has the same name as one of the original units (obviously renaming that unit as well, to something else useless). of course, make sure you back up the original imp.lvl files, but i'm sure you've already done that
anyways, i havent tested this at all, but i'd guess that you would need to rename your unit so it has the same name as one of the original units (obviously renaming that unit as well, to something else useless). of course, make sure you back up the original imp.lvl files, but i'm sure you've already done that
RE: Question about adding custom units
Yeah, because in the Mission.lua for the official maps, it calls what units to use on the map. So, let's say, on Mos Eisely, it's going to call for the "imp_inf_trooper", "imp_inf_dark_trooper", etc. So, for this to work, you'll need to rename your unit to whatever unit you want it to replace. In this case, rename it to "imp_inf_dark_trooper" for it to replace the Dark Trooper. Alternatively, you could hex edit the Mission.lua to call for your unit, but you need to make sure it's the same number of characters (or use that one method... I never quite understood how to do it myself...)
-
- Rebel Colonel
- Posts: 566
- Joined: Tue Apr 12, 2005 7:03 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Question about adding custom units
Ok, i tried editing the mission.lvl(since the renaming of req and stuff doesn't seem to work), and the dark trooper is gone, but now the storm commando doesn't show up.
-
- Rebel Colonel
- Posts: 566
- Joined: Tue Apr 12, 2005 7:03 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Question about adding custom units
Success! my unit is ingame. However, now I need to localize it... but how?