From my old Thread : Crossfire scripting.
This tutorial work whit all the CFs
-CF PHilipine [PH]
-CF BRasil [BR] [Latin America/Brazil]
-CF North America [NA]
-CF ChiNese [CN]
I will tell you how to change the font (the base)
*all the texts will be changed exept if you want to upgrade by scripting.
I will also tell you how to change the text color!
text font.
-go to dafon*****m for better font.
-you can go ([C:\Windows\Fonts] you will have few fonts from windows already added just copy them)
1.change your font name to " Default "
2.copy your font of Z8Games\CrossFire\rez\Fonts
*the Crossfire can be found here for :
windows32bit user : C:\Program Files\Z8Games\CrossFire\rez\Fonts
windows64bit user : C:\Program Files (x86)\Z8Games\CrossFire\rez\Fonts .
3.Make a save folder of your original files of CF and paste your Default of CF in.
4.Copy your own font name and paste it in Z8Games\CrossFire\rez\Fonts
5.Start game!
Text color & script modding.
-know some scripting
1.go to Z8Games\CrossFire\rez\UI\scripts
2.Open a *.txt you want to mod ex:LogIn.txt to coordinate the login box and to change color of the Login text.
3.in some section there's gonna be : "EDIT EditLoginID"
down of it there's gonna be :
Code:
-POSITIONX 121
-POSITIONY 262
-WIDTH 136
-HEIGHT 16
--FONTNAME MSG=846
--FONTSIZE 8
--FONTBOLD FALSE
--FONTITALIC FALSE
--FONTFORMAT DT_LEFT
--FONTFORMAT DT_VCENTER
--OUTLINE FALSE
--NUMBERONLY FALSE
--OUTLINECOLOR 141148156
--FONTCOLOR 255255255
-END
just change : " FONTCOLOR 255255255 " to : " FONTCOLOR 000000000 "
*for a color code panel you can go to Color panel and scroll down to " HTML Color Picker "
*The 000000000 is the black color but if you want to make your own color you have to put different numbers!
Warning:for the news in it do not put ********* as in my exemples...put number of the next note like R=255 V=255 B=255 = 255255255
*to know the code of your color just pick a color and note the R=*** V=*** B=*** these numbers are the " ********* "
of " FONTCOLOR ********* "
4.save and play
BONUS = Fontstyle
Fontstyle.
to make a fontstyle for a particular thing like in LogIn.txt again.
Just add " FONTSTYLE (link) "after this :
Code:
-POSITIONX 121
-POSITIONY 262
-WIDTH 136
-HEIGHT 16
--FONTNAME MSG=846
--FONTSIZE 8
--FONTBOLD FALSE
--FONTITALIC FALSE
--FONTFORMAT DT_LEFT
--FONTFORMAT DT_VCENTER
--OUTLINE FALSE
--NUMBERONLY FALSE
--OUTLINECOLOR 141148156
--FONTCOLOR 255255255
-END
Like
Code:
-POSITIONX 121
-POSITIONY 262
-WIDTH 136
-HEIGHT 16
--FONTNAME MSG=846
--FONTSIZE 8
--FONTSTYLE C:\Windows\Fonts\Default.ttf
--FONTBOLD FALSE
--FONTITALIC FALSE
--FONTFORMAT DT_LEFT
--FONTFORMAT DT_VCENTER
--OUTLINE FALSE
--NUMBERONLY FALSE
--OUTLINECOLOR 141148156
--FONTCOLOR 255255255
-END
*The " Default.ttf " of " C:\Windows\Fonts\Default.ttf " can be all the tittle you want like " Potato.ttf " as "C:\Windows\Fonts\Potato.ttf " or the link can change like " Desktop\Bulderclubfolder\Potato.ttf "
BIG NOTE.
i am not sure on how to add the link so just put your font in the same folder of your script
like if LogIn.txt add your font in his folder that are Z8Games\CrossFire\rez\UI\scripts
So...
Code:
-POSITIONX 121
-POSITIONY 262
-WIDTH 136
-HEIGHT 16
--FONTNAME MSG=846
--FONTSIZE 8
--FONTSTYLE C:\Windows\Fonts
--FONTBOLD FALSE
--FONTITALIC FALSE
--FONTFORMAT DT_LEFT
--FONTFORMAT DT_VCENTER
--OUTLINE FALSE
--NUMBERONLY FALSE
--OUTLINECOLOR 141148156
--FONTCOLOR 255255255
-END
change "--FONTSTYLE C:\Windows\Fonts " to "--FONTSTYLE (fontname) " whitout the "(" or ")"
Like
Code:
-POSITIONX 121
-POSITIONY 262
-WIDTH 136
-HEIGHT 16
--FONTNAME MSG=846
--FONTSIZE 8
--FONTSTYLE Deafault.ttf
--FONTBOLD FALSE
--FONTITALIC FALSE
--FONTFORMAT DT_LEFT
--FONTFORMAT DT_VCENTER
--OUTLINE FALSE
--NUMBERONLY FALSE
--OUTLINECOLOR 141148156
--FONTCOLOR 255255255
-END
EVERYTHING ARE BY ME
PRESS THANKS IF HELPED PLEASE~