Recent posts

#91
Support / Re: [Help] I want to use cshar...
Last post by 2b2ttianxiu - Apr 16, 2025, 11:20 AM
生成开始于 19:15...
1>------ 已启动生成: 项目: helloworld, 配置: Debug x64 ------
1>SQConsts.cpp
1>The contents of <variant> are available only with C++17 or later.
1>SQFuncs.cpp
1>The contents of <variant> are available only with C++17 or later.
1>Y:\c\helloworld\SQFuncs.cpp(24,15): warning C4244: "初始化": 从"SQInteger"转换到"int",可能丢失数据
1>SQMain.cpp
1>The contents of <variant> are available only with C++17 or later.
1>正在生成代码...
1>LINK : warning LNK4075: 忽略"/INCREMENTAL"(由于"/OPT:ICF"规范)
1>SQConsts.obj : warning LNK4075: 忽略"/EDITANDCONTINUE"(由于"/OPT:ICF"规范)
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::debug(char const *)" (?debug@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::debug(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?debug@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::error(char const *)" (?error@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?error@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Logger::format_number(unsigned long,int)" (?format_number@Logger@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KH@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Logger::getFormattedTime(void)" (?getFormattedTime@Logger@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::info(char const *)" (?info@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::info(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?info@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl Logger::parseLogMessage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?parseLogMessage@Logger@@YA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@0@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::rawLogger(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?rawLogger@Logger@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::rawLogger(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (?rawLogger@Logger@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::rawLogger(char const *,char const *)" (?rawLogger@Logger@@YAXPEBD0@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::success(char const *)" (?success@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::success(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?success@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::warning(char const *)" (?warning@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void __cdecl Logger::warning(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?warning@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "void * Logger::hstdout" (?hstdout@Logger@@3PEAXEA) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "bool Logger::DEBUG" (?DEBUG@Logger@@3_NA) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,int> > > Logger::COLORS" (?COLORS@Logger@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::map<int,int,struct std::less<int>,class std::allocator<struct std::pair<int const ,int> > > Logger::COLORS_32" (?COLORS_32@Logger@@3V?$map@HHU?$less@H@std@@V?$allocator@U?$pair@$$CBHH@std@@@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,int> > > Logger::LEVELS" (?LEVELS@Logger@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > Logger::defaultPrefix" (?defaultPrefix@Logger@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > Logger::FORMAT" (?FORMAT@Logger@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQFuncs.obj : error LNK2005: "class std::basic_regex<char,class std::regex_traits<char> > Logger::REGEXP" (?REGEXP@Logger@@3V?$basic_regex@DV?$regex_traits@D@std@@@std@@A) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::debug(char const *)" (?debug@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::debug(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?debug@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::error(char const *)" (?error@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?error@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Logger::format_number(unsigned long,int)" (?format_number@Logger@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KH@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Logger::getFormattedTime(void)" (?getFormattedTime@Logger@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::info(char const *)" (?info@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::info(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?info@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl Logger::parseLogMessage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?parseLogMessage@Logger@@YA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@0@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::rawLogger(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?rawLogger@Logger@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::rawLogger(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (?rawLogger@Logger@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::rawLogger(char const *,char const *)" (?rawLogger@Logger@@YAXPEBD0@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::success(char const *)" (?success@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::success(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?success@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::warning(char const *)" (?warning@Logger@@YAXPEBD@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void __cdecl Logger::warning(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?warning@Logger@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "void * Logger::hstdout" (?hstdout@Logger@@3PEAXEA) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "bool Logger::DEBUG" (?DEBUG@Logger@@3_NA) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,int> > > Logger::COLORS" (?COLORS@Logger@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::map<int,int,struct std::less<int>,class std::allocator<struct std::pair<int const ,int> > > Logger::COLORS_32" (?COLORS_32@Logger@@3V?$map@HHU?$less@H@std@@V?$allocator@U?$pair@$$CBHH@std@@@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,int> > > Logger::LEVELS" (?LEVELS@Logger@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > Logger::defaultPrefix" (?defaultPrefix@Logger@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > Logger::FORMAT" (?FORMAT@Logger@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A) 已经在 SQConsts.obj 中定义
1>SQMain.obj : error LNK2005: "class std::basic_regex<char,class std::regex_traits<char> > Logger::REGEXP" (?REGEXP@Logger@@3V?$basic_regex@DV?$regex_traits@D@std@@@std@@A) 已经在 SQConsts.obj 中定义
1>  正在创建库 Y:\c\helloworld\x64\Debug\helloworld.lib 和对象 Y:\c\helloworld\x64\Debug\helloworld.exp
1>Y:\c\helloworld\x64\Debug\helloworld.dll : fatal error LNK1169: 找到一个或多个多重定义的符号
1>已完成生成项目"helloworld.vcxproj"的操作 - 失败。
========== 生成: 0 成功,1 失败,0 最新,0 已跳过 ==========
========== 生成 于 19:16 完成,耗时 25.540 秒 ==========


:(
#92
Support / Re: [Help] I want to use cshar...
Last post by 2b2ttianxiu - Apr 16, 2025, 09:29 AM
Quote from: MEGAMIND on Apr 16, 2025, 09:05 AM
Quote from: 2b2ttianxiu on Apr 16, 2025, 08:54 AMI want to use csharp language to make dll c squirrel or call with python, but how can i make it(?
or how to fast develop plugin
YOU can simply adapt that by using plugin sdk of vcmp & Download sources from Habi's basic plugin download fiels check whats going on..! use those in chsarp if ur good at it
But... i use those, maybe get LINK2019 or other
#93
Support / Re: [Help] I want to use cshar...
Last post by MEGAMIND - Apr 16, 2025, 09:05 AM
Quote from: 2b2ttianxiu on Apr 16, 2025, 08:54 AMI want to use csharp language to make dll c squirrel or call with python, but how can i make it(?
or how to fast develop plugin
YOU can simply adapt that by using plugin sdk of vcmp & Download sources from Habi's basic plugin download fiels check whats going on..! use those in chsarp if ur good at it
#94
Support / Re: [Help] I want to use cshar...
Last post by 2b2ttianxiu - Apr 16, 2025, 08:55 AM
maybe can use unix or tcp socket to call other language
#95
Support / [Help] I want to use csharp to...
Last post by 2b2ttianxiu - Apr 16, 2025, 08:54 AM
I want to use csharp language to make dll c squirrel or call with python, but how can i make it(?
or how to fast develop plugin
#96
Community Plugins / Re: NPC/Bots implementation in...
Last post by [TDA]Speed - Apr 11, 2025, 08:30 AM
well habi i guess the plugins is bugged on linux 64 bit plugins of npc not loading and i tested this npc on windows of same version of npc the 0.4.7.1 and working for windows everything okey but on windows RFC from server side crashing the npc
for linux dosnt want to load the plugins of npc in npcscripts

the npc script is shooting anyone shoot near him and using your script of npc.fire
this error i got on npc linux 64 when i shoot him for first time he starting shooting normal and no bugs when i go away script will kill timer of shooting when i back again to shoot him he shot 1 time then timing out

Failed loading plugin: rpclib
Failed loading plugin: z-finder
 Loaded 0 plugins.
Connecting to 127.0.0.1: 8205. Connected. Player 'Ammu-Nation_Man' ID 0 connected.
[SCRIPT] ID: Ammu-Nation_Man has joined the server
ID 0. Vice City Gang Wars. Ammu-Nation_Man
Warning: Cannot update weapon slot for weapon 114
Warning: Cannot update weapon slot for weapon 114
Warning: Cannot update weapon slot for weapon 114
Player 'Ammu-Nation_Man' ID 0 disconnected (timeout).
#97
Community Plugins / Re: NPC/Bots implementation in...
Last post by [TDA]Speed - Apr 10, 2025, 11:26 AM
also @habi whenever i use RFC(F from server side to bot script it always crash the server
#98
Community Plugins / Re: NPC/Bots implementation in...
Last post by [TDA]Speed - Apr 09, 2025, 10:27 PM
Quote from: MEGAMIND on Apr 09, 2025, 02:04 PM
Quote from: PLAYER on Apr 09, 2025, 01:55 PMI used the Same Structure You Gave me:-
ConnectNPCEx("Bot", Vector(-1375.21, -664.22, 14.1484), 90.0, 1, 26, 255, "shoot.nut", true, "127.0.0.1", "rpclib actionlib");

But its still showing error
Failed loading plugin: rpclib
Failed loading plugin: actionlib
 Loaded 0 plugins


make sure these are linux plugins not the win architecture, also  make sure the plugins are in right path
npcscripts/plugins

i have the same error too though iam using the correct path
home/container/npcscripts/plugins/rpclib64.so
#99
Community Plugins / Re: NPC/Bots implementation in...
Last post by MEGAMIND - Apr 09, 2025, 02:04 PM
Quote from: PLAYER on Apr 09, 2025, 01:55 PMI used the Same Structure You Gave me:-
ConnectNPCEx("Bot", Vector(-1375.21, -664.22, 14.1484), 90.0, 1, 26, 255, "shoot.nut", true, "127.0.0.1", "rpclib actionlib");

But its still showing error
Failed loading plugin: rpclib
Failed loading plugin: actionlib
 Loaded 0 plugins


make sure these are linux plugins not the win architecture, also  make sure the plugins are in right path
npcscripts/plugins
#100
Community Plugins / Re: NPC/Bots implementation in...
Last post by PLAYER - Apr 09, 2025, 01:55 PM
I used the Same Structure You Gave me:-
ConnectNPCEx("Bot", Vector(-1375.21, -664.22, 14.1484), 90.0, 1, 26, 255, "shoot.nut", true, "127.0.0.1", "rpclib actionlib");

But its still showing error
Failed loading plugin: rpclib
Failed loading plugin: actionlib
 Loaded 0 plugins