Page 1 of 1

How do I get a shipped side on my map?

Posted: Sat May 24, 2008 8:40 pm
by Dandymorganl
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.

Re: How do I get a shipped side on my map?

Posted: Sun May 25, 2008 12:03 am
by Fingerfood
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.

Re: How do I get a shipped side on my map?

Posted: Sun May 25, 2008 1:01 am
by AceMastermind
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:

Code: Select all

ReadDataFile("SIDE\\ewk.lvl",
				"ewk_inf_basic")
Also add this further down, this sets up the ewok team:

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)
	--]]
They need an AI goal too, so you'll need to add this:

Code: Select all

AddAIGoal(3,"Conquest",100);
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:

Code: Select all

ewk_inf_trooper
ewk_inf_repair
and you'll add them for example like this to replace a class:

Code: 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),
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.

Re: How do I get a shipped side on my map?

Posted: Sun May 25, 2008 7:37 am
by Dandymorganl
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

Code: Select all

ReadDataFile("SIDE\\ewk.lvl",
						"ewk_inf_trooper",
						"ewk_inf_repair")
That does not work though. My game just crashes. I also have this for the unit side.

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},
It wont work :cry:

Re: How do I get a shipped side on my map?

Posted: Sun May 25, 2008 1:07 pm
by Fingerfood
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.

Re: How do I get a shipped side on my map?

Posted: Sun May 25, 2008 7:34 pm
by AceMastermind
Dandymorganl wrote:This is what I put for the ReadDataFile section

Code: Select all

ReadDataFile("SIDE\\ewk.lvl",
						"ewk_inf_trooper",
						"ewk_inf_repair")
That does not work though. My game just crashes.


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")
And these are the unit names that would go in the SetupTeams section:
ewk_inf_trooper
ewk_inf_repair
ewk_inf_scout

Re: How do I get a shipped side on my map?

Posted: Mon May 26, 2008 6:57 am
by Dandymorganl
: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..

Code: Select all

Message Severity: 3
.\Source\EntityProp.cpp(539)
Prop "end_prop_treeclump03" geometry "end_prop_treeclump03.msh" not found
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 >_<

Re: How do I get a shipped side on my map?

Posted: Tue May 27, 2008 3:55 pm
by obiboba3po
oh hahaha! :lol: 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.

Re: How do I get a shipped side on my map?

Posted: Tue May 27, 2008 4:02 pm
by elfie
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.

Re: How do I get a shipped side on my map?

Posted: Tue May 27, 2008 4:23 pm
by obiboba3po
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

Re: How do I get a shipped side on my map?

Posted: Tue May 27, 2008 4:59 pm
by Taivyx
Only treeclump3 is buggy, the other treeclumps are fine

Re: How do I get a shipped side on my map?

Posted: Tue May 27, 2008 6:06 pm
by Xavious
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..

Code: Select all

Message Severity: 3
.\Source\EntityProp.cpp(539)
Prop "end_prop_treeclump03" geometry "end_prop_treeclump03.msh" not found
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 >_<
Open up end_prop_treeclump03.odf.
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "prop"
GeometryName = "end_prop_treeclump03.msh"


[Properties]

GeometryName = "end_prop_treeclump03.msh"

AttachOdf = "end_prop_godray"

AttachToHardPoint = "hp_godray"
AttachToHardPoint = "hp_godray6"
AttachToHardPoint = "hp_godray7"
AttachToHardPoint = "hp_godray8"
AttachToHardPoint = "hp_godray9"
AttachToHardPoint = "hp_godray10"
AttachToHardPoint = "hp_godray11"
AttachToHardPoint = "hp_godray12"
AttachToHardPoint = "hp_godray13"
AttachToHardPoint = "hp_godray14"
AttachToHardPoint = "hp_godray15"
That little part in red needs to be removed. Save, munge, and it should work.

Re: How do I get a shipped side on my map?

Posted: Tue May 27, 2008 6:14 pm
by Dandymorganl
: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.

Re: How do I get a shipped side on my map?

Posted: Tue May 27, 2008 6:24 pm
by obiboba3po
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 :P