Author Topic: LogInSystem v1.5  (Read 36112 times)

0 Members and 1 Guest are viewing this topic.

Offline Kentoss

  • Major(1)
  • Posts: 5
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #60 on: May 09, 2010, 11:08:26 pm »
Any possibility on a merge feature for accounts?

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #61 on: May 10, 2010, 07:05:22 am »
I'm afraid, but i stopped the development of this script, but I'm sure there are many other scripters who could help you with adding additional features.

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.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline RafiPZ

  • Soldier
  • **
  • Posts: 121
  • You can't spell awesome without ME!
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #62 on: July 25, 2010, 09:33:44 pm »
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.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #63 on: July 26, 2010, 05:17:25 pm »
File on soldatcentral seems to be incomplete or bugged
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Beowulf Agate

  • Major
  • *
  • Posts: 73
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #64 on: July 27, 2010, 05:22:27 am »
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.

script is working fine on my server

(Don't forget to put: "LogInSystem" in 'scripts' folder ; "loginsystem_data" in soldatserver's root directory with proper chmods)


File on soldatcentral seems to be incomplete or bugged

script code is encrypted

[...] and awesome encryption algorithms :D
« Last Edit: July 27, 2010, 06:03:51 am by Beowulf Agate »

Offline PKS|Shooter

  • Soldier
  • **
  • Posts: 130
  • Dont fuck with us!
    • PKS - La Familia
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #65 on: July 27, 2010, 07:38:20 am »
Quote
- EnEsCe for his amazing script core & scripting manual

lol

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #66 on: July 28, 2010, 03:03:40 pm »
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.

I noticed that EnEsCe's server handle directory paths differently, therefore I attached a modified script version for all EnEsCe clients below.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #67 on: July 31, 2010, 05:58:52 pm »
Not encrypted \o/
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #68 on: August 01, 2010, 05:08:28 am »
Quote
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.
That's what he said. (Even tho it took some time)

Offline spodletela

  • Major(1)
  • Posts: 5
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #69 on: August 03, 2010, 08:37:36 am »
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)

Anyway, is there any chance we finally get unencrypted version ( buzzwords: base64, blowfish, maybe also zlib )

From: August 04, 2010, 04:46:15 am
Ok, got it, ignore the previous post ;D 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.
« Last Edit: August 04, 2010, 11:38:20 pm by spodletela »

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #70 on: August 05, 2010, 04:12:10 pm »
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)

There's no such option in the config file, but you can disable it by modifying the source code (OnJoinGame procedure) as follows ...

Code: (pascal) [Select]
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 am
Ok, got it, ignore the previous post ;D 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.

Quote
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.
That's what he said. (Even tho it took some time)
Soldat Global Account System: #soldat.sgas @ quakenet

Offline spodletela

  • Major(1)
  • Posts: 5
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #71 on: August 07, 2010, 01:06:15 pm »
Quote from: CurryWurst
There's no such option in the config file, but you can disable it by modifying the source code (OnJoinGame procedure) as follows ...

Thank you but from programming perspective i dont need help... Btw, doing it in a way you proposed disables NickProtection and nice notify about /login :D
« Last Edit: August 07, 2010, 02:02:23 pm by spodletela »

Offline Beowulf Agate

  • Major
  • *
  • Posts: 73
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #72 on: September 26, 2010, 08:57:18 am »
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?

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #73 on: September 26, 2010, 09:06:27 am »
Quote
Note: If you intend to create a new backup weekly keep in mind
that weekdays have to be written in the language of the OS
which 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.

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #74 on: September 26, 2010, 01:58:44 pm »
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?

This is primarily due to the sort algorithm used to order the accounts. A binary tree as iDante suggested could fix this issue. I'm afraid, but I'm not going to maintain the script any longer, because a couple of forum members, including me, are working on global account system. If you want to get more information about our project join our quakenet channel #soldat.sgas. Though, I would really appreciate any updates to the script. I hope someone is going to sacrifice his or her time to help you.

Quote
Note: If you intend to create a new backup weekly keep in mind
that weekdays have to be written in the language of the OS
which 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.

Thank you for this very interesting piece of code. It's really worth an update to the script. I would be glad if you can fix it :)

Too bad EnEsCe is going to close his services. This topic should receive more attention, otherwise many scripts will probably get lost. Is there a thread on SF already?
Soldat Global Account System: #soldat.sgas @ quakenet

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #75 on: October 01, 2010, 02:45:03 pm »
How about moving sorting algorithm into onmapchange event? It will fix the problem. Noone has to have life stats... :)
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #76 on: October 01, 2010, 03:48:56 pm »
Make the sorting part Thread Func'd.

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #77 on: October 15, 2010, 01:49:47 am »
How about moving sorting algorithm into onmapchange event? It will fix the problem. Noone has to have life stats... :)

It already processes the ranks in the onmapchange event :P

Make the sorting part Thread Func'd.

This will probably result in access violation, unless the database gets locked during sorting.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline omerstart

  • Major(1)
  • Posts: 7
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #78 on: March 18, 2011, 04:26:39 pm »
Code: [Select]
  _FOLDER_VIPLIST = './loginsystem_data/viplist/';Why does not anything else related to viplist...
and sorry bad engilish :D

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: LogInSystem v1.5 - Now with performance booster!
« Reply #79 on: April 15, 2011, 07:24:39 am »
Code: [Select]
  _FOLDER_VIPLIST = './loginsystem_data/viplist/';Why does not anything else related to viplist...
and sorry bad engilish :D

I actually wanted to implement a system to reserve slots, but I didn't find time to complete it.
Soldat Global Account System: #soldat.sgas @ quakenet