|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Aug 10, 2015 5:37 pm Post subject: |
|
|
string.gsub returns the modified string, you need to set the variable equal to that.
Code: | local Folder = inputQuery("Folder Name", "Enter the folder's name:", "")
local Char = inputQuery("Character Name", "Enter the Character's file name:", "")
local Modded = inputQuery("Character Name", "Enter the Character_Costume",""
if Folder ~= nil and Folder:len() > 0
and Char ~= nil and Char:len() > 0
and Modded ~= nil and Modded:len() > 0 then
aob = AOBScan("41 73 73 65 74 5C 43 48 41 52 5F * * * * * * 2E 78 78 78")
for i=0, aob.Count-1 do
local path = readString(aob[i])
path = string.gsub(path, "Asset", Folder)
path = string.gsub(path, Modded, Char)
writeBytes(aob[i], string.byte(path.."\0",0,-1))
end
end |
|
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
Posted: Mon Aug 10, 2015 9:08 pm Post subject: |
|
|
Not sure it is feasible for this particular game and fit what you want.
http://www.moddb.com/mods/the-sins-optimization-project-for-rebellion/tutorials/moving-the-mods-folder
It is an os level "virtual file system(?)" to redirect a directory to another one. It need the user to do some administrative setup.
Search 'mklink'/'junction'+'mod' may have more info.
And, I've not tried by myself, may also have a look at "Enigma Virtual Box".
It is possible to pack the original game.exe with modified directory/file, into a new mod-game.exe. The mod-game.exe then can be setup so that it look for file from the packed virtual file system 1st, then the original directory. It has the benefit of not modifying the original game directory structure and content. The mod can be distributed to other users.
eh... it is not a ce or lua suggestion tho.
_________________
- Retarded. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|