Tutorial:Turning Props Into Plops/10

From SC4D Encyclopaedia
Jump to navigation Jump to search
[quote author=dedgren link=topic=112.msg184006#msg184006 date=1222491715]
[font=Verdana][size=9pt][size=13pt][b]Turning a prop into a plop - A tutorial (Part Ten)[/b][/size]

This is the tenth part of the 3RR Plopperizer™ tutorial.

Previous parts can be found as follows:

  [url=http://sc4devotion.com/forums/index.php?topic=112.msg181757#msg181757][font=Verdana][size=9pt]Part One [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg181906#msg181906][font=Verdana][size=9pt]Part Two [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg181998#msg181998][font=Verdana][size=9pt]Part Three [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg182091#msg182091][font=Verdana][size=9pt]Part Four [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg182272#msg182272][font=Verdana][size=9pt]Part Five [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg182367#msg182367][font=Verdana][size=9pt]Part Six [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg182436#msg182436][font=Verdana][size=9pt]Part Seven [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg182779#msg182779][font=Verdana][size=9pt]Part Eight [[color=green]linkie[/color]][/size][/font][/url]
  [url=http://sc4devotion.com/forums/index.php?topic=112.msg183278#msg183278][font=Verdana][size=9pt]Part Nine [[color=green]linkie[/color]][/size][/font][/url]

It's just about all downhill from here, folks.

Let's check where we're at on our list.

[img]http://img229.imageshack.us/img229/5319/part10list01ut6.png[/img]

Creating and editing the exemplars are about 80 percent of the work.  We'll now move on to

4)  [b]Edit the text of the LTEXT files in the file edit pane[/b].  This step is going, after what you've just been through, to seem too easy.  We're going to edit the properties of the two LTEXT files of our .dat as highlighted here.

[size=7pt][i]Fig. 79[/i][/size]
[img]http://img403.imageshack.us/img403/9861/fig79sd9.png[/img]

So, what the heck is an LTEXT file, anyway?  Well, I wouldn't want you taking things on faith, so let me show you.  LTEXT files are the text that appears in the flyouts when you hover the game cursor over a mayor mode menu icon.  Here's the one for the example file RR crossing sign we've been working off of.

[size=7pt][i]Fig. 80[/i][/size]
[img]http://img524.imageshack.us/img524/9184/fig80mq3.jpg[/img]

As you can see, there's bolded text in the flyout that tells you what the item represented by the icon is, and then there's additional text that gives you further information.  That's pretty much the division of labor between the two LTEXT files, as well.  You'll note that in the topmost of these files, the type and instance numbers that make up the overall TGI number are the same as in the one just beneath it.

[size=7pt][i]Fig. 81[/i][/size]
[img]http://img402.imageshack.us/img402/9093/fig81hu8.png[/img]

The group numbers, however, are different.  The topmost LTEXT file has a group number of "4a5e093c", and the other has a group number of "4a5e095c".  That's all it takes- just one character's difference between the two TGI numbers makes them two entirely different files.

Let's look at what left mouse clicking on the topmost LTEXT file in the file directory pane will bring up.

[size=7pt][i]Fig. 82[/i][/size]
[img]http://img264.imageshack.us/img264/3055/fig82ct0.png[/img]

Well now, that's a completely different looking file edit pane.  Actually, though, it's really pretty much the same- just that LTEXT files only have one property: a line or lines of user-entered text as you see here.

Now, check out where this text shows up.

[size=7pt][i]Fig. 83[/i][/size]
[img]http://img248.imageshack.us/img248/540/fig83hz8.jpg[/img]

That's pretty straightforward, isn't it?  And, you guessed right.  The second LTEXT file property

[size=7pt][i]Fig. 84[/i][/size]
[img]http://img403.imageshack.us/img403/8486/fig84td8.png[/img]

provides the information displayed in the lower half of the flyout.

[size=7pt][i]Fig. 85[/i][/size]
[img]http://img509.imageshack.us/img509/8717/fig85eq7.jpg[/img]

Now, how do we edit these puppies?  Well, it's almost too easy.  Click on the topmost LTEXT file (TGI: "2026960b 4a5e093c de531000") to bring the file edit pane back up.  Highlight the current text by left click-dragging the mouse cursor over it.  Now (1) type, if you're following along, [font=Courier New]3RR TS Phone Pole[/font]

...then press [ctrl] and [enter] at the same time...

then type [font=Courier New]1 Bar orthogonal[/font] and (2) left click on the "Apply" button.

[size=7pt][i]Fig. 86[/i][/size]
[img]http://img524.imageshack.us/img524/492/fig86mg7.png[/img]

Couple 'a questions- Why'd we do the [ctrl] and [enter] bit?  Well, that's the only way to insert a line break into the text in an LTEXT file that I know of.  If you only have one line, well hey... just type that one, and you don't need to worry about the [ctrl] and [enter] keys.

The second question is, "but I'm doing my own ploppable BAT object..." Actually, that's not really a question, but I'll answer it anyway.  Type any little old thing your heart would desire, my friend.  And we'll leave it at that.

[i]...we must be getting close to the end of this tutorial, folks.  I've now lived with it for a week- maybe I can take it as a tax deduction!...[/i]

The second LTEXT file (TGI: "2026960b 4a5e095c de531000") is incredibly easy.  Do the same stuff as for the first one, but replace the word "sign" with "pole" in the second line.  Don't forget to click "apply".

Heh!  I thought this was going to be a ten part tutorial.  Well, I was wrong.  Meet me at [url=http://sc4devotion.com/forums/index.php?topic=112.msg184295#msg184295][font=Verdana][size=9pt]Part 11, here [[color=green]linkie[/color]][/size][/font][/url], and we'll wrap this up.

David

[size=6pt]136682[/size][/size][/font]
[/quote]