Информация MoonLoader - обсуждение

Veryzon

Новичок
3
0
Yes. Because the CLEO's WriteMemory function fill a memory address when the data size isn't regular (1, 2 and 4). The CLEO's WriteMemory fill the memory using a method that ensures the memory write. The memory.fill ensures the memory read/write permission at each access time such as CLEO does?
 
Последнее редактирование:

Veryzon

Новичок
3
0
In every CLEO's WriteMemory call, the CLEO copys the current virtual protection then overrides the virtual protection to PAGE_EXECUTE_READWRITE, then the memory address is written. After the memory write, the CLEO restores the virtual protection. The CLEO always does it, independently weather the fourth param is set.

Would could be very useful to Moon Loader use a similar method, because it would warrant effective nopping.
 
Последнее редактирование:

FYP

Известный
Автор темы
Администратор
1,758
5,730
@Veryzon this is a false statement, even in your code fragment there is a check that force_vp is set, as well as in the latest CLEO source code:
https://github.com/cleolibrary/CLEO4/blob/master/CLEO4/CCustomOpcodeSystem.cpp#L859
https://github.com/cleolibrary/CLEO4/blob/master/CLEO4/CCodeInjector.h#L102
but actually CLEO unprotects all code memory of gta_sa.exe once during startup, so the virtual_protect argument in that opcode is only for insurance.
Making all code memory writable is a bad thing and MoonLoader tries to keep being more specific for all memory-related operations.
 

badr

Новичок
4
0
i have one problem | moonloader 2.3 not working with all file lua
But moonloader 2.2 works with files lua || how i can fix this
 

FYP

Известный
Автор темы
Администратор
1,758
5,730
@dsdssd1211 attach your moonloader.log and some scripts which don't work with moonloader v.023.
 

dsdssd1211

Известный
10
0
@dsdssd1211 attach your moonloader.log and some scripts which don't work with moonloader v.023.

Код:
[15:02:56.232759] (system)    Session started.
[15:02:56.233277] (debug)    Module handle: 66430000

MoonLoader v.023-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
https://www.blast.hk/moonloader/

[15:02:56.233777] (info)    Working directory: F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader
[15:02:56.233777] (debug)    FP Control: 0009001F
[15:02:56.233777] (system)    Installing pre-game hooks...
[15:02:56.233777] (system)    Hooks installed.
[15:03:02.581009] (debug)    Initializing opcode handler table
[15:03:02.581009] (debug)    package.path = .\?.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?\init.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?\init.lua;.\?.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?\init.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?\init.luac
[15:03:02.581009] (debug)    package.cpath = F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?.dll;
[15:03:02.581509] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\ChatHelper.lua'...
[15:03:02.581509] (debug)    New script: 0A038A9C
[15:03:02.587013] (system)    ChatHelper: Loaded successfully.
[15:03:02.587013] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\Crosshair.lua'...
[15:03:02.587013] (debug)    New script: 0A037F04
[15:03:02.592026] (system)    CrossHairHack: Loaded successfully.
[15:03:02.592026] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\maplimit260.lua'...
[15:03:02.592026] (debug)    New script: 0A0385A4
[15:03:02.596019] (system)    MapLimit-260: Loaded successfully.
[15:03:02.596019] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\mgtweaks.lua'...
[15:03:02.596019] (debug)    New script: 0A039B2C
[15:03:02.612531] (system)    mgtweaks.lua: Loaded successfully.
[15:03:02.612531] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\Player info.lua'...
[15:03:02.612531] (debug)    New script: 0A038DEC
[15:03:02.616534] (system)    Player info: Loaded successfully.
[15:03:14.511662] (system)    Installing post-load hooks...
[15:03:14.511662] (system)    Hooks installed.
[15:03:14.541683] (system)    mgtweaks.lua: Script terminated. (0A039B2C)
[15:03:17.080920] (debug)    Add thread 142B4A5D to SCM-thread queue
[15:06:19.992686] (system)    Unloading...
[15:06:19.992686] (system)    ChatHelper: Script terminated. (0A038A9C)
[15:06:19.992686] (debug)    Remove thread 142B4A5D from SCM-thread queue
[15:06:19.993187] (system)    CrossHairHack: Script terminated. (0A037F04)
[15:06:19.993687] (system)    MapLimit-260: Script terminated. (0A0385A4)
[15:06:19.994187] (system)    Player info: Script terminated. (0A038DEC)
[15:06:20.008784] (system)    Session terminated.

Which dont work:
Lua - ScriptManager (https://blast.hk/threads/15482/)
Lua - Crosshair Hack (https://blast.hk/threads/15501/)
Lua - MapLimit 260 (https://blast.hk/threads/15476/)
Lua - Player info (https://blast.hk/threads/14147/)

Only Chathelper works but toggle doesnt.
 

FYP

Известный
Автор темы
Администратор
1,758
5,730
@dsdssd1211 I see no any reason why scripts MapLimit 260 and Crosshair Hack may not work in newer version. There is no changes between v.022 and v.023 that might break compatibility in these scripts. Please, make sure that you do everything right.
ScriptManager was updated after the v.023 release, so redownload it. Player info and ScriptManager requires SAMPFUNCS, make sure that you have SAMPFUNCS installed and that it's working fine.
And your log is pretty clear, I see no problems in it except that you put mgtweaks.lua in core moonloader's directory instead of moonloader\lib subdirectory. mgtweak.lua is a module, so move it to moonloader\lib.
 

dsdssd1211

Известный
10
0
@FYP

I did everything you said, I moved mgtweak.lua to /lib, I have sampfuncs, I redownloaded, but it still dont work. Could you give me a older version so I can test it? I had a version where there was a text in the right corner, I think Ghost Mode.

Sampfuncs log, it says something about chathelper (I typed /chathelper) but I dont know russian.

Код:
 Website: https://www.blast.hk
BlastHack © 2013 - 2016
[18:30:53] ==========================================
[18:30:53] SAMPFUNCS v5.3.3 release #19 (SA-MP 0.3.7) completely loaded!
[18:30:53] {FFFFFF}[{FF3333}DarkBoard{FFFFFF}] -> Fully Loaded. Developed by DarkP1xel.
[18:31:34] * ChatHelper âûêëþ÷åí!
[18:31:35] * ChatHelper âêëþ÷åí!
[18:31:55] Uninitializing SAMPFUNCS...
[18:31:55] Exited.
 

FYP

Известный
Автор темы
Администратор
1,758
5,730
@dsdssd1211 here is v.021 and v.022 installers, you can test with it, but I highly don't recommend using older versions.
https://blast.hk/moonloader/files/setup-moonloader-021.exe
https://blast.hk/moonloader/files/setup-moonloader-022.exe
I had a version where there was a text in the right corner, I think Ghost Mode.
MoonLoader doesn't draw any texts on screen, it itself doesn't draw anything in game.
Sampfuncs log, it says something about chathelper (I typed /chathelper) but I dont know russian.
It says "ChatHelper is disabled!", "ChatHelper is enabled!".
 

dsdssd1211

Известный
10
0
@dsdssd1211 here is v.021 and v.022 installers, you can test with it, but I highly don't recommend using older versions.
https://blast.hk/moonloader/files/setup-moonloader-021.exe
https://blast.hk/moonloader/files/setup-moonloader-022.exe

MoonLoader doesn't draw any texts on screen, it itself doesn't draw anything in game.

It says "ChatHelper is disabled!", "ChatHelper is enabled!".

Now it works. I first tried version 021 and 022 both didnt work and then I installed 023 again and all lua files are working.
Thank you very much.

Код:
[20:11:47.438816] (system)    Session started.
[20:11:47.439316] (debug)    Module handle: 648C0000

MoonLoader v.023-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
https://www.blast.hk/moonloader/

[20:11:47.439816] (info)    Working directory: F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader
[20:11:47.439816] (debug)    FP Control: 0009001F
[20:11:47.439816] (system)    Installing pre-game hooks...
[20:11:47.439816] (system)    Hooks installed.
[20:11:48.304621] (debug)    Initializing opcode handler table
[20:11:48.304621] (debug)    package.path = .\?.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?\init.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?.lua;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?\init.lua;.\?.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?\init.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?.luac;F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\?\init.luac
[20:11:48.304621] (debug)    package.cpath = F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\lib\?.dll;
[20:11:48.305121] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\Crosshair.lua'...
[20:11:48.305121] (debug)    New script: 09DBB4F4
[20:11:48.307123] (system)    CrossHairHack: Loaded successfully.
[20:11:48.307123] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\maplimit260.lua'...
[20:11:48.307123] (debug)    New script: 09DB9DC4
[20:11:48.308123] (system)    MapLimit-260: Loaded successfully.
[20:11:48.308623] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\ScriptManager.lua'...
[20:11:48.308623] (debug)    New script: 09DBAE54
[20:11:48.313127] (system)    ScriptManager: Loaded successfully.
[20:11:58.867858] (system)    Installing post-load hooks...
[20:11:58.868353] (system)    Hooks installed.
[20:12:01.323357] (debug)    Add thread 11B12FE5 to SCM-thread queue
[20:13:44.254781] (system)    CrossHairHack: Script terminated. (09DBB4F4)
[20:13:44.973825] (system)    Loading script 'F:\Programme (x86)\Rockstar Games 3\GTA San Andreas\moonloader\Crosshair.lua'...
[20:13:44.973825] (debug)    New script: 1429A834
[20:13:44.975294] (system)    CrossHairHack: Loaded successfully.
[20:14:19.554724] (system)    Unloading...
[20:14:19.554724] (system)    MapLimit-260: Script terminated. (09DB9DC4)
[20:14:19.556725] (system)    ScriptManager: Script terminated. (09DBAE54)
[20:14:19.556725] (debug)    Remove thread 11B12FE5 from SCM-thread queue
[20:14:19.557726] (system)    CrossHairHack: Script terminated. (1429A834)
[20:14:19.566660] (system)    Session terminated.