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'
Renaming Vehicles
Moderator: Moderators
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Watching your PC over your shoulder. No, the other sholder....
Re: Renaming Vehicles
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.
- xbox live or psn: No gamertag set
- Location: South Carolina
- Contact:
Re: Renaming Vehicles
Yeah, I'd think it'd have something to do with the localization.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Renaming Vehicles
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:
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()
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Renaming Vehicles
Thanks again Mav....but you can't name it 'core2' or something like that???
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Renaming Vehicles
If you want, sure.
-
ckmcruel
Re: Renaming Vehicles
If your trying to keep all the files the same cant you still change the name in localization?
