Changing units name problem

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

Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Changing units name problem

Post by Webster27 »

Well it´s me (again) :oops: ,i´ve got 2 questions and a pic.
The Pic, look at the red, it´s the important bit:
Image

1. How do i change the name, so it doesn´t say entity... .
2. How do i change the order, of the units you can select ?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Changing units name problem

Post by DarthD.U.C.K. »

1st: you can find a tutorial in the everythingyouneedthread under localisation
2nd: the order of the units ingame depends on the order of them in the teamsetup in the lua.
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

To number 1, I looked at it and I used that tutorialo do it, but it still shows entity,Rsf;... .
I´ll have a look at my lua for number two, thx.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Changing units name problem

Post by Noobasaurus »

Webster27 wrote:To number 1, I looked at it and I used that tutorialo do it, but it still shows entity,Rsf;... .
Well you go Entity, RSF, Rifleman - then in the box you enter the name.
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

well I did that.. :cpu:
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: Changing units name problem

Post by kinetosimpetus »

What language does your game use? What languages did you edit?
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

I don´t think it has got to do with the language...or has it :runaway: :faint:
Edit here is the setup:
Hidden/Spoiler:
Image
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: Changing units name problem

Post by kinetosimpetus »

If your game uses UK English, changes to only English won't show up.
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

well my game is in german, well I bought it in germany, so do i need to put that line to"German" ??Or what? :runaway:
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Changing units name problem

Post by Dakota »

Webster27 wrote:well my game is in german, well I bought it in germany, so do i need to put that line to"German" ??Or what? :runaway:
Yes.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Changing units name problem

Post by AceMastermind »

The ODF names of your units make up the scope and key combinations.
According to your image you have a unit ODF named: RSF_RSF_rifleman
The game is looking for this ODF but it doesn't exist, your ODF is probably just RSF_rifleman?

Your localization tree should look like this:
entity
  • RSF (scope)
    • Arc_Trooper (key)
      Commander (key)
      Engineer (key)
      Jettrooper (key)
      Recon_Trooper (key)
      rifleman (key)
      Rocketeer (key)
      Sniper_Scout (key)
      Support_Trooper (key)
Also create a new key under the existing rep scope and name it this:
  • inf_commander_fox
Then click on each key and set your ingame unit names then save and munge.
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

Thx Ace :thumbs: , I´ll try that ,but it may only be tomorrow, and I´ll post the outcome of it.
Edit: I munged it with th Localization box checked and all , but now it just says no names at all. :?
and another 2 questions, 1.how do you do it that when a player or AI fall down a Gorge ,they die ? Do you use Deathregions ??
2.One Unit as a weapons bug that when you change your first wapon youcan´t change it back, does anyone know how to fix it ?
Sry for all the questions, :oops: after those i wont bother you anymore...
Last edited by Webster27 on Wed Nov 23, 2011 11:48 am, edited 1 time in total.
User avatar
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

Re: Changing units name problem

Post by DarthXeon »

yay im glad that you got the units to work
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Changing units name problem

Post by DarthD.U.C.K. »

yay! im so glad for you toooooooooooooooooooooooooooooooooooooo!

now to the portion that isnt pointless:
Webster27 wrote:1.how do you do it that when a player or AI fall down a Gorge ,they die ? Do you use Deathregions ??
yes (but you have to list deathregions in the lua),so its quicker to use damage regions with really high damage.
Webster27 wrote:2.One Unit as a weapons bug that when you change your first wapon youcan´t change it back, does anyone know how to fix it ?
that is the award weapon bug, you can find a fix e.g. in this topic

by the way, in english you usually only use one punctuationmark at the end of a sentence (e.g. ?,!..) just like in german

@DarthXeon: did you even read his post? he hasnt gotten the localisazion to work yet.
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

DarthD.U.C.K. wrote: yes (but you have to list deathregions in the lua),so its quicker to use damage regions with really high damage.

by the way, in english you usually only use one punctuationmark at the end of a sentence (e.g. ?,!..) just like in german

@DarthXeon: did you even read his post? he hasnt gotten the localisazion to work yet.
How do i do Deathregions, is there maybe a tutorial ?
With the english, I knew that (I´m half scottish) I just wanted to do it like dot dot dot :D
Edit: would te award weapon fix, fix it even if it´s not an award weapon?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Changing units name problem

Post by DarthD.U.C.K. »

yes, i meant the question marks
anyway, you can find many explanations using the searchfunction and entering "damage region", like this one
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

has anybody else have a idea with the localization ? :cry:
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: Changing units name problem

Post by Tears2Roses »

Forgive me if I am wrong ace, but I believe it is the units REQ that localization searches for. Anyhow, when making custom units I make the REQ's the same as the ODF's to avoid confusion.

Anyhow, the FAQ really works, I would suggest looking at that.

But I will post what I know of localization anyways. So, here we go.

in data_ABC\sides you have a folder called RSF. Now, change the units ODF, and req's to RSF_inf_rifleman for example. Change the LUA too! Im not sure if having the inf_ part does anything, but thats how everything is setup.
Now, in the localization tool, right click on entity and click add scope. Call it RSF. Now, right click on the new scope called RSF and click add key. Now, call the key inf_rifleman. Click on the key and type in the unit name. Do that in ALL languages. Munge with common AND localize checked under visual munge.

Hopefully that fixes your localization problem, if not I will get pictures.

Now, to change the order of the units, you do that under the setup teams section in your LUA.
Hidden/Spoiler:
SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
The Soldier unit is the first one, assult is second, engineer third, etc. So, if you wanted rsf_inf_coolguy101 to be the first unit to show up when you play ingame, you would do this:
Hidden/Spoiler:
SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rsf_inf_coolguy101",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
This IS what everyone else has said, reading carefully never hurts. Hopefully that fixes both problems. We will be happy to explain further if you need us too :)
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Changing units name problem

Post by AceMastermind »

Tears2Roses wrote:...I believe it is the units REQ that localization searches for...
Nope
Hidden/Spoiler:
Image

Image

Image

Image

Image

Image
Don't be so quick to dismiss someone's instruction when a new member doesn't get it right the first time, trial and error is a part of learning.
Webster27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Tue Nov 08, 2011 11:14 am
Projects :: The Republic Commando Mod
Games I'm Playing :: SWBF2 Minecraft
xbox live or psn: No gamertag set
Location: Germany

Re: Changing units name problem

Post by Webster27 »

Thx, I got the setup now how I want it. And I´ll try the localization later, but do really have to re-name everything ? :faint: :runaway:
Post Reply