0 Members and 2 Guests are viewing this topic.
Hey I know development was stopped on this, but does anybody know if the script still works?I tried to upload the two folders and the server won't start.
File on soldatcentral seems to be incomplete or bugged
[...] and awesome encryption algorithms
- EnEsCe for his amazing script core & scripting manual
I'll upload a decrypted version of the script soon, so you and others can have a look at the source and alter it according to your wishes.
Cute script, exactly what i was searching for but... can the automatic login by IP be disabled somehow? This is highly annoying as i have few players that are logging in from behind a NAT and they can abuse automatic login (as they are using the same ip - their gateway)
procedure OnJoinGame(ID, Team: byte);begin UILanguage[ID]:= 0; Timer[ID]:= -1; Account[ID]:= GetAccountNumber(IDToName(ID)); if (Account[ID] >= 0) then begin if (IDToIP(ID) = GetPiece(Database[Account[ID]], #9, 4)) then begin // OnPlayerLogIn(ID); end else begin DrawText(ID, 'Instant access to your account?' + BR + '"/login <password>"', 900, $F6F90A, 0.12, 20, 375); if (NickProtection > 0) then begin Timer[ID]:= NickProtection; end; end; end else begin DrawText(ID, 'Save your stats today?' + BR + '"/create" to set up a new account', 1200, $F6F90A, 0.12, 20, 375); end;end;
Anyway, is there any chance we finally get unencrypted version ( buzzwords: base64, blowfish, maybe also zlib )From: August 04, 2010, 04:46:15 amOk, got it, ignore the previous post This encryption is not that *awesome*. Actually i bet i decoded that file faster then the author coded its encryption... what a waste of time. And Markus, no i wont give it away, i respect your wish to have it encrypted.
QuoteI'll upload a decrypted version of the script soon, so you and others can have a look at the source and alter it according to your wishes. That's what he said. (Even tho it took some time)
There's no such option in the config file, but you can disable it by modifying the source code (OnJoinGame procedure) as follows ...
Note: If you intend to create a new backup weekly keep in mindthat weekdays have to be written in the language of the OSwhich the server runs on.
function complexdayofweek(year, month, day: integer): integer; var a, y, m: integer; begin a := (14 - month) div 12; y := year + 4800 - a; m := month + 12 * a - 3; result := 1 + (day + (153 * m + 2) div 5 + y * 365 + y div 4 - y div 100 + y div 400 - 32045) mod 7; end;
LogInSystem script with 500+ (also 400+) accounts hangs server for 1-2 sec, just before Top10 list appearance on new map. Its not occurs with 200+ accounts. Anyone else have the same problem? How can I fix this?
QuoteNote: If you intend to create a new backup weekly keep in mindthat weekdays have to be written in the language of the OSwhich the server runs on.You can ignore these compatibility issues if you use this code:Code: [Select]function complexdayofweek(year, month, day: integer): integer; var a, y, m: integer; begin a := (14 - month) div 12; y := year + 4800 - a; m := month + 12 * a - 3; result := 1 + (day + (153 * m + 2) div 5 + y * 365 + y div 4 - y div 100 + y div 400 - 32045) mod 7; end;It returns 1 for Monday, 2 for Tuesday, ..., 7 for Sunday, no matter what language OS uses.Also, you might want to back up your code as it seems SoldatCentral is going down. Or EnEsCe trolls us.
How about moving sorting algorithm into onmapchange event? It will fix the problem. Noone has to have life stats...
Make the sorting part Thread Func'd.
_FOLDER_VIPLIST = './loginsystem_data/viplist/';
Code: [Select] _FOLDER_VIPLIST = './loginsystem_data/viplist/';Why does not anything else related to viplist...and sorry bad engilish