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

D

deleted-user-127095

Гость
3jVmefYAWmU.jpg


Помогите :)
Директиву обновил, майкрософт тоже..
удаляю moonloader всё классно, ставлю - выбивает, пробовал полностью снести и ставил - также всё, скриптов вообще нету, пробовал с ними и без - одно и тоже

log:

[13:02:54.342282] (system) Session started.
[13:02:54.343282] (debug) Module handle: 5EBF0000

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

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

[13:02:54.343282] (info) Working directory: E:\Чистая GTA\moonloader
[13:02:54.343282] (debug) FP Control: 0009001F
[13:02:54.343282] (debug) Game: GTA SA 1.0.0.0 US
[13:02:54.343282] (system) Installing pre-game hooks...
[13:02:54.347282] (system) Hooks installed.
[13:02:55.607354] (system) Unloading...
[13:02:58.077495] (system) Unloading...
[13:02:58.082496] (system) Session terminated.


Исправление ошибок в GTA:SA (fix_ver_1.2) для GTA San Andreas(https://libertycity.ru/files/gta-san-andreas/111927-ispravlenija-oshibok-v-gta-sa.html)
 

Enot_World

Известный
28
0
(error) Roulette: C:\SAMP\GTA San Andreas\moonloader\roulette.luac:0: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
что делать?
 
D

deleted-user-164854

Гость
Возможно я обнаружил баг Муна(а может и не Муна :D). Не так давно мне понадобилось отлавливать номер выбранного пункта в диалоге 5-го типа. Какой бы пункт не был выбран - итог "-1"

Вот код, который я написал для теста:

Lua:
function main()
    while not isSampAvailable() do
        wait(1000)
    end
   
    sampRegisterChatCommand("test.1", testim)
    sampRegisterChatCommand("test.2", testimmm)
    sampRegisterChatCommand("test.3", testimmmmm)
   
    while true do wait(0)
        if sampIsDialogActive() and isKeyJustPressed(88) then
            print(sampGetCurrentDialogListItem())
            wait(1000)
        end
    end
    wait(-1)
end

function testim() 
local test_dialog = [[
ID    Ник    Какой-то ещё параметр   
12    Nick_Name    -1
24    Nuck_Name    -1]]
sampShowDialog(1234, "Диалог:", test_dialog, "Да", "Конечно", 2)
end

function testimmm() 
local test_dialog = [[
ID    Ник    Какой-то ещё параметр   
12    Nick_Name    -1
24    Nuck_Name    -1]]
sampShowDialog(1235, "Диалог:", test_dialog, "Да", "Конечно", 4)
end

function testimmmmm() 
local test_dialog = [[
ID    Ник    Какой-то ещё параметр   
12    Nick_Name    -1
24    Nuck_Name    -1]]
sampShowDialog(1236, "Диалог:", test_dialog, "Да", "Конечно", 5)
end

Итог по каждому с диалогов:
Код:
[19:28:39.917023] (script)    TEST.lua: 1
[19:28:42.697183] (script)    TEST.lua: -1
[19:28:44.757300] (script)    TEST.lua: -1
 

imring

Ride the Lightning
Всефорумный модератор
2,365
2,552
@JackR замени на это
Lua:
function sampGetCurrentDialogListItem()
    local list = getStructElement(sampGetDialogInfoPtr(), 0x20, 4)
    return getStructElement(list, 0x143 --[[m_nSelected]], 4)
end

function sampSetCurrentDialogListItem(number)
    number = tonumber(number)
    local list = getStructElement(sampGetDialogInfoPtr(), 0x20, 4)
    return setStructElement(list, 0x143 --[[m_nSelected]], 4, number or 0)
end
 

Baron223

Известный
148
24
Темнеет ЖТА сан андреас при установке в сборке стоит .modloader crashes может конфликтовать с этим?
 
D

deleted-user-164854

Гость
@JackR замени на это
Lua:
function sampGetCurrentDialogListItem()
    local list = getStructElement(sampGetDialogInfoPtr(), 0x20, 4)
    return getStructElement(list, 0x143 --[[m_nSelected]], 4)
end

function sampSetCurrentDialogListItem(number)
    number = tonumber(number)
    local list = getStructElement(sampGetDialogInfoPtr(), 0x20, 4)
    return setStructElement(list, 0x143 --[[m_nSelected]], 4, number or 0)
end
Спасибо огромное. Может ещё добавишь это в полезные сниппеты и функции? Просто, думаю, это будет многим полезно.

Update. Решено в SF 5.4 )
 
Последнее редактирование модератором:

loxi

Новичок
6
0
Ребзя хелпаните почему не работает?
[17:14:33.294949] (system) Session started.
[17:14:33.294949] (debug) Module handle: 649C0000

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

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

[17:14:33.294949] (info) Working directory: C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader
[17:14:33.294949] (debug) FP Control: 800C001F
[17:14:33.294949] (debug) Game: GTA SA 1.0.0.0 US
[17:14:33.294949] (system) Installing pre-game hooks...
[17:14:33.294949] (system) Hooks installed.
[17:14:34.276980] (debug) Initializing opcode handler table
[17:14:34.276980] (debug) package.path = C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\lib\?.lua;C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\lib\?\init.lua;C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\?.lua;C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\?\init.lua;.\?.lua;C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\lib\?.luac;C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\lib\?\init.luac;C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\?.luac;C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\?\init.luac;.\?.luac
[17:14:34.276980] (debug) package.cpath = C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\lib\?.dll;
[17:14:34.283976] (system) Loading script 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\AutoReboot.lua'...
[17:14:34.283976] (debug) New script: 0F07A768
[17:14:34.287974] (system) ML-AutoReboot: Loaded successfully.
[17:14:34.287974] (system) Loading script 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\check-moonloader-updates.lua'...
[17:14:34.287974] (debug) New script: 0F07C108
[17:14:34.293971] (system) Check MoonLoader Updates: Loaded successfully.
[17:14:34.294970] (system) Loading script 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\reload_all.lua'...
[17:14:34.294970] (debug) New script: 0F07D238
[17:14:34.297968] (system) ML-ReloadAll: Loaded successfully.
[17:14:34.298967] (system) Loading script 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\SF Integration.lua'...
[17:14:34.298967] (debug) New script: 0F07DDB0
[17:14:34.305963] (system) SF Integration: Loaded successfully.
[17:14:34.305963] (system) Loading script 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto San Andreas\moonloader\TruckHUD.lua'...
[17:14:34.306962] (debug) New script: 0F07ECD0
[17:14:34.333945] (system) TruckHUD: Loaded successfully.
[17:14:47.497273] (system) Installing post-load hooks...
[17:14:47.498272] (system) Hooks installed.
[17:15:06.859610] (system) TruckHUD: Script terminated. (0F07ECD0)
[17:16:00.537773] (system) Unloading...
[17:16:00.537773] (system) ML-AutoReboot: Script terminated. (0F07A768)
[17:16:00.538765] (system) Check MoonLoader Updates: Script terminated. (0F07C108)
[17:16:00.538765] (system) ML-ReloadAll: Script terminated. (0F07D238)
[17:16:00.539764] (system) SF Integration: Script terminated. (0F07DDB0)
[17:16:00.553757] (system) Session terminated.
 

FYP

Известный
Автор темы
Администратор
1,764
5,924
@loxi так работает же. что именно не так?
 
D

deleted-user-164854

Гость
скрипт truckhud не работает
Попробуй поставить игру пиратку(сейчас бы на стим версию что то ставить, лол) с gta_sa.exe 1.0 US и не в "C:\Program Files (x86)". Желательно даже на другой от системы диск. Проблема в скрипте, а именно скорее всего он не может сохранить конфиг из-за расположения папки с игрой.
 

FYP

Известный
Автор темы
Администратор
1,764
5,924
  • Нравится
Реакции: deleted-user-164854

BL1K

Известный
5
0
на другой версии мун не запустился бы вообще
Я так понял проблема в самой Windows, она старая наверное и не поддерживает, XP как никак)

на другой версии мун не запустился бы вообще
Lua:
[18:16:42.031250] (system)    Session started.
[18:16:42.031250] (debug)    Module handle: 02A50000

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

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

[18:16:42.031250] (info)    Working directory: D:\GTA San Andreas MultiPlayer\moonloader
[18:16:42.031250] (debug)    FP Control: 0009001F
[18:16:42.031250] (debug)    Game: GTA SA 1.0.0.0 US
[18:16:42.031250] (system)    Installing pre-game hooks...
[18:16:42.062500] (system)    Hooks installed.
[18:16:42.843750] (debug)    Initializing opcode handler table
[18:16:42.843750] (debug)    package.path = D:\GTA San Andreas MultiPlayer\moonloader\lib\?.lua;D:\GTA San Andreas MultiPlayer\moonloader\lib\?\init.lua;D:\GTA San Andreas MultiPlayer\moonloader\?.lua;D:\GTA San Andreas MultiPlayer\moonloader\?\init.lua;.\?.lua;D:\GTA San Andreas MultiPlayer\moonloader\lib\?.luac;D:\GTA San Andreas MultiPlayer\moonloader\lib\?\init.luac;D:\GTA San Andreas MultiPlayer\moonloader\?.luac;D:\GTA San Andreas MultiPlayer\moonloader\?\init.luac;.\?.luac
[18:16:42.843750] (debug)    package.cpath = D:\GTA San Andreas MultiPlayer\moonloader\lib\?.dll;
[18:16:42.843750] (system)    Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\License.luac'...
[18:16:42.843750] (debug)    New script: 015E8CCC
[18:16:43.046875] (system)    License: Loaded successfully.
[18:16:43.046875] (system)    Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\ScriptManager.lua'...
[18:16:43.046875] (debug)    New script: 0167CAF4
[18:16:43.062500] (system)    ScriptManager: Loaded successfully.
[18:16:43.062500] (system)    Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\SF_Integration.lua'...
[18:16:43.062500] (debug)    New script: 01681924
[18:16:43.062500] (system)    SF Integration: Loaded successfully.
[18:16:43.062500] (system)    Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\t1_bb.luac'...
[18:16:43.062500] (debug)    New script: 01682964
[18:16:43.125000] (error)    T1_BuilderBot: error loading module 'lanes.core' from file 'D:\GTA San Andreas MultiPlayer\moonloader\lib\lanes\core.dll':
    Не найдена указанная процедура.


stack traceback:
    [C]: in ?
    [C]: in function 'require'
    D:\GTA San Andreas MultiPlayer\moonloader\lib\lanes.lua:38: in main chunk
    [C]: in function 'require'
    D:\GTA San Andreas MultiPlayer\moonloader\t1_bb.luac: in function <D:\GTA San Andreas MultiPlayer\moonloader\t1_bb.luac:0>
[18:16:43.125000] (error)    T1_BuilderBot: Script died due to an error. (01682964)
[18:16:46.765625] (system)    Installing post-load hooks...
[18:16:46.765625] (system)    Hooks installed.
Lua:
[18:16:42] SAMPFUNCS v5.3.3 release #19 (SA-MP 0.3.7) loaded. Base address: 0x031C0000.
[18:16:42] Compiled: Aug  8 2016 13:19:58
[18:16:42] Initializing opcodes...
[18:16:42] Opcodes initialized successfully. Total opcodes count: 382.
[18:16:43] samp.dll base addres: 0x01DF0000
[18:16:43] Installing hooks:
[18:16:43] Hook command process input installed.
[18:16:43] Hook on dialog response installed.
[18:16:43] Hook init netgame installed.
[18:16:43] Hook QuitGameHook installed.
[18:16:43] All hooks installed.
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Session started.
[18:16:46] {C0C0C0}[ML] {C0C0C0}
MoonLoader v.026.4-beta loaded.
[18:16:46] {C0C0C0}[ML] {C0C0C0}Developers: FYP, hnnssy, EvgeN 1137

[18:16:46] {C0C0C0}[ML] {C0C0C0}Copyright (c) 2016, BlastHack Team
[18:16:46] {C0C0C0}[ML] {C0C0C0}https://www.blast.hk/moonloader/

[18:16:46] {C0C0C0}[ML] {A9EFF5}(info) {C0C0C0}Working directory: D:\GTA San Andreas MultiPlayer\moonloader
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Installing pre-game hooks...
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Hooks installed.
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\License.luac'...
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {E0E0E0}License: {C0C0C0}Loaded successfully.
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\ScriptManager.lua'...
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {E0E0E0}ScriptManager: {C0C0C0}Loaded successfully.
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\SF_Integration.lua'...
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {E0E0E0}SF Integration: {C0C0C0}Loaded successfully.
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Loading script 'D:\GTA San Andreas MultiPlayer\moonloader\t1_bb.luac'...
[18:16:46] {C0C0C0}[ML] {FF7070}(error) {E0E0E0}T1_BuilderBot: {C0C0C0}error loading module 'lanes.core' from file 'D:\GTA San Andreas MultiPlayer\moonloader\lib\lanes\core.dll':
    Не найдена указанная процедура.


stack traceback:
    [C]: in ?
    [C]: in function 'require'
    D:\GTA San Andreas MultiPlayer\moonloader\lib\lanes.lua:38: in main chunk
    [C]: in function 'require'
    D:\GTA San Andreas MultiPlayer\moonloader\t1_bb.luac: in function <D:\GTA San Andreas MultiPlayer\moonloader\t1_bb.luac:0>
[18:16:46] {C0C0C0}[ML] {FF7070}(error) {E0E0E0}T1_BuilderBot: {C0C0C0}Script died due to an error. (01682964)
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Installing post-load hooks...
[18:16:46] {C0C0C0}[ML] {FA9746}(system) {C0C0C0}Hooks installed.
[18:16:47] Direct3DDevice9 hook installed.
[18:16:50] Hook RakPeer::HandleRPCPacket installed.
[18:16:50] Initializing SAMP data...
[18:16:50] Info initialized.
[18:16:50] Pools initialized.
[18:16:50] Player pool initialized.
[18:16:50] Vehicle pool initialized.
[18:16:50] Chat initialized.
[18:16:50] Input initialized.
[18:16:50] Death list initialized.
[18:16:50] Dialog initialized.
[18:16:50] Misc data initialized.
[18:16:50] Scoreboard initialized.
[18:16:50] RakNet initialized.
[18:16:50] ==========================================
[18:16:50]  SAMPFUNCS v5.3.3 release #19 (SA-MP 0.3.7)
  Compiled: Aug  8 2016 13:18:13

  Author: FYP
  Active developers: FYP, SR_Team, EXPORT

  Past developers and special thanks:
   MogAika, urShadow, legend2360, NarutoUA, Dark_Knight

Website: https://www.blast.hk
BlastHack © 2013 - 2016
[18:16:50] ==========================================
[18:16:50] SAMPFUNCS v5.3.3 release #19 (SA-MP 0.3.7) completely loaded!
[18:16:54] New version "v5.4.0-final for SA-MP 0.3.7-R1" available at https://blast.hk/sampfuncs/