AdvancedPeripherals icon indicating copy to clipboard operation
AdvancedPeripherals copied to clipboard

Colony Integrator .getRequests() returning a null value

Open GrooveypenguinX opened this issue 1 year ago • 8 comments

Describe

I have a script I've been working on updating to integrate the ME Bridge and the Colony Integrator to read requests, retrieve items, craft them, and if items are missing display them on the wireless computer/attached monitor.

https://pastebin.com/TgCrU15y

The script has been working fine up until today where colony.getRequests() is now throwing an error:

image

Nothing has changed about my script or setup, besides the fact I was attempting to use an entangled block on the colony integrator which was working fine yesterday, but today I'm getting thrown this error for seemingly no reason.

What's strange is the pack we're playing also has Minecolonies for ComputerCraft, and their colony.getRequests() function is working correctly, but it doesn't scrape as much data as your colony.getRequests(), which not to piggyback onto the issue but I would love to be able to get the domum ornamentum variant style from the requests if that's at all possible 🙏

Steps to reproduce

Computer Attached Ender Modem Attached Colony Integrator ME bridge on top Warehouse block on top of ME bridge

  1. pastebin run TgCrU15y
  2. script errors out on running first getRequests(), but no actual pointer towards what's happening (just hit town hall level 3, sawmill level 1, university 1, builder 3 x2, currently upgrading sawmill to level 2 and residence to level 2, current pack is Medieval Oak)

Multiplayer?

Yes

Version

Own compiled build.

Minecraft, Forge and maybe other related mods versions

Forge 47.3.6 - Minecraft 1.20.1 - pack: Minecolonies Create & Conquor

Screenshots or Videos

No response

Crashlog/log

No response

GrooveypenguinX avatar Jan 08 '25 14:01 GrooveypenguinX

Just to addon, i've been using the Colony Integrator block, specifically getRequests() function for over a week now with no issues, and using this script alongside it with no issues. I want to say something is happening in my colony to trigger the getRequests() function to return null.

GrooveypenguinX avatar Jan 08 '25 14:01 GrooveypenguinX

Hey, are you able to send me a serverlog? To be specific, the stacktrace that pops up when you run that function

SirEndii avatar Jan 08 '25 14:01 SirEndii

latest.log

GrooveypenguinX avatar Jan 08 '25 16:01 GrooveypenguinX

Okay this is interesting - It is not directly caused by AP There seems to be an item in a warehouse or a request from the queen_bee mod which seems to be armor that does weird stuff I am able to fix this, but maybe it helps for a workaround in the meantime

SirEndii avatar Jan 08 '25 16:01 SirEndii

So I just searched each warehouse rack, the block itself, all couriers and their huts, all builders and their huts and storage, and there's zero items from queen bee. just gonna dump all their inventories and try and find the problem child, but yeah weird queen bee only adds like 4 items in this pack, and there is no armor just a weapon.

GrooveypenguinX avatar Jan 10 '25 23:01 GrooveypenguinX

That is kinda weird. I will try to fix that tomorrow!

SirEndii avatar Jan 11 '25 00:01 SirEndii

The stingers from that mod are technically a helmet, just found that out by accident lol. But I still didn't find anything in the colony... so strange. Yeah no big deal, colonists can take a break until the AE2 system can start pumping them items again 🤣

GrooveypenguinX avatar Jan 11 '25 00:01 GrooveypenguinX

Okay, i think i narrowed down the issue.

Queen bee has "Antennae" which act as a helmet and make bees passive to you The colony guards request armor of any type of their level

The guards were requesting armor, and the stingers fell into that category, and like you said something in their data or your function caused it to fail because of the queen bee item.

I found this out by my one guard dying, and then suddenly my script started working again 🤣

GrooveypenguinX avatar Jan 12 '25 14:01 GrooveypenguinX