Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: libcod dont working

  1. #11
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by kung foo man View Post
    Wrong: std\mysql::mysql_init();
    Correct: mysql_init();

    Don't use the std/ folder from years ago.

    Code:
    ******* script runtime error *******
    type int is not a vector: (file 'std/mysql.gsc', line 77)
     mysql = closer(100);
                    *
    called from:
    (file 'std/mysql.gsc', line 30)
     mysql = mysql_init();
             *
    called from:
    (file 'mod/dispatcher.gsc', line 86)
     std\mysql::make_global_mysql(host, user, pass, db, port);
     *
    called from:
    (file 'mod/gametype.gsc', line 163)
     thread mod\dispatcher::onStartGameType(); // 123123231
            *
    called from:
    (file 'maps/mp/gametypes/basetdm.gsc', line 65)
     mod\gametype::Callback_StartGameType(); // 123123231
     *
    called from:
    (file 'maps/mp/gametypes/_callbacksetup.gsc', line 15)
      [[level.callbackStartGameType]]();
              *
    started from:
    (file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
    CodeCallback_StartGameType()
    *
    ************************************
    ********************
    :@ :@

    and i changed std files from your github

    Code:
    ------- Game Initialization -------
    gamename: Call of Duty 2
    gamedate: May  1 2006
    
    ******* script compile error *******
    unknown function: (file 'std/mysql_debugging.gsc', line 197)
     a = memory_int_get(resultIntA);
         *
    ************************************
    ********************
    ERROR: script compile error
    (see console for details)
    ********************
    ----- Server Shutdown -----
    ==== ShutdownGame ====
    /[kick them all/

  2. #12
    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
    Yea, don't use /std/ at all, it's developed for the linux version of libcod. Nobody here cares alot about libcod for Windows, because 1) it's not used on Server for most people and 2) it's annoying to mess with optimized assembly in IDA Pro.

    https://github.com/kungfooman/libcod...r/gsc.cpp#L244

    Just use a clear fs_game without any crap (/std/ stuff) in it.
    timescale 0.01

  3. #13
    Private feritkkan's Avatar
    Join Date
    Jun 2016
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts
    we installed linux only for libcod i hope we can setup on linux
    /[kick them all/

Posting Permissions

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