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

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by dacajoca View Post
    Tell me any reason, and I will use libcod on my servers.
    Download bug aka q3dirtrav is fixed.
    DDOS protection for rcon, getstatus, getinfo.
    Fake name protection (in cod thanks to userinfo event in callback)

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

    kubislav23 (31st March 2017)

  10. #6
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Quote Originally Posted by dacajoca View Post
    Tell me any reason, and I will use libcod on my servers.
    What's a problem, don't use it.

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

    Whiskas (31st March 2017)

  12. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Quote Originally Posted by dacajoca View Post
    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.
    Man, that's nearly 10 years of accumulated scripting knowledge. Can you show us any reference to your epic work? If you dare, could you quickly implement something like this?



    Shouldn't be too hard, right? Prove your skillz, walk your talk. I hope you won't miss setVelocity. What you gonna do? Apply MOD_DAMAGE multiple times?

    ATM you are making a show, which basically begs for help duo to lack of understanding. Muh, libcod shit, gimme libcod test server, prove it to me! Well, just install VMWare or buy some cheap VPS to test. My first VPS years ago didn't even cost 3€ per month and I had to lower com_hunkmegs to get CoD2 to work duo too lack of RAM. Wasn't perfect, but good enough :^)
    timescale 0.01

  13. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    guiismiti (1st April 2017),Lonsofore (2nd April 2017)

  14. #8
    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 21:56.

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

    kubislav23 (1st April 2017)

  16. #9
    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

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

    kung foo man (1st April 2017)

  18. #10
    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

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

    kung foo man (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
  •