Strip vehicles for parts

Will this also say REMOVE the actual wheel when you take it off rather than make it "Red"?

Yes. Before I updated all my files, the wheel would stay on .. So either, my updating the files has fixed that problem, or it will probably come back at another time (maybe when my server is lagged), I really haven't tested it out long enough to be sure yet. But so far, all my users are saying that A) they can't dupe parts and B) parts definitely get removed. You know how these things can change over night though, so I'll keep you updated if anything comes up to the contrary!
 
I'm pretty sure I got this mostly working. My problem is I only see the options to remove parts for a split second any thoughts?
 
Got it working now, this is what I did. Thank you both.

Manatee hunter, follow this tutorial and it will work perfectly:

1. Using the PBO tool of your choice (cPBO, PBOView, PBOManager etc.) extract the "dayz_code.pbo" from the "@dayz" folder.
2. Copy the "compiles.sqf" from "dayz_code\init" into your mission.pbo.
3. In the init.sqf in the mission.pbo edit:

Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";

to

Code:
call compile preprocessFileLineNumbers "compiles.sqf";

You can use the compiles.sqf to override majority of the files in "dayz_code\compile" folder. We are going to use it to override the function "fn_selfAction.sqf" so:

4. Copy the "fn_selfAction.sqf" in "dayz_code\compile" to your mission.pbo

5. Open the compiles.sqf and find:

Code:
    fnc_usec_selfActions =        compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf";        //Checks which actions for self

(Should be on line 17)

and edit it so it looks like this

Code:
    fnc_usec_selfActions =        compile preprocessFileLineNumbers "fn_selfActions.sqf";        //Checks which actions for self

Now we can edit the fn_selfActions.sqf and the changes will work in our server!

6. Now open the "fn_SelfActions" in the mission.pbo

And just paste the link in the next quote into it.

If anyone is interested, since adding silvershots remove vehicle parts action to the latest 1.7.6.1 self actions script my users so far have said they can't dupe items when removing stuff.. Maybe this will work for you as well ?

http://pastebin.com/Sw2neLEJ

I've also used the latest compiles and variables files. FYI!
 
When I remove a tire, it actually is removed off the vehicle... but I'm still able to remove say a red engine, put it back on and make it green... That's not so good.
 
For example dayz_server folder or packed dayz_server.pbo with your mods.

I'm sorry SteveJ, but you are asking for the wrong files and I don't want to share my custom pbo. It's not personal, it's just there's a lot of personal coding projects in there that I want to keep to myself :p

If you're asking me for server.pbo , then you've not been reading the instructions properly. Go over them again and see if you can figure it out. Alternatively, send me your mission pbo and I'll set it up for you and send it back. Can't promise it'll be done today, but I'll do my best.
 
When I remove a tire, it actually is removed off the vehicle... but I'm still able to remove say a red engine, put it back on and make it green... That's not so good.

That's strange because I've spent the last hour (maybe more) trying to replicate that scenario. I can only remove Blue items. Any other colour is Repair only! ? I've asked two of my players to try and they can't do it either..
 
Urban any idea how to get this working with Taviana 2.0?

It shouldn't be much different, just adapt the instructions to your map version. I haven't used Taviana, so wouldn't want to speculate. This is why I stick with Chernarus if I'm honest, not much goes wrong with this map for me. I sometimes have to tweak the scripts for bugs , but apart from that Chernarus has served me well. The only issues I'm having right now are with dayz.st and a buggy database , losing vehicles, loot , players respawning after reboots etc..

Good luck getting it working, I'll help the best I can by looking at your code etc.. But you'll need to be patient with the replies as I'm doing a lot of other stuff right now as well :)
 
I am testing the new script from http://pastebin.com/Sw2neLEJ since 2 Days on my Server..today removed 5 Engine Parts from 1 Car.... seems that it still isnt working...
my scripting skills arent that good to modify the code :(
hope that someone can fix it soon

greez

Are you able to do a screencast and upload it for me, so i can see what you mean. Because I've tried this on several vehicles and even asked my other admins to try and neither of us can duplicate what you and M.Hunter are able to do. I agree, hope someone finds a fix for you soon. Meanwhile I'll keep an eye on my script and see if I can get it to do what you can :)
 
The only time i have encounter being able to remove multiple Engiens ect. is when im no able to repair what is broke on the vehicle.. (Car is missing a wheel > reparing>text says its rep.>tire still missing) when that happes i can keep havesting the car for good parts.. but i dont know if it a dayz bug or just a dayz.st databse update bug, as i can have 2 vehicles side by side and rep. 1 and not the other one.
 
yeah! sounds like u have same problems like me!
not sure if *my newest bug* depends on having installed this script or if this is the right thread..but i have the bug, that players arent able to repair a vehicle sometimes ( it happens quiet often) .
The repair menu occurs and i repair for example the engine...but nothing happens no matter how often i retry it...
sometimes it works promptly....
I already searched for answers via google but cant find any report or solution...
 
The only time i have encounter being able to remove multiple Engiens ect. is when im no able to repair what is broke on the vehicle.. (Car is missing a wheel > reparing>text says its rep.>tire still missing) when that happes i can keep havesting the car for good parts.. but i dont know if it a dayz bug or just a dayz.st databse update bug, as i can have 2 vehicles side by side and rep. 1 and not the other one.

Ah, dayz.st ... That comment about the database might be spot on. I'm having nightmares with their database right now. So maybe I'll get to see what you're seeing soon enough. Might consider looking into making this server side, that might help with lag issues.. I don't know really, anyone else got any thoughts?
 
yeah! sounds like u have same problems like me!
not sure if *my newest bug* depends on having installed this script or if this is the right thread..but i have the bug, that players arent able to repair a vehicle sometimes ( it happens quiet often) .
The repair menu occurs and i repair for example the engine...but nothing happens no matter how often i retry it...
sometimes it works promptly....
I already searched for answers via google but cant find any report or solution...

My users are advised to relog, sometimes they need to relog 2 or 3 times before it works. I can only put it down to lag and something in the dayz_code that times out too quickly.. Here's hoping its fixed in the next code release :D
 
yes the error might be depending on dayz code....my mission overwrites the clients dayz_code
variables.sqf, compiles.sqf and fn_selfActions.sqf . I havbe no idea if this causes the problem....Maybe it also can be an error of the Database??
 
Back
Top