Page 1 of 1

Re-Texturing Stock Maps Through LUA (FAQ)

Posted: Tue Oct 16, 2012 2:42 pm
by Nedarb7
So I was working on Civil War Era and I felt that the normal texture for coruscaunt didn't fit the
era. After a while of thinking I came up with the idea to re-texture it through the lua.
And it resulted like this (much more fitting):
Hidden/Spoiler:
Image
Okay now that I'm done explaining what happened and showing a picture here's how I did it

1# First create a new side and call it Textures (example) now make a req and set it up like this:
Hidden/Spoiler:
[code]ucft
{
REQN
{
"lvl"
"whateveryouwanttocallit"
}
}[/code]
now copy the cor1 tga files (or the map your re-texturing's tga files) in the assets folder and place them in your sides msh folder. Edit them however you want.
Next go into the req folder and create :
whateveryouwanttocallit
Now place the names of the tga files you edited in it like this:
Hidden/Spoiler:
[code]ucft
{
REQN
{
"texture"
"Cor1_temple_floor"
"cor1_bldg_minorhall01"
"cor1_bldg_minorhall02"
"cor1_bldg_minorhall03"
"cor1_bldg_minorhall04"
}
}[/code]
Now the side is ready.

2#Now that the side is ready open up your stock maps lua and find this:
Hidden/Spoiler:
[code]SetSpawnDelay(10.0, 0.25)
ReadDataFile("cor\\cor1.lvl","cor1_Conquest")
SetDenseEnvironment("True")
-- SetMaxFlyHeight(25)
--SetMaxPlayerFlyHeight (25)
AddDeathRegion("DeathRegion1")[/code]
and add these lines:
Hidden/Spoiler:
[code]SetSpawnDelay(10.0, 0.25)
ReadDataFile("cor\\cor1.lvl","cor1_Conquest")
SetDenseEnvironment("True")
-- SetMaxFlyHeight(25)
--SetMaxPlayerFlyHeight (25)
AddDeathRegion("DeathRegion1")

ReadDataFile("dc:SIDE\\Textures.lvl",
"whateveryouwanttocallit")[/code]
3#Go to "Data_***/_BUILD/Sides" and make a folder called Textures.

After that go into "Data_***/_BUILD/Sides/ALL" and copy a munge.bat
and clean.bat and paste them into "Data_***/_BUILD/Sides/Textures"

Then munge with EVERYTHING selected for sides and your done!

EDIT; ADDED STEP 3

Re: Re-Texturing Stock Maps Through LUA

Posted: Tue Oct 16, 2012 2:49 pm
by Marth8880
Huh, that actually makes a lot of sense. :o Thanks for the info! :thumbs:

Re: Re-Texturing Stock Maps Through LUA

Posted: Tue Oct 16, 2012 3:07 pm
by yuke5
That is very cool! Maybe it could be used to make certain maps fit certain eras. Now THAT would be super cool, like a reskinned Death Star for clone wars or something. Thank you for sharing your knowledge.

Re: Re-Texturing Stock Maps Through LUA

Posted: Tue Oct 16, 2012 10:58 pm
by DarthSolous
yuke5 wrote:That is very cool! Maybe it could be used to make certain maps fit certain eras. Now THAT would be super cool, like a reskinned Death Star for clone wars or something. Thank you for sharing your knowledge.
Very useful :mrgreen:

Re: Re-Texturing Stock Maps Through LUA

Posted: Wed Oct 17, 2012 5:31 pm
by Nedarb7
This method works for sky as well.
Just get the texture of the sky from the stock maps
world1 folder. Set it up the same way.
I haven't tried the terrain but it should work the same.