PDA

View Full Version : libcod dont working



feritkkan
29th June 2016, 03:35
hi everybody i tried libcod on win10 but not working



Found CoD2MP_s.exe
Injecting: C:\Program Files (x86)\Activision\Call of Duty 2\libcod_win.dll
Process: 1732
Finished injecting DLL (1) thread #0x238


------- Game Initialization -------
gamename: Call of Duty 2
gamedate: May 1 2006
-----------------------------------

******* 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 = std\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()
*
************************************
********************
ERROR: script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)

********************
----- Server Shutdown -----
==== ShutdownGame ====
i think mitch's injector not working or what is that shit problem help me ty

Mitch
29th June 2016, 09:00
Libcod for Windows has like Linux custom functions.
So closer is no longer used.

See: https://znation.nl/cod4script for most of the supported functions.
Also see the actual list in the source: https://github.com/kungfooman/libcod_win/blob/master/libcod_win/src/gsc.cpp

feritkkan
29th June 2016, 10:44
Libcod for Windows has like Linux custom functions.
So closer is no longer used.

See: https://znation.nl/cod4script for most of the supported functions.
Also see the actual list in the source: https://github.com/kungfooman/libcod_win/blob/master/libcod_win/src/gsc.cpp

mitch can u add me on skype or steam

feritkkan
29th June 2016, 11:25
1121ok I give up i cant install libcod :mad:

Mitch
29th June 2016, 12:01
Open the resource monitor and check if the dll is listed for your cod exe.
https://www.winhelp.us/images/windows/task/task32.jpg

kung foo man
29th June 2016, 12:12
Based on that screenshot libcod is already loaded and nothing should stop you using it's functions.

feritkkan
29th June 2016, 12:29
Open the resource monitor and check if the dll is listed for your cod exe.
https://www.winhelp.us/images/windows/task/task32.jpg
i dont see any dll :/
1122


Based on that screenshot libcod is already loaded and nothing should stop you using it's functions.
ok but when i install libcod mods for test giving error i dont know what's wrong
some one can record video for installation win libcod this will be great really i tried everythink

feritkkan
29th June 2016, 12:40
----- FS_Startup -----
Current language: english
Current search path:
C:\Program Files (x86)\Activision\Call of Duty 2\main\surf_toast.iwd (8 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\mod.iwd (20 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_15.iwd (85 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_14.iwd (4038 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_13.iwd (22624 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_12.iwd (1016 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_11.iwd (1462 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_10.iwd (1936 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_09.iwd (2142 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_08.iwd (2723 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_07.iwd (3384 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_06.iwd (990 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_05.iwd (928 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_04.iwd (698 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_03.iwd (26 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_02.iwd (40 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_01.iwd (16 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_00.iwd (102 files)
C:\Program Files (x86)\Activision\Call of Duty 2/main
C:\Program Files (x86)\Activision\Call of Duty 2/raw
C:\Program Files (x86)\Activision\Call of Duty 2/raw_shared
C:\Program Files (x86)\Activision\Call of Duty 2/devraw
C:\Program Files (x86)\Activision\Call of Duty 2/devraw_shared
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw11.iwd (1 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw10.iwd (414 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw09.iwd (98 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw08.iwd (8 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw07.iwd (1014 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw06.iwd (3110 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw05.iwd (5310 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw04.iwd (6240 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw03.iwd (6580 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw02.iwd (6404 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw01.iwd (5510 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw00.iwd (4764 files)
localized assets iwd file for english

File Handles:
handle 2: console_mp.log
----------------------
245073 files in iwd files
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: May 1 2006

******* script compile error *******
Could not find script 'std/persistence': (file 'maps/mp/gametypes/dispatcher.gsc', line 13)
if (std\persistence::isActive())
*
************************************
********************
ERROR: script compile error
(see console for details)
********************
----- Server Shutdown -----
==== ShutdownGame ====
---------------------------
Hitch warning: 5047 msec frame time
]map surf_toast
WARNING: Could not load GameType description file maps/mp/gametypes/dispatcher.txt for gametype dispatcher
------ Server Initialization ------
Server: surf_toast
----- FS_Startup -----
Current language: english
Current search path:
C:\Program Files (x86)\Activision\Call of Duty 2\main\surf_toast.iwd (8 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\mod.iwd (20 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_15.iwd (85 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_14.iwd (4038 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_13.iwd (22624 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_12.iwd (1016 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_11.iwd (1462 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_10.iwd (1936 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_09.iwd (2142 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_08.iwd (2723 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_07.iwd (3384 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_06.iwd (990 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_05.iwd (928 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_04.iwd (698 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_03.iwd (26 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_02.iwd (40 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_01.iwd (16 files)
C:\Program Files (x86)\Activision\Call of Duty 2\main\iw_00.iwd (102 files)
C:\Program Files (x86)\Activision\Call of Duty 2/main
C:\Program Files (x86)\Activision\Call of Duty 2/raw
C:\Program Files (x86)\Activision\Call of Duty 2/raw_shared
C:\Program Files (x86)\Activision\Call of Duty 2/devraw
C:\Program Files (x86)\Activision\Call of Duty 2/devraw_shared
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw11.iwd (1 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw10.iwd (414 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw09.iwd (98 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw08.iwd (8 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw07.iwd (1014 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw06.iwd (3110 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw05.iwd (5310 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw04.iwd (6240 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw03.iwd (6580 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw02.iwd (6404 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw01.iwd (5510 files)
localized assets iwd file for english
C:\Program Files (x86)\Activision\Call of Duty 2\main\localized_english_iw00.iwd (4764 files)
localized assets iwd file for english

File Handles:
handle 2: console_mp.log
----------------------
326764 files in iwd files
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: May 1 2006
-----------------------------------

******* 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 = std\mysql::mysql_init();
*
called from:
(file 'maps/mp/gametypes/dispatcher.gsc', line 86)
std\mysql::make_global_mysql(host, user, pass, db, port);
*
called from:
(file 'maps/mp/gametypes/zurv.gsc', line 65)
thread maps\mp\gametypes\dispatcher::onStartGameType(); // 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()
*
************************************
********************
ERROR: script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)

********************
----- Server Shutdown -----
==== ShutdownGame ====
---------------------------
Hitch warning: 5327 msec frame time
SAME :D

kung foo man
29th June 2016, 12:45
Wrong: std\mysql::mysql_init();
Correct: mysql_init();

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

maxdamage99
29th June 2016, 13:06
use function, no alias as function
EXAMPLE:


mysql_query(){
return closer(1337);
} //delete
thread dir\scripts\_mysql::mysql_query("SELECT * FROM `table` WHERE `arg`='argvalue'"); //BAD]
/////
mysql_query("/*...*/"); //good,no more

feritkkan
29th June 2016, 13:06
Wrong: std\mysql::mysql_init();
Correct: mysql_init();

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



******* 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


------- 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 ====

kung foo man
29th June 2016, 13:37
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/blob/master/gsc.cpp#L244

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

feritkkan
30th June 2016, 18:10
we installed linux only for libcod :D i hope we can setup on linux