Nous sommes le 28 Mar 2024, 23:59


Online     TeamSpeak UT99     UnrealTournament-V3     Download     Utfiles medor     Vote Weborama     Vote Unrealtop200     Vote xtremetop100     free TeamSpeak     Unreal Soundtracks     Google    Mini-Chat Mini-Chat

Poster un nouveau sujet Répondre au sujet  [ 1 message ] 
 Mise à jours Mods medFlag300 
Auteur Message
Administrateur
Avatar de l’utilisateur

Inscription: 01 Oct 2008, 01:14
Messages: 5598
Nouveau message Mise à jours Mods medFlag300
medFlag en version 300 est un mode étonnant qui permet de mettre des flags personnalisés sur une map sans le recompiler.
Nouvelle version plus simple à utiliser


Image


Spoiler: Afficher
Citation:
== medFlag300 ============
== a mutator by ==========
==========================
_ _ _
| | | | ___ | | ___ _ __
| |_| |/ _ \| |/ _ \ '_ \
| _ | __/| | __/ | | |
|_| |_|\___||_|\___|_| |_|

==========================
== Version 300 ===========
== www.birdieman.com/forum
== 2014.06.12 ============


==========================
| About |
==========================

This mutator does two things.

A. CTF Flags: It lets you put your own custom textures onto the CTF flags.

B. Decoration Flags: It lets you put what appears to be a CTF flag into maps, with textures
of your making, into non-CTF maps, without having to recompile the map.


=================================
| Requirements |
=================================

You are going to need an image editor, like photoshop, or paint shop pro, or something.
It doesn't have to be a fancy version. I for example use Paint Shop Pro 5, which is a
very old version. I'm sure there's something out there that's free these days that would
do just as good a job.

If you plan on using the Decoration Flags, you will also need a local install of UnrealTournament
on your computer. This is because you need to use some UT tools to set stuff up before you host
this mutator on your server. AND, it is important that the version of your local UT install is 436,
and not higher. This is because higher versions screw up the UnrealEd. If you don't know how to
navigate with the mouse in UnrealEd, you need to learn. I have provided a link to a tutorial
further down to help you with this.


=================================
| Prep |
=================================

This is where the files go, whether you are putting it on your server, or if you are
testing it locally on your machine (which you are going to do, right? Of course!)

Put these 3 files into your UnrealTournament/System directory:
medFlag300.int
medFlag300.u
medFlag.ini

Put this file into your UnrealTournament/Textures directory:
myFlags.utx

P.S., I will refer to the texture file as myFlag.utx in this readme, but you really should
name it something unique, to make sure nobody else has a texture file with the same name.


====================================
| Making a Flag |
====================================

Open your image editor.
I have provided two flag template files, called JpflagBTEMPLATEBLANK.pcx and
JpflagRTEMPLATEBLANK.pcx. One is red and one is blue.

Open the JpflagBTEMPLATEBLANK.pcx in your editor.
Immediately do a Save As... because you don't wan't to screw up this template.
I will do a Save As.... myBlue1.pcx for reference.

RULE1 - the size of a UT pcx file must be a multiple of 2. The size of our templates
is 256 x 256, so do not change their size. This is the original size of the texture
when I exported it from UT.

RULE2 - The amount of colors must 256 or less.

-- Rule 2 kind of blows because you can't get a real smoking image in there, but we can
-- do not too bad. Just follow these steps.

In your editor, increase the color depth of myBlue1 to 16 million colors.
Ok now you are ready to paste in some picture. Obviously the size of your picture
should be such that it fits into the the blue square bit of myBlue1. This area is
roughly 210 pixels wide and 140 pixels tall.

-- The amount of blue you take up is up to you. It depends on what you want to paste in too.
-- If I have a nice small or medium image, I like leaving about 15 pixels of blue around the
-- edges, because they have those wrinkles, which makes the flag look more real. Or if I have
-- a bigger image, it is more important to me to get as much of the image in as possible, so
-- I go right to the edge of the blue.
-- But there is no point in going BEYOND the blue, because it just won't be shown.

-- Also I don't think the TYPE of image matters, what I mean is you don't have to paste a .pcx
-- into your myBlue1.pcx. I have always pasted in .jpg images with no problem.

Once you have your image ready, paste it in. If you don't like the result, try pressing CTRL + Z,
it might reverse it for you. Anyway, play around until you get it how you want.

When you are happy with how it looks, you now need to DECREASE the amount of colors in myBlue1.pcx
back down to 256.

-- Be prepared to be a LITTLE disappointed :-)

Decreasing colors is a little more involved. It is just a matter of choosing the method that retains
as much of your image as possible. Ok, when I tell my editor I now want to decrease my color depth
back to 256, it is showing me some options. The options I choose are:
- Optimized Octree
- Nearest Color
You may or may not have similar choices. Just trying choosing different ones until you find the choices
that do the LEAST amount of visual change to your image (obviously).

Save your myBlue1.pcx. It is now ready to put into a texture file.


=================================================================
| importing your flag images into a texture file |
=================================================================

Find the myFlags.utx I supplied in the package (or whatever you renamed it as by now!).
Copy that file into your UnrealTournament/Textures directory.
Now open up UnrealEd. (This should be at UnrealTournament/System/UnrealEd.exe).
Once that is started, you need to open the Texture Browser.
Hover over the icons in the toolbar until you find the one with the tooltip that says "Texture Browser".
Click this.

Now in the texture browser window, click File | Open.
Find the myFlags.utx and open it.
Now again in the texture browse window, select File | Import...
Find where you saved myBlue1.pcx, select it and open it.

You are now looking at a dialog where it has these three fields and values:
Package: myFlags
Group: Flag
Name: myBlue1

Leave Package and Group alone. Also leave the checkboxes alone. The one thing we can change is the Name.

-- Note, after I enter a name, UT tends to make it uppercase on me, so now I just enter them as uppercase.
-- (hey, if that's what UT wants, fine).
-- ALSO, not mandatory, but a lot of texture names have eight letters or less, so that is another informal
-- rule I follow.

Chose a name that describes your flag. For this example I'll use "MFMRed" (without the quotes).
Click Ok on the dialog.
There! Now it's in the texture package. Last thing is to save the package. Make sure to use the save button
that is on the Texture Browser window.
Now, when you hit Save, it kind of treats it as a "Save As..." which is weird. So what you do is...
- click the Save button.
- It then opens a file dialog, as if you wanted to save it under a different name, but you don't, so just...
- click the save button on the file dialog
- It then says "myFlags.utx already exists, do you want to replace it?". Click Yes.


Ok, if you only want to use this mutator for the CTF Flags, you can close UnrealEd,
and skip down to the "setting up medFlag.ini" section.


But if you want to use the Decoration Flags, read on (and don't close UnrealEd yet).


==============================================
| determining flag positions |
==============================================

For the Decoration Flags, the next task is to find out WHERE we want the flags to appear in maps.
So pick a map that you want a flag to appear in. For this example, I will use DM-Agony.
From the main menu, select File | Open, navigate to DM-Agony, and open it.

-- !! NOTE !! Never ever press SAVE when you have this map open. Do NOT save any changes to the map!
-- Our actions will be to find locations only, we do NOT need to save these changes to the map!

Ok now we need to open the Actor Class Browser. You can do this by going to the main menu and selecting
View | Actor Class Browser.

Now from the menu on the Actor Class browse, select File | Open Package.
Find the medFlag300.u (which you should have put in your UnrealTournament/System folder) and open it.
Now in the tree, expand the Actor node, then expand the Decoration node, then scroll down a bit until you
find something called medFlagDecoration. Click this once so that it is highlighted.

-- Now you need to navigate in the map to a spot where you want to add a flag. If you do not know how to
-- use the mouse to move around the map in UnrealEd, that is a whole tutorial itself. In the files I have
-- provided is a UnrealEdMouseControl.htm, open this up and learn how to move around the map! P.S. I got
-- this file from here: http://wiki.beyondunreal.com/Legacy:Mou ... se_control
-- so if that link is still up, use that instead.

So now you are at a spot in the map where you want to add a flag. Right-click on the spot. One of the choices
should be "Add medFlagDecoration here". Click on that choice.

-- At this point you see the flag. It always gets added too low, so here is my next automatic step:

Click once on the flag that has been added.
Now right-click on the flag, the first choice should be "medFlagDecoration properties", choose that one.
In the properties window, expand the Movement node, then expand the Location node.
For the Z value, add 60 to the current value, and press Enter.
Examples: If the current value is 16, then the new value should be 76.
If the current value is -240 (yes negative), then the new value should be -180.

-- Now the flag has a good up/down value (actually a perfect value). It might look like it is a little out of the
-- ground but in fact it is not. In fact it cannot be too deep into the ground or the entire thing won't be drawn.

Now you can tweak its position more. If you want to move it left/right, tweak the X value.
If you want to move it forwards/backwards, tweak the Y value.

Oh by the way, the x, y, z, (and pitch, yaw, and roll, coming soon) values may have a lot of decimal points when
you are in the UnrealEd, but you don't need all those decimal points. Rounding them off is close enough.
For example in the UnrealEd the position values might read

x=-267.317017
y=1733.130737
z=-359.809665

but you can just round them off such that they are

x=-267
y=1733
z=-360

And that will be just fine.

Now you may want to change the direction the flag is facing. So still under the Movement node, find the Rotation
node and expand it. We are going to play with the Yaw value. Here are the basic values you can try that will
make it spin 90 degrees at a time.
0
16000
32000
-16000
You can of course enter values in between these numbers, these are just suggestions.

When you are happy with where it is, write down what the values are for X, Y, Z, and Yaw.

(we are done with unrealEd, but you can leave it open if you want. Just DON'T save the map).


=======================================================================
| setting up medFlag.ini | (Needed for CTF Flags only) |
=======================================================================

If you are only doing Decoration Flags, skip this section.

Open up the medFlag.ini that was provided. If you want the CTF Flags replaced with your textures,
you set this value to true:

useCTFFlags=true

Then you just need to specify your custom flags (which you just made of course). Here is
how, using the existing myFlags textures as examples (you would specify your own names):

RedTex=myFlags.Flag.MFMRed
BlueTex=myFlags.Flag.MFM

That's it!

If you are not going to do the Decoration Flags, you can skip down to the "running it on the server" section.
Otherwise read on.


=================================================================================
| setting up medFlag.ini | (needed for Decoration Flags only)
=================================================================================

First you need to turn them on like this:

useDecorationFlags=true

Now find these 2 lines:

mTex[0]=myFlags.Flag.MFMRed
mTex[1]=myFlags.Flag.MFM

This is where you list all the textures you have available. Right now you have 2 available in your texture
package, so we have two listings here. Later if you want to add more textures to the texture package, you
can add up to 256.

Notice that the name of the first texture is MFMRed. If that is not what you named yours, then update this line.

Ok now we are going to enter a line that indicates what map to put a flag in, and WHERE. So now we are going
to use the x, y, z, and yaw you wrote down. As I was doing this readme, I was doing the steps as well, so here
is what my line would look like for that flag we added to DM-Agony. (even though this particular position is dumb).

mMap[0]=DM-Agony,x=-672,y=260,z=-180,yaw=-16000

Just a few notes about this line.
- The map name must always be first.
- Anything else in the line can be in any order.
- The values for x, y, and z are REQUIRED
- yaw is NOT required.
- A value of ZERO is invalid for x, y, and z. (Just use 1 instead).

- You can have up to 256 of these lines.
- you can specify the same map more than once, this allows you to have more than one flag in the same map.


=================================================================================
| assigning a texture to a flag | (needed for Decoration Flags only)
=================================================================================

So now the mutator knows what textures to use, and what maps and where to put the flag. So what textures get put
on what flag? Let's look at one of the settings in the ini:

mRotate=true

Setting this to true is the easy way to do it. This means that whenever the mutator has stuck in a flag at the
position you want, it will then cycle through the available textures and always use the next one. And related
to this is this setting

mRandomRotation=false

If this is true, the mutator will randomly choose one of your textures, instead of cycling through them in order.

Ok, maybe you don't want to rotate the textures. First you need this of course:

mRotate=false

But you are also going to have to indicate what texture needs to go on what flag. Here's how. On the mMap line,
we are going to add an "index" setting, like this for example:

mMap[0]=DM-Agony,x=-672,y=260,z=-180,yaw=-16000,index=0

So at the end we have specified index=0. This means it will use the texture in the mTex list at the zero index.
So in this case that would be the myFlags.Flag.MFMRed texture.

If you have mRotate=false, and you do not specify an index, it will default to zero.


You can combine the use of mRotate and index. Let's say you are ok with most of the textures being rotated. But
for one or two flags, you want them to always use a particular texture. So what you do is:
- have mRotate=true
- for most mMap lines, don't specify an index
- for the few lines where you want to "pin" a texture to a flag all the time, just specify an index.


A final setting to do with rotating the textures. If you are pinning certain textures to certain maps/flag positions,
then it may be that you don't want this texture to be included in the rotation. For example you might have a texture
that has the name of a map, so you sure wouldn't that to be rotated in other maps. So you tell the texture that it is
"pinned". This will exclude it from the rotation. Here are our current 2 texture lines, and in this example we tell
the MFMRed texture to be excluded from the rotation.

mTex[0]=myFlags.Flag.MFMRed,pin=true
mTex[1]=myFlags.Flag.MFM


Finally let's look at the remaining settings.

mHideDecorationFlagIfSkinFailsToLoad=true

Rarely, the mutator fails to load the texture for the flag. This means you are left with the flag, but it has
the normal CTF texture. By setting this to true, the flag will be hidden too if the texture fails to load.
NOTE: When you are first setting up this mutator, maybe set this to false. Then you can at least see if the flag is
appearing. The texture may not be loading because you misspelled something. When you have it running good,
set this to true.

mLogInfo=false
mLogErrors=false

If these are true, they spit out a lot of information to the log. I would set these to true when you are first
setting up, to help you with any issues. Once you are running good, set these to false.

mNextRotateIndex=0

This is more for the mutator's use than your use. This is how it keeps track of what texture it is supposed
to load when you have mRotate=true. But, if you have a lot of textures, and you really want it to start
further down the texture list, feel free to specify the texture index.


================================================
| running it on the server |
================================================

Ready to test? Test locally first!

You already know where to put the files.
Open your UnrealTournament.ini and add these lines to the [Engine.GameEngine] section:

ServerPackages=myFlags
ServerPackages=medFlag300

(The myFlags is the name of the texture file. If you named it differently, make sure to use your name).

If you use the commandline to start the server, this is what you would add to the mutator list:

medFlag300.medFlag


==========================================================
| adding more textures at a later time |
==========================================================

- IMPORTANT -
You probably know this but I'll reiterate. Once you have uploaded a file to your server, then you can't make changes
to it and upload it again. This causes version mismatches. So if you want to add more textures to myFlags.utx, just
make a copy of it so it has a new name, like myFlagsII.utx

Then in the medFlag.ini, you just change the reference path in the mTex lines, so these:

mTex[0]=myFlags.Flag.MFMRed
mTex[1]=myFlags.Flag.MFM

might become these:

mTex[0]=myFlagsII.Flag.MFMRed
mTex[1]=myFlagsII.Flag.MFM
mTex[2]=myFlagsII.Flag.NEWPIC


==========================================================
| just a couple more things you can set |
==========================================================

Here, for example, are ALL the settings you can specify for a flag position:

mMap[0]=DM-Agony,x=-672,y=260,z=-180,pitch=4000,roll=2000,yaw=-16000,index=0,unlit=true

So here are the items I haven't covered yet.
"pitch" and "roll": these are very similar to yaw. You will see them in the UnrealEd right above "Yaw".
You can play with these numbers to make the flag tilt.
"unlit": By default the flag will use the lighting that is in the area where you put it.
But in the cases where it is too dark and you can't see it too well, then just
add unlit=true, and then the flag will be bright.



=======================
| fin |
=======================





Téléchargement

http://unrealtournament.99.free.fr/utfi ... lag300.rar

_________________
UT99 files
Image
Image
Image
Image
Image
Image
Image


06 Juil 2014, 10:01
Profil Envoyer un e-mail
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 1 message ] 


Qui est en ligne

Utilisateurs enregistrés : Aucun utilisateur enregistré


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Rechercher:
Aller à:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.
Traduction par: phpBB-fr.com