Skip to content

inconsistent plant seeding with vehicle and player #27472

Closed
@Tomas-Waoetfi-Florek

Description

When I plant a seed using a seed drill or a advanced seed drill the tile will not change into "dirt: seed (plant seed)" like it does with planting manually by player but it stays "mound of dirt: seed (plant seed)".
The plants grow correctly, but one I want to reap them my tractor cant move there because it crashes into the mount of dirt.
This problem started since I recently upgraded my build version. Before this upgrade I could plant and reap as one would expected.
I think with the upgrade the cars no longer can drive over mounds.

Steps to reproduce the behavior:

  1. Make a player with some seeds, hoe(shovel or....) and a tractor with a seeder.
  2. Create two mounds of dirt with plow, shovel, hoe etc. ....
  3. Plant one with the player using examine on the mound of dirt.
  4. Plant the other with the seeder.
  5. Notice that the one planted manually turned into flat dirt while the one seeded by seed drill stayed a mound of dirt.

Expected behavior
I would assume that both of these planting actions would produce same results. Since the vehicle can not drive on mounds of dirt I would assume they both become flat dirt. Or add a vehicle extension that can flatten the mound without destroying the seeds. I tried the large steel drum from road roller which I assumed could work on a bit of dirt XD but I still crashed into it. Like this I have to manually work through the whole field which somehow defeats the automatization of farming.

Versions and configuration(please complete the following information):

  • Windows 7
  • Game Version 0.C-36219-g76f3e9d
  • Graphics version Tiles
  • Mods loaded dda, filthy clothing, disable NPC needs, simplified nutrition, extended realistic guns, icecoon's arsenal, more survival tools, mutant NPCs, NPC traits, more buildings, more locations, boats, folding parts pack, vehicle additions pack, tanks and other vehicles, necromancy, no fungal monsters, StatsThroughSkills

I am a bit of a programer so first I tryied to see if i could find the problemthis is where my search ended(I am not very familiar with C++ much and the solutions is a bit too big for my quick look):
seeder:
file: vehicle_use.cpp
function: void vehicle::operate_planter()
line: around 1025 g->m.furn_set( loc, f_plant_seed ); <= this is the only line that is run when the seed is planted by a drill

player examine
file: iexamine.cpp
function: void iexamine::plant_seed( player &p, const tripoint &examp, const itype_id &seed_id )
line: around 1759 g->m.set( examp, t_dirt, f_plant_seed ); <= this seems to be the place where the tile is changed to dirt

PS: Great work guys I love the game this is the first bug I encountered that worsened the game experience for me im about 1-2 years of playing.

Metadata

Assignees

No one assigned

    Labels

    <Bug>This needs to be fixedFields / Furniture / Terrain / TrapsObjects that are part of the map or its features.VehiclesVehicles, parts, mechanics & interactions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions