Page 1 of 1

Renaming Vehicles

Posted: Wed Dec 17, 2008 4:52 pm
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'

Re: Renaming Vehicles

Posted: Wed Dec 17, 2008 5:33 pm
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.

Re: Renaming Vehicles

Posted: Wed Dec 17, 2008 5:49 pm
by bokkenblader56
Yeah, I'd think it'd have something to do with the localization.

Re: Renaming Vehicles

Posted: Wed Dec 17, 2008 6:13 pm
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()	   
    

Re: Renaming Vehicles

Posted: Wed Dec 17, 2008 6:41 pm
by Sky_216
Thanks again Mav....but you can't name it 'core2' or something like that???

Re: Renaming Vehicles

Posted: Wed Dec 17, 2008 8:03 pm
by Maveritchell
If you want, sure.

Re: Renaming Vehicles

Posted: Fri Dec 19, 2008 12:49 pm
by ckmcruel
If your trying to keep all the files the same cant you still change the name in localization?