Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] is that official teamspeak sdk or some guys 3rd party lib?

[DiscordArchive] is that official teamspeak sdk or some guys 3rd party lib?

[DiscordArchive] is that official teamspeak sdk or some guys 3rd party lib?

rektbyfaith
Administrator
0
01-07-2023, 05:35 PM
#1
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?
rektbyfaith
01-07-2023, 05:35 PM #1

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?

rektbyfaith
Administrator
0
01-07-2023, 05:36 PM
#2
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:Confusedtring& 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++;
}
```
rektbyfaith
01-07-2023, 05:36 PM #2

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:Confusedtring& 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++;
}
```

rektbyfaith
Administrator
0
01-07-2023, 05:36 PM
#3
Archived author: William Von Kha • Posted: 2023-01-07T17:36:39.570000+00:00
Original source

official sdk via the website
rektbyfaith
01-07-2023, 05:36 PM #3

Archived author: William Von Kha • Posted: 2023-01-07T17:36:39.570000+00:00
Original source

official sdk via the website

rektbyfaith
Administrator
0
01-07-2023, 05:39 PM
#4
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
rektbyfaith
01-07-2023, 05:39 PM #4

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

rektbyfaith
Administrator
0
01-07-2023, 05:39 PM
#5
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)
rektbyfaith
01-07-2023, 05:39 PM #5

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)

rektbyfaith
Administrator
0
01-07-2023, 05:44 PM
#6
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
rektbyfaith
01-07-2023, 05:44 PM #6

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

rektbyfaith
Administrator
0
01-07-2023, 05:48 PM
#7
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 ^^
rektbyfaith
01-07-2023, 05:48 PM #7

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

rektbyfaith
Administrator
0
01-07-2023, 05:53 PM
#8
Archived author: Tea • Posted: 2023-01-07T17:53:40.643000+00:00
Original source

yeah, in cmake
rektbyfaith
01-07-2023, 05:53 PM #8

Archived author: Tea • Posted: 2023-01-07T17:53:40.643000+00:00
Original source

yeah, in cmake

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)