File information

Last updated

Original upload

Created by

eMOElein

Uploaded by

eMOElein

Virus scan

Safe to use

Tags for this mod

About this mod

New missions already included.
Restored Lucas Bertone content.
Random Assassinations.
New custom made missions.

Requirements
Permissions and credits
Changelogs
The goal of this project is to provide Lua functionality to build your own missions and it already contains some ready to play content.
For now this is primarily considered as a BETA release for testing purpose.
I was able to play trough the whole content however there might still be some bugs left.
Try the mod if you want to help me with testing.

I tried to add most of the Lucas Bertone content from OG Mafia.
Most of his missions contain two parts.
- The mission Lucas gives you.
- The part where you have to steal the new vehicle.

Vincenzo offers random assassination missions from the menu.
Currently there is only a handfull but you can add more.
Take a look at mdm\MissionPrototypes\Configurations\MDM_AssassinationMissionConfigurations.lua
You have to add new entries to the assassinations table. It should be pretty self-explanatory how to add more if you are familiar with Lua and Script Hook. Be aware that your changes will be overwritten with a new release of the mod so create backups!

You can access the DebugMissions that I used to test functionality that is not yet included anywhere else.
Be carefull when you try them as they might not properly clean themselves from your current freeride session.

!!! Important !!!
Everything was tested with vanilla DE and without any other script mods.
Expect unintended behaviour if you have other script mods installed.
I want to make this compatible with Freeride Deluxe however this is not a priority yet.

MDE Nomad Script Hook is required!!!
Download it here if you don't have it installed:
https://db.nomad-group.net/page/MDE_ScriptHook:_Instructions

Installation:

- Extract the ScriptHook  folder from the archive into your MafiaDE root folder.

How it works:
- Launch Freeride mode
- Press F5 ingame to open the menu (you can redefine the key in manifest.json).
- Use your numpad arrow keys to navigate through the menu.
- Press Numpad 5 to select an entry.
- Press numpad 0 to switch to the previous menu or to close the menu
- There's a Debug Menu included. You can stop the current mission there or teleport to some predefined locations.

Submitting Bugs:
- Stopping a mission might cause unintended behaviour in some cases.
- Please don't report anything yet that you don't like or that sems to make no sense for you.
- Only report behaviour that is clearly a bug.
- You should make sure that you can reliable reproduce the bug.
- Please provide a video where you reproduce the bug, a detailed description and a screenshot of the complete Lua stacktrace (press F1 ingame to open the console)

For Developers:
- The release is not intended for development yet but if you want to take a look at it I provided XXX_YourMission in the plugin folder.
I tried to explain some parts in the comments however there is no documentation yet.
- I used the Lua Development Tools: https://www.eclipse.org/ldt/
- I am not a good Lua developer by any means. This was my first Lua project and that still reflects in the code. There's still much cleanup and optimization needed. If you see bad practices or you know how to optimize some ugly parts feel free to let me know. The goal should always be to make it easier for developers to create new missions and to be as flexible as possible.
- I am currently looking for ways to spawn static assets by their model names and to play the ingame music. If you know how to do it I would be very thankful if you let me know. This could improve the quality of the content by a lot.
- If you know how to scan a relative directory for lua files and load them at runtime please let me know. That would make loading plugins a lot easier.
- If you know how to serialize a Lua table to a json file and how to deserialize it back into a Lua table without too much effort please let me know. This would help to keep progress that the player achieved during sessions.