-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Computer Craft integration for Update 6 Logistics Blocks #7883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Computer Craft integration for Update 6 Logistics Blocks #7883
Conversation
seems to work flawlessly.
enchantment checks exclusive, (one enchant per one set of enchant traits), made it so the number of enchants in the filter and items have to match. Will give a good example of it in the documentation linked in the pr
packager/postbox/frogge
…getting to set a variable t what they want it to be
Order is off when placing into requester
fixed the ordering bug
Added some safety stuff and made it actually save
an error? it's the same thing!
Added a check to respect the redstone requesters default 256 max item limit
|
Passed my finals, did some tweaks, here's a status update:
Future plans we'd love to implement (well), but didn't get to:
As for the serial tests i'm working on, i'm just making a super minimal world that can hopefully be crunched to a megabyte or two that works off a lua library i made to take snapshots of peripherals, then runs some operations one after another. I know there's more correct ways to do tests, esp since this is like insanely hard to automate, but ideally when it's done you guys can have the script run on startup and if it succeeds place a dummy block that a proper serial test checks for - that's out of my scope though. The code for the tests should work for whatever approach it's run through So, i'm gonna open the pr, as the code's not gonna be changing much from now on. |
I lied, added a new feature, now you can config the frogports to either |
…ed how to code properly again.
also had to refactor .configure and .configureCraft to .setRequest and .setCraftingRequest for this
|
Hey all! I've been watching this PR from the sidelines, I'm not familiar with Java but moreso with the Lua side of things. I know this is nearing completion, and I don't want to add any more burden to you all, but I wanted know if there was any integration formed with ComputerCraft's event system? It could be extremely useful to have an event that fires whenever, say, a Frogport or Postbox recieves a new package. If a player is waiting for a package with specific materials, a computer connected to it could detect that, see that the contents within match, and perform some other function like sending a message to that player, or activating a redstone lamp signifying that, or whatever. Another example could be sending an update when a stock link's inventory updates, so that a program doesn't repeatedly need to check for them— the code would only be run when a change is made. Again, not familiar with the Java side of things, and I don't believe Create has any integration with this elsewhere, so I'm not sure how realistic something like this would be. Regardless, thank you for your time! |
oh yeah yup, just two messages ago, in the future plans section i've mentioned:
(i don't blame you for not seeing that either, pretty sure the discussion under this PR is longer the gentoo install guide)
the network doesn't really know when inventories have items added to them. Every time you request a package, it checks if the corresponding items are available. (since y'know, you could have stock links attached to like 20 barrels, means you'd have to run 20 checks a tick for if any item was added) we will however try and make events for when any package is ordered in the future :> so, this is planned, we're just waiting for elementW's event integration first, as to not double the implementation! |
Omg, I totally missed that I'm so sorry. Thanks for the clarification! The stock link limitation makes sense, and the ledger station doesnt sound like it would be too difficult of a work around anyways. Excited to see this PR eventually merge and see people make a lot of cool stuff with it. Great work, and good luck with the rest of the features! |
previously the filter would break after comparing against the item, defaulting to _mode = contains.
|
The test world is finished and available for anyone to try and contribute to when making changes to the create logistics compatiblity :D right here: https://github.com/BirbIrl/Create-CC-Integration-Tests For anyone that's part of the create team - do anything with it, it's licensed under MIT. It has served me well personally, letting me catch three bugs that previously went under the radar :> I'm going to link the test world in the main post of this PR as well |
never returned false
|
after a good 3 months... the PR is now super-duper done.We have added computercraft functionality for:
On top of that, packages are now lua objects available by There is a serial test world with it's own custom tool suite which i made because i noticed some update on the dev branch subtly broke one of our functions - this makes spotting such cases really quick and simple :> We've made a wiki PR as well, it's on my github pages available to look at here. It has full documentation of everything we've added Future plans we'd love to implement (well), but didn't get to:
My job here is done :D, I'd like to thank everyone that worked with me on this PR:
plus two smoller thank-you's to:
+ extra thanks for everyone being super chill and great to work with! Please don't see this as my pr just because it says so on github, this was a pretty equal team effort! |
oh yeah @simibubi this is the part where i @ you and mention that yes the pr is merge ready :D |
|
Updated to match upstream, the test world passes all tests - apart from the bug i mentioned in the Hungry Frogs II commit comments 9d2127b#r161075530 where it yields negative, but after adding the missing |
|
Thanks to everyone who contributed to this PR, this will definitely be something exciting for the folks who enjoy using CC:T alongside Create |


This is the backported version of @AsterAether, @Karotte128, @McArctic and I's efforts at bringing the logistics blocks to full compatibility with computercraft!
The original PR can be found here: #7669
The wiki PR is here: Creators-of-Create/wiki#4
And there's also a minimal serial test world made specifically for this PR: https://github.com/BirbIrl/Create-CC-Integration-Tests
Note that 1.20.1 is technically the "base" branch for us, and our 1.21.1 branch merges these commits in with extra patches.
Oh also there's like 10 lines that got edited out cuz of linting (probably cause of me, i refuse to use an IDE and rock neovim just to feel something), whoops! I'm afraid of adding commits to undo that as to not confuse git with what should be merged and how between the branches. Hope that's okay!
oh and Aster, Karotte and Arcitc all have equal say here. if you have any questions and i'm unavailable when they are - take their word and assume i agree with them! :D