*Problemă/Întrebare: Am o problema la compilare binary
Tipologie server:Pvm
*Resursă folosită:sursa/quest-renewal-t94367.html
*ServerFiles utilizat:Martysama
*Syserr:Error 2 error C2039: 'c_index' : is not a member of 'CPythonQuest::SQuestInstance' D:\Source\Client\UserInterface\PythonQuest.cpp 54 1 UserInterface
IntelliSense: class "CPythonQuest::SQuestInstance" has no member "c_index" d:\Source\Client\UserInterface\PythonQuest.cpp 213 22 UserInterface
Poză:
*Detalii suplimentare:Am instalat tot bine .
Problema Quest Renewal
- Vicențiu Costi
-

- Mesaje: 95
- Membru din: 04 Ian 2014, 13:55
- Aprecieri: 165
- Mulţumiri: 79
- Discord: Copiază ID
Poti cauta pe google orice in legatura cu sursa "c2039 visual studio" easy.
Poti pune si linia ?
Cod: Selectaţi tot
#ifdef ENABLE_QUEST_RENEWAL
void CPythonQuest::MakeQuest(DWORD dwIndex, DWORD c_index)
#else
void CPythonQuest::MakeQuest(DWORD dwIndex)
#endif
{
DeleteQuestInstance(dwIndex);
m_QuestInstanceContainer.push_back(SQuestInstance());
/////
SQuestInstance & rQuestInstance = *m_QuestInstanceContainer.rbegin();
rQuestInstance.dwIndex = dwIndex;
#ifdef ENABLE_QUEST_RENEWAL
rQuestInstance.c_index = c_index;
#endif
rQuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond());
}Cod: Selectaţi tot
PyObject * questGetQuestData(PyObject * poSelf, PyObject * poArgs)
{
int iIndex;
if (!PyTuple_GetInteger(poArgs, 0, &iIndex))
return Py_BadArgument();
CPythonQuest::SQuestInstance * pQuestInstance;
if (!CPythonQuest::Instance().GetQuestInstancePtr(iIndex, &pQuestInstance))
return Py_BuildException("Failed to find quest by index %d", iIndex);
CGraphicImage * pImage = NULL;
if (!pQuestInstance->strIconFileName.empty())
{
std::string strIconFileName;
strIconFileName = "d:/ymir work/ui/game/quest/questicon/";
strIconFileName += pQuestInstance->strIconFileName.c_str();
pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str());
}
else
{
{
// ºñ¾îÀÖÀ» °æ¿ì µðÆúÆ® À̹ÌÁö¸¦ ³Ö´Â´Ù.
std::string strIconFileName = "season1/icon/scroll_open.tga";
pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str());
}
}
#ifdef ENABLE_QUEST_RENEWAL
if (pQuestInstance->c_index == 99)
pQuestInstance->c_index = 6;
return Py_BuildValue("isiisi", pQuestInstance->dwIndex,
pQuestInstance->strTitle.c_str(),
pQuestInstance->c_index,
pImage,
pQuestInstance->strCounterName.c_str(),
pQuestInstance->iCounterValue);
#else
return Py_BuildValue("sisi", pQuestInstance->strTitle.c_str(),
pImage,
pQuestInstance->strCounterName.c_str(),
pQuestInstance->iCounterValue);
#endif
}Cod: Selectaţi tot
CPythonQuest::SQuestInstance QuestInstance;
QuestInstance.dwIndex = index;
QuestInstance.c_index = category;
QuestInstance.strTitle = title;
QuestInstance.strClockName = clockName;
QuestInstance.iClockValue = clockValue;
QuestInstance.strCounterName = counterName;
QuestInstance.iCounterValue = counterValue;
QuestInstance.strIconFileName = iconFilename;
QuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond());
rkQuest.RegisterQuestInstance(QuestInstance);
return Py_BuildNone();
}- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
iti garantez ca nu ai instalat totu bine.RevooT scrie: ↑12 Sep 2020, 12:44 *Problemă/Întrebare: Am o problema la compilare binary
Tipologie server:Pvm
*Resursă folosită:sursa/quest-renewal-t94367.html
*ServerFiles utilizat:Martysama
*Syserr:Error 2 error C2039: 'c_index' : is not a member of 'CPythonQuest::SQuestInstance' D:\Source\Client\UserInterface\PythonQuest.cpp 54 1 UserInterface
IntelliSense: class "CPythonQuest::SQuestInstance" has no member "c_index" d:\Source\Client\UserInterface\PythonQuest.cpp 213 22 UserInterface
Poză:
*Detalii suplimentare:Am instalat tot bine .
am pus systemu pe 2 svfile-uri.
Verifica inca o data tot ce ai adaugat si spatierile sa fie cu TABRevooT scrie: ↑12 Sep 2020, 13:57Cod: Selectaţi tot
#ifdef ENABLE_QUEST_RENEWAL void CPythonQuest::MakeQuest(DWORD dwIndex, DWORD c_index) #else void CPythonQuest::MakeQuest(DWORD dwIndex) #endif { DeleteQuestInstance(dwIndex); m_QuestInstanceContainer.push_back(SQuestInstance()); ///// SQuestInstance & rQuestInstance = *m_QuestInstanceContainer.rbegin(); rQuestInstance.dwIndex = dwIndex; #ifdef ENABLE_QUEST_RENEWAL rQuestInstance.c_index = c_index; #endif rQuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond()); }Cod: Selectaţi tot
PyObject * questGetQuestData(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BadArgument(); CPythonQuest::SQuestInstance * pQuestInstance; if (!CPythonQuest::Instance().GetQuestInstancePtr(iIndex, &pQuestInstance)) return Py_BuildException("Failed to find quest by index %d", iIndex); CGraphicImage * pImage = NULL; if (!pQuestInstance->strIconFileName.empty()) { std::string strIconFileName; strIconFileName = "d:/ymir work/ui/game/quest/questicon/"; strIconFileName += pQuestInstance->strIconFileName.c_str(); pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str()); } else { { // ºñ¾îÀÖÀ» °æ¿ì µðÆúÆ® À̹ÌÁö¸¦ ³Ö´Â´Ù. std::string strIconFileName = "season1/icon/scroll_open.tga"; pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str()); } } #ifdef ENABLE_QUEST_RENEWAL if (pQuestInstance->c_index == 99) pQuestInstance->c_index = 6; return Py_BuildValue("isiisi", pQuestInstance->dwIndex, pQuestInstance->strTitle.c_str(), pQuestInstance->c_index, pImage, pQuestInstance->strCounterName.c_str(), pQuestInstance->iCounterValue); #else return Py_BuildValue("sisi", pQuestInstance->strTitle.c_str(), pImage, pQuestInstance->strCounterName.c_str(), pQuestInstance->iCounterValue); #endif }Cod: Selectaţi tot
CPythonQuest::SQuestInstance QuestInstance; QuestInstance.dwIndex = index; QuestInstance.c_index = category; QuestInstance.strTitle = title; QuestInstance.strClockName = clockName; QuestInstance.iClockValue = clockValue; QuestInstance.strCounterName = counterName; QuestInstance.iCounterValue = counterValue; QuestInstance.strIconFileName = iconFilename; QuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond()); rkQuest.RegisterQuestInstance(QuestInstance); return Py_BuildNone(); }
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
KillForFun scrie: ↑12 Sep 2020, 14:33Verifica inca o data tot ce ai adaugat si spatierile sa fie cu TABRevooT scrie: ↑12 Sep 2020, 13:57Cod: Selectaţi tot
#ifdef ENABLE_QUEST_RENEWAL void CPythonQuest::MakeQuest(DWORD dwIndex, DWORD c_index) #else void CPythonQuest::MakeQuest(DWORD dwIndex) #endif { DeleteQuestInstance(dwIndex); m_QuestInstanceContainer.push_back(SQuestInstance()); ///// SQuestInstance & rQuestInstance = *m_QuestInstanceContainer.rbegin(); rQuestInstance.dwIndex = dwIndex; #ifdef ENABLE_QUEST_RENEWAL rQuestInstance.c_index = c_index; #endif rQuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond()); }Cod: Selectaţi tot
PyObject * questGetQuestData(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BadArgument(); CPythonQuest::SQuestInstance * pQuestInstance; if (!CPythonQuest::Instance().GetQuestInstancePtr(iIndex, &pQuestInstance)) return Py_BuildException("Failed to find quest by index %d", iIndex); CGraphicImage * pImage = NULL; if (!pQuestInstance->strIconFileName.empty()) { std::string strIconFileName; strIconFileName = "d:/ymir work/ui/game/quest/questicon/"; strIconFileName += pQuestInstance->strIconFileName.c_str(); pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str()); } else { { // ºñ¾îÀÖÀ» °æ¿ì µðÆúÆ® À̹ÌÁö¸¦ ³Ö´Â´Ù. std::string strIconFileName = "season1/icon/scroll_open.tga"; pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str()); } } #ifdef ENABLE_QUEST_RENEWAL if (pQuestInstance->c_index == 99) pQuestInstance->c_index = 6; return Py_BuildValue("isiisi", pQuestInstance->dwIndex, pQuestInstance->strTitle.c_str(), pQuestInstance->c_index, pImage, pQuestInstance->strCounterName.c_str(), pQuestInstance->iCounterValue); #else return Py_BuildValue("sisi", pQuestInstance->strTitle.c_str(), pImage, pQuestInstance->strCounterName.c_str(), pQuestInstance->iCounterValue); #endif }Cod: Selectaţi tot
CPythonQuest::SQuestInstance QuestInstance; QuestInstance.dwIndex = index; QuestInstance.c_index = category; QuestInstance.strTitle = title; QuestInstance.strClockName = clockName; QuestInstance.iClockValue = clockValue; QuestInstance.strCounterName = counterName; QuestInstance.iCounterValue = counterValue; QuestInstance.strIconFileName = iconFilename; QuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond()); rkQuest.RegisterQuestInstance(QuestInstance); return Py_BuildNone(); }
Cand va aud cu spatierile pe C++ imi vine sa imi bat copiii.
In c++ n ai treaba cu spatierile.
Omu o fi uitat vreun import sau a pus gresit vreo functie.
- [ATR]
-

- Mesaje: 373
- Membru din: 08 Sep 2019, 19:06
- Server: n am
- Regat: Shinsoo
- Aprecieri: 164
- Mulţumiri: 1236
- Discord: Copiază ID
- Contact:
mai refa odata tutorialul pe partea binary daca nici asa nu iti merge incearca sa compari cu un serverfiles care il are deja instalat
Nu am uitat nimic este foarte simplu instalarea de asta nu inteleg de ce nu merge .[HF]White scrie: ↑12 Sep 2020, 14:37KillForFun scrie: ↑12 Sep 2020, 14:33Verifica inca o data tot ce ai adaugat si spatierile sa fie cu TABRevooT scrie: ↑12 Sep 2020, 13:57
Cod: Selectaţi tot
#ifdef ENABLE_QUEST_RENEWAL void CPythonQuest::MakeQuest(DWORD dwIndex, DWORD c_index) #else void CPythonQuest::MakeQuest(DWORD dwIndex) #endif { DeleteQuestInstance(dwIndex); m_QuestInstanceContainer.push_back(SQuestInstance()); ///// SQuestInstance & rQuestInstance = *m_QuestInstanceContainer.rbegin(); rQuestInstance.dwIndex = dwIndex; #ifdef ENABLE_QUEST_RENEWAL rQuestInstance.c_index = c_index; #endif rQuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond()); }Cod: Selectaţi tot
PyObject * questGetQuestData(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BadArgument(); CPythonQuest::SQuestInstance * pQuestInstance; if (!CPythonQuest::Instance().GetQuestInstancePtr(iIndex, &pQuestInstance)) return Py_BuildException("Failed to find quest by index %d", iIndex); CGraphicImage * pImage = NULL; if (!pQuestInstance->strIconFileName.empty()) { std::string strIconFileName; strIconFileName = "d:/ymir work/ui/game/quest/questicon/"; strIconFileName += pQuestInstance->strIconFileName.c_str(); pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str()); } else { { // ºñ¾îÀÖÀ» °æ¿ì µðÆúÆ® À̹ÌÁö¸¦ ³Ö´Â´Ù. std::string strIconFileName = "season1/icon/scroll_open.tga"; pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str()); } } #ifdef ENABLE_QUEST_RENEWAL if (pQuestInstance->c_index == 99) pQuestInstance->c_index = 6; return Py_BuildValue("isiisi", pQuestInstance->dwIndex, pQuestInstance->strTitle.c_str(), pQuestInstance->c_index, pImage, pQuestInstance->strCounterName.c_str(), pQuestInstance->iCounterValue); #else return Py_BuildValue("sisi", pQuestInstance->strTitle.c_str(), pImage, pQuestInstance->strCounterName.c_str(), pQuestInstance->iCounterValue); #endif }Cod: Selectaţi tot
CPythonQuest::SQuestInstance QuestInstance; QuestInstance.dwIndex = index; QuestInstance.c_index = category; QuestInstance.strTitle = title; QuestInstance.strClockName = clockName; QuestInstance.iClockValue = clockValue; QuestInstance.strCounterName = counterName; QuestInstance.iCounterValue = counterValue; QuestInstance.strIconFileName = iconFilename; QuestInstance.iStartTime = int(CTimer::Instance().GetCurrentSecond()); rkQuest.RegisterQuestInstance(QuestInstance); return Py_BuildNone(); }
Cand va aud cu spatierile pe C++ imi vine sa imi bat copiii.
In c++ n ai treaba cu spatierile.
Omu o fi uitat vreun import sau a pus gresit vreo functie.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 22 vizitatori


