Duck and Cover Forum Index

  Duck and Cover  •  FAQ  •  Search  •  Memberlist  •  Usergroups   •  Register  •  Profile  •  Log in to check your private messages  •  Log in

 Support DAC!
 FO:T "tags" to modify text View next topic
View previous topic
Post new topicReply to topic
Author Message
Max-Violence
Wandering Hero
Wandering Hero


Joined: 18 Apr 2002
Posts: 1221
Location: In my own personal vault

PostPosted: Thu Jul 18, 2002 2:31 am Reply with quoteBack to top

Do It Yourself? Tilt head?

Oh... I get it...
View user's profileSend private messageSend e-mailVisit poster's website
Max-Violence
Wandering Hero
Wandering Hero


Joined: 18 Apr 2002
Posts: 1221
Location: In my own personal vault

PostPosted: Mon Sep 23, 2002 12:51 pm Reply with quoteBack to top

Just some "confirmations" -

1) You don't need <C-> all the time. Observe:

<Cw>U<Co>N<Cm>D<Cy>E<Cc>R<Cr>C<Cg>O<Cy>V<Cb>E<Cw>R<C->

Works fine, every letter is in a different color.

2) The <Jj> tag seems to screw the above example up. When I tried it, only the "VER" part showed up.

3) <Ck> is black, <Cb> is a dark blue, and <Cc> is a lighter blue (i.e. cyan)

Now to stop playing around with purdy colors and script some triggers... icon_mrhappy

Edit: Oh, and <Jj> isn't "restore original justification" - it's justified (i.e. the text is spread out on each line to fit the paragragh). I'm guessing left justification is the default.
View user's profileSend private messageSend e-mailVisit poster's website
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Mon Sep 23, 2002 2:15 pm Reply with quoteBack to top

Cool, Jj = paragraph basically. Neat.

You're correct about C-, it resotres the colour originally set by the output line (sometimes text colour changes depending on what "talks" - so you should always and only use C- when restoring to the original colour.

I'll edit the original post since it's more or less a reference...
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
OnTheBounce
TANSTAAFL
TANSTAAFL


Joined: 18 Apr 2002
Posts: 2257
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland

PostPosted: Mon Sep 23, 2002 9:08 pm Reply with quoteBack to top

Max-Violence wrote:
Wonder why MF never used any of this "old news" stuff... probably lack of time.


Yesterday morning I was playing through the tutorials and reading through their triggers and found that they did use a lot of these text tags in there. Some of it was use of bold text to emphasize things, while most of it was using white text when referring to things, for instance button names.

OTB
View user's profileSend private messageVisit poster's website
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Tue Sep 24, 2002 12:37 am Reply with quoteBack to top

Yeah I know they used a bit... I made a search on "<.*>" to find all instances and there are a bit, but not that many. It's mostly C? stuff and some J stuff, everything else isn't really used...
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
Max-Violence
Wandering Hero
Wandering Hero


Joined: 18 Apr 2002
Posts: 1221
Location: In my own personal vault

PostPosted: Tue Sep 24, 2002 1:15 am Reply with quoteBack to top

Oh, and <Cg> is green, not gray. Wonder if there is a gray? Maybe <Ca> or <Ce> (depending on how the devs spell "gray" or "grey" icon_mrhappy)
View user's profileSend private messageSend e-mailVisit poster's website
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Tue Sep 24, 2002 1:20 am Reply with quoteBack to top

I've listed all the codes there were. There are no other which could have been forgotten...
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
Flamescreen
Vault Hero
Vault Hero


Joined: 18 Apr 2002
Posts: 1017
Location: Stone of Light Land

PostPosted: Wed Sep 25, 2002 12:25 am Reply with quoteBack to top

Thank you people for this. I was thinking of including special sprites and entities for some stuff I wanted displayed on some campaign, but I think you saved me much work. I would include you to the tribute section but you're already there...
View user's profileSend private messageSend e-mailVisit poster's website
Max-Violence
Wandering Hero
Wandering Hero


Joined: 18 Apr 2002
Posts: 1221
Location: In my own personal vault

PostPosted: Wed Oct 02, 2002 4:42 am Reply with quoteBack to top

One more thing: The case of the various letters DOES matter, i.e. <Cw>Text<c-> won't work, and niether will <cW>Text<C->

My left shift key has gotten one hell of a workout icon_mrhappy

Not sure about the justification <Jx> tags, but I would think it would be the same deal.
View user's profileSend private messageSend e-mailVisit poster's website
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Wed Oct 02, 2002 8:38 am Reply with quoteBack to top

all codes are case sensitive, and a <C?> tag never needs to have a <C-> tag following it. It's not like HTML. You only need one to return to the original colour (before you applied any tags)... So that if you don't know the colour which the text'll be displayed in you can still revert to it with <C->
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
Ouragan
SDF!
SDF!


Joined: 17 May 2002
Posts: 5
Location: Near Paris (France)

PostPosted: Wed Oct 02, 2002 5:35 pm Reply with quoteBack to top

Has anyone tested the img code ??
Is it wrong ??
What happens with it ?
View user's profileSend private messageSend e-mailVisit poster's websiteICQ Number
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Wed Oct 02, 2002 7:44 pm Reply with quoteBack to top

What's wrong with it?
works just fine... Well at least wiithin the chat with a little hack. I'm guessing you might not be able to use it with the mission layout and result and when in the dialog window, but it should work in the hover text. I've not really tested it in game...
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
Jimmyjay86
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 18 Apr 2002
Posts: 2102
Location: Wisconsin

PostPosted: Wed Oct 02, 2002 9:06 pm Reply with quoteBack to top

Ouragan wrote:
Has anyone tested the img code ??
Is it wrong ??
What happens with it ?


I tested it when Red first mentioned it. It works good in the briefing window and in text windows. There seems to be a limit to the image size but I can't recall what it was. I didn't try it in floating text but it should work there too.
View user's profileSend private messageSend e-mailVisit poster's website
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Wed Oct 02, 2002 9:14 pm Reply with quoteBack to top

Didn't I mention the size issue in my first post too? Anyhow, glad to see it works in other places, and I'm quite sure that it works in (normal, as opposed to my hack - note that I don't discuss the hack is I'm rather certain clan FO:T llamas will jump all over the trick) floating text.

A neat thing you could do is put the face of the person talking preceeding the floating text... Albeit the faces are a bit big so if working on a mod I suggest making it smaller... I'd also probably add some transparancy so it blends in and doesn't hied the background while at it.
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
OnTheBounce
TANSTAAFL
TANSTAAFL


Joined: 18 Apr 2002
Posts: 2257
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland

PostPosted: Wed Oct 02, 2002 9:25 pm Reply with quoteBack to top

Red wrote:
A neat thing you could do is put the face of the person talking preceeding the floating text... Albeit the faces are a bit big so if working on a mod I suggest making it smaller... I'd also probably add some transparancy so it blends in and doesn't hied the background while at it.


That could indeed be interesting. I was thinking about using it for things in the mission briefing like, "You need to kill the chap who's been shagging the general's niece. We don't know his name, but here's what he looks like:" [image of person]. That would encourage people to have to talk to people rather than just mousing over them looking for a name. You could also do this w/items, too...

OTB
View user's profileSend private messageVisit poster's website
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Wed Oct 02, 2002 9:31 pm Reply with quoteBack to top

Yeah, you could potentially have a generic map for example and have various renders of it in the description (depending which entity you use... they all point to the same sprite, but their all seperate items with different descriptions - thus different ZARs). That'd be kinda neat. And remember that ZARs support transparancy (so you could make the map kinda folded a bit and/or ripped).

Then again we'll have to make some reasearch as to the maximum size we can display with the tag...

In conversations you could also use it as placeholders (You're talking to some guy on the field and he shows you a picture which you see...) Or say you have a special mission to fetch an item you'll see the item (too bad you can't make the img tag render sprites/tiles icon_razz)... etc etc.
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
Jimmyjay86
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 18 Apr 2002
Posts: 2102
Location: Wisconsin

PostPosted: Wed Oct 02, 2002 9:46 pm Reply with quoteBack to top

Red wrote:
Or say you have a special mission to fetch an item you'll see the item (too bad you can't make the img tag render sprites/tiles icon_razz)... etc etc.


That's where your viewer comes in so we can save tga's of the sprites. Can you make the viewer save zars of the sprites?
View user's profileSend private messageSend e-mailVisit poster's website
Red
Hero of the Glowing Lands
Hero of the Glowing Lands


Joined: 15 May 2002
Posts: 2085
Location: Nowhere (important anyway)

PostPosted: Wed Oct 02, 2002 10:26 pm Reply with quoteBack to top

I've been asked that a while back, and am more or less wroking on it.

It works fine for single layered sprites (ie items, containers, lights and switches) though.

In fact you can skip the whole TGA step if you need a FOT original image: send it to the ZAR clipboard, open a ZAR and export it into the ZAR. It's a bit weird you can do that, but you can smile. Then Save As... your new image. Neat huh? How about I provide a "New ZAR" menu item so you don't need to open a ZAR? I could have a new version ready in a little while.
View user's profileSend private messageSend e-mailAIM AddressYahoo MessengerMSN MessengerICQ Number
requiem_for_a_starfury
Hero of the Wastes
Hero of the Wastes


Joined: 29 Oct 2002
Posts: 1820

PostPosted: Sun Oct 24, 2004 4:18 pm Reply with quoteBack to top

Apologies in advance for post digging, but I can't get the img tag working.

JJ or anyone who's got this working (and still has it on their HD) could you copy and paste the relevant section from your speech file please so I can see exactly what I'm doing wrong or not.


Cheers
Edit Finally got this working, but only if I put my zar in the core or mypath directory.

So for me <img:gui\rank\initiate.zar> didn't work but
<img:initiate.zar> does if I copy the zar to my main folder.

My mod is now back on track. smile

BTW you can also add zars to people's display names. I don't know if that slows things down or not in sp.

Also the game tends to zoom the images so I'd reduce your zars to at least 50% of the size you want them to appear.

Edit2 Yes me again.

Just in case anyone's interested you can use a path to point to your image but the engine uses forward slashes in it's text files.

I.e. <img:gui\rank\initiate.zar> = no good icon_sad

<img:gui/rank/initiate.zar> = good smile

Also you don't have to make zars, you can also use pngs, tgas, jpegs and BMPs as well as zars but not gifs. You can have fairly big BMPs (at least in the briefing window) though they do tend to overlap everything else when you scroll.
View user's profileSend private messageSend e-mail
Display posts from previous:      
Post new topicReply to topic


Jump to:  



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group