vob775

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Mafia 3 Modding (Mega Thread) #172867
    vob775
    Participant

    I asked around on a few forums and discord but no one seemed to be interested in M3ScriptHook update.

    Mafia3 script modding is completely dead sadly

    in reply to: Mafia 3 Modding (Mega Thread) #172831
    vob775
    Participant

    Is there no one here anymore? Mafia3 has been updated to Definitive Edition and All ScriptHook mod not work again…

    in reply to: I wish a mafia III Companion and House buy Mod:). #164547
    vob775
    Participant

    First you should post requesting topic to “Mod Requests” category. And second Mafia3 can’t be create a large scale mod just like adding new features or complicated scripting. Unfortunately almost all skilled modders no more cares about this game…

    in reply to: Mafia 3 Modding (Mega Thread) #164530
    vob775
    Participant

    EDIT; New version released. Now we can spawn all vehicles!

    Method is not smart, but this is my limit…

     

     

    Test version uploaded.

    Still hopefully someone figure out to store “00” to “99” numbers by pressing numeric keys…

    2 users thanked author for this post.
    in reply to: Mafia 3 Modding (Mega Thread) #164524
    vob775
    Participant

    Nice! Did you figure out what the parameters were for game.traffic:SpawnCar?

    “game.traffic:SpawnCar” can’t be used after all. I tried to open “game_structure_console.lua” and disabled “DBGVehicleUpgrade” “SetColor” “InstallTuningItems” “SetPainting”.

    Unfortunately all scripts are binarized so I had to open Hex editor and substitute invalid values in so many trials and errors. I’m going to upload test version this weekend.

    1 user thanked author for this post.
    in reply to: Mafia 3 Modding (Mega Thread) #164520
    vob775
    Participant

    Finally I did it that spawning vehicles without awful upgrades and painting.

    Currently the biggest problem is we can’t spawn all vehicles by “bindkey” command because this game has over 70 vehicles.

    Hopefully if someone tell me the way to store two digits number by pressing two numeric keys in lua script.

    4 users thanked author for this post.
    in reply to: Mafia 3 Modding (Mega Thread) #164510
    vob775
    Participant

    game.game:GetActivePlayer():GetOwner():InstallTuningItems(1601, 1501, 1903, 1701, 1801)

    --ItemIds are written in "sds_retail/tables.sds/car_customization.xml"

     

    Found way to install upgrades to current vehicle, but it causes crash immediately just like RepairAndClear.

    It’s soooooooo frustrating and I gave up today.

    in reply to: Mafia 3 Modding (Mega Thread) #164507
    vob775
    Participant

    M3ScriptHook 1.2 does not work for me anymore I decided after a long break to try to run it with the latest version of the game with all DLC (WIN7) I tried to change the compatibility as they write here in the answers but still get the game broke after running M3ScriptHookLauncher . Is there a more recent version of M3ScriptHook than 1.2? by the way the new tool Mafia III ResourceExplorer_1.1 is very good for editing textures. I replaced a couple for the sake of curiosity

    I downloaded and using latest version ScriptHook from here (Win7-64bit)

    https://mega.nz/#F!VscigCQQ!yl3PBpGpZ075v6K5x6PICA

    in reply to: Mafia 3 Modding (Mega Thread) #164497
    vob775
    Participant

    Thanks for info. I found how to execute function here;

    Also I tried to game.traffic:SpawnCar but not works even with any arguments.

    But I found a way to remove unsuitable livery;

    game.game:GetActivePlayer():GetOwner():SetPainting("")

     

    I think some scripts are disabled or protected by devs from user-executing such as RepairAndClear Repair SetCarDamege

    I hope more skilled people will take interest in Mafia3 modding.

    in reply to: Mafia 3 Modding (Mega Thread) #164492
    vob775
    Participant

    I found a way to use cheat/debug commands in post #163017.

    For example if you want use “carpls” command, make lua script like this.

     

    SpawnVeh =[[

    package.loaded.common.base.game_structure_console.carpls()]]

    unbindKey("o");

    bindKey("o", SpawnVeh);

     

    You can spawn random vehicles by press O key when you’re on-foot.

    If you want to spawn spicific vehicle,

    change carpls() to carpls("smith_mainline_p")

     

    But spawning vehicle is always full customized and painted with unsuitable livery.

    What a terrible scripting game… 🙁

    Anyway anybody knows how to remove upgrade items from current vehicle?

    1 user thanked author for this post.
    in reply to: Mafia 3 Modding (Mega Thread) #164445
    vob775
    Participant

    EDIT: OK I solved by myself. I’ll upload weather change script mod later.

     

    Anyone tried to change weather in scripthook? I tried it “game.gfx:SetWeatherSet” like this;

    game.gfx:SetWeatherSet("_default_game")

    but it occurs error below;

    Error loading Lua code into buffer. Error -100

    Missing adaptor arguments.

    stack traceback:

    [C]: in function 'SetWeatherSet'

    test:2: in function '(main chunk)'

    I can’t identify what is “missing adaptor arguments”.

    I hope that someone help me thanks.

Viewing 11 posts - 1 through 11 (of 11 total)