ECO

Garbage Truck (Eco 0.9.5.x) for ECO

Released (updated ago). Ranked 2 of 206 with 131 (4 today) downloads

Published by DrEmixam (mod ID: 2126125)

capture_dcran_144.png
capture_dcran_143.png

Supported eco version: 0.9.5.2

Just unpack the archive into your Mods\UserCode directory

Releases

FilenameSizeVersionAddedOptions
garbagetruck.zip7.07mb1.0.1

garbagetruck-v1.0.0.zip7.07mb1.0.0

12 comments

Join the community or sign in with your gaming account to join the conversation:

Heisenberg1654025463
Heisenberg1654025463 @heisenberg1654025463

How i can load trash in in? is that the garbage what u put on the ground? how i can load it

DrEmixam
DrEmixam @dremixam

It only accept trashable objects (the one you can dump on the ground so it becomes trash) and the trash block the trashable objects become

Heisenberg1654025463
Heisenberg1654025463 @heisenberg1654025463

yeah when i throw papers or old machines on the ground then i have a bag of Waste. but i just can open the bag and take them out

DrEmixam
DrEmixam @dremixam

You have to wait a few hours, it will become a trash block

Crichton1654227298
Crichton1654227298 @crichton1654227298

Pretty nice, but the .cs file recipe is just making truckItem instead of garbagetruckitem, I updated the references through to make garbagetruckitem and now it works.

PI
pimpdidi1986 @pimpdidi1986

what did u change in the .cs file to make it work

DrEmixam
DrEmixam @dremixam

I just uploaded a new version (1.0.1) with the recipe fixed

DrEmixam
DrEmixam @dremixam

Oh you're right there is some issues with the .cs (and also with the rear side mounts), I'm very busy this week but I'll provide an update soon.

SpiritOfAncientWhere
SpiritOfAncientWhere @spiritofancientwhere

U know.... Looks veeery fast textured. But not bad. U need ladders with saddle for passangers like in madMax Buggy but in a ladders. And maaan... Garbage truck By DrEmixam... ? Is it permanent? Or is it sign?

DrEmixam
DrEmixam @dremixam

Of course it is a sign

I don't see what is the problem with the textures ?

kurzonmorris
kurzonmorris @googleuser6van06

Is it possible to make this vehicle pickup tailings as well as rubish/trash? I can see some of my players using them to drive round to different places and being payed to pickup tailings and taking them to central storage

DrEmixam
DrEmixam @dremixam

If you want to change the items the vehicle storage accepts, edit the GarbageTruck.cs file and change the TrashRestriction class to add TailingsItem, something like that :

public class TrashRestriction : InventoryRestriction
{
public override LocString Message => Localizer.DoStr("Inventory only accepts trash.");
public override int MaxAccepted(Item item, int currentQuantity) => !item.IsCarried || item.Type == typeof(GarbageItem) || item.Type == typeof(TailingsItem) ? -1 : 0;
}

Here I added TailingsItem, you can add any item type you want this way