Locals trouble

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
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Locals trouble

Post by lucasfart »

i created a local side which worked fine then i changed it around abit so it looks like this:

Code: Select all

 SetTeamName (3, "Naboo Guard")
	AddUnitClass (3, "gar_inf_soldier", 5,10)
	AddUnitClass (3, "gar_inf_naboo_queen", 1,1)
	SetUnitCount (1, 11)
	AddAIGoal (3, "Deathmatch", 100)
    SetTeamAsEnemy(ATT,3)
	SetTeamAsEnemy(3,ATT)
	SetTeamAsEnemy(DEF,3)
	SetTeamAsEnemy(3,DEF)
whenever i add that to my lua the locals don't appear and my rep side only has the normal 16 people side instead of the uber sides i made. the cis however still have 200 troops on their side.
i have a few other questions as well:
1) how do i add a uber or xl mode to the map i have made. i can make the conquest have 200 units at a time but i want to have it as a seperate mode and dont know how to do it.
2)i am having trouble using the localize tool. i used two tutorials from the everything you need thread, one of which seemed right for me but the other one looked like it was for a different game like bf1. when i go into the game they still show up as [null] when killed but when you hover over them they have their normal name. (in the pic i have added my map is NTC, and i want to add tusken raider as the name. does that look allright or is there something else i need to do??)
bf2-2.jpg
3)for some reason, in my map the ground is all pink when it should be brown naboo pavement texture.
i will add a pic of it
bf2-1.jpg
Last edited by lucasfart on Fri Mar 27, 2009 9:01 pm, edited 1 time in total.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Locals trouble

Post by kinetosimpetus »

lucasfart wrote:
Hidden/Spoiler:
SetTeamName (3, "Naboo Guard")
AddUnitClass (3, "gar_inf_soldier", 5,10)
AddUnitClass (3, "gar_inf_naboo_queen", 1,1)
SetUnitCount (1, 11)
AddAIGoal (3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)
whenever i add that to my lua the locals don't appear and my rep side only has the normal 16 people side instead of the uber sides i made. the cis however still have 200 troops on their side.
i think that is telling team 1 to use 11 units
try

Code: Select all

SetUnitCount (3, 11)
to tell team 3 to use 11 units
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Locals trouble

Post by lucasfart »

ah ok thanks for that. i thought that was for the min and max number of units likehow you normally do it...
EDIT: ok thanks, that worked perfectly
still need help with the other things though
EDIT2:i also found out how to do the xl thing so don't bother answering that, just need help with localizing and texture
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Locals trouble

Post by YaNkFaN »

localizing just run editlocalize.bat in the data_modid folder (more info is in the everything you need to know thread). For textures you need to make a new side (again this is in the everything you need to know thread).
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Locals trouble

Post by jedimoose32 »

I think what he means is that he has already used the localize tool to edit the names, but ingame they have not changed. What he needs to know is why.

And so do I, this is happening to me, too...
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Locals trouble

Post by kinetosimpetus »

do you use uk english in your game?
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Locals trouble

Post by lucasfart »

sorry about the localizing thing. i managed to figure it out. i was going into the world folder not the entity folder and i dunno what i did after that but i got it working now :wink:
all good. and also with jedimoose did you munge with the localize box ticked??
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Locals trouble

Post by jedimoose32 »

Yes. I followed this tutorial (http://www.gametoast.com/forums/viewtop ... =27&t=6088) to the letter, and still nothing. Whenever I munge and then return to editlocalize, the locals key is gone where I made it.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Locals trouble

Post by Teancum »

You seem to be trying to do way to many things at once. Slow down and work on one thing at one time, that way you know what broke when something goes wrong.

May I recommend reading this thread?
Post Reply