Page 1 of 1

Locals trouble

Posted: Fri Mar 27, 2009 8:20 pm
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

Re: Locals trouble

Posted: Fri Mar 27, 2009 8:33 pm
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

Re: Locals trouble

Posted: Fri Mar 27, 2009 8:43 pm
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

Re: Locals trouble

Posted: Sat Mar 28, 2009 8:40 am
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).

Re: Locals trouble

Posted: Sat Apr 04, 2009 9:25 pm
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...

Re: Locals trouble

Posted: Sat Apr 04, 2009 10:06 pm
by kinetosimpetus
do you use uk english in your game?

Re: Locals trouble

Posted: Sun Apr 05, 2009 6:01 am
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??

Re: Locals trouble

Posted: Sun Apr 05, 2009 8:57 pm
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.

Re: Locals trouble

Posted: Mon Apr 06, 2009 8:31 am
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?