Rock Spawn v1.0.0.0

DESCRIPTION

Background
When I was a boy, we practically lived on a 'rock pile.' Perhaps to keep his five boys busy, my father had us pick up a lot of rocks around our home. Digging post holes for fences was particularly challenging. The farm I later worked on to earn money for college was also on a 'rock pile.' Every time the cultivator or chisel was pulled over the ground, it seemed to pull up more rocks hidden under the surface. Big rocks, little rocks, medium-sized rocks. Rocks are tough on machinery, and too many of them in a given area meant that planting of the seed was hindered. And so they were picked up. Some we picked up by hand, some we picked up by machine (such as with the front end loader of a tractor, or specialized 'rock picking' equipment that 'swept' them up from the soil), some we blew to bits with dynamite... and some were so big they were left alone, and we farmed around them. In remembrance of the hard work of those days, I wanted to create a mod that "digs up" rocks during the plowing/cultivation process.

Features
(1) Rock Spawning -- A global specialization script is added to all plows and cultivators that enables them to "dig up" rocks. The amount of rocks dug up can be changed using an input binding (LEFT-ALT-R). There are six different rock spawning levels (OFF, and 1-5). At the highest level, approximately 23 rocks are dug up per hectare. The mod also attempts to mimic reality -- when rocks are dug up by tillage equipment in real life, one sometimes hears a sound when the rock encounters hard steel.

(2) The Rocks -- Just like bales, the rocks that are dug up in-game represent physics objects. They can be picked up and moved around, and are listed as items in the player's save game. There are 22 rocks included with the mod. Most may be picked up by the player in-game. Three are too heavy to pick up and must be handled by machine. Map hotspots identify the location of each rock. Rocks may be disposed of at bale destroyer triggers (except at feed troughs), or at a special placeable included with the mod (see below). There is one special 'gold' rock that spawns infrequently. It is worth much more than the other rocks when sold.

(3) Rock Disposal Point Placeable -- The mod includes a placeable trigger at which rocks can be disposed. It has its own map hotspot and will appear in the list of sell points in the Escape menu.

(4) Rock Loading -- A global specialization script is added to most fillable trailers that will enable them to both auto-load and auto-unload rocks. Auto-loading (LEFT-CONTROL-R) and auto-unloading (RIGHT-CONTROL-R) are controlled with input bindings. Another input binding shows/hides (LEFT-CONTROL-S) the area in which rocks are picked up or dropped upon unloading. Changing the tip-side of a trailer will change where rocks land during the unloading process. Please note: this script will only load rocks generated by the RockSpawn mod. It won't load rocks that the mapper placed as decorative items.

(5) Multiplayer Compatible

One additional reminder -- any rocks spawned are additional physics objects to the game. As with bales, too many rocks on the map may eventually hinder gaming performance. Work hard to keep your fields clean! :) Additional information about the items above can be found inside the Instructions.xml file included inside the mod.

Well, this is off to a rocky start -- enjoy!

CREDITS

RockSpawn.lua Script: akuenzi ([email protected])
Rock.lua Script: GIANTS, akuenzi edit of bale.lua into rock.lua
RockDisposalPoint.lua Script: akuenzi
RockLoad.lua Script: akuenzi
addSpecialization.lua Scripts: Xentro ([email protected]), akuenzi edits
Rock 3d Models: GIANTS (12 rocks, 3 with textures by http://www.textures.com/)
TyroSmith (6 rocks) - (http://thetyrosmith.weebly.com)
Rock 1-5 Source: http://tf3dm.com/3d-model/low-poly-rock-set-5-different-rocks-92678.html
Rock 6 Source: http://tf3dm.com/3d-model/low-poly-rock-4631.html
Benw11 (4 rocks - textures by http://www.textures.com/)
Trigger 3d Model: GIANTS
Sound Files: Sound effects obtained from https://www.zapsplat.com
Gold Rock Cubemap: GIANTS, Brzeziol
Gold/Rock Huds: seriousmods
In-Game: akuenzi
General Testing: akuenzi, Summit Commodities server
Multiplayer Testing: akuenzi, Summit Commodities server
RockSpawn Mod Manual: akuenzi
modDesc Translation: Swedish ~ Xentro
French ~ Marxtai
Polish ~ Dzi4d3k
All Other Languages ~ Google Translate
Primary Mod Hosting: FS-UK.com

Dedicated to Xentro. The little I know about lua is the result of his patient mentorship and generous sharing of his time.

Similar modifications
COMMENTS

Commented on 2021-03-20 15:40:21

Rockspawn.lua is throwing a nil value

0
Reply to comment
Commented on 2021-03-20 15:40:21

@JEFF -- Could you elaborate please? If it's possible, please show your log file so I can try to see where the error is occurring. Thanks! ;)

0
Reply to comment
Commented on 2021-03-20 15:40:21

Error: Running LUA method 'loadSharedI3DFileFinished'.
C:/Users/Skyrim/Documents/My Games/FarmingSimulator2017/mods/FS17_RockSpawn/Scripts/RockSpawn.lua:110: attempt to index a nil value

0
Reply to comment
Commented on 2021-03-20 15:40:21

@JEFF -- I'm guessing there are some other things going on in the log file, but short of having it, I'm unable to tell. Let me ask this -- what cultivator/plow are you using this script with? Is it one of the game's cultivators/plows, or is it a modded cultivator/plow? If it's a mod, would you please provide a link to it so I can test it on my end? Otherwise, line 110 has nothing to do with 'LUA method loadSharedI3DFileFinished.' Line 110 is looking up the cultivator/plow's workAreas.

0
Reply to comment
Commented on 2021-03-20 15:40:21

can't even load the game with this in it, i'll remove some other mods and see what happens i'm seeing a collision going on

0
Reply to comment
Commented on 2021-03-20 15:40:21

Was a mod collision with a leveler causing the issues!

0
Reply to comment
Commented on 2021-03-20 15:40:21

@JEFF -- Okay, it sounds like it was a mod conflict. I'm still curious as to which mod it was, as I'm interested in testing it on my end to see if there's a way to prevent the conflict. But if it's working now for you, then I'm thankful. ;)

0
Reply to comment
Commented on 2021-03-20 15:40:21

fs17_liebherr_776_leveler

0
Reply to comment
Commented on 2021-03-20 15:40:21

Warning if you don't want to move a ton of rocks don't put it on setting 5! LOL hopefully some one can build a rock picker mod!

0
Reply to comment
Commented on 2021-03-20 15:40:21

@JEFF -- Thank you for bringing this to my attention. :) I have a proposed fix that will allow you to continue using your Liebherr 776, and have addressed it in a post on FS-UK here: https://www.fs-uk.com/forum/index.php?topic=205052.msg1333951#msg1333951

0
Reply to comment
Commented on 2021-03-20 15:40:21

Thanks i'll work on it tuesday, got real farming to do otherwise!

0
Reply to comment
Write a comment