1. Please be advised of a few specific rules and guidelines for this section.

RELEASED Gardenbot 2.1 -- REBOOTED -- 2.1.1.6

Robotic Farming ... IN SPACE! - Supports modded plants! - Cheerful 1.3.4

  1. tanuki-san

    tanuki-san Aquatic Astronaut

    New
    Hi. It's very interesting mod. I love it.
    But probably, gardenbot.lua needs some little changes for pair of the mod and drop like next.

    function dropNameFromMod(modName)
    oreList = {
    "aegisalt","coal","copper","corefragment","crystal","diamond","fossil","gold","iron",
    "lead","moonstone","platinum","plutonium","prisilite","rubium","silverore","solarium",
    "sulphur","titanium","trianglium","uranium","violium",
    "penumbrite","protocite","densinium","cinnabar","corruption","irradium","lunariore",
    "lazulite","magnesium","mascagnite","berlinite",
    "fossilbone","algaeore"
    }
    oreMap = {
    "aegisaltore","coalore","copperore","corefragmentore","crystal","diamond","fossilore","goldore","ironore",
    "lead","moonstoneore","platinumore","plutoniumore","prisiliteore","rubiumore","silverore","solariumore",
    "sulphur","titaniumore","triangliumore","uraniumore","violiumore",
    "penumbriteore","protociteore","densiniumore","cinnabarore","corruptionore","irradiumore","solarishard",
    "lazuliteore","magnesiumore","mascagniteore","berliniteore",
    "bone","algae"
    }
    -- for i,v in ipairs(oreMap) do
    -- if string.find(v,modName) then return v end
    -- end
    for i,v in ipairs(oreList) do
    if v == modName then return oreMap end
    end
    return "perfectlygenericitem" -- should never get here, but if it happens...
    end

    This code is not optimized.(I'm not familiar with lua...)
    But, it can respond to the pairs like "lunariore and solarishard", when it needs to do so.

    Salute.
    [DOUBLEPOST=1444290904][/DOUBLEPOST]
    Umm... :(
    Why i can't show [ i ](without space) after oremap...
     
  2. LoPhatKao

    LoPhatKao Space Kumquat

    since they are matched lists (both using same order), that code would work
    if they were unordered lists then it would not
    (if CF ever makes it so itemdrop name does not contain tile mod name your version would be better)

    when i wrote those parts, i was doing alot of key+value loops anyway, seemed like easiest/best way to do it ;)

    Code:
    to get the [i] to work, you need to put it in [ code ] tags
    can either manually type it or use the "Insert..." button above (the icon 3 right of smileys)
    it will add a box like this
     
  3. LoPhatKao

    LoPhatKao Space Kumquat

    status update! woo

    finished stuff

    fixed mineState not mining floor (i oopsed on the math :()
    fixed behaviour at bottom of mine, tries really hard not to dig past lower limit into the lava and core ;)
    removed legacy farmable harvest code (kept harvestpools.lua, but stripped pool data - 280kb to 4kb filesize ;/)
    tweak depositState so if bot directly under/over "home" chest but blocks in way, will teleport to it after a while (fixes miner+others getting stuck after falling)
    made aggressive mobs always aggro miner and guard bots - like they do to players
    miner will not try to mine floor of ship now - heh
    miner places backwall in top part of shaft (surface to "underground") - makes extentions on ocean islands

    edit: forgot important one - miner can dig hazardblocks that were improperly placed in shaft

    should fix most of the issues @Zlyvr reported - except hp in lava (so far ;))

    todo before rc14 - picture related
    delegate.lua update - kinda dreading this one, even though not a lot of code to change
    fix hp hack for environmental conditions - lava, poison etc
    fix/remove a few more outdated spirited/pleased dual code bits (changes in collision checking that i never bothered with in miner, cause far too many xD)


    future
    miner doesn't really understand how to mine ocean floor yet without a lot of setup - works fine if you start your miners in a predug/drained hole in ocean floor
     
    Last edited: Oct 12, 2015
    Zlyvr likes this.
  4. LoPhatKao

    LoPhatKao Space Kumquat

    LoPhatKao updated Gardenbot 2.0 -- REBOOTED -- with a new update entry:

    Bugfixes ahoy!

    Read the rest of this update entry...
     
  5. TheAwsome

    TheAwsome Scruffy Nerf-Herder

    I love the little miner and the pitter patter of its drill bit. Sure it takes a while to get used to where it but once it starts it won't stop. The main issue I have it is that it doesn't care for culture, just ore. Underground areas like glitch sewers, avian tombs, and human labs appears. Blocks such as "Tomb Stones" and "Heavy Stone Block" are quite rare and can't be crafted in game. I was wondering if there was a way for it to gather those blocks when it gets in its way rather then vaporize like dirt blocks.
     
  6. LoPhatKao

    LoPhatKao Space Kumquat

    sure its possible (currently have fine sand not be destroyed by miner cause of glass recipe)
    trick would be to find how many deco blocks would be affected if i set it to only destroy blocks with 'dirt' and 'stone' in name - then how big the exceptions list becomes ;)

    edit:
    did a quick thing so bot reports what all blocks it 'hits' - heres a list from 8 miners (ocean planet)


    castlewalls1: 127,
    castlewalls1: 215,
    castlewalls1: 243,
    castlewalls1: 262,
    castlewalls1: 349,
    castlewalls1: 489,
    castlewalls2: 45,
    castlewalls2: 46,
    castlewalls2: 46,
    castlewalls2: 72,
    castlewalls2: 72,
    clay: 1341,
    clay: 1479,
    clay: 1731,
    clay: 1821,
    clay: 1944,
    clay: 1963,
    clay: 2344,
    clay: 630,
    cobblestone: 1007,
    cobblestone: 1022,
    cobblestone: 1162,
    cobblestone: 1304,
    cobblestone: 1322,
    cobblestone: 149,
    cobblestone: 852,
    cobblestone: 894,
    hazard: 1,
    hazard: 14,
    hazard: 15,
    hazard: 18,
    hazard: 21,
    hazard: 5,
    hazard: 9,
    hazard: 9,
    mud: 1065,
    mud: 556,
    mud: 571,
    mud: 578,
    mud: 630,
    mud: 636,
    mud: 716,
    sand2: 43,
    sand2: 56,
    sand2: 85,
    sand2: 9,
    sandstone01: 45,
    tombbrick4: 22,
    tombbrick4: 247,
    tombbrick4: 3,
    tombbrick4: 39,
    tombbrick4: 53,
    tombbrick4: 74,
    wetdirt: 142,
    wetdirt: 142,
    wetdirt: 143,
    wetdirt: 146,
    wetdirt: 231,
    wetdirt: 239,
    wetdirt: 314,

    will run this a few times on a few planets, see what kind of ultra list i build up

    some things are obviously nukable - name contains dirt, cobblestone, mud, name contains sand (except fine sand)
    clay useful for rooftiles/bricks.. may keep it
    you would still get the material the ore was in
     
    Last edited: Oct 15, 2015
  7. TheAwsome

    TheAwsome Scruffy Nerf-Herder

    So, while I trailed after my V49 miner bot I asked myself a question about this little machine could improve its function and optimal as it created its underground system. Several thoughts came up such as tubing for item transportation or maybe another V-- variant.

    Similar to the "Item Pipe Basics" presented in Starfoundry you could have V49 place tubing in the backround above the Hazard Blocks as it digs. These tubes will all be connected to a main chest that the bot places as the starting point. Through this process the machine never has to stop digging as dirt, stone, tomb stones, ores, and etc. are transported through the tubing and neatly stored away. It can serve as an optimal time saver.

    For end game players who are more interested in construction or hunting you can have the option for them to build a unique digger robot. You can ensure it can only be built late game by having an NPC give them a quest with certain parameters such as have X Armour or give me X item which only a late game player would have access to for the blue prints. This new robot which I will call V102 lovingly can be maybe 6 or 8 blocks tall. V102 would do the same function as the V49 model, but break blocks in a similar fashion to fully upgraded matter manipulator (3x3 space?) and even the background blocks which it could replace with some fancy hazard blocks or futuristic blocks. Tied in with the piping system it can make quick work of planets for late game players.

    Also, as an alternative to the piping system you can have a vacuum bot trail the horizontal shafts that the V49 builds to pick up items for transfer. This way all dirt, stone, ore and etc. can be saved without slowing down the V49.

    ( )
     
  8. LoPhatKao

    LoPhatKao Space Kumquat

    status time woo

    doubled rate at finding unknown items to gather

    been hackin away at making seeds without seed in name plantable, have it mostly complete
    only issue i haven't been able to make go away - bot must pick up at least 1 misnamed seed before it knows it can plant it :disshappy:
    tbh, its only an issue when starting garden, you must toss seeds at bot instead of being able to put in chest
    otherwise, Poe Tree, Quellstem, Victorleaf and a bunch of other plants from FU work now :D

    (the original elegant version was only 2 lines of extra code in inventorymanager .. unfortunately it didn't work :mad::()

    still needs torture testing and optimizing

    @TheAwsome : those are good ideas, however..
    item tubing to 'top'- objects/mobs/npcs far outside what a player can see are not loaded/updated -- no such thing in SB like minecraft's chunkloaders :( iirc cf said they will not add
    this is why miner keeps placing miniskips as it digs further down ... the skip it was depositing in has gone 'out of range' and it has nowhere to deposit loot, so puts down a new one

    upgrade bigger area of effect / bigger miner - easy to do when i get around to doing bot tiers - somedayâ„¢ (for now, do what i do.. use a swarm of bots :D )

    gatherer bot - had this thought before myself, added guard bot instead - use the spiderdroid - but if using in mine, has same issue as miner when out of range of deposit bin
     
    Last edited: Oct 17, 2015
  9. novkit

    novkit Void-Bound Voyager

    First off, I'd like to say that the garden bots [once I figured out how to use them] are damn useful. Never will I run out of cash again!
    Secondly, I don't know if you intended it to be used this way. . . . but I bought 16 miner bots.
    Watching them absolutely destroy a mountain is funny as heck, and the fact that they seem to recognize all the Frakin' Universe stuff is just absolute bonus.
    I was thinking about using 32 next big mining trip, but I think my laptop would explode from all the scripts.

    btw is there any way you can make them NOT break certain items? like teleport pads lol.
     
    Last edited: Oct 17, 2015
  10. LoPhatKao

    LoPhatKao Space Kumquat

    swarms of miners are fun :D here's a pic of 8 ;) (from when i was testing that bots are actually stopping at bottom of mine, not digging into core)
    you should be able to run 32 at once, might have a bit of lag if they're all in shaft at same time (miner thinks faster in shaft during shaftState - 30x/sec vs 6x/sec everywhere else)

    when you say telepads, do you mean the ones you buy at Teleshop, or the Challenge Doors? or both?
    should be able to make bots not destroy them .. depends how badly it would break other parts of miner

    .. theoretically bot only cares about/breaks solid blocks, unless theres something in way when it tries to place floor blocks/platforms
    of course, any object on top of a solid block bot wants to mine would break when bot mines block
     
  11. novkit

    novkit Void-Bound Voyager

    I mean the telepads from the Teleshop. I worked around it just by making sure the telepad was a few levels above where I started the mining operation, haven't come across a dimension door yet with the bots.
    On a side note I've noticed that the garden bots seem to optimize garden spaces (as in there are no space gaps when dealing with a seed that takes up 2 tiles). Was that intentional or am I just lucky so far?
     
  12. LoPhatKao

    LoPhatKao Space Kumquat

    @novkit
    gardeners will try to plant seeds as close to each other as it can, depending on width
    however, it has some quirks in how it places them.. explained it a few pages ago, lemme find pics..

    [​IMG]
    so for 2 wide plants, the left side will always be on an even X coordinate (2,4,6 etc)

    edit:
    well, I'm a complete idiot -.- figured out why inventorymanager changes didnt work
    had another copy in a different folder from a failed experiment - that copy was overwriting the one in gb2
    soooo.. all the headdesk and anger at stupid code last few days ... my own fault xD
    dammit - now i'll have to go thru all the changes and see which ones are keepable .. since my original 2 lines of changes in inventorymanager takes care of the "seeds without seed in name" issue

    edit2: an animated gif of gardener planting poe trees :D - the preexisting yellow ones are Victorleaf
    2015-10-18_11-38-55.gif
    yes, i finally got a decent screencap program :p
     
    Last edited: Oct 18, 2015
  13. LoPhatKao

    LoPhatKao Space Kumquat

    LoPhatKao updated Gardenbot 2.0 -- REBOOTED -- with a new update entry:

    Now with ALL the plants

    Read the rest of this update entry...
     
  14. Azraile

    Azraile Ketchup Robot

  15. Lance Hancock

    Lance Hancock Existential Complex

    The garden bots still seem to be breaking the plants occasionally to harvest things like corn and bananas.
     
  16. LoPhatKao

    LoPhatKao Space Kumquat

    could you give me a more specific name? theres over 800 plants in opp+ to search through to see what ones you mean

    this is more than likely the "harvesting efficiency" code, kind of a penalty period while bot 'learns' to be 'more gentle' .. after bot runs long enough & harvests enough it won't break anymore plants
    you can see the efficiency % by typing /admin then /debug in chat .. it will be printed on screen above bot like this:
    [​IMG]
    i'll warn you, debug is kind of messy at moment, theres a lot of lines and rectangles going on ;) depending on State, tells me what bot is thinking
     
  17. mizucario

    mizucario Scruffy Nerf-Herder

    I'm curious if the bot can be used on the avali aerophonics tubes.
    Edit : it works :D
     
    Last edited: Oct 24, 2015
  18. Azraile

    Azraile Ketchup Robot

    I think t3~t5 of all liquid plants hang from the roof.
     
  19. LoPhatKao

    LoPhatKao Space Kumquat

    this is still not a NAME, i cannot do anything if i don't know the NAME
    namu desu-ka? qu'appelle?

    sorry, but i am NOT searching blindly thru 800+ plants

    since you obviously have some, just break one then type what pops up in the bottom lootpickup box - this is enough to start seaching

    sorry if reply is dickish, already knew from first request that it was a hanging plant
    i am actually very interested to make them work, just need a place to start at

    edit: bad day at work sorry ;p found milk seeds think i see the problem.. now to find the solution
     
    Last edited: Oct 25, 2015
  20. TempTemp

    TempTemp Star Wrangler

    This seems like just the mod to help me with being too lazy to farm enough. Am I right to think that this works with FU 99.99% (nothing is 100% when it comes to moding, there's always some werid bit of code that conflicts even if it has no effect) of the time?
     

Share This Page