![]() |
|
c++ NKSP.EXE - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196) +---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192) +---- Thread: c++ NKSP.EXE (/showthread.php?tid=409) |
- Nikolee - 10-27-2012 someone can help me? i need to open moonstone.lod and edit it... I have a tool for it. I will upload it for you but tommorow^^ TODAY PARTY! .. And the NKSP source is useless ^^ - Wizatek - 10-27-2012 someone can help me? i need to open moonstone.lod and edit it... ///////////////////////////////////////////////////////////////////////// // [071122: Su-won] NEW_MOONSTONE void CUIGamble::ReadMoonStoneLOD() { FILE* fMoonStone = NULL; CTString strFullPath = _fnmApplicationPath.FileDir(); CTString tPath = strFullPath + "data\\MoonStone.lod"; INDEX iMax = 0; if( fMoonStone = fopen(tPath.str_String ,"rb") ) { for( int i=0; i<5; ++i) { int nCount; fread(&nCount,sizeof(int),1,fMoonStone); m_saReward[i].New(nCount); if (nCount > iMax) iMax = nCount; // ÃÖ´ë °¹¼ÃƒÂ¶ for(int j=0; j<nCount; ++j) fread(&m_saReward[i][j],sizeof(int),1,fMoonStone); } } ASSERT(iMax > 0 && "MoonStone Reward Count 0"); if (iMax > 0) { m_iTexID = new INDEX[iMax]; m_rtNewMark = new UIRectUV[iMax]; } } - CyberClaus - 10-28-2012 ///////////////////////////////////////////////////////////////////////// // [071122: Su-won] NEW_MOONSTONE void CUIGamble::ReadMoonStoneLOD() { FILE* fMoonStone = NULL; CTString strFullPath = _fnmApplicationPath.FileDir(); CTString tPath = strFullPath + "data\\MoonStone.lod"; INDEX iMax = 0; if( fMoonStone = fopen(tPath.str_String ,"rb") ) { for( int i=0; i<5; ++i) { int nCount; fread(&nCount,sizeof(int),1,fMoonStone); m_saReward[i].New(nCount); if (nCount > iMax) iMax = nCount; // ÃÖ´ë °¹¼ÃƒÂ¶ for(int j=0; j<nCount; ++j) fread(&m_saReward[i][j],sizeof(int),1,fMoonStone); } } ASSERT(iMax > 0 && "MoonStone Reward Count 0"); if (iMax > 0) { m_iTexID = new INDEX[iMax]; m_rtNewMark = new UIRectUV[iMax]; } } Thank you wizatek - soryjero - 10-28-2012 Well i guess its better to post this code to try to explain me better. The next code is part of the engine.dll [ excuse me, can you explain me how can i edit .dll files? i've tried with a hexadecimal editor but i can't see the code like you have posted here. it looks like encrypted. - Sentence - 10-28-2012 excuse me, can you explain me how can i edit .dll files? i've tried with a hexadecimal editor but i can't see the code like you have posted here. it looks like encrypted. It's because the .dll is compiled - soryjero - 10-28-2012 It's because the .dll is compiled and how i can edit that type of files? - Sentence - 10-28-2012 and how i can edit that type of files? Assembler. - soryjero - 10-28-2012 Assembler. i don't know enough about that, but... any program in special? - someone - 10-28-2012 ollyd i don't know enough about that, but... any program in special? OllyDbg, IDA, Win32Dasm + HEX Editor, etc, you can chose. But before you start into disassembling I suggest learning a high level programming language, C is simple to learn and it will help you with understand higher level programming languages and low level languages like ASM. Good Book in C(for C++ its the same name): read about Learn C in 21 days. Good Book in ASM is Art of Assembly( read the DOS 16bit edition, the 32 bit Edition is about HLA), also suggest playing with MASM32 too its a nice ASM Assembler(WinASM, RadASM, VisualASM are the IDE, for you to use, and OllyDBG is the Debugger to test your Code) 2 - soryjero - 10-28-2012 ollyd OllyDbg, IDA, Win32Dasm + HEX Editor, etc, you can chose. But before you start into disassembling I suggest learning a high level programming language, C is simple to learn and it will help you with understand higher level programming languages and low level languages like ASM. Good Book in C(for C++ its the same name): read about Learn C in 21 days. Good Book in ASM is Art of Assembly( read the DOS 16bit edition, the 32 bit Edition is about HLA), also suggest playing with MASM32 too its a nice ASM Assembler(WinASM, RadASM, VisualASM are the IDE, for you to use, and OllyDBG is the Debugger to test your Code) 2 thanks for all. i have learning c++ and i know a little about that (but not much). i have been trying to edit those files with hex editor but i can't read it. it looks like that: 2 and i don't know how to understand that codes. for example: on the top of the page there is the code of the nksp.exe and i want to read the .dll codes like the code that is up not like it appears in the image. how can i read the code decrypted? p.d. sorry for my ignorance. i don't know if it is possible to read the code like the code is up or not |