Jump to content

msmajda9

Member
  • Posts

    18
  • Joined

  • Last visited

  • Feedback

    0%

About msmajda9

Informations

  • Gender
    Male

Recent Profile Visitors

1545 profile views

msmajda9's Achievements

Enthusiast

Enthusiast (6/16)

  • Collaborator Rare
  • Dedicated
  • Reacting Well
  • First Post
  • Conversation Starter

Recent Badges

35

Reputation

  1. [CLIENT SIDE] don't forget add in packet.h: #ifdef ENABLE_ENTITY_PRELOADING #include <stdint.h> #endif if you have problem with this: typedef struct packet_preload_entities { uint8_t header; uint16_t size; uint16_t count; } TPacketGCPreloadEntities; #endif [SERVER SIDE] And if you use old server src you need upgrade gcc to 4.8 or bigger than 4.8 after it you need upgrade source code for C++11 compatible. Upgrade: [Hidden Content] select version and download with browser. upload to root folder with SFTP. putty commands: tar -xzvf gcc-4.8.0.tar.gz cd gcc-4.8.0 ./configure --prefix=/usr/local/gcc48 --enable-languages=c,c++ (how many cores you have in Server src compiler machine? if you have 4 cpu core(mag) modify -j3 to -j5 i have 2 core in my virtual machine so i set -j3) gmake -j3 gmake install When you finish total: setenv PATH /usr/local/gcc48/bin:$PATH ln -sf /usr/local/gcc48/bin/gcc /usr/local/bin/gcc ln -sf /usr/local/gcc48/bin/g++ /usr/local/bin/g++ Check your gcc version: gcc --version Open makefile and add on new line after "CFLAGS =" this: CFLAGS += -std=c++11 -fpermissive Now your compiler using C++11 so you need rewrite your source code.
  2. release your serverfile if you can't use sources files for changes..
  3. Luigina thank you for share. You're right, it really works.
  4. i expanded client optimization with this: playersettingsmodule.py-> def __LoadGameNPC(): if app.ENABLE_CPP_PSM: cpsm.LoadGameNPC() else: #OLD CODE! pass playersettingsmodule.cpp-> search: #include "PythonNetworkStream.h" add: //Load npclist.txt #include <fstream> #include <sstream> #include <string> #include <vector> #include <iostream> #include <cctype> // std::isspace #include <cstring> // search: const bool CPlayerSettingsModule::LoadGameSkill() { [...] } under add this: std::string trim(const std::string& s) { size_t start = 0; while (start < s.size() && std::isspace(static_cast<unsigned char>(s[start]))) { start++; } size_t end = s.size(); while (end > start && std::isspace(static_cast<unsigned char>(s[end - 1]))) { end--; } return s.substr(start, end - start); } const bool CPlayerSettingsModule::LoadGameNPC() { std::ifstream file("npclist.txt"); if (!file.is_open()) { LogBox("LoadLocaleError(npclist.txt)"); return false; } std::vector<std::string> lines; std::string line; while (std::getline(file, line)) { lines.push_back(line); } file.close(); int lineNumber = 0; // opcionálisan, ha szeretnéd nyomon követni a sorokat for (const std::string& line : lines) { lineNumber++; std::vector<std::string> tokens; std::stringstream ss(line); std::string token; while (std::getline(ss, token, '\t')) { tokens.push_back(token); } if (tokens.empty() || tokens[0].empty()) continue; int vnum = 0; try { vnum = std::stoi(trim(tokens[0])); } catch (...) { LogBoxf("LoadGameNPC() - Hiba a vnum átalakításában - sor #%d: %s", lineNumber, line.c_str()); continue; } // Győződj meg róla, hogy van elég token a továbbiakhoz if (tokens.size() > 2) { std::string name1 = trim(tokens[1]); std::string name2 = trim(tokens[2]); if (vnum) { CRaceManager::Instance().RegisterRaceName(vnum, name1.c_str()); } else { CRaceManager::Instance().RegisterRaceSrcName(name1.c_str(), name2.c_str()); } } else if (tokens.size() == 2) { // Ha csak 2 token van, legyen kezelve std::string name1 = trim(tokens[1]); if (vnum) { CRaceManager::Instance().RegisterRaceName(vnum, name1.c_str()); } else { // nincs elég adat, vagy kezelheted másképp } } } return true; } find: PyObject* cpsmLoadGameSkill(PyObject * poSelf, PyObject * poArgs) add under: PyObject* cpsmLoadGameNPC(PyObject* poSelf, PyObject* poArgs) { CPlayerSettingsModule::LoadGameNPC(); return Py_BuildNone(); } search: {"LoadGameSkill", cpsmLoadGameSkill, METH_VARARGS}, add after: {"LoadGameNPC", cpsmLoadGameNPC, METH_VARARGS}, Tested working.
  5. number_ex: number(): first argument is bigger than second argument 1 -> 0, item_attribute.cpp 168 fix: // ±¸ĂŕµČ ąčż­·Î Č®·ü °č»ęŔ» ĹëÇŘ şŮŔĎ ĽÓĽş Ľ±Á¤ if(total < 1) total = 1;
  6. i too have this problem but solved in introselect.py When i added sash system i forgot expand indexArray indexArray = (3, 2, 1, 0) like this: indexArray = (4, 3, 2, 1, 0)
  7. i full rewrite normal damage & skill damage in void CItemAddonManager::ApplyAddonTo ?
  8. Work perfectly!
  9. Hello. Where i need change this?
  10. Mivel jobb SQL-es protokat használni mint a txt????
  11. Hello. In Client debug i find this problem: [Hidden Content] The problem is with your assassin male model. Can you help me?
  12. What is the problem with my World Editor? After when i save the map i got this when i reopen the map: [Hidden Content] Thx before.
  13. new download link [Hidden Content]
  14. REUPLOADED: [Hidden Content]
  15. ugly
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.