Jump to content

.Toaster

Member
  • Posts

    15
  • Joined

  • Last visited

  • Feedback

    0%

About .Toaster

  • Birthday 07/25/1995

Informations

  • Gender
    Male

Recent Profile Visitors

1589 profile views

.Toaster's Achievements

Explorer

Explorer (4/16)

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

Recent Badges

4

Reputation

  1. Okay i´ve fixxed it even if i dont know if its good like this but it works for me Replaced: bool CProperty::ReadFromMemory(const void * c_pvData, int iLen, const char * c_pszFileName) { const char * pcData = (const char *) c_pvData; if (*(DWORD *) pcData != MAKEFOURCC('Y', 'P', 'R', 'T')) return false; pcData += sizeof(DWORD); if (*pcData != '\r' || *(pcData + 1) != '\n') { TraceError("CProperty::ReadFromMemory: File format error after FourCC: %s\n", c_pszFileName); return false; } pcData += 2; CTokenVector stTokenVector; /* char szTimeStamp[64]; memcpy(szTimeStamp, pcData, 14); szTimeStamp[14] = '\0'; pcData += 14; if (*pcData != '\r' || *(pcData + 1) != '\n') { TraceError("CProperty::ReadFromMemory: File format error after TimeStamp: %s\n", c_pszFileName); return false; } std::string m_stTimeStamp; m_stTimeStamp = szTimeStamp; int iTimeStampLen = 14 + _snprintf(szTimeStamp + 14, 64 - 14, "%s", mc_pFileName); m_dwCRC = GetCRC32(szTimeStamp, iTimeStampLen); char tmp[64]; sprintf(tmp, "%u", m_dwCRC); m_stCRC.assign(tmp); CMemoryTextFileLoader textFileLoader; textFileLoader.Bind(iLen - (sizeof(DWORD) + 2 + 14 + 2), pcData); for (DWORD i = 0; i < textFileLoader.GetLineCount(); ++i) { if (!textFileLoader.SplitLine(i, &stTokenVector)) continue; stl_lowers(stTokenVector[0]); std::string stKey = stTokenVector[0]; stTokenVector.erase(stTokenVector.begin()); PutVector(stKey.c_str(), stTokenVector); } return true; */ CMemoryTextFileLoader textFileLoader; textFileLoader.Bind(iLen - (sizeof(DWORD) + 2), pcData); m_stCRC = textFileLoader.GetLineString(0); m_dwCRC = atoi(m_stCRC.c_str()); for (DWORD i = 1; i < textFileLoader.GetLineCount(); ++i) { if (!textFileLoader.SplitLine(i, &stTokenVector)) continue; stl_lowers(stTokenVector[0]); std::string stKey = stTokenVector[0]; stTokenVector.erase(stTokenVector.begin()); PutVector(stKey.c_str(), stTokenVector); } //Tracef("Property: %s\n", c_pszFileName); return true; } With: bool CProperty::ReadFromMemory(const void * c_pvData, int iLen, const char * c_pszFileName) { const char* pStart = (const char*)c_pvData; const char* pcData = pStart; if (*(DWORD *) pcData != MAKEFOURCC('Y', 'P', 'R', 'T')) return false; pcData += sizeof(DWORD); while (pcData < pStart + iLen && (*pcData == '\r' || *pcData == '\n' || *pcData == ' ' || *pcData == '\t')) ++pcData; int textLen = iLen - int(pcData - pStart); if (textLen <= 0) { TraceError("CProperty::ReadFromMemory: textLen <= 0 in %s\n", c_pszFileName); return false; } CTokenVector stTokenVector; CMemoryTextFileLoader textFileLoader; textFileLoader.Bind(textLen, pcData); m_stCRC.clear(); m_dwCRC = 0; if (textFileLoader.GetLineCount() > 0) { m_stCRC = textFileLoader.GetLineString(0); bool bAllDigits = !m_stCRC.empty() && std::all_of(m_stCRC.begin(), m_stCRC.end(), [](char c) { return isdigit((unsigned char)c); }); DWORD startLine = 0; if (bAllDigits) { m_dwCRC = atoi(m_stCRC.c_str()); startLine = 1; } for (DWORD i = startLine; i < textFileLoader.GetLineCount(); ++i) { if (!textFileLoader.SplitLine(i, &stTokenVector)) continue; stl_lowers(stTokenVector[0]); std::string stKey = stTokenVector[0]; stTokenVector.erase(stTokenVector.begin()); PutVector(stKey.c_str(), stTokenVector); } } return true; }
  2. I tried both solutions, but unfortunately neither of them worked. I still can’t see any objects on the map.
  3. I hope you like it :3
  4. Having Problems with Downloading this .-. ste download stops after ca 200mb can someone please upload it on mega? .-.
  5. can you please explain me how to fix this bug or write it down in a thread in this forum pls?
  6. Any fix for this i have the same bug too
  7. Nice work, Thanks
  8. aloha, i have a question about the source i have compiled the binary an it works very good but i want to fix that i see errors like this every time in the syserr.txt 0521 20:29:01020 :: # trying .os.py 0521 20:29:01021 :: # trying .os.pyw 0521 20:29:01027 :: # trying .os.pyc 0521 20:29:01028 :: # trying libos.pyd 0521 20:29:01029 :: # trying libos.py 0521 20:29:01052 :: # libos.pyc has bad magic 0521 20:29:01070 :: import os # from libos.py 0521 20:29:01073 :: import nt # builtin can anyone please explain me how to fix this? sry for my bad english :s
  9. With little changes it works perfectly in the 40250 client you have just to change some little things, go in notepad++ or whatelse you use to edit the .py files and replace all locale. in the code from this system to localeInfo. then it will works perfectly in the 40250 client. just for the people who doesn´t understand my really bad english here is the code for interfacemodule.py if localeInfo.IsSINGAPORE() or localeInfo.IsEUROPE(): if name[0] == '&': btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_blue.tga") btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_blue.tga") btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_blue.tga") name = name[1:] elif name[0] == '~': btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_golden.tga") btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_golden.tga") btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_golden.tga") name = name[1:] elif name[0] == '*': btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_green.tga") btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_green.tga") btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_green.tga") name = name[1:] elif name[0] == '+': btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/scroll_close_purple.tga") btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_purple.tga") btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/scroll_open_purple.tga") name = name[1:] else: btn.SetUpVisual(localeInfo.GetLetterCloseImageName()) btn.SetOverVisual(localeInfo.GetLetterOpenImageName()) btn.SetDownVisual(localeInfo.GetLetterOpenImageName()) else: btn.SetUpVisual(buttonImageFileName) btn.SetOverVisual(buttonImageFileName) btn.SetDownVisual(buttonImageFileName) btn.Flash() # END_OF_QUEST_LETTER_IMAGE
  10. go to the locale_inc.h and add #define ENABLE_ENERGY_SYSTEM #define ENABLE_NEW_EQUIPMENT_SYSTEM #define ENABLE_DRAGON_SOUL_SYSTEM
  11. Hey Guys, I have this question: When i want to dropp items from my inventory to the ground, where i can find this function in source? The Items should be removed in about 5 seconds, when i dropp it. (I dont need the diff, because it dont works for me, i need the source function on 40k for it.) Hope you can help. Mfg
  12. Problem fixxed. #closerequest
  13. Push.. Pls can anyone help me?
  14. Hey Developers, I have following Question: I have compiled a 40k Game and want to start with it. I tryed with the mainline_released (mainline) source, no errors, all fine. Now when i try to start my server i get this error I hope you can help me or can say me what i have to do, to fixx this problem. I know in old revisions this could be fixxed with symbolic links but here on 40k i dont have these .so Files. Hope you understand my problem and can help me soon. Sincerly .Toaster
×
×
  • 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.