[DiscordArchive] is that official teamspeak sdk or some guys 3rd party lib?
[DiscordArchive] is that official teamspeak sdk or some guys 3rd party lib?
Archived author: Tea • Posted: 2023-01-07T17:35:42.398000+00:00
Original source
is that official teamspeak sdk or some guys 3rd party lib?
tring& name)Archived author: William Von Kha • Posted: 2023-01-07T17:36:22.817000+00:00
Original source
I don't understand anymore, I changed all the core variables (yes, the 300 errors), no more compile errors for that.
But Teamspeak can't find its functions xD
```
Erreur LNK2019 unresolved external symbol ts3client_initClientLib referenced in function "public : unsigned int __cdecl VoiceChatHandler::CreateVoiceChannel(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> const &)" (?CreateVoiceChannel@VoiceChatHandler@@QEAAIAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@std@Z) worldserver C:\Users\tchou\Documents\BuildWow\src\server\worldserver\scripts.lib(VoiceChatHandler.obj) 1
Erreur LNK2019 unresolved external symbol ts3client_startConnection referenced in function "public : void __cdecl VoiceChatHandler::AddPlayerToVoiceChannel(class Player *,unsigned int)" ( ? AddPlayerToVoiceChannel@VoiceChatHandler@@QEAAXPEAVPlayer@@I@Z) worldserver C:\Users\tchou\Documents\BuildWow\src\server\worldserver\scripts.lib(VoiceChatHandler.obj) 1
```
My function :
```c++
uint32 VoiceChatHandler::CreateVoiceChannel(const std:
tring& name)
{
// Connectez-vous au serveur
if (ts3client_initClientLib(0, NULL, LogType_FILE, NULL, NULL) != ERROR_ok)
{
TC_LOG_ERROR("VoiceChannel", "Failed to initialize client library!");
return 1;
}
static uint32 nextChannelId = 1;
VoiceChannel channel;
channel.name = name;
m_voiceChannels[nextChannelId] = channel;
return nextChannelId++;
}
```
Archived author: William Von Kha • Posted: 2023-01-07T17:36:39.570000+00:00
Original source
official sdk via the website
Archived author: Tea • Posted: 2023-01-07T17:39:01.922000+00:00
Original source
just dumping the sdk include files into game or scripts project isnt going to work
Archived author: Tea • Posted: 2023-01-07T17:39:55.646000+00:00
Original source
i see its not a header only library so you have to set up a proper separate dependency for it, similar to mysql or openssl (see our dep folder)
Archived author: Tea • Posted: 2023-01-07T17:44:54.193000+00:00
Original source
ideally you would also wrap entire ts3 api into separate functions in separate source files so you also avoid that whole loglevel conflict
Archived author: William Von Kha • Posted: 2023-01-07T17:48:32.192000+00:00
Original source
if I understand correctly, it is in Cmake that I have to add an entry for the two .lib of teamspeak ? Can you explain me if it's something else please? I'm trying to understand how it all works ^^
Archived author: Tea • Posted: 2023-01-07T17:53:40.643000+00:00
Original source
yeah, in cmake