Source Code Ragnarok Origin[Full] Source 

1712908932585.png

gameserver is test ok. the config file is old.
 
[ 66%] Building CXX object authserver/CMakeFiles/authserver.dir/__/share/util/XCommon.cpp.o/home/ro/roserver/share/util/XCommon.cpp:9:19: fatal error: codecvt: No such file or directory #include <codecvt> ^compilation terminated.

how to fix?
 
The config is old version. anbody have gitlib lib. Please share it. fix config too difficult
 
no.
I don't know how to convert BYTES from gsconf
I understand that to convert a byte array to GSConf format you need to process each byte according to the GSConf format. If characters are available as single bytes, we can use their ASCII encoding.

Below is C++ code that converts a byte array to GSConf format using ASCII encoding:
#include <iostream>
#include <iomanip>
#include <sstream>

// Function to convert a bytes array to GSConf format
std::string bytesToGSConf(const unsigned char* bytes, size_t length) {
std::stringstream gsconf;
gsconf << std::hex << std::setfill('0'); // Hexadecimal format, fill with leading zeros

for (size_t i = 0; i < length; ++i) {
gsconf << "\\x" << std::setw(2) << static_cast<int>(bytes);
}

return gsconf.str();
}

int main() {
// Example bytes array
unsigned char bytes[] = {0x48, 0x65, 0x6c, 0x6c, 0x6f}; // Contains "Hello" characters
size_t length = sizeof(bytes) / sizeof(bytes[0]);

// Convert bytes array to GSConf format
std::string gsconf = bytesToGSConf(bytes, length);

// Print the GSConf formatted data
std::cout << gsconf << std::endl;

return 0;
}
 
Back