Git Product home page Git Product logo

Comments (8)

matemat13 avatar matemat13 commented on July 21, 2024

Hi!
It's great knowing, that there is actually someone out there who tried it and liked it :)
Unfortunately it has been quite a long time since I last used this, so I no longer remember all the quirks I encountered and how I dealt with them...
If you get the message, it should mean that the plugin is running, although it probably shouldn't behave like this. I will dig into the code and try to find out what could be wrong.
Do you have any other plugins running? Are you using the pure Lua version or the one with C libs?

from mcserver-raspberrygpio.

TeaAndJellyfish avatar TeaAndJellyfish commented on July 21, 2024

I'm using the pure Lua version.
And I havent other plugins, it's the base install of mcserver

from mcserver-raspberrygpio.

matemat13 avatar matemat13 commented on July 21, 2024

OK, so you put a lever block and than write to chat "/assignlast 5" (or your pin number) and you get a message "No suitable block was placed by you!"? If that is so, than it is possible, that the MCServer changed the block IDs, which would require rewriting some constants in the code, which are currently hard-coded. The /assignlast command should work with these block types:
69, 75, 76, 77 and 143
by simply placing the block and writing the command. Alternatively you can use item with ID 284 (I believe it should be a golden shovel) to mark a block and than use the assignlast command as usual.

For debug you can use the command "/logio". which writes the already assigned blocks to the server console. If you have any experience in programming, I believe the code is easily readable and understandable, so you can try playing around with it and see if something fixes it :)

I would like to look into this, but right now I am studying for exams, so I don't have the time. If you don't get it working, I can take another look after Thursday.

Anyway firstly, please try marking the block (lever/button/redstone torch) with a golden shovel and see if that works. Secondly, try placing a sign and writing "\TEMP" on it (without the quotes) and see if that does something.

And of course let me know how it goes.

from mcserver-raspberrygpio.

TeaAndJellyfish avatar TeaAndJellyfish commented on July 21, 2024

Like you, I think it's a problem with block's ID but I don't know how to find it.
And after I easily can change the code.

\TEMP, \RAM, \CPU and golden shovel don't work (it's say "Block remenbered" but when I check /logio all blocks have same X,Y and Z)

from mcserver-raspberrygpio.

TeaAndJellyfish avatar TeaAndJellyfish commented on July 21, 2024

And good chances for your exam ;)

from mcserver-raspberrygpio.

matemat13 avatar matemat13 commented on July 21, 2024

OK, I have just commited an update (or updated a commit, who knows :)), which should fix this problem. It was caused by some (undocumented! grr...) changes in the MCServer API - I had to experiment a bit to get it right, but now it seems to work OK again. Hope you like it :) I played with it the whole afternoon after my exam :D

If you would like to expand the plugin in any way, fell free to make a merge request, just please make your code readable and somehow in the same fashion as mine :) If you don't know Lua don't worry, I didn't know it before writing this plugin, but it is very easy! You can learn it in one afternoon.

from mcserver-raspberrygpio.

TeaAndJellyfish avatar TeaAndJellyfish commented on July 21, 2024

It work greatly !
Thanks for changes :)

from mcserver-raspberrygpio.

matemat13 avatar matemat13 commented on July 21, 2024

No problem :) Let me know how you like it! If you feel like making a video of it os something, I would be glad to see it in action!

from mcserver-raspberrygpio.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.