Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Real Goal's and reason for use codlib ?

  1. #1
    Private
    Join Date
    Jan 2014
    Posts
    18
    Thanks
    0
    Thanked 8 Times in 8 Posts

    Real Goal's and reason for use codlib ?

    Hi
    Can you, please explain, for me and other user's what is real goals and benefit's for use libcod?
    I try to find something which I can't find i other "regular" script's, and I can't find any different's. Any different is: for libcod we need mysql, for normal scripts we don't.
    For libcod we need mysql server and client, multilib etc., for normal script's we don't need that.
    In server's with codlib, latency(ping) on same server is higher for 10-20ms. So, tell me reason: Why we use libcod ??

  2. The Following User Says Thank You to dacajoca For This Useful Post:

    kubislav23 (1st April 2017)

  3. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    See the other thread in which you asked the exact same question.

    As to ping: libcod does not increase ping.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. #3
    Private
    Join Date
    Jan 2014
    Posts
    18
    Thanks
    0
    Thanked 8 Times in 8 Posts
    Realy ???
    Try to use clear installation of CoD2 on minimal distribution on Debian, after that try libcod with multilib and mysql, you can see difference's abouth ping.
    I don't have any issues and other problem's with libcod, but my answer is: what is goals to use libcod?? Why we use libcod ???
    I'm moder's and scripter's for cod2 abowe 2008, I try to find differences between classic scripts and libcod, and I don't find that.
    I only find issue with CPU lopad and memory use. Libcod much more use CPU load and memory. What is difference?? Why to use libcod ???
    Tell me any reason, and I will use libcod on my servers.

  5. The Following User Says Thank You to dacajoca For This Useful Post:

    kubislav23 (1st April 2017)

  6. #4
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    PHP Code:
    for(0libcod.functions.sizei++)
    {
        if(
    isUseful(libcod.function[i]))
        {
            
    useLibcod true;
            break;
        }

    set logfile 2

  7. The Following User Says Thank You to guiismiti For This Useful Post:

    kung foo man (1st April 2017)

  8. #5
    Private
    Join Date
    Jan 2014
    Posts
    18
    Thanks
    0
    Thanked 8 Times in 8 Posts
    Realy ??
    Do you try this on same server ??
    Any script don't have goal's about latency (ping), performance and other.
    I have to use few server's from same provider. Or If you wan't, we use same server, and we will try. You install libcod, and some script's, after that I will install (on same server), cod2 and that's script's without libcod, an w ewill see difference's. OK ?
    Last edited by dacajoca; 30th March 2017 at 22:56.

  9. The Following User Says Thank You to dacajoca For This Useful Post:

    kubislav23 (1st April 2017)

  10. #6
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by dacajoca View Post
    Realy ??
    Do you try this on same server ??
    Any script don't have goal's about latency (ping), performance and other.
    I have to use few server's from same provider. Or If you wan't, we use same server, and we will try. You install libcod, and some script's, after that I will install (on same server), cod2 and that's script's without libcod, an w ewill see difference's. OK ?
    No, but i get 13ms ping when pinging through cmd, and 17 ping when on server. That 4ms is cod2 overhead.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  11. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (1st April 2017)

  12. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Lets go through a list of all current functions in libcod then:

    Mysql-related stuff: Useful if you want to access a database from inside your .gsc script

    Exec stuff: Useful if you want external scripts to work from inside your .gsc script

    MANYMAPS: Useful to reduce client download size

    kick2: Improved kick function

    Memory stuff: somewhat useful for developing stuff

    Printf: Print stuff to server console

    getarraykeys: Properly loop through a key-indexed array

    getascii: get ascii value of a character

    toupper: similar to tolower

    gettype: get a variable type

    float: get float value of a string (and avoid the getcvarfloat hack)

    sendgameservercommand: most universally useful command, too many uses to list here

    configstring functions: useful in combination with sendgameservercommand

    sqrt: square root

    weapon functions: useful for tuning weapon stuff dynamically

    getstance: avoid performance penalty from using bullettrace-based getstance functions

    velocity functions: control player's speed

    buttonpressed functions: see name of function

    getip/getping: useful for banning ips etc

    getspectatorclient: actually working .spectatorclient thing (.spectatorclient is write-only)

    clientcommand: hijack ALL commands a player does

    renameclient: see name

    userinfo functions: transfer data from client to server easily

    g_speed and g_gravity functions: set those cvars per-client

    getfps: get actual client fps

    ismantling/isonladder: see name

    Bot functions: make your own botzom mod

    I left out some functions, but you can see them in the source code.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  13. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (1st April 2017)

  14. #8
    Private
    Join Date
    Jan 2014
    Posts
    18
    Thanks
    0
    Thanked 8 Times in 8 Posts
    Ping from CMD is NOT SAME LIKE PING IN GAME. Do you know that ???
    Ok that is list of known script's in cod2 since from 2005, what can used without libcod.
    Send me any reason for use libcod ?
    Last edited by dacajoca; 30th March 2017 at 23:59.

  15. The Following User Says Thank You to dacajoca For This Useful Post:

    kubislav23 (1st April 2017)

  16. #9
    Private
    Join Date
    Jan 2014
    Posts
    18
    Thanks
    0
    Thanked 8 Times in 8 Posts
    All of sript's in this list have in new etreme mod and much more. All of this rcon function's we have in php rcon and much more (like nickban, bot protection etc). https://ashus.ashus.net/viewtopic.php?f=4&t=27. So can you explain, why we install sql server and client end everything of that if we have that without install anything on our gameserver ??

  17. The Following User Says Thank You to dacajoca For This Useful Post:

    kubislav23 (1st April 2017)

  18. #10
    Private
    Join Date
    Jan 2014
    Posts
    18
    Thanks
    0
    Thanked 8 Times in 8 Posts
    And for prevent. New extreme script's save all player's data without mysql.

  19. The Following User Says Thank You to dacajoca For This Useful Post:

    kubislav23 (1st April 2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •