Mafia 3 Modding (Mega Thread)
November 10, 2016 at 3:18 pm #163347
Hey slad! any update on the difficulty mod?!? I’ve been checking mafiamods every day since you made this post watching out for it, I can’t wait!November 13, 2016 at 11:06 am #163361SladernimoParticipantNovember 13, 2016 at 2:16 pm #163362
You. are. the. fucking. man.
Thank you soooooooooooooooooooooooooo much!November 16, 2016 at 8:14 am #163396
Hello sir, nice to meet you, you are a great man for help.
I am really like your All Weapons Mod, but unfortunately, it can not be used for new version.
And I don’t know how to fix it, even I want to know how.
If it does not bother, please update it, Offer the highest gratitude.
fireking117November 17, 2016 at 5:27 pm #163407SladernimoParticipant
If you want to start mafia3 + ScriptHook together (similar to gta5) you can use my new tool: https://mafiamods.com/mods/mafia3-extended-configurator/
I had no trouble using the mod so far. Will test it in the next days with new game version.
Great update on the scripting wiki! How did you find out functions of the new classes (game.police …) ?November 17, 2016 at 7:54 pm #163408DeewarzParticipant
@dirtydanisreal If you want to start mafia3 + ScriptHook together (similar to gta5) you can use my new tool: https://mafiamods.com/mods/mafia3-extended-configurator/ @fireking117 I had no trouble using the mod so far. Will test it in the next days with new game version. @deewarz Great update on the scripting wiki! How did you find out functions of the new classes (game.police …) ?
@Sladernimo Damn thanks you for your tool!
Here’s how I found these new features: ==> Zip in attachment
- Create a new folder called libs in your scripts directory
- Create a file called inspect.lua
- Copy/paste this script : https://raw.githubusercontent.com/kikito/inspect.lua/master/inspect.lua
- In your scripts directoy, create a new lua file and add this :
local inspect = require 'scripts.lib.inspect'
if tostring(type(object)) == "userdata" then
object = inspect(getmetatable(object))
object = inspect(object)
printToLog("object.log", os.date("-- %d/%m/%Y - %X --"))
printObject(game) -- will log all Game libraries
Now, use printObject() for any object (game, ai, game.game, etc.)
I search in the compiled scripts for some keywords to test.
enums seems very interesting!
Attachments:You must be logged in to view attached files.November 18, 2016 at 10:14 pm #163410
Thanks for check, and please keep on.
I am not sure what I do is right or not.
I always crash when I want switch in the game.
And I just try and try, but still don’t know what wrong is it.
Or, have other request for switch ?November 21, 2016 at 3:28 pm #163411
first, delete your scripthook log file, next take all your scripts you have downloaded and drag and drop them into the recycle bin. Now drag and drop them back into your scripts folder and it should work, at least it does for meNovember 22, 2016 at 3:11 pm #163450
It still doesn’t work.
I don’t know what I do wrong with me.
I delete script hook log file first, drag dev.lua and mbs_AllWeapons.lua out and into the scripts folder.
But crash when I press K or L to switch weapon.November 25, 2016 at 6:30 am #163519
I already reload my game.
Finally do not crash again, but maybe worst, scripthooklauncher.exe did not work.
I check the eventvwr.exe and ScriptHook.log first.
And I found problem is from the mafia3.exe, ScriptHook.log tell me
“LuaFunctions Game is not ready, script engine not initialized, retry”
Maybe it can not find the game or got some lost ? I don’t know, please help.November 25, 2016 at 10:19 pm #163525monkeybrainParticipant
Yep, same thing here. mafia scripthook doesn’t work for me on the latest version of the game.November 26, 2016 at 2:05 pm #163539
Thanks a lot, guys.
I got solved, I reload and check the game via Steam function.
Although I do not know what it doing, maybe steam let game file process and pass.
Anyway, I do not have so much crash with ScriptHook and mod.
But sometimes, still happen.
And you just need to delete ScriptHook.log.
Remember, press F1 when you start ScriptHook after the game.
And do not press the keyboard too fast.November 28, 2016 at 11:08 am #163543monkeybrainParticipant
I tried using the minimal hud mod. says press I to toggle hud. but when I press I, my vehicle starts flying super fast, and I crash and die 😀
tried again, with togglehud mod, same thing. if I press letter I in my keyboard, car starts flying super fast and I die. but no mod works, hud is still there, when I press f1 nothing happens.
can someone please help, here is my log file.
EDIT: was able to get minmal hud working. i opened the lua file with word, and change keybind references from “1” to “p”. and now when I press P, the mod works. when it was set to “1”, pressing 1 in game would simply pull out my 1st weapon.
Attachments:You must be logged in to view attached files.December 20, 2016 at 9:28 pm #163689cryxParticipant
Thanks!December 27, 2016 at 1:39 pm #163741PhenomIIFXParticipant
The script hook does not seem to work with latest version (1.04) of the game. After I launch the script hook the game just crashes.
- You must be logged in to reply to this topic.