Renaming Vehicles

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
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Renaming Vehicles

Post by Sky_216 »

K, this is mostly for DEVISS-REX's sides mod.

Basically, got a work around for replacing some vehicles with other ones (he can't use Zeroeditor). Problem is since they have the same odf name as existing ones they've got the same actual name (cos of localization). Is there a way this can be changed via either odf or lua? To overwrite the localization names. Because it's real weird having a dwarf spider showing the name 'AAT'
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Renaming Vehicles

Post by Master_Ben »

No, I'd think the most you could do via odf or lua (if this even) would be changing the name to another localize key.
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Re: Renaming Vehicles

Post by bokkenblader56 »

Yeah, I'd think it'd have something to do with the localization.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Renaming Vehicles

Post by Maveritchell »

Create a dummy map (or use the map you're using to create the sides). Make all the localization changes you need, and munge.

Copy the core.lvl for that modmap into a folder (any one, it doesn't matter) in your addon folder. Use ReadDataFile to call for the "new" core.lvl. Example:

Code: Select all

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

ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveConquest")

ReadDataFile("dc:ADS\\core.lvl")

	--  Empire Attacking (attacker is always #1)
    local REP = 2
    local IMP = 1
    --  These variables do not change
    local ATT = 1
    local DEF = 2
    
function ScriptPostLoad()	   
    
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Renaming Vehicles

Post by Sky_216 »

Thanks again Mav....but you can't name it 'core2' or something like that???
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Renaming Vehicles

Post by Maveritchell »

If you want, sure.
ckmcruel

Re: Renaming Vehicles

Post by ckmcruel »

If your trying to keep all the files the same cant you still change the name in localization?
Post Reply