Mafia 3 Modding (Mega Thread)
- October 20, 2016 at 4:41 pm #163187GreenhouseParticipant
Anyone know how to use “AddToCollection”?
I’ve been trying to do an script that adds all the magazines. But I can’t.
I already have all the ID’s of the magazines, but the script I made doesn’t add any of them.October 21, 2016 at 10:14 am #163188xaker233Participant
Can somebody make the mod which unlocks stormer .233?I’d be very grateful,I’ve been looking’ for weeks but end up with nothingOctober 21, 2016 at 10:36 am #163190
Is there any way to make a endless loop for code without crashing atm?
There is this note on M3ScriptHook mod page:
“Please be careful with pressing keys, spaming keys / executing the same things too often in a short time period can cause the game to crash!”
I made a script that executes code in a loop. To limit the rate I use setTimeout to trigger the script less often like this:
CODE TO EXECUTE … ;
Without limitation the game crashes almost instantly.
But even while waiting 1 – 5 seconds before each code exec the game crashes after a few minutes.
ScriptHook.log doesn’t tell anything about it.
Last lines of ScriptHook.log:
Trying to execute: CODE TO EXECUTE … ;
PluginSystem::StopPluginsOctober 21, 2016 at 2:11 pm #163191
Attachments:You must be logged in to view attached files.October 21, 2016 at 2:18 pm #163193xaker233Participant
guys,could anyone make a script for stormer .233?October 22, 2016 at 9:56 pm #163194
any progress on decrypting the .dat files?October 23, 2016 at 9:49 pm #163226DeewarzParticipant
Can you reverse the new libraries that you found, as in this post: #post-162814 please?
ThanksOctober 24, 2016 at 2:03 pm #163228Sparx710Participant
is there a way to get the coordinates of the target location?October 24, 2016 at 6:54 pm #163229DeewarzParticipant
I just launched a brand new wiki about Mafia III Scripting => http://mafia3scripting.wikia.com
I’m working on adding content! 🙂
Feel free to contribute, but try to be as clear as possible and obviously always test your code!
I’ve made it on Wikia by simplicity… I know… 😉October 24, 2016 at 7:47 pm #163230October 24, 2016 at 9:29 pm #163231
Will this help us with things like AI (increasing accuacy)/Reducing health for lincoln/unlocking weapons (i.e. stromer 223) or any other cool things?October 26, 2016 at 3:42 pm #163244
Any way to make scripthook launch on game load similar to gta v scripthook. Any updates on decrypting the .DAT files that extract from SDS files? Ive been trying some of the functions. I may just not know much about the lua format. I tried repair car and forcelod and change player movement speed mult and it crashes. It’d be cool if there was a tool or template that you pick the correct game library section and you just fill in the blank essentially.November 2, 2016 at 3:46 am #163328
Mafia III Scripting Wiki will help modders to know how to use scripting functions. Atm some functions are known but not how many and what kind of parameters they need. Scripters need to find out by trial and error how to use them. In the wiki people can bring together what they found out. The wiki already helped me for making my new script mod. You can get ar stromer 223 using it:
I also finished first version of my hardcore difficulty mod but it is to unstable to release. Mafia3ScriptHook needs to be updated first.
I guess it would be possible to start scripthook and mafia3 together but someone needs to code it. Someone could make a new application that starts scripthook and mafia3 together or someone adds this feature to scripthook on a branch on https://github.com/MartinJK/Mafia3ScriptHook .
1 user thanked author for this post.November 2, 2016 at 6:15 am #163329November 2, 2016 at 2:16 pm #163330
OMG THANK YOU!!!! YOU ARE AN ABSOLUTE F****** GOD SEND!!!!!!!!!!!! THANK YOU THANK YOU THANK YOU!!!!!!!!!!!!!! :DDDDD
Another quick question, would it be possible to mod in the pre day 1 ps4 patch splinter cell blacklist styled weapon wheel? It’s superior to the vanilla weapon wheel in every way
- You must be logged in to reply to this topic.