How do I get a shipped side on my map?
Moderator: Moderators
-
Dandymorganl
How do I get a shipped side on my map?
Hello. Newbie here again. I was wondering how I could get a shipped side onto my map. I need Ewoks for it. I dont know if I should use the Custom Side tut or what. I am just using a shipped side. I dont even want to make my own side.
-
Fingerfood
- Sith

- Posts: 1262
- Joined: Fri Nov 30, 2007 9:40 pm
Re: How do I get a shipped side on my map?
Yes, you would use the Custom Side tut. It uses a lot of the same steps. I'd suggest reading over the tut completely even if you're not going to make a new side, then do the steps needed for a shipped side.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: How do I get a shipped side on my map?
If you're just adding a shipped(unmodified) side to your map then you only need to add some lines of code to your LUA.
Have a look at end1g_con.lua to get the code you need to make your ewoks a local team.
Add this to the ReadDataFile section:
Also add this further down, this sets up the ewok team:
They need an AI goal too, so you'll need to add this:
If you don't want to add ewoks as locals but playables then just load them in the ReadDataFile section and then add the class names where you want them in the main SetupTeams section.
The class names are:
and you'll add them for example like this to replace a class:
or you can use the AddUnitClass code to add new units to the existing team setup without replacing units like this for example:
You can also create your own class types in the setup_teams.lua.
Have a look at end1g_con.lua along with the other shipped scripts and you'll get an idea of where certain stuff goes and what you'll need.
Have a look at end1g_con.lua to get the code you need to make your ewoks a local team.
Add this to the ReadDataFile section:
Code: Select all
ReadDataFile("SIDE\\ewk.lvl",
"ewk_inf_basic")Code: Select all
---[[ Ewoks
SetTeamName(3, "locals")
AddUnitClass(3, "ewk_inf_trooper", 3)
AddUnitClass(3, "ewk_inf_repair", 3)
SetUnitCount(3, 6)
SetTeamAsFriend(3,ATT)
SetTeamAsEnemy(3,DEF)
SetTeamAsFriend(ATT, 3)
SetTeamAsEnemy(DEF, 3)
--]]Code: Select all
AddAIGoal(3,"Conquest",100);The class names are:
Code: Select all
ewk_inf_trooper
ewk_inf_repairCode: Select all
SetupTeams{
all = {
team = ALL,
units = 29,
reinforcements = 150,
soldier = { "ewk_inf_trooper",10, 25},
assault = { "all_inf_rocketeer_jungle",1,4},
engineer = { "ewk_inf_repair",1,4},
sniper = { "all_inf_sniper_jungle",1,4},
officer = {"all_inf_officer_jungle",1,4},
special = { "all_inf_wookiee",1,4},
},
imp = {
team = IMP,
units = 29,
reinforcements = 150,
soldier = { "imp_inf_rifleman",10, 25},
assault = { "imp_inf_rocketeer",1,4},
engineer = { "imp_inf_engineer",1,4},
sniper = { "imp_inf_sniper",1,4},
officer = {"imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
}
}or you can use the AddUnitClass code to add new units to the existing team setup without replacing units like this for example:
Code: Select all
AddUnitClass(ALL, "ewk_inf_trooper", 1,10),
AddUnitClass(ALL, "ewk_inf_repair", 1,10),Have a look at end1g_con.lua along with the other shipped scripts and you'll get an idea of where certain stuff goes and what you'll need.
-
Dandymorganl
Re: How do I get a shipped side on my map?
Thanks for your help both of ya! I have a question again. In the LUA can you change the reinforcements? Also is there a ewk_inf_scout too? Do you NEED to have 6 unit's? I just want ewk_inf_trooper, ewk_inf_scout, and ewk_inf_repair. So you don't need a sides folder for the ewoks? This is what I put for the ReadDataFile section
That does not work though. My game just crashes. I also have this for the unit side. It wont work 
Code: Select all
ReadDataFile("SIDE\\ewk.lvl",
"ewk_inf_trooper",
"ewk_inf_repair")Code: Select all
SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "ewk_inf_trooper",10,25},
engineer = { "ewk_inf_repair",1,4},
assault = { "all_inf_rocketter_jungle",1,4},
sniper = { "all_inf_sniper_jungle",1,4},
officer = { "all_inf_officer_jungle",1,4},
special = { "all_inf_wookiee",1,4},-
Fingerfood
- Sith

- Posts: 1262
- Joined: Fri Nov 30, 2007 9:40 pm
Re: How do I get a shipped side on my map?
Check your log. It may be something else.
And for your other questions:
Yes, you can change reinforcements.
The ewk_inf_scout is very similar to another one of the units. I think the trooper.
You can have up to nine or as little as 1 per team. If you want just the ewoks, then delete the other lines. I don't think the "soldier =, engineer =" really matter.
No. It loads them from the game itself.
And for your other questions:
Yes, you can change reinforcements.
The ewk_inf_scout is very similar to another one of the units. I think the trooper.
You can have up to nine or as little as 1 per team. If you want just the ewoks, then delete the other lines. I don't think the "soldier =, engineer =" really matter.
No. It loads them from the game itself.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: How do I get a shipped side on my map?
Dandymorganl wrote:This is what I put for the ReadDataFile sectionThat does not work though. My game just crashes.Code: Select all
ReadDataFile("SIDE\\ewk.lvl", "ewk_inf_trooper", "ewk_inf_repair")
Of course it doesn't work, you didn't load the units in the ReadDataFile section like I showed you previously, you load the units with this:
Code: Select all
ReadDataFile("SIDE\\ewk.lvl",
"ewk_inf_basic")ewk_inf_trooper
ewk_inf_repair
ewk_inf_scout
-
Dandymorganl
Re: How do I get a shipped side on my map?
:OH! I thought you meant to put the ewk_inf_tooper and stuff like that in the ReadDataFile section. I crash still. I checked the log and it says that I have a Severity of 3 for this.. I tried cleaning and then remunging but that did not work. It was working perfectly fine before. I checked all my folders to see if it was in there and it was. I dont the SWBF2 Likes me >_<
Code: Select all
Message Severity: 3
.\Source\EntityProp.cpp(539)
Prop "end_prop_treeclump03" geometry "end_prop_treeclump03.msh" not found-
obiboba3po
- 2008 Most Technically Challenging Avatar
- Posts: 2376
- Joined: Tue Feb 12, 2008 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: NJ, USA
Re: How do I get a shipped side on my map?
oh hahaha!
thats one of those "Errors of doom" for some reason, modtools doesnt like the endor tree clump. delete all of them. idk why, but if you even have one of those darn things, it crashes.
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: How do I get a shipped side on my map?
That never happened to me. It looks like you just need to put the appropriate files in your Data_ABC/Worlds/ABC folder, I could be wrong though.
-
obiboba3po
- 2008 Most Technically Challenging Avatar
- Posts: 2376
- Joined: Tue Feb 12, 2008 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: NJ, USA
Re: How do I get a shipped side on my map?
are you sure? cause its in the endor folder and is just a regular object unless theres something extra u need to do. cause i tried adding them as a regular object, had all the files, and the same thing happened. i just deleted them. it may be a bug
-
Taivyx
- 2008 Best Games Related Avatar
- Posts: 1706
- Joined: Thu Jun 07, 2007 3:34 pm
- Projects :: Terra Strife - discontinued
- xbox live or psn: No gamertag set
- Contact:
Re: How do I get a shipped side on my map?
Only treeclump3 is buggy, the other treeclumps are fine
-
Xavious
- Sith Master

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: How do I get a shipped side on my map?
Open up end_prop_treeclump03.odf.Dandymorganl wrote::OH! I thought you meant to put the ewk_inf_tooper and stuff like that in the ReadDataFile section. I crash still. I checked the log and it says that I have a Severity of 3 for this..I tried cleaning and then remunging but that did not work. It was working perfectly fine before. I checked all my folders to see if it was in there and it was. I dont the SWBF2 Likes me >_<Code: Select all
Message Severity: 3 .\Source\EntityProp.cpp(539) Prop "end_prop_treeclump03" geometry "end_prop_treeclump03.msh" not found
Hidden/Spoiler:
-
Dandymorganl
Re: How do I get a shipped side on my map?
:OMG EVERYTHING IS WORKING! Sorry for the caps buy thanks soo much Xavious! I can't believe how much this community helps out. I will definatly come here for some questions when I need them.
-
obiboba3po
- 2008 Most Technically Challenging Avatar
- Posts: 2376
- Joined: Tue Feb 12, 2008 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: NJ, USA
Re: How do I get a shipped side on my map?
lol yea gtpwn but ill bet alot of your questions are already answered or you can figure them out on your own, so dont post every problem you encounter. if we all did that, GT probably would have virtually no memory left 
