That sounds good!
But there is only the inventory_gen_workshop.scr and the collectables_workshop.scr in my files.
I know I can modify the flashlight in inventory.scr but I never found out how to add this file to my map.
Can you tell me what you are trying in your mod? maybe we can find a solution together
Yeah, inside your project there ´s only the inventory_gen_workshop.scr but you need to take the game files into your project.
So find the dying light /dw/data0.pak and extract it somewhere with 7zip then, copy the data/scripts/inventory
Folder into your project folder.
Then find the inventory.scr and edit the first flashlight in the script (Flashlight_Basic)and change the light angle and range.
But the game ´s scripts folder is full of files that the mod
Don ´t need.
I already made the beta mod but i need to remove all files
That don't affect the flashlight to keep the project directory
As clean as possible.
I modified those lines into the Inventory.scr
There's the link for the mod i made:
(this is a beta mod so it needs to be cleaned until there's only needed files in it)
Look inside red dead planet, how techland devs added
The gravity mod during their gamejam because the map creators asked them to apply the mod in custom maps.
They added the whole odephysics folder (odephysics game folder) inside the project/data folder of the custom map
Then they edited the physicsWalkfly.scr or some script.
I mean there ´s only one or two files they modified for the mod but the files are linked with some methods or include
And import functions .
This is why modding custom maps need all the files that are linked to be applied in the map.
Not just one file like in game mods cause game mods
Are installed in the game path where all the game files are stored.
I mean that we can mod custom maps and add any file we want to modify anything but we need to add all related files
That will link our mod to the game or the custom map
Player will read the data0.pak files instead of our mod
And this will not work when you test.
Edited by cr1m3, 19 February 2017 - 02:13 AM.