续上文: 破解了IC卡读写器的动态库,实在让人心力交瘁,蛋疼之下,随便找了个游戏玩玩 一不小心,玩上浴火银河2硬盘版(Galaxy On Fire),这个游戏有很多个不同平台的版本 感觉移动好吃力,跑半天都不到目的地,我们这样的人怎么能忍受龟速?更不用说是蜗
续上文:
破解了IC卡读写器的动态库,实在让人心力交瘁,蛋疼之下,随便找了个游戏玩玩
一不小心,玩上浴火银河2硬盘版(Galaxy On Fire),这个游戏有很多个不同平台的版本
感觉移动好吃力,跑半天都不到目的地,我们这样的人怎么能忍受龟速?更不用说是蜗牛了!
于是抄家伙,疯狂破解!(- -!这家伙,破解上瘾了……)
最先破解的是后燃器的加速时间、冷却时间和加速倍率,我改过最高的如下:
加速时间1分钟,冷却1秒,加速1000倍!
主要是我想撞一个行星看看是什么样的效果,结果我飞了半天硬是没撞上!
而且,加速太快,摄像机跟不上,直接往后面看了……
因此,这一块就不跟大家共享了,只贴一张图证实真相:
一次加速就飞了4000多公里,星球还是望尘莫及,于是回头截个图……
破解出来比较实用的是修改飞船仓库容量和装甲等,先上个图:
我不想破解别人的东西,我只想传播下技术。
某人说,某人有些虚荣心,喜欢做些惊世骇俗的小动作,不为建功立业……
下面是动态库各个文件的C/C++源代码(按文件名顺序),编译为DLL即可调用(太累了,主程序不想写了,源码也在有空再上传了)。
API.DEF
EXPORTS ReadShips GetShip SetShip SaveShips
Exports.cpp
#include "Exports.h" #include "Ship.h" inline DWORD fnRev(DWORD dwNumber) { // 转换字节序 register DWORD dw1; dw1 = dwNumber > 8) & 0xFF00; dw1 |= (dwNumber >> 24) & 0xFF; return dw1; } // DLL入口函数 BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { //printf("hModule.%p lpReserved.%p \n", hModule, lpReserved); switch(ul_reason_for_call) { case DLL_PROCESS_ATTACH: // 进程装载 SpaceShips = (PSPACESHIP)malloc(sizeof(SPACESHIP) * 44); if(!SpaceShips) return FALSE; break; case DLL_PROCESS_DETACH: // 线程卸载 if(SpaceShips != NULL) { // ... free(SpaceShips); SpaceShips = NULL; } break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return TRUE; } EXPORT_API LONG __stdcall ReadShips(LPCSTR lpShipFile, DWORD *pHash) { return (LONG)fnReadShips(lpShipFile, pHash); } EXPORT_API DWORD __stdcall GetShip(DWORD dwIndex, DWORD dwPropId) { return fnGetShip(dwIndex, dwPropId); } EXPORT_API BOOL __stdcall SetShip(DWORD dwIndex, DWORD dwPropId, DWORD dwValue) { return fnSetShip(dwIndex, dwPropId, dwValue); } EXPORT_API BOOL __stdcall SaveShips(LPCSTR lpShipFile) { return fnSaveShips(lpShipFile); }
Exports.h
/**/ #ifndef __GAL32_EXP_H_ #define __GAL32_EXP_H_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdio.h> // FILE #define EXPORT_API __declspec(dllexport) #define DESDW(d) ((d > 8) & 0xFF00) | ((d >> 24) & 0xFF)) extern inline DWORD fnRev(DWORD); #endif</stdio.h></windows.h>
Hash.cpp和Hash.h是计算MD5的,可以计算任意内存块的md5,目的是检测玩家是否修改了文件
以确定要修改,还是先做备份……主程序都没写,这个也不发上来了,而且容易泄露大侠我的加密风格……
Ship.cpp
// #include "Exports.h" #include "Ship.h" #include "Hash.h" PSPACESHIP SpaceShips; DWORD dwShipCount = 0; BOOL fnReadShips(LPCSTR lpShipFile, DWORD *pHash) { // .. DWORD dwLoop; FILE *pfs = fopen(lpShipFile, "rb"); if(pfs == NULL) { // .. return 0; } dwShipCount = fread(SpaceShips, sizeof(SPACESHIP), 44, pfs); fclose(pfs); if(dwShipCount != 44) { // .. return -1; } dwLoop = sizeof(SPACESHIP) * 44; // 用Hash判断是否是安全的文件 fnCalcHash(SpaceShips, dwLoop, (DWORD)pHash); //for(dwLoop = 0; dwLoop = dwShipCount) return 0x80000000; switch(dwPropId){ case 1: return fnRev(SpaceShips[dwIndex].dwArmor); break; case 2: return fnRev(SpaceShips[dwIndex].dwCargo); break; case 3: return fnRev(SpaceShips[dwIndex].dwPrice); break; case 4: return fnRev(SpaceShips[dwIndex].dwPriWeap); break; case 5: return fnRev(SpaceShips[dwIndex].dwSecWeap); break; case 6: return fnRev(SpaceShips[dwIndex].dwTurret); break; case 7: return fnRev(SpaceShips[dwIndex].dwEquip); break; case 8: return fnRev(SpaceShips[dwIndex].dwHandle); break; default: return fnRev(SpaceShips[dwIndex].dwIndex); break; } return 0x80000001; } BOOL fnSetShip(DWORD dwIndex, DWORD dwPropId, DWORD dwValue) { // 返回值应小于0x3FFFFFFF if((dwIndex >= dwShipCount)||(dwValue >= 0x40000000)) return FALSE; switch(dwPropId){ case 1: SpaceShips[dwIndex].dwArmor = fnRev(dwValue); break; case 2: SpaceShips[dwIndex].dwCargo = fnRev(dwValue); break; case 3: SpaceShips[dwIndex].dwPrice = fnRev(dwValue); break; case 4: SpaceShips[dwIndex].dwPriWeap = fnRev(dwValue); break; case 5: SpaceShips[dwIndex].dwSecWeap = fnRev(dwValue); break; case 6: SpaceShips[dwIndex].dwTurret = fnRev(dwValue); break; case 7: SpaceShips[dwIndex].dwEquip = fnRev(dwValue); break; case 8: SpaceShips[dwIndex].dwHandle = fnRev(dwValue); break; default: SpaceShips[dwIndex].dwIndex = fnRev(dwValue); break; } return TRUE; } BOOL fnSaveShips(LPCSTR lpShipFile) { // .. FILE *pfs = fopen(lpShipFile, "wb"); if(pfs == NULL) { // .. return FALSE; } dwShipCount = fwrite(SpaceShips, sizeof(SPACESHIP), 44, pfs); fclose(pfs); //if(dwShipCount != 44) return TRUE; }
Ship.h
/**/ #ifndef __GAL32_SHIP_H_ #define __GAL32_SHIP_H_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 typedef struct _tagSpaceShip{ DWORD dwIndex; DWORD dwArmor; DWORD dwCargo; DWORD dwPrice; DWORD dwPriWeap; DWORD dwSecWeap; DWORD dwTurret; DWORD dwEquip; DWORD dwHandle; } SPACESHIP, *PSPACESHIP; extern PSPACESHIP SpaceShips; extern DWORD dwShipCount; extern BOOL fnReadShips(LPCSTR, PDWORD); extern DWORD fnGetShip(DWORD, DWORD); extern BOOL fnSetShip(DWORD, DWORD, DWORD); extern BOOL fnSaveShips(LPCSTR); #endif
目前只公布修改飞船的代码,看看大家反应如何先,如果都有需要,那我就为人民服务一下下吧%……
2013-02-17 22:56:38
妈妈的,明天又要开工了

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.