Keaster Posted April 14, 2014 Report Share Posted April 14, 2014 Hello. I've been trying to make a hemp farm on my chernarus epoch server, but can't find too much on the topic. I've spawned in the hemp trees by placing some barrels on the map then changing the barrels to fiberplants in the mission.sqf like so: _this = createVehicle ["fiberplant", [2325.9077, 3357.582, 0], [], 0, "CAN_COLLIDE"]; and then I dragged the player_harvestPlant.sqf from dayz_code.pbo and added "p_fiberplant_ep1.p3d remote" into the _trees array. I still am not able to harvest the hemp from the plants. Am I doing something wrong? Link to comment Share on other sites More sharing options...
0 avdieking Posted April 14, 2014 Report Share Posted April 14, 2014 put in the array p_fiberplant_ep1 not .p3d Link to comment Share on other sites More sharing options...
0 avdieking Posted April 14, 2014 Report Share Posted April 14, 2014 oh sorry you are right Link to comment Share on other sites More sharing options...
0 avdieking Posted April 14, 2014 Report Share Posted April 14, 2014 do you have a custom compiles and added the file to the mission ? Link to comment Share on other sites More sharing options...
0 Achmed Posted April 14, 2014 Report Share Posted April 14, 2014 i know its off topic but what does the fiberplant look like in game? anyone got a screen shot? Link to comment Share on other sites More sharing options...
0 Keaster Posted April 15, 2014 Author Report Share Posted April 15, 2014 I do have a custom compiles. Link to comment Share on other sites More sharing options...
0 hambeast Posted April 17, 2014 Report Share Posted April 17, 2014 Hello. I've been trying to make a hemp farm on my chernarus epoch server, but can't find too much on the topic. I've spawned in the hemp trees by placing some barrels on the map then changing the barrels to fiberplants in the mission.sqf like so: and then I dragged the player_harvestPlant.sqf from dayz_code.pbo and added "p_fiberplant_ep1.p3d remote" into the _trees array. I still am not able to harvest the hemp from the plants. Am I doing something wrong? I'm getting this same issue. I tried p_fiberplant_ep1 and p_fiberplant_ep1.p3d... both return "you must be close to a plan to harvest" generic message. Here's a screenshot with me calling the DZE_getModelName method of the plant: http://i.imgur.com/dZIj7If.jpg getModel = { _objName = cursorTarget call DZE_getModelName; _strtext = format ["model = %1", _objName]; titleText [_strtext, "PLAIN"]; }; Link to comment Share on other sites More sharing options...
0 avdieking Posted April 17, 2014 Report Share Posted April 17, 2014 and you changed the folder in compiles right? Link to comment Share on other sites More sharing options...
0 hambeast Posted April 17, 2014 Report Share Posted April 17, 2014 yes. player_harvestPlant = compile preprocessFileLineNumbers "scripts\player_harvestPlant.sqf"; edit: either way the original included the plant's model by default. Not sure why it isn't picking it up. Link to comment Share on other sites More sharing options...
0 ZeroK00L Posted April 17, 2014 Report Share Posted April 17, 2014 If someone can get this working I think it would be really cool. Especially if you can harvest, then sell to a trader for gold :) :). I'll look into it and see if I can figure it out. P.s. Even cooler if you could smoke it. LOL P.s.s And I know you cant smoke hemp for any benefit, but it can be made into a pot farm. haha Link to comment Share on other sites More sharing options...
0 ZeroK00L Posted April 17, 2014 Report Share Posted April 17, 2014 I dont see this "fiberplant" in the object library. What category is it under? Link to comment Share on other sites More sharing options...
0 Keaster Posted April 17, 2014 Author Report Share Posted April 17, 2014 I don't think you can find it in the object library. I just placed a black barrel in the 3D editor then changed the ID in the mission.sqf file to the ID for the fiberplant. Link to comment Share on other sites More sharing options...
0 ZeroK00L Posted April 18, 2014 Report Share Posted April 18, 2014 Ahh I c. That might be your problem right there. Is that fiberplant used in Arma 2? Is it normally harvestable? I don't see anywhere in the code where you would get an item in your inventory once harvested? Sorry for all the questions but I'd really like to have this on my server too and sell for gold. Would be happy to help implement if I know a little more info. Also where is the trees array or where does the server handle other harvestable plants? Link to comment Share on other sites More sharing options...
0 ZeroK00L Posted April 18, 2014 Report Share Posted April 18, 2014 Ok. So far I have been able to spawn in the actual Hemp that gets harvested. Its actually kinda cool you can make canvas out of it. I have tried to spawn in the plant using "p_fiberplant_ep1.p3d" but I get a message when the mission loads that that object no longer exists. Did they remove this from the game? And why? Testing continues... Link to comment Share on other sites More sharing options...
0 ZeroK00L Posted April 18, 2014 Report Share Posted April 18, 2014 Ok, I got it working. Will put together a quick guide and should I post here or start new thread? eagles888 1 Link to comment Share on other sites More sharing options...
0 Fully Posted April 18, 2014 Report Share Posted April 18, 2014 Here Zero and how to get it in the game would be kool =) I want to make a hemp farm with WAI patrol =) Link to comment Share on other sites More sharing options...
0 Keaster Posted April 18, 2014 Author Report Share Posted April 18, 2014 If you could post it here first, that would be fantastic. Been stuck on this for a week. Link to comment Share on other sites More sharing options...
0 cen Posted April 18, 2014 Report Share Posted April 18, 2014 Interested as well. Link to comment Share on other sites More sharing options...
0 Chief501st Posted April 21, 2014 Report Share Posted April 21, 2014 Is there any update on this, I am willing to pay for this? Link to comment Share on other sites More sharing options...
0 ToshioSM Posted May 10, 2014 Report Share Posted May 10, 2014 And someone can help? I have the same issue... They deleted it from DZE_getModelName? Problem looks so as in screenshot: Link to comment Share on other sites More sharing options...
0 an1m4l Posted May 11, 2014 Report Share Posted May 11, 2014 how did u even get them to spawn? Link to comment Share on other sites More sharing options...
0 ToshioSM Posted May 11, 2014 Report Share Posted May 11, 2014 Add new objects "fiberplant" to sqf and [] execVM "weed.sqf"; in init.sqf. In editor you don't find "fiberplant", so you have to place barrels on ground, save mission, then in mission.sqf you change all name barrel to "fiberplant". Link to comment Share on other sites More sharing options...
0 3l3m3nt Posted May 11, 2014 Report Share Posted May 11, 2014 Does anyone success adding those in chernarus ? Link to comment Share on other sites More sharing options...
0 an1m4l Posted May 12, 2014 Report Share Posted May 12, 2014 Add new objects "fiberplant" to sqf and [] execVM "weed.sqf"; in init.sqf. In editor you don't find "fiberplant", so you have to place barrels on ground, save mission, then in mission.sqf you change all name barrel to "fiberplant". weird, i did that and theres nothing there o.O Link to comment Share on other sites More sharing options...
0 carl101 Posted May 12, 2014 Report Share Posted May 12, 2014 how to make it harvestable Link to comment Share on other sites More sharing options...
0 NateDaBeast Posted May 25, 2014 Report Share Posted May 25, 2014 Can someone just make a full tutorial ? Link to comment Share on other sites More sharing options...
Question
Keaster
Hello. I've been trying to make a hemp farm on my chernarus epoch server, but can't find too much on the topic.
I've spawned in the hemp trees by placing some barrels on the map then changing the barrels to fiberplants in the mission.sqf like so:
and then I dragged the player_harvestPlant.sqf from dayz_code.pbo and added "p_fiberplant_ep1.p3d remote" into the _trees array. I still am not able to harvest the hemp from the plants. Am I doing something wrong?
Link to comment
Share on other sites
30 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now