SC4 Devotion Forum Archives

SimCity 4 General Discussion and Tutorials => Tips, Tricks and Tutorials => Tutorials on Custom Content Creation => Topic started by: Travis on June 11, 2008, 12:55:41 PM

Title: Travis' simplified custom icon tutorial
Post by: Travis on June 11, 2008, 12:55:41 PM
Custom Icons- The Easy Way

I've decided to write a new tutorial on creating custom icons, in a simplified manner better suited to beginners. ;)

Needed are...
Infranview (http://www.irfanview.com/)
The Gimp (http://www.gimp.org/)
...and...
LEProp (http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=657)

Let's get started. :)

First, we'll need a 44x44 image to work off of.
I've got a picture here, and I'll crop out a section to form the basis for our custom icon.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F4964%2F75104050bm8.jpg&hash=550808d43cd925703dceac23b65827ca684ee887)

Now, we shouldn't just select a tiny 44x pixel area, it would be too small to tell what it is. Instead, we'll select the whole part we want visible in the icon:
*Note: you should try to crop a portion that is or is close to square as possible.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F1982%2F43311044jk4.jpg&hash=15c3acf06b82d72056e3753c421cb12d3b1538e6)

We crop the image, and as a result, we have a 101x101 pixel image. But it still must be re-sized, so hit CTRL-R to bring up the "re-size image" window.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F3275%2F15057837qs8.jpg&hash=bc0f145bb6056e7cacb01382f46fd97a81bcc696)

Now, in that highlighted box, we'll type 44. This should also change the height to 44p automatically as well.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F9043%2F39752349pk6.jpg&hash=918d71d5751ece990b95879971036b3eb53a4d88)

That's it for Step 1. Now time to save. I prefer to make a separate folder in the SC4 directory for my custom icons:
*Note: remember to save as a PNG.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F3474%2F69097902lv5.jpg&hash=11370efce1a562c5061f6f8f43315ac16e10ccb6)

Now we need to open the GIMP:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F5979%2F18144018ez4.jpg&hash=1b01d7c680a5261b62623f74d1b03e3e9e03792a)

Now go find and open your 44x44 base:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F7972%2F83645200nm8.jpg&hash=0834989996c6c0c68c0a03f984316c8a947bef85)

Awful small, isn't it? For this kind of work, we should zoom in:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F5825%2F26630481fo1.jpg&hash=def8de64f6b786d952adedc906cce5982677ef56)

Next, we need to increase the size of the canvas. You'll see why in a minute:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F6733%2F46955568dh2.jpg&hash=f2a2d314d121b7a19c57aa24cca0563a02ccf7d2)

You need to increase the width to 176p, like seen here:
*Note: make sure the aspect ratio button (immediately to the right of the size boxes) is unchecked.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F92%2F10wq3.jpg&hash=15261d2eca9fe82648b3eff5e391ac3aaa4fa5d2)

Hit okay, and we'll have this:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F8376%2F11zl4.jpg&hash=3ade55a55024662cfba189069eeee8a795893417)

We need to fill the rest of that image with four copies of the original. Right-click, and do the following:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F8339%2F12hv1.jpg&hash=ccc87ac5251b515fd97360483f0c8065eb0ea71d)

Now, it won't have appeared to have changed anything, But hold down your right arrow key, and you'll see the duplicate emerge. This is critical that you align the duplicate perfectly with the original, or else the icon won't look right in-game.
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F7931%2F13io5.jpg&hash=ca91a577be10c7935ef5dc40625382dfff477122)

Repeat until the image is filled:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F1878%2F14as5.jpg&hash=944fe912c44281b6776074d205211530f6288777)

Next, toggle the mask on, by hitting the "m" key, and then click on the original copy. Toggle the mask off, and you now have the original image selected:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F4935%2F15le9.jpg&hash=a051493173b220eb66a9f74a42c3574d7ffd3e2d)

Now, you right-click, and desaturate the original:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F2341%2F16td9.jpg&hash=5cc00188c929ee32636e1a49de7b494e67988d8a)

The whole image should now look like this:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F5931%2F17or0.jpg&hash=6e39f2b24e69b98a01846db8ddb5632d1e6f76f7)

This is the end of Step Two. Next, we head in to- believe it or not- MS Paint. :P

Locate and load your image:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F5391%2F18fd8.jpg&hash=3e890cc8f8b96de7110808ba4ccf41953239e912)

Once again, we need to zoom in here:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F9891%2F19wc0.jpg&hash=7448bf1230ff4364b8bf91518b5e0ff8657b92bb)

Now, select the line tool, thinnest, and a color of your choice. I'll choose black. Make sure it's just inside the second copy. This is critical. Draw it up one side:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F5205%2F20cg1.jpg&hash=f728ea9f8d774deabe569f2285c93d5cbecf867e)

Do this on all four sides:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F8913%2F21fg6.jpg&hash=991a73518b5f3a2d280ba605678918db1b73fd73)

Now, select second-skinniest, and a color of your choice. I'll use orange. Do the same as the first one, to the 3rd copy:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F6554%2F22nn6.jpg&hash=6d55c097fc28345b291007ebd369c8e4a0968a91)

Same on all sides:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F5417%2F23ct7.jpg&hash=73b6f7e3049929064f10cd27f35d8879dd40ca1c)

And then do the same to the final copy. That's it for this one, save and exit. Just one more step...
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F7069%2F24sg2.jpg&hash=1dd5d25abd023e52a14f58cf8cc5e89723566c93)

That completes Step Three. One more to go! :)
It's time to mod it in.

Start up LEProp, which is a handy, but oft-overlooked modding tool:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F9277%2F25gj4.jpg&hash=fb39e8088de25fa86e604496a6797f3154f41001)

Locate the .dat or lot file of the lot you're making the icon for:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F384%2F26bh6.jpg&hash=c634962ebee2735feea32d0ed16f03dcf735d075)

Hit the "import icon" button:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F2707%2F27ix7.jpg&hash=ec93e3e080533acde2f12e4f5988a00c0f536be5)

Find and select your icon:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F2726%2F28pq7.jpg&hash=8ecd528f2d0f3637f366b715c919b309dccaf2b4)

...And there it is. Hit apply, then save DAT, and you're done. :thumbsup:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg264.imageshack.us%2Fimg264%2F3938%2F29na4.jpg&hash=de216d50d07dc58b33ad4fd477c7cf5b6207f884)

Now go test your custom icon in-game!

If you have any questions about this tutorial, please PM me. :)