Exp na Minusie :O
Misiaczek ;c
31.01.2010
Wersja MetaModa: 1.19p32
Wersja PTB: 1.8b2
Wersja Diablo Moda: 5.9l(+fix z wersji "ll") oraz własne modyfikacje
Aktualne Logi: Patrz Załącznik
Aktualne Logi diablo.log: Patrz Załącznik
Włączone Moduły(modules.ini): Patrz Niżej
; ------------------------------ ; Fun - provides extra functions ; ------------------------------ fun_amxx_i386.so ; ---------------------------------------------------- ; Engine - provides engine functions core to Half-Life ; ---------------------------------------------------- engine_amxx_i386.so ; ---------------------------------------------------------- ; Fakemeta - provides a massive interface into the HL engine ; ---------------------------------------------------------- fakemeta_amxx_i386.so ; ------------------------------------------- ; Database Access - only enable one of these ; ------------------------------------------- ; MySQL mysql_amxx_i386.so ; SQLite ;sqlite_amxx_i386.so ; --------------------------------------------- ; GeoIP - determines the country of ip adresses ; --------------------------------------------- geoip_amxx_i386.so ; -------------------------------- ; Sockets - network socket support ; -------------------------------- sockets_amxx_i386.so ; -------------------------- ; Regular Expression support ; -------------------------- regex_amxx_i386.so ; -------------------- ; Binary Vault support ; -------------------- ;nvault_amxx_i386.so ; ---------------------------------------------------------- ; Counter-Strike - adds functions specific to Counter-Strike ; ---------------------------------------------------------- cstrike_amxx_i386.so ; ----------------------------------------------------- ; CSX - adds functionality for CS statistics and events ; ----------------------------------------------------- csx_amxx_i386.so ; ----------------------------------------------- ; HamSandWich - additonal module for AMXX 1.8.0 + ; ----------------------------------------------- hamsandwich_amxx_i386.so
Dokładny opis problemu
Niektórym osoba robi się exp na minusie, z tego co się dowiedziałem błąd ten występuje na diablomodach z zwiększonym max lvl ;]
np gracz ma Paladyna lvl 30 i ma -97223% expa
W Załączniku:
diablo.log
L20100131.log
error_20100131.log
Załączone pliki
Użytkownik MisieQ edytował ten post 31.01.2010 19:50
Miczu
31.01.2010
"z tego co się dowiedziałem błąd ten występuje na diablomodach z źle zwiększonym max lvl ;]"
Oblukaj tabele, czy przypadkiem nie ma gdzies bledu typu exP na lvl 10 >exP na lvl 11... kazdy lvl ma zawsze wymagac wiecej expa niz poprzedni.
Misiaczek ;c
31.01.2010
Ja bym to lekko zmienil na:
"z tego co się dowiedziałem błąd ten występuje na diablomodach z źle zwiększonym max lvl ;]"
Oblukaj tabele, czy przypadkiem nie ma gdzies bledu typu exP na lvl 10 >exP na lvl 11... kazdy lvl ma zawsze wymagac wiecej expa niz poprzedni.
o to "moja" tabela
new LevelXP[401] = {0, 50, 125, 215, 323, 452, 606, 790, 1010, 1274, 1590, 1969, 2423, 2967, 3619, 4401, 5339, 6370, 7504, 8694, /* 1-20 */ 9943, 11254, 12604, 13994, 15425, 16898, 18415, 19977, 21585, 23241, 24946, 26702, 28510, 30372, 32289, 34263, 36296, 38389, 40544, 42763, /* 21-40 */ 45048, 47401, 49824, 52319, 54888, 57534, 60259, 63065, 65955, 68931, 71996, 75152, 78402, 81749, 85196, 88746, 92402, 96167, 100044, 104037, /* 41-60 */ 108109, 112303, 116622, 121070, 125651, 130369, 135228, 140232, 145386, 150694, 156161, 161792, 167591, 173563, 179714, 186049, 192574, 199294, 206215, 213343, /* 61-80 */ 220684, 228245, 236032, 244052, 252312, 260819, 269581, 278605, 287899, 297471, 307330, 317484, 327942, 338713, 349807, 361233, 373001, 385122, 397606, 410464, /* 81-100 */ 423707, 437347, 451396, 465866, 480770, 496121, 511932, 528217, 544990, 562266, 580060, 598387, 617263, 636705, 656730, 677355, 698598, 720478, 743014, 766226, /* 101-120 */ 790134, 814759, 840122, 866245, 893151, 920864, 949408, 978808, 1009090, 1040280, 1071781, 1103597, 1135731, 1168186, 1200965, 1234071, 1267508, 1301279, 1335387, 1369836, /* 121-140 */ 1404629, 1439769, 1475260, 1511105, 1547308, 1583873, 1620803, 1658102, 1695773, 1733820, 1772247, 1811058, 1850257, 1889847, 1929832, 1970216, 2011003, 2052197, 2093802, 2135823, /* 141-160 */ 2178264, 2221129, 2264122, 2307243, 2350493, 2393872, 2437381, 2481020, 2524789, 2568689, 2612720, 2656883, 2701178, 2745605, 2790165, 2834858, 2879685, 2924646, 2969741, 3014971, /* 161-180 */ 3060336, 3105837, 3151474, 3197247, 3243157, 3289204, 3335389, 3381712, 3428173, 3474773, 3521512, 3568391, 3615410, 3662570, 3709871, 3757313, 3804897, 3852623, 3900492, 3948504, /* 181-200 */ 3974334, 4000241, 4026225, 4052286, 4078425, 4104642, 4130937, 4157310, 4183762, 4210293, 4236903, 4263592, 4290361, 4317210, 4344139, 4371148, 4398238, 4425409, 4452661, 4479994, /* 201-220 */ 4507408, 4534904, 4562482, 4590142, 4617884, 4645709, 4673617, 4701608, 4729682, 4757840, 4786082, 4814408, 4842818, 4871313, 4899893, 4928558, 4957308, 4986144, 5015066, 5044074, /* 221-240 */ 5073169, 5102351, 5131620, 5160976, 5190420, 5219952, 5249572, 5279280, 5309077, 5338963, 5368938, 5399002, 5429156, 5459400, 5489734, 5520159, 5550675, 5581282, 5611980, 5642770, /* 241-260 */ 5673652, 5704626, 5735692, 5766851, 5798103, 5829448, 5860887, 5892420, 5924047, 5955768, 5987584, 6019495, 6051501, 6083603, 6115801, 6148095, 6180485, 6212972, 6245556, 6278237, /* 261-280 */ 6311016, 6343893, 6376868, 6409941, 6443113, 6476384, 6509754, 6543224, 6576794, 6610464, 6644235, 6678107, 6712080, 6746154, 6780330, 6814608, 6848988, 6883471, 6918057, 6952746, /* 281-300 */ 6987539, 7022366, 7057227, 7092122, 7127051, 7162014, 7197011, 7232042, 7267108, 7302209, 7337345, 7372516, 7407722, 7442963, 7478239, 7513550, 7548896, 7584277, 7619693, 7655144, /* 301-320 */ 7690630, 7726151, 7761707, 7797298, 7832924, 7868585, 7904281, 7940012, 7975778, 8011579, 8047415, 8083286, 8119192, 8155133, 8191109, 8227120, 8263167, 8299250, 8335369, 8371524, /* 321-340 */ 8407715, 8443942, 8480205, 8516504, 8552839, 8589210, 8625617, 8662060, 8698539, 8735054, 8771605, 8808192, 8844815, 8881474, 8918169, 8954900, 8991667, 9028470, 9065309, 9102184, /* 341-360 */ 9139095, 9176042, 9213025, 9250044, 9287100, 9324193, 9361323, 9398490, 9435694, 9472935, 9510213, 9547528, 9584880, 9622269, 9659695, 9697158, 9734658, 9772195, 9809769, 9847380, /* 361-380 */ 9885028, 9922713, 9960435, 9998194, 10035990, 10073823, 10111693, 10149600, 10187544, 10225525, 10263543, 10301599, 10339693, 10377825, 10415995, 10454203, 10492449, 10530733, 10569055, 10607415, 10645813 /* 381-401 */}
Problem występuje na różnych lvl, nie raz gracz co dopiero wbije na serw, wyexpi 2-3 lvl i potem gdy kogos zabije nabija mu expa na - i zdążają się tacy co mają lvl 1 i - 23828%
Miczu
31.01.2010
Jak gracz lvl 1 zabije max lvl to daje mu expa... ale to jest prawdziwe dla oryginalnego moda z max lvl 100.
Gdy ktos zabije kogos co ma wiecej niz 100 lvl od niego (czy cos kolo tego) to zabiera mu expa, no ale to wina osoby co poprawiala kod
Misiaczek ;c
31.01.2010
Trzeba bylo odrazu tak mowic, bo to inny bug
Jak gracz lvl 1 zabije max lvl to daje mu expa... ale to jest prawdziwe dla oryginalnego moda z max lvl 100.
Gdy ktos zabije kogos co ma wiecej niz 100 lvl od niego (czy cos kolo tego) to zabiera mu expa, no ale to wina osoby co poprawiala kod
ta się to jakoś rozwiązać? ;d
Miczu
31.01.2010
Pewnie gdzies na forum walesa sie temat gdzie jest opisane jak poprawnie zwiekszac lvl i uniknac(poprawic) ten problem.
Misiaczek ;c
31.01.2010
Niosę dobra nownie: da sie
Pewnie gdzies na forum walesa sie temat gdzie jest opisane jak poprawnie zwiekszac lvl i uniknac(poprawic) ten problem.
miło by było jakby ktos miał ten link :F do tematu
znalazłem na forum iż trzeba to zmodyfikować:
new more_lvl=player_lvl[victim_id]-player_lvl[killer_id] if(more_lvl>0) <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award += floatround((get_cvar_num("diablo_xpbonus")/7)*(more_lvl*((2.0-more_lvl/40.0)/3.0))) else if(more_lvl<-50)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")*(2/3) else if(more_lvl<-40)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/2 else if(more_lvl<-30)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/3 else if(more_lvl<-20)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/4 else if(more_lvl<-10)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/7
jaka to ustawić na 401 lvl max? ;f
Użytkownik MisieQ edytował ten post 31.01.2010 22:21
lajT?.
31.01.2010
może tak?
new more_lvl=player_lvl[victim_id]-player_lvl[killer_id] if(more_lvl>0) <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award += floatround((get_cvar_num("diablo_xpbonus")/7)*(more_lvl*((2.0-more_lvl/401.0)/3.0))) else if(more_lvl<-50)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")*(2/3) else if(more_lvl<-40)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/2 else if(more_lvl<-30)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/3 else if(more_lvl<-20)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/4 else if(more_lvl<-10)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/7
Misiaczek ;c
01.02.2010
new more_lvl=player_lvl[victim_id]-player_lvl[killer_id] if(more_lvl>0) <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award += floatround((get_cvar_num("diablo_xpbonus")/7)*(more_lvl*((2.0-more_lvl/200.0)/3.0))) else if(more_lvl<-350)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")*(2/3) else if(more_lvl<-275)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/2 else if(more_lvl<-200)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/3 else if(more_lvl<-150)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/4 else if(more_lvl<-100)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/7
ale poczekamy na wypowiedź Miczu ;]
Miczu
01.02.2010
Misiaczek ;c
01.02.2010
Obie wersje sa poprawne, ale w zaleznosci od liczby ustalacie tez jak duzo expa dostaje sie za zabicie kogos
a moża poszerzyć info o tym ?? np tak:
if(more_lvl>0) <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award += floatround((get_cvar_num("diablo_xpbonus")/7)*(more_lvl*((2.0-more_lvl/202.0)/3.0))) else if(more_lvl<-375)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")*(2/3) else if(more_lvl<-350)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/2 else if(more_lvl<-325)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/3 else if(more_lvl<-300)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/4 else if(more_lvl<-250)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/5 else if(more_lvl<-200)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/6 else if(more_lvl<-150)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/7 else if(more_lvl<-100)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/8 else if(more_lvl<-50)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/9 else if(more_lvl<-25)<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_award -= get_cvar_num("diablo_xpbonus")/10
Misiaczek ;c
01.02.2010
Jesli sie kompiluje, to mi nie przeszkadza.
kompiluje ;]
Muczu czy można zmienić to:
(get_cvar_num("diablo_xpbonus")
na np:
(get_cvar_num("diablo_killbonus")
i w plugin_init
dopisać np.?:
register_cvar("diablo_killbonus ","400",0)
czy może gdzieś jeszcze jest to od obliczania expa za dany lvl;/
Użytkownik MisieQ edytował ten post 01.02.2010 14:00