Jump to content

Konichu

Member
  • Posts

    138
  • Joined

  • Last visited

Everything posted by Konichu

  1. Hello guys! :D I've been trying to mess with injection and I'm building a general DLL that will injects anything I want into an existing process. The objective is currently to achieve a custom screen size for the Conquer Online Client. I currently have this piece of code: DWORD idProcess = GetCurrentProcessId(); HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, idProcess); if (hProcess) { const LPVOID BASE_W_ADDR = (LPVOID) (0x00469DEF + 6); const LPVOID BASE_H_ADDR = (LPVOID) (0x00469DFC + 6); int width = GetPrivateProfileIntA("GameResolution", "Width", 1024, CONFIG_FILE); int height = GetPrivateProfileIntA("GameResolution", "Height", 768, CONFIG_FILE); int read = 0; SIZE_T bytes_read = 0, bytes_written = 0; DWORD error = 0; if (ReadProcessMemory(hProcess, BASE_W_ADDR, &read, 4, &bytes_read) || GetLastError() == ERROR_PARTIAL_COPY) { if (bytes_read == 0) MessageBoxA(NULL, "Could not get width memory offset.", "ReadProcessMemory error", MB_OK); if (!WriteProcessMemory(hProcess, BASE_W_ADDR, (LPCVOID)width, 4, &bytes_written)) MessageBoxA(NULL, "Could not write to width memory offset.", "WriteProcessMemory error", MB_OK); error = GetLastError(); if (error != 0) { sprintf_s(msg, "Error writing to memory! %d" , error); MessageBoxA(NULL, msg, "WriteProcessMemory error", MB_OK); } else { sprintf_s(msg, "Width edited with success! :D Old X: %d", read); MessageBoxA(NULL, msg, "Success?", MB_OK); } error = 0; } if (ReadProcessMemory(hProcess, BASE_H_ADDR, &read, 4, &bytes_read) || GetLastError() == ERROR_PARTIAL_COPY) { if (bytes_read == 0) MessageBoxA(NULL, "Could not get height memory offset.", "ReadProcessMemory error", MB_OK); if (!WriteProcessMemory(hProcess, BASE_H_ADDR, (LPCVOID)height, 4, &bytes_written)) MessageBoxA(NULL, "Could not write to height memory offset.", "WriteProcessMemory error", MB_OK); error = GetLastError(); if (error != 0) { sprintf_s(msg, "Error writing to memory! %d", error); MessageBoxA(NULL, msg, "WriteProcessMemory error", MB_OK); } else { sprintf_s(msg, "Height edited with success! :D Old X: %d", read); MessageBoxA(NULL, msg, "Success?", MB_OK); } } } It will give me an error related to ERROR_FILE_NOT_FOUND on width change and will give no error on height change, but neither work. I have tried a lot of solutions from Stack Overflow and etc but idk what's wrong there. The process can currently ReadProcessMemory with success, it will return the current screen resolution at that memory pointer but I can't set the one in my ini file. Any lights on this?
  2. It's going well. Got 150 online players and no delay ingame.
  3. I'm not good advertising, so I'll try to make it quick. World Conquer Online is a Conquer Server developed over version 5065. It's meant to be a hard server, which means low drops and 5x exp boost only. The server market is targeted to use only items players find hunting and CPs are used only for specific items and garments, so you can't buy Stones (+n), gems (normal, refined or super), meteor, dragon balls (and you also cannot exchange Dragon Balls for CPs). Classic quests are being added and new events are being created. Server is going to be released tomorrow (Dec, 11) at 18:00 (GMT -3) America/Sao_Paulo timezone. Why I am releasing here if the website is completely in portuguese? This server is mainly made for brazilians, yep, but the game itself is entirely in english. NPCs are in english, game interface and everything, but the site already have the structure to work on multilanguage and it'll be translated soon. Also, if the server runs fine I am planning on openning a new server after a few months to target other places of the world. The Game Server is coded using Comet and I hope I'm doing a good work haha. The server has been upgraded to use .NET 5 already (Also the website uses .NET 5). I'll work to make the website disponible in english asap. Official Website: https://worldconquer.online Register Page: https://worldconquer.online/Register Download Page: https://worldconquer.online/Downloads Guides: https://worldconquer.online/Guides And the website already have a linkback to this forum
  4. This is interesting, sadly they removed it on later versions to add it again on high patches with a horrible login screen.
  5. Just to add a note here, the item composition system is added on 5066. 5065 still use the old one.
×
×
  • Create New...