Page 1 of 1

PLIK.INI

Posted: Sun Oct 21, 2007 11:27 am
by Gothuk
Witam. Znacie jakieś inne komendy w pliku .INI oprócz:

Code: Select all

[Main]
Mod = "nazwa moda"
Mod_Ver = wersja moda
Mod_Music = "muzyka w menu głównym moda (plik .wav)"
:?:

Ja znam jeszcze :D :

Code: Select all

Mod_Ver_Align = 1  // położnie tekstu z wersją, 1 - lewy dolny róg, 2 i inne - prawy dolny róg.
CreditsDark1 = x  
CreditsDark2 = y  // x i y to współrzędne, które określają gdzie napisy w creditsach mają znikć.
CreditsChange1 = x  
CreditsChange2 = y  //  x i y to współrzędne, które określają gdzie napisy w creditsach mają się zmieniać np ."nick" na środku ekranu przemienia się w "imie i nazwisko"  . 

x i y zarówno w dark i change leżą na osi Y, tzn. są to punkty które oznaczaja linie poziome

Sądze że są inne ale ich nie znam, więc jak jakieś znacie to napiszcie w tym temacie.

Posted: Thu Oct 25, 2007 2:31 pm
by stucuk
Looks correct (Not that i can read polish :P) except that there is no X and Y Coords just Y coords.

CreditsChange1 is the end position where the names should be compleatly changed. (Closer to the top of the screen) Default: 340
CreditsChange2 is the lower position where names start to change. (Closer to the bottom of the screen) Default: 360

CreditsDark1 is the start point where text goes compleatly black. Default: 50 (Closer to the bottom of the screen)
CreditsDark2 is the end point of where the text goes compleatly black. (Closer to the top of the screen) Default: 0

The credits controls were added to allow Arabian Nights to have a header bit at the top and the credits fading away just below it.

Note: Im not 100% sure but i think what i wrote is correct (I know i wrote them but it was about a year ago). Also note that 0 is the top of the screen and 600 is the bottom of the screen.

Posted: Thu Oct 25, 2007 4:45 pm
by Serpher
stucuk wrote:(Not that i can read polish :P)
And you should. At least a few words 8)

Posted: Thu Oct 25, 2007 6:29 pm
by Gothuk
Yes I know it :D . But do you know other commands in file '.ini'. If yes, can you write it?
STUCUK wrote:(Not that i can read polish :P )
May be you learn polish :D ?

Posted: Thu Oct 25, 2007 7:12 pm
by stucuk
ModVerS := INIFile.ReadString('Main','Mod_Ver','1');
ModName := INIFile.ReadString('Main','Mod','Unknown Name');
ModVideo := INIFile.ReadString('Main','ModVideo','');
ModMusic := INIFile.ReadString('Main','Mod_Music','');
Mod_Ver_Align := INIFile.ReadInteger('Main','Mod_Ver_Align',0);
CreditsDark1 := INIFile.ReadInteger('Main','CreditsDark1',0);
CreditsDark2 := INIFile.ReadInteger('Main','CreditsDark2',0);
CreditsChange1 := INIFile.ReadInteger('Main','CreditsChange1',0);
CreditsChange2 := INIFile.ReadInteger('Main','CreditsChange2',0);
Only one u don't know about is ModVideo which was never properly implemented (The idea was for mods to be able to replace the starting logos with there own video in AVI format but i never got it to work perfectly)

Posted: Thu Oct 25, 2007 7:17 pm
by Gothuk
thx very much :P .
topic for closed. temat do zamknięcia :D .