LogoSplashV3 by [es]Rush
based on LogoSplash by PJMODOS (email@example.com)
This Stuff is for UnrealTourment'99
LogoSplash is a server addon that will show a logo and play an intro sound to every player joining your server. Additionally it can also
replace standard flag textures. One of the best things is it has a CSS-like logo positioning and resizing options. All options are
optional and logo, intro, flag replacement are independant.
Notes on Logo/Sound material
I've put this section in the beginning so that you won't miss it!
1) To make an utx package in UnrealEditor your pcx file has to be 256 colors!! It's not a big deal since you can use any palette,
For example, open your ultra-super-duper quality .jpg logo in GIMP(Free OpenSource image editor), go to Image -> Mode -> Indexed..
and press OK. Now you can save it as pcx and properly import in UnrealEditor
2) If you want your logo to be always high quality regardless to the client world detail settings then do not check "Generate MipMaps"
when importing texture in UnrealEditor.
3) If you have followed my advice in point 2 when your logo must be 256x256 MAX cause it could otherwise cause problems on some renderers.
4) If you want parts of your logo to be transpart in bLogoTranslucent=False mode, "Masked" while importing has to be checked and the
transparent color will be the first color in the image's palette, sometimes it can be tricky to set it.
5) When importing a sound in UnrealEditor, your .wav file MUST BE "22Khz 8-bit Mono", I know it's harsh but if converted properly it
shouldn't be a problem.
6) In Flags.zip you can find original exported flag textures and the plain ones ready for modifying.
Add the following to the end of [Engine.GameEngine] in UnrealTournament.ini:
* You have to also add your logo and intro packages as ServerPackages here
The below lines add to the end of UnrealTournament.ini, it is a sample config, I will explain it in the next section.
CaptionLineOne=MAKE YOUSELVES AT HOME
CaptionLineTwo=FEEL FREE TO CAP
CaptionLineThree=AND GL AND HF AND BLABLABLA
LogoTexture - It has to point to a texture object inside a package like samplelogopackage.logo
LogoDrawDelay - Time from the join after which logo will start appearing
LogoFadeInTime - Duration of a fadein effect
LogoDrawTime - How long the logo should be between fadein and fadeout states
LogoFadeOutTime - Duration of a fadeout effect
CaptionLineXXX - Small text displayed under the logo, it will fadein/out along with it
IntroSound - It has to point to a sound object inside a package like sampleintropackage.logo
IntroSoundDelay - Time from the join after which intro sound will start playing
CustomRedFlag - It has to point to a texture object holding a replacement for a standard flag texture
bLogoTranslucent - If =True then Logo between fadein and fadeout will be translucent instead of opaque
Position - Allows to put a logo in any place on the screen - See 'Position variable syntax' section
Size - Allows to resize a logo - See 'Size variable syntax' section
Position variable syntax
The Position variable takes two arguments, one specifying horizontal position and the other vertical, in the following format:
Each part must be set.
There are three modes for each position axis:
-absolute position from the edges of the screen
-relative position represented by %*screen width/height from the edges of the screen
-centered on the screen
Examples should say more than a hundred words, let's start:
It will place the image so that the left border of the image will be 10 pixels from the left edge of the screen and the distance between
the top edge of the screen and top border of the image will be equal to 30% of the screen height.
See example1.png distributed with LogoSplashV3.zip
Right border of the image will be 30% of the screen width from the right edge of the screen, and the bottom border of the image will be
100 pixels from the bottom edge of the screen.
See example2.png distributed with LogoSplashV3.zip
Simple ? I think so. So once again.
where / means a choice you can make, and XX means the number
And the last but not least, center. It is the easiest one to use. To center the image on the whole screen set:
To center it only vertically set:
To center it only horizontally set:
!!! Remember, DO NOT USE SPACES, and keep the syntax right !!!
Size variable syntax:
So you want to change the size of your logo ? It's simple. You can even keep the logo the same size in every resolution.
If you want to just scale the image, set:
so, to double the size, you just do:
Now, the mose useful part of it. You can set the image size to be relative to the screen size. Example:
It will set the image width to be 30% of the screen width. The image height will keep the ratio.
It will set the image height to be 30% of the screen height. The image width will keep the ratio.
!!! KEEP THE SYNTAX !!!
V2 -> V3:
-Added Position and Size variables with special CSS-like syntax
-Added additional time controls for various logo drawing stages
-Separated Logo from Intro sound
-Added additional time control for IntroSound
-Guys from unrealadmin.org
-PJMODOS of course
-UnrealAdmin.org should be sufficient for now