PDA

View Full Version : Alletun's Eyecandy Tutorial



Alletun
03-11-2007, 18:06
Eyecandy Tutorial

By : Alletun


Hello! This is a simple tutorial i made while working on the 2d graphics for Wrath of the Norsemen mod for M2TW on TWC. Hopefully someone will find it usefull :) To make this tutorial easy to follow for even the newest modder i'll start with just a brief introduction where I set up the mod folder and makes everything ready for testing. After that i'll get to the interesting part!


Setting up the environment


To set up your environment ready for modding follow these steps.

1) Unpacked the files. Do this by using the unpack_all in the M2TW/data/tools folder.

2) Make a new folder called "wrath of the Norsemen" (or whatever your mod is called) in your M2TW root directory.

3) Create a batch file . It's a .txt file (notepad), where i wrote "medieval2.exe @wrathnorsemen.cfg" in it. After that i closed it and renamed Wrathnorsemen.txt to Wrathnorsemen.bat

4) Create a .cfg file, open it with notepad and write the following:

[io]
file_first = true

[features]
mod = Wrath of the Norsemen

[log]
to = logs/system.log.txt
level = * error

[video]
movies = false


Name it wrathnorsemen.cfg

5) go into your "wrath of the Norsemen" folder and create a folder called "data", inside that folder, create two new folder called "loading_screen" and "menu"

Now that our game is set up for testing, we're ready for the fun part: The Graphics!!


Graphics


Photoshop is used to make the graphics in this tutorial, but any photoediting software can be used such as GIMP, Painter and so on. I assume a base knowledge of the photoshop functions, but i wil try and explain as good as possible. All files that will be altered/edited is always copied to the mod folder, so the original files remain intact.

The tutorial is from here devided into 4 parts: 1)Custom Splash Screen 2) Loading bar 3) Main Menu and beyond 4) Faction Symbols.


Custom Splash screen

The splash screen i create for WotN looks like this:
https://img74.imageshack.us/img74/2742/customsplashxf4.th.jpg (https://img74.imageshack.us/my.php?image=customsplashxf4.jpg)

This is how i made it:
1)
Go to your M2TW\Data\menu folder and copy the file called _m2_border.tga to M2TW\wrath of the Norsemen\data\menu

2)
Open that _m2_border.tga file in photoshop

3)
Create a new layer (ctrl+n) and fill it with black (shift+f5, then choose black from the drop down)

4)
Go on google and find an image of a nice old map. The higher resolution the better. Old maps make for great background images.

5)
Paste the map into a new layer, and transform it until the fills out the image. Use ctrl+t, and hold down shift when transforming to keep proportions.

6)
For a nice effect, take the Erase tool and erase the sides. make sure your erase brush is a round brush, 0% hardness, and about 25% opacity.
This is how it looks like so far:
https://img160.imageshack.us/img160/3612/splashmapsw2.th.jpg (https://img160.imageshack.us/my.php?image=splashmapsw2.jpg)

7)
Now go to Mayang (http://www.mayang.com/textures/Architectural/html/Concrete%20and%20Cement/index.html) and pick a texture you like.
Copy that texture into a new layer.

8)
Change the "Blending Options" of that layer to Multiply, or any of the other blending modes. Experiment and see what looks best for your texture.
I put mine on Multiply, and this is how it looks:
https://img61.imageshack.us/img61/2258/splashtexturesfg1.th.jpg (https://img61.imageshack.us/my.php?image=splashtexturesfg1.jpg)

9)
Now it's time for the text. Write the name of your mod in a new layer. Here i start by writing "Wrath" in the font called "Viking-Normal" (www.dafont.com (http://www.dafont.com))
After that I double click the layer to open up the Layer Styles menu.
Add Drop shadow and Bevel & emboss with the settings shown in the image.
https://img230.imageshack.us/img230/4458/splashwrathiu5.th.jpg (https://img230.imageshack.us/my.php?image=splashwrathiu5.jpg)

10)
I then wrote the rest of the name as i did in step 9.

11)
After that i added the WotN logo that i had created at an earlier time (the horse). if you want to create a logo/emblem for your mod, see further in this tut of how to make a symbol/faction emblem.

12)
Save your file as both a .tga called _m2_border.tga (overwrites the old one) and as .psd so you can always go back and correct.

13)
Congratulations! you've created your first simple custom splash screen! i added more minor effects to it, if you want further info, feel free to send me a PM.


Custom loading bar


1)
Go to your M2TW\Data\loading_screen folder and copy the file called "loading_bar.tga" to M2TW\wrath of the Norsemen\data\loading screen

2)
Open that loading_bar.tga file in photoshop

3)
This is what you will see:
https://img69.imageshack.us/img69/8883/loadingbaseev3.th.jpg (https://img69.imageshack.us/my.php?image=loadingbaseev3.jpg)
The loading bar that on the buttom side of the red line is the base loading bar, and is the one that's showing when nothing is loaded yet. The loading bar on the top of the red line is the bare that will gradually become visible as the game loads.
NOTE that the loading bar we're going to create must stay within the confines of the two blue bars, or else!

4)
To add some barbarian-isme to the mod, i chose to use a sword as the new loading bar. I found the sword via google and i had to cut of the two metal bars protecting the hand in order to stay within the confines of the original loading bar.
https://img175.imageshack.us/img175/9107/loadbartut1qa0.th.jpg (https://img175.imageshack.us/my.php?image=loadbartut1qa0.jpg)

5)
Then i added blood to the top sword. The blood was added by using the brushtool and then painting in the blood using a strong red color on a new layer. This bloodlayer was then set to "Multiply" blendingmode
https://img81.imageshack.us/img81/7707/loadbartut2xf9.th.jpg (https://img81.imageshack.us/my.php?image=loadbartut2xf9.jpg)

6)
Now that the loadingbar is done, save it as loading_bar.tga. (remember to keep the .psd file (photoshop file) if you want to come back and redo something)


Main Menu


I'll start this chapter about the main menu with a small cosmetic change: changing the color of the buttons in the main menu
To do this go to: Medieval II Total War\data\menu

copy these files to Medieval II Total War\Wrath of the Norsemen\data\menu:
_m2_single_player_panels.tga
_m2_load_game_panels.tga

Open the above files in photoshop and alter the color on them as you wish.

The color can be altered by using Ctrl+U and then sliding back and forth on the sliders.

Heres what i did. The below image is a Before/after shot of the _m2_load_game_panels.tga file.
on the fleur de lys on the right i just took Saturation in Ctrl+u to -100.
https://img340.imageshack.us/img340/6549/buttoncolortg4.th.jpg (https://img340.imageshack.us/my.php?image=buttoncolortg4.jpg)

When you've given them the colors you like save them (with the same name and as .tga files)


Main menu itself and the campaign menu


First, lets get rid of the medieval2 logo in the main menu and replacing it with our own logo:





The file mtw2.lnt (Medieval II Total War\data\menu\mtw2.lnt) states how the layout is set up.
Copy this from \data\menu to Medieval II Total War\Wrath of the Norsemen\data\menu

You can view the contents of this file through notepad.

Look for this piece of code (it can be hard to find, so use the search function to find it):


<UI piece>Medieval_II
<identifier>UIP_EMPTY_ART</identifier>
<Parameters>
<x>264</x>
<y>2</y>
<width>490</width>
<height>171</height>
<locked>false</locked>
</Parameters>
<object_data></object_data>
<object_id>BI_main_menu</object_id>
</UI piece>
If you delete it, the Medieval logo will go away, but you could also just remove the phrase UIP_EMPTY_ART like this:


<UI piece>Medieval_II
<identifier></identifier> //UIP_EMPTY_ART
<Parameters>
<x>264</x>
<y>2</y>
<width>490</width>
<height>171</height>
<locked>false</locked>
</Parameters>
<object_data></object_data>
<object_id>BI_main_menu</object_id>
</UI piece>
Now you make a background image and make your logo on it. The background image is made very much like the Custom Splash screen, but with one big difference: There must be two big dark "bars" on the top and bottom, like this:
https://img135.imageshack.us/img135/5934/m2borderze3.th.jpg (https://img135.imageshack.us/my.php?image=m2borderze3.jpg)

What you see above is my modified _m2_border.tga file.

1)
Copy the original _m2_border.tga file from the medieval2\data\menu folder to your mods \data\menu folder.

2)
Open the file and begin making it as the Custom Splash Screen

3)
Where the bars on the original file was, put in your own as the top most layers. These bars will be important in the Campaign menu

4)
Write the name of your mod up in the top. Be sure to leave some room for the faction symbols that will be displayed in the campaign menu.
https://img248.imageshack.us/img248/5693/m2bordertutzr3.th.jpg (https://img248.imageshack.us/my.php?image=m2bordertutzr3.jpg)

5)
I wont go into more detail about how to make the custom _m2_border.tga file, but if your having problems please PM me.

If you launch your mod from the .bat file we created earlier and go through the different menus like Load Game and Options you will notice something irritating: The Medieval 2 logo we removed earlier is in vanilla replaced by title banners when you move through the different menus. Eg. in Load Game a big Load game banner will be displayed on the top bar.

These title banners are blocking the view from our mods logo, which we put into the _m2_border.tga file. so what we want to do is remove these title banners. For this we shall again open our modded mtw2.lnt file.

1)
Open the mtw2.lnt file (which we put in Medieval II Total War\Wrath of the Norsemen\data\menu)

2)
Open Search and search for "Title", the third hit you get will probably be a line that says:
<UI piece>new_game_title
the code that lie between this and the next </UI piece> is code that belongs to the position and such of the New game Title banner (it's the banner when your in the single player menu).

3)
The line just beneath this says:
<identifier>UIP_EMPTY_ART</identifier>
Remove or clip this out as show in this image:
https://img138.imageshack.us/img138/5788/lntfilewv5.th.jpg (https://img138.imageshack.us/my.php?image=lntfilewv5.jpg)

4)
When this is done you go onto the next UI_Piece with a Title in it (should be <UI piece>imperial_campaign_title) and do delete UIP_Empty_ART and so on...

Sometimes it's not enough to just delete the UIP_EMPTY_ART but you have to delete the <object_id>empty_art</object_id> as well. I discovered which through trial and error.

This is boring and repetitive work since there are a LOT of title banners, so for your convenience you can download my file:
http://rapidshare.com/files/20482587/mtw2.lnt.html

I would recommend that you play around with your file and try changing the parameters to see what happens. NOTE: dont fool around in the original file though, always have a backup copy (hard earned experience lol)

Now we have a Beautiful main menu that will serve us well.


Faction emblems

As above you'll need Photoshop (any version from 6 and up) to make the gfx, and preferably a Wacom tablet, but a normal Mouse will do just fine too.
when graphics for m2tw you can go two ways with it: stylized or realistic. Stylized is kind of how the vanilla symbols are. we'll be aiming for Realism!
Here follows my symbol for the Kingdom of England:

1)
Open photoshop, and make a new canvas size 500x500 and fill it with black (shift + F5)

2)
Go on google and seach for a photography of a shield, and copy it into your canvas. I found this one:
http://rubens.anu.edu.au/raid4/turkey/istanbul/museums/military/arms_and_armour/shields/DSCN6342.JPG

3)
The image is huge, so we need to resize it. Do this by pressing Ctrl + T and, while holding down shift, minimize the shield until it takes up a good portion of your canvas. So far it looks like this:
https://img444.imageshack.us/img444/1996/afsstart1oi6.jpg

4)
Take the erase tool (E) and delete the background wall from the photo. Make sure you erase with a round, hard edged brush:
https://img65.imageshack.us/img65/5026/afseraseyy8.jpg


5)
You have probably noticed that the top of the shield is missing. This is probably the hardest part of the tutorial, because we have to paint something entirely from scratch. We address this by using the Clone-Stamp tool combined with the Brush tool. First select the clone-stamp tool (S), and make sure it has these settings:
https://img413.imageshack.us/img413/3828/afsclone3bb8.jpg

6)
Make a new layer (Ctrl + Shift + N). Pres and hold down the alt key and the curser changes into a bullseye. Click this bullseye on a part of the neighboring shield rim. You can now copy the part you selected with the bullseye onto the missing shield rim. This is Hard! for a first timer it takes alot of practice and alot of bullseye samples to get it right. If your relatively new to photoshop I suggest you find a different shield than i did. This is how mine looks like after repetitively sampling and painting. i used the brush tool to paint in the base and then the clone-stamp tool to add the photo-realism:
https://img250.imageshack.us/img250/3434/afsfullshield4ah6.jpg

7)
Take your erase tool and erase the middle section of the shield:
https://img117.imageshack.us/img117/2930/afsmiderase5sk1.jpg

8)
Go to mayang (http://www.mayang.com/textures/) and find a good wood texture. One of these are good:
http://www.mayang.com/textures/perl/preview.pl?image=stained_dirty_wooden_planks_5160263.JPG
http://www.mayang.com/textures/perl/preview.pl?image=wooden_boards_6190214.JPG

9)
paste the wood texture into your canvas, and place the layer beneath your shield layer. Use Ctrl+T to rotate and minimize the wood. https://img128.imageshack.us/img128/4396/afswood6al7.jpg

10)
Make sure your wood layer is selected and press Ctrl+M. This bring up the Curves tool. It is THE most power tool to manipulate lighting, colors and a whole punch of other things. Make it something like this: https://img260.imageshack.us/img260/4287/afswoodtone7tf4.jpg

After this you could use the Brush tool to make the wood look better (i did that on my symbols).

11)
So, to sum up what we have so far: A border and a background. and both of them are on separate layers to that we can change their colors independently.


12)
Now we need to find the symbol itself. Im making the English symbols so i go on google and try and find a good symbol:
https://img180.imageshack.us/img180/7679/afslions8qd9.jpg


13)
And now for something completly different: Color editing. select your rim layer and open up curves (ctrl+M) or color balance (Ctrl+B). Color Balance is pretty straight forward, and i recommend it to people not so accustomed to photoshop. But for the best result use curves. First select red and drag the line upwards (putting more red into the color), then select green and pull the line downwards (to remove green from the color):
https://img53.imageshack.us/img53/2620/afscolor9wh6.jpg


14)
Do the same for the wooden background

15)
OPTINAL: take the brushtool and lightly paint some scratches and dirt onto the shield, it will make the shield look better in preview, but it wont be visible in the game.

16)
Congratulations! you've made your first faction symbol!
https://img254.imageshack.us/img254/7171/afsenglandiv2.jpg


For how to add the symbol into the game i recommend alpaca's tutorial:
https://forums.totalwar.org/vb/showthread.php?t=81326

Some of my Symbols put into a menu im making for the Stainless Steel modification:
https://img105.imageshack.us/img105/3733/campaign2sq0.th.jpg (https://img105.imageshack.us/my.php?image=campaign2sq0.jpg)

My faction symbols, which you are free to put into your mod (but kindly leave me a note):
http://www.twcenter.net/forums/showthread.php?t=92839


Ingame Interface

COMING SOON!



Conclusion:

Hope you can use this tutorial!
(Im not a terribly good modder so there might be a better way of handling the text files such as mtw2.lnt. Please post your thoughts.)

Dont be discouraged if your graphics don't look like a Rembrandt the first time, practice makes perfect!

As a final note i would like to say: this WONT make your mod a better mod, but it will make your mod stand out and add a certain amount of uniqueness to it!

Happy modding :)

alpaca
03-12-2007, 01:14
Well this should be useful for anyone doing a bit of 2d editing.
Nice stuff :2thumbsup:

methoz
03-15-2007, 12:11
i want to logo tut...and many more :)

Alletun
03-17-2007, 10:15
They're in production. I expect to release them shortly after the mod "Stainless Steel" has been released. in about 2 weeks. stay tuned ;)

Roberts
03-17-2007, 10:33
beautiful, such a depth in that faction symbol

alpaca
03-17-2007, 14:49
By the way, Alletun: Feel free to incorporate or link to my tutorial about adding a new faction icon (although that's mainly to show people how to use the sd converter...)

Alletun
03-17-2007, 17:22
Cool tut, i will make sure i link to it.

methoz
03-18-2007, 19:18
i dont want faction symbol at interface (at campaign map) ,i need tut,mabye tempalte for "faction selection" at starting new campaign....

Alletun
03-20-2007, 13:20
Hi methoz

could you explain some more what it is you want? then i can write it into the tutorial.

alpaca
03-20-2007, 16:23
Also check this tutorial for reference, it may answer your question: http://www.twcenter.net/forums/showthread.php?t=79274

Ilsamir Lord
03-23-2007, 06:15
Superb stuff. This is really useful for me, as I'm just up to the 2d editing stage :) .

methoz
04-07-2007, 20:42
i think,its dead :(

Alletun
04-10-2007, 12:13
nah im just busy with other stuff atm. Now that stainless steel 3.0 is release, i will soon release my faction shield package that contains all the faction symbols.

Alletun
04-12-2007, 19:56
I dont seem to be able to edit my first post so here's the faction symbol chapter:

Faction Symbols:

As above you'll need Photoshop (any version from 6 and up) to make the gfx, and preferably a Wacom tablet, but a normal Mouse will do just fine too.
when graphics for m2tw you can go two ways with it: stylized or realistic. Stylized is kind of how the vanilla symbols are. we'll be aiming for Realism!
Here follows my symbol for the Kingdom of England:

1)
Open photoshop, and make a new canvas size 500x500 and fill it with black (shift + F5)

2)
Go on google and seach for a photography of a shield, and copy it into your canvas. I found this one:
http://rubens.anu.edu.au/raid4/turkey/istanbul/museums/military/arms_and_armour/shields/DSCN6342.JPG

3)
The image is huge, so we need to resize it. Do this by pressing Ctrl + T and, while holding down shift, minimize the shield until it takes up a good portion of your canvas. So far it looks like this:
https://img444.imageshack.us/img444/1996/afsstart1oi6.jpg

4)
Take the erase tool (E) and delete the background wall from the photo. Make sure you erase with a round, hard edged brush:
https://img65.imageshack.us/img65/5026/afseraseyy8.jpg


5)
You have probably noticed that the top of the shield is missing. This is probably the hardest part of the tutorial, because we have to paint something entirely from scratch. We address this by using the Clone-Stamp tool combined with the Brush tool. First select the clone-stamp tool (S), and make sure it has these settings:
https://img413.imageshack.us/img413/3828/afsclone3bb8.jpg

6)
Make a new layer (Ctrl + Shift + N). Pres and hold down the alt key and the curser changes into a bullseye. Click this bullseye on a part of the neighboring shield rim. You can now copy the part you selected with the bullseye onto the missing shield rim. This is Hard! for a first timer it takes alot of practice and alot of bullseye samples to get it right. If your relatively new to photoshop I suggest you find a different shield than i did. This is how mine looks like after repetitively sampling and painting. i used the brush tool to paint in the base and then the clone-stamp tool to add the photo-realism:
https://img250.imageshack.us/img250/3434/afsfullshield4ah6.jpg

7)
Take your erase tool and erase the middle section of the shield:
https://img117.imageshack.us/img117/2930/afsmiderase5sk1.jpg

8)
Go to mayang (http://www.mayang.com/textures/) and find a good wood texture. One of these are good:
http://www.mayang.com/textures/perl/preview.pl?image=stained_dirty_wooden_planks_5160263.JPG
http://www.mayang.com/textures/perl/preview.pl?image=wooden_boards_6190214.JPG

9)
paste the wood texture into your canvas, and place the layer beneath your shield layer. Use Ctrl+T to rotate and minimize the wood. https://img128.imageshack.us/img128/4396/afswood6al7.jpg

10)
Make sure your wood layer is selected and press Ctrl+M. This bring up the Curves tool. It is THE most power tool to manipulate lighting, colors and a whole punch of other things. Make it something like this: https://img260.imageshack.us/img260/4287/afswoodtone7tf4.jpg

After this you could use the Brush tool to make the wood look better (i did that on my symbols).

11)
So, to sum up what we have so far: A border and a background. and both of them are on separate layers to that we can change their colors independently.


12)
Now we need to find the symbol itself. Im making the English symbols so i go on google and try and find a good symbol:
https://img180.imageshack.us/img180/7679/afslions8qd9.jpg


13)
And now for something completly different: Color editing. select your rim layer and open up curves (ctrl+M) or color balance (Ctrl+B). Color Balance is pretty straight forward, and i recommend it to people not so accustomed to photoshop. But for the best result use curves. First select red and drag the line upwards (putting more red into the color), then select green and pull the line downwards (to remove green from the color):
https://img53.imageshack.us/img53/2620/afscolor9wh6.jpg


14)
Do the same for the wooden background

15)
OPTINAL: take the brushtool and lightly paint some scratches and dirt onto the shield, it will make the shield look better in preview, but it wont be visible in the game.

16)
Congratulations! you've made your first faction symbol!
https://img254.imageshack.us/img254/7171/afsenglandiv2.jpg


For how to add the symbol into the game i recommend alpaca's tutorial:
https://forums.totalwar.org/vb/showthread.php?t=81326

Some of my Symbols put into a menu im making for the Stainless Steel modification:
https://img105.imageshack.us/img105/3733/campaign2sq0.th.jpg (https://img105.imageshack.us/my.php?image=campaign2sq0.jpg)

My faction symbols, which you are free to put into your mod (but kindly leave me a note):
http://www.twcenter.net/forums/showthread.php?t=92839

Herkus
04-12-2007, 20:07
Wow, this is a really good stuff. Thanks a lot Alletun. :2thumbsup:
Though to be honest at first looking at your faction symbols, I hoped that you are making them completely by hand, not using photos.:sweatdrop:
But anyway - great job.

Hepcat
04-13-2007, 03:40
Thanks a lot, really great tutorial.
:2thumbsup:

alpaca
04-13-2007, 21:48
Hey alletun: Junior members can't edit their posts. If you want I can copy it in for you, but if you want to become a normal member you should post a bit more :laugh4:

Nice tutorial by the way.

Alletun
04-14-2007, 15:31
Yes please copy and i will post some more :2thumbsup: also i have a questions: I've released all my faction symbols for download on twcenter, and i would like to do the same here. But where post that thread? any specific subforums for small mods?

Hehe Herkus, most of my symbols are about 40-50% handpainted (the background wood isn't a photo). i went heavy with the photos in the tut to make it easier and faster for newcomers to use.

and thanks for all the nice responses :laugh4:

alpaca
04-14-2007, 23:46
Yep, you can use the "mods in development" forum for that.

Roman_Man#3
05-02-2007, 02:50
For the splash screen, I think you should be modding splash.tga no _m2_borders.tga

Great guide:D

RM3

Alletun
05-03-2007, 09:39
Thanks bringing that to my attention ;) i hadn't noticed that. I will edit it as soon as i can.

Ilsamir Lord
06-11-2007, 03:21
Will the in-game interface tutorial contain info on the campaign banners? That would be right up my alley :)

Beregorn
06-25-2007, 15:23
errrrrm. I did everything you said and you forgot to say (splash) but my game crashes when I use my new custom splash. does it matter if you save it as 16, 24 or 32 pixels? should I uncheck compress?

alpaca
06-29-2007, 16:00
errrrrm. I did everything you said and you forgot to say (splash) but my game crashes when I use my new custom splash. does it matter if you save it as 16, 24 or 32 pixels? should I uncheck compress?
You need to use 24bpp (or 32bpp if you have an image with an alpha layer) and no compression.

Alletun
07-03-2007, 11:52
Will the in-game interface tutorial contain info on the campaign banners? That would be right up my alley :)

i dont know that yet. maybe. but the tutorial is some time off since im now lead modeler/skinner/2d guy in Wrath of the Norsemen