Page 1 of 1

Having trouble with Clearpipes

Posted: Thu Apr 30, 2020 1:54 pm
by fryzahh
I`m making a level right now involving clearpipes but I`m having trouble registering NPCs to them.
I keep getting a debug every time I test the level.

The lunalua code I have up right now: (sorry for small size)

Image

The debug I get:

Image

Can someone please help me fix this?

Re: Having trouble with Clearpipes

Posted: Thu Apr 30, 2020 2:21 pm
by Eri7
Beta 4 updated the needed code that you need to write to be able to register more NPCs, instead of "local clearpipe = require("blocks/clearpipe")", you have to use

Code: Select all

local clearpipe = require("blocks/ai/clearpipe")

Re: Having trouble with Clearpipes

Posted: Thu Apr 30, 2020 2:28 pm
by fryzahh
Alright thanks, I`ll try it to see if it works!

EDIT: It worked! Thanks for the help!

Re: Having trouble with Clearpipes

Posted: Thu Apr 30, 2020 2:32 pm
by Emral
Mhm. This change was in the "HOW TO UPDATE" section of the release blog post. Easy to overlook, probably. Posting it here in case you find something else there that may be helpful to know:
https://codehaus.wohlsoft.ru/blog/2020/ ... to-update/