Jump to content
Sign in to follow this  
FreaksV2.0

how to change loot found in road side trash?

Recommended Posts

I'm looking to find a way to change what loot you get "after" you brake down dynamic debris (road side trash). I have a custom loot table in stalled, but the only dynamic debris cover in that is for dayz where loot spawn around the trash. So it don't work for Epoch, need to change or add to the random loot table for dynamic debris.

 

I'm running Epoch 1.0.4.2 please don't question my choices, and leave me hanging like the other guy did. Any help will be grateful.

Share this post


Link to post
Share on other sites

Sweet thanks, I was just thinking about adding other class names to this list. Like this _refundpart = ["PartEngine","PartGeneric","PartFueltank","PartWheel","PartGlass","ItemJerrycan","FoodCanBakedBeans","FoodCanSardines","FoodCanFrankBeans","FoodCanPasta",]

 

just to give it a less of a chance of finding parts, do you think it may work?

Share this post


Link to post
Share on other sites

please don't question my choices, and leave me hanging like the other guy did. Any help will be grateful.

 

I didn't "leave you hanging" as you put it. I have never set up a server using 1.0.4.2 and as such, thought it better to butt out and let someone who ACTUALLY knew answer you rather than give you bogus information. So, you're welcome :)

Share this post


Link to post
Share on other sites

No i'm looking into Zed killer how to make a custom compiles files.

 

never done a custom compiles file before.

 

So if I add a file called fixes, then copy the remove.sqf file to it and edit it, then add this line to my init file

 

call compile preprocessFileLineNumbers "fixes\remove.sqf"; right below the call compile preprocessFileLineNumbers "server_traders.sqf"; line

 

nope this didn't work

Share this post


Link to post
Share on other sites

I been reading that, still only car parts. Sorry for getting your nick wrong BetterDeadThanZed.

 

this is what I did so far made a file called Fixes with 2 files in it compiles.sqf and remove.sqf.

then I edited the remove.sqf file by adding more stuff to the list. in the compiles.sqf I added this line     player_removeObject = compile preprocessFileLineNumbers "fixes\remove.sqf";

Then I edited the init file with this line    call compile preprocessFileLineNumbers "fixes\compiles.sqf";  //Compile custom compiles.

 

No the "custom loot table" for road side trash is for reg Dayz where you have loot spawn "around" the trash, or were you refering to loot tables in the server files.

Share this post


Link to post
Share on other sites

in the compiles.sqf I added this line     player_removeObject = compile preprocessFileLineNumbers "fixes\remove.sqf";

 

that part is wrong, there should be already a path to the dayzcode remove. sqf

that one must be altered, or better: delete the on refering to the dayzcode, as you put your line in it already.

Share this post


Link to post
Share on other sites

I also found this in the variables.sqf file

 

//Hunting Variables
dayZ_partClasses = [
 "PartFueltank",
 "PartWheel",
 //"PartGeneric", //No need to add, it is default for everything
 "PartEngine"

 

do you think this might have something to do with it, cause there only one place I know that only spawn car parts for loot, its road side trash.

 

Seelenapparat, I'm lost on your last post delet it in the fixes file or dayz code file and which part.

Share this post


Link to post
Share on other sites

open your compiles file (dayz_code\init\compiles.sqf)

look for that line:

player_removeObject =            compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\remove.sqf";

 

set it to your new compiles path in your mission file.

player_removeObject =            compile preprocessFileLineNumbers "fixes\remove.sqf";

 

also change the path of the compiles.sqf in the init.sqf file:

call compile preprocessFileLineNumbers "fixes\system\compiles.sqf";

 

copy both files into the fixes folder.

 

done.

Share this post


Link to post
Share on other sites

Ok this is what I did so far,

 

1. in the mpmission file 11.cherno I made a folder called fixes

 

2. I copy compiles.sqf & remove.sqf files to fixes folder.

 

3. I edited compiles.sqf line 34 to player_removeObject =   compile preprocessFileLineNumbers "fixes\remove.sqf";

 

4. I edited remove.sqf line 189 to _refundpart = ["PartEngine","PartGeneric","PartFueltank","PartWheel","PartGlass","ItemJerrycan","ItemDocument","ItemBriefcaseEmpty","ItemWaterbottleUnfilled","ItemHotwireKit","ItemComboLock","ItemWire","PartVRotor","ItemGPS","ItemSledge"] call BIS_fnc_selectRandom;

 

5. I edited my init.sqf file line 69 to call compile preprocessFileLineNumbers "fixes\compiles.sqf";    //Compile regular functions

Tryed "fixes\system\compiles.sqf"; it gave me errors till I took \system out of the line.

 

now I'm still only getting car parts, I'm wondering if there is another file, that needs to be edited.

Share this post


Link to post
Share on other sites

ok, found another occurence of the remove file:

 

in fn_selfactions.sqf:

 

    if(_player_deleteBuild) then {
        if (s_player_deleteBuild < 0) then {
            s_player_deleteBuild = player addAction [format[localize "str_actions_delete",_text], "fixes\remove.sqf",_cursorTarget, 1, true, true, "", ""];
        };
    } else {
        player removeAction s_player_deleteBuild;
        s_player_deleteBuild = -1;
    };

 

you have to change the path to the fn_selfactions.sqf accordingly. :)

Share this post


Link to post
Share on other sites

I'll have to bring up my test server for this one, I didn't know how many files that had to be edited. I'll redo each steps on my test server with backups. Incase something goes wrong. I can't keep my players down to much longer.

 

the good thing is most of my players they work on the oil rigs, so I got about a week before they return home.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By Saije
      I am wanting to edit what spawns in the mission crates for DZMS and WAI, Im just wondering if anyone has some already modified configs i could look at for ideas.
    • By chi
      So all night i have been looking for and old tutorial that i cant find. It showed all the options for cfgbuildingloot and explained them all and what they did. i.e. 
      I was looking for an explanation of what all of the quotations mean.
      Like what does it mean when I double up the quotations like  {"backpacks","backpacks",0.2},  or the difference between {"ItemMatchbox_DZE","generic",0.3}, and {"ItemMatchbox_DZE","weapon",0.3},, and what does object mean in  {"WeaponHolder_MeleeCrowbar","object",0.3},, and what other options do i have to put in the quotations and what do they mean?
      A detailed explanation so I can customize this to the max would be awesome!!
      Thanks in advance!!
    • By CJR
      Does anyone have a tutorial for adding custom gun spawns to the boxes that spawn in the WAI 2.1.4 Hero and Bandit missions?
       
      I've found where it calls the boxes, in config.sqf at line 148:
       
      "
      // Dynamic box array crates_large = ["USVehicleBox","RUVehicleBox","TKVehicleBox_EP1"]; "   But I cannot seem to find where the boxes are so that I may modify them with my own weapons. I currently have a working Overpoch trader in and can buy all the guns--like the Cheytec, M110, ACRs, etc--but I cannot seem to get them to spawn in my missions.    I have already conversed with Vert Hosting Customer Support about this, and they too, do not seem to know how to do it with WAI version 2.1.4. I've also done a quick search around the forums, but to no avail.   Anything helps!   Thanks a ton, CJR 
    • By HellWalker
      Hey guys!
      I use a custom loot table and i was able to change the % of spawn of some items i wanted. I also could add some extra items to the loot table.
      But when it comes to building objects, they are not spawning, even with 100% of chance. So the problem might be with my code (i'm not advanced in scripts).
       
      This is the code i'm using for the industrial spawn (only the code i added) :
       
      lootType[] = { ..... {"CinderBlocks","magazine",0.5}, {"MortarBucket","magazine",0.2}, {"cinder_garage_kit","",0.02}, {"cinder_door_kit","",0.03}, {"cinder_wall_kit","",0.05}, {"metal_floor_kit","",0.01}, {"light_pole_kit","",0.5}, {"ItemFireBarrel_kit","",0.1} So, is there something wrong with the blank " " ?
      Do i need to insert a 'magazine' code for those items? Because some of the other itmes has nothing in there, some has magazine, object, single, etc...
       
      If anyone can help me.. will be great! =D
       
      Thanks!
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...