Localization problem for new vehicles on stock maps [Solved]

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
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Localization problem for new vehicles on stock maps [Solved]

Post by skelltor »

In bfsm I am adding new vehicles to some maps by munging a lvl called vehicles and reading that sides vehicle instead of the stock sides ie I am adding an atap to kashyyyk by reading vehs rep_hover_fightertank insted of the reps side rep_hover_fightertank this works like a charm I only have one problem the atap is localized as Republic Fightertank. Does anyone have any ideas of how to fix this problem? the only solution I can think of is to have different core lvls for each vehicle and vehicle combonation but that increases size and I am not sure if core.lvls can be referenced in luas. Like I said before anybody got an ideas or ways to improve my method of adding new vehicles to stock maps while keeping the stock vehicles available.
Last edited by skelltor on Wed Mar 02, 2011 10:09 am, edited 1 time in total.
User avatar
Jendo7
Sith
Sith
Posts: 1304
Joined: Wed Apr 01, 2009 6:37 pm
Location: Cambridge, England.
Contact:

Re: Localization Problem or Dilemma / New vehicles on stock

Post by Jendo7 »

Would it help changing the new vehicles .odf names.

Edit: Of course not they wouldn't show up, sorry I wasn't thinking.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Localization Problem or Dilemma / New vehicles on stock

Post by skelltor »

Thats ok :) I appreate any suggestions at all as this is one of the last handful of bugs preventing bfsms release.
Ninja
Master Sergeant
Master Sergeant
Posts: 172
Joined: Thu Jan 07, 2010 9:49 pm
Projects :: Ghostmark
Location: Inside your sandwich

Re: Localization Problem or Dilemma / New vehicles on stock

Post by Ninja »

Incidentally, this is what I'm doing for my mod too (alternate vehicle sides). I'm pretty sure that new core.lvl's is the only way to fix the localization. I haven't tried to fix this yet, but I would make new small core.lvl's with localization for the one or two vehicles and load them after the "normal" one. Core.lvl's aren't very big especially if you only have localization for one or two vehicles in them.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Localization Problem or Dilemma / New vehicles on stock

Post by skelltor »

Yes but can two core lvls be loaded?
Ninja
Master Sergeant
Master Sergeant
Posts: 172
Joined: Thu Jan 07, 2010 9:49 pm
Projects :: Ghostmark
Location: Inside your sandwich

Re: Localization Problem or Dilemma / New vehicles on stock

Post by Ninja »

Yes, I just tried it and it worked. I made a new world, deleted all localization, and added one key for rep_hover_fightertank. Then I munged, took that world's new core.lvl, and put it in a new sub-folder of my mod's addon folder.

I loaded it like this

Code: Select all

--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveConquest")

ReadDataFile("..\\..\\addon\\ZSS\\data\\_LVL_PC\\CORE2\\core.lvl")

    --  Empire Attacking (attacker is always #1)
    REP = 1
    CIS = 2
    --  These variables do not change
    ATT = 1
    DEF = 2
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Localization Problem or Dilemma / New vehicles on stock

Post by skelltor »

Ok were your units localized?
Ninja
Master Sergeant
Master Sergeant
Posts: 172
Joined: Thu Jan 07, 2010 9:49 pm
Projects :: Ghostmark
Location: Inside your sandwich

Re: Localization Problem or Dilemma / New vehicles on stock

Post by Ninja »

It loaded my normal core.lvl and overwrote the rep_hover_fightertank localization with the new name from the second core.lvl. Custom unit, weapons, etc from the "real" core.lvl still worked and the new core.lvl loaded correctly and changed "IFT-X" to "Swamp Speeder."
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Localization Problem or Dilemma / New vehicles on stock

Post by skelltor »

It works thanks ninja :D

edit I cant seam to edit the name to say SOLVED so can a staff member plase do that for me
Post Reply