How do I get a shipped side on my map?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Dandymorganl

How do I get a shipped side on my map?

Post 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.
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

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

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

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

Post 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.
Dandymorganl

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

Post 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:
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

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

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

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

Post 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
Dandymorganl

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

Post 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 >_<
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

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

Post 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.
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

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

Post 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.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

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

Post 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
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

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

Post by Taivyx »

Only treeclump3 is buggy, the other treeclumps are fine
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

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

Post 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.
Dandymorganl

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

Post 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.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

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

Post 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
Post Reply