Akronym Posted April 10 Share Posted April 10 Hello everyone, for my mod I have altered a few mission scripts in mainV1.scm with Sanny Builder v3.8.0 and already successfully tested the changes ingame. Furthermore I want to change external scripts as well and have trouble to do so. I have changed the following line within the external script ":DEALER": 03FE: set_actor [email protected] money 2000 So, 2000 to 200. In the original game this change works as intended and reduces the dropped money looted from a dealer accordingly, if changed in main.scm. In SA:DE it won't work at all. Even if I delete/comment out the mentioned code line, it doesn't affect the game at all, nor crashing it. Dealers still drop ~$2000. A few things i am aware of: I know there is CLEO Redux, but so far I have no intention to add additional scripts, but rather only change (mostly int values) in the mainv1.scm. I have already altered mainv1.scm and made changes that did affect the game, so there is no problem e.g. with packing or using wrong folder paths. External scripts are saved within the script.img (now also named scriptv1.img), which is why I included that in my .pak file - still no change. So I dug deeper and checked the other folders of the unpacked game. There is a "cooked" scriptv1.img within the following folder: ..\GTA San Andreas - Definitive Edition\Gameface\Content\SanAndreas\GameData\IMG It is in an unreal data format ".uasset/.uexp". My assumption is that the game uses these files over the one in ..\GTA San Andreas - Definitive Edition\Gameface\Content\OriginalData\GTASA\data\script So I thought I might repack the one created from the compilation process with sanny builder and place it accordingly in the folder to overwrite it. Therefore I installed Unreal Engine v4.26.2. Solutions I tried so far and did no work: Including scriptv1.img in the .pak and place it in the folder: Gameface\Content\OriginalData\GTASA\data\script Renaming: To script.img/scriptv1.img Open/import the mentioned .uasset(.uexp in a new Unreal Engine Project, then pack again. --> The files are not displayed when placed in the folder. Other files (like .png) work. Open/import the img file and repack it to an .uasset. --> This is also because Unreal Engine doesn't except the file format. Unpacking/Export the .uasset with UModel. UModel cannot export the .img file from the .uasset, from what I have read it is only for textures/audio. So my question is: Has anyone of you already successfully changed external scripts in any way or might have an idea how to do so and point me in the right direction? If you did use Cleo Redux, I might consider using it and rewrite my mod in JS or sth. But this I would rather only do if there is no other solution, because all other changes so far do work... Happy to hear your thoughts/tips and inputs on this matter! Thanks in advance! Link to comment Share on other sites More sharing options...
DavidReyes2250 Posted April 10 Share Posted April 10 (edited) At the moment it is not possible. It must be said that the game does ignore the scriptv1.img file, but not the cooked scriptv1.img file. You could even remove the external scripts from mainv1.scm and they will still be working as if you hadn't removed them. Quite possibly they used a modified version of UE4 to make it recognize IMG files along with other file extensions and unique file properties (such as ped variations, vehicle tire recognition, vehicle color density, etc.) Edit: One more reason why I hate these new games. They made the modding more difficult Edited April 10 by DavidReyes2250 Link to comment Share on other sites More sharing options...
Akronym Posted April 28 Author Share Posted April 28 (edited) Thanks for your reply. Here my late response, in case somebody has the same problem: I managed to modify the mentioned scriptv1.uexp by using HxD (HxD is a hex editor). I searched for "2000" (Tab: Integer Number) and changed the hex 7DO (in the editor it's "D0 07", byte order is in little endian) to a value of my choice. Placing the scriptv1.uexp in File structure \Gameface\Content\SanAndreas\GameData\IMG, paking the folder and put into ~mods and it worked. In case you know nothing about Hex Editors, this video might help: CS420 - 4 - How to Hex Edit Games - Game Hacking Course Cheers. Edited April 28 by Akronym Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now