-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add/Remove snitches on their placement/destruction #5
Comments
Right-clicking a snitch adds it to the "manual" list. I agree that removing on block break would be useful too. I also noticed that the newest snitches show up on the last Adding on placement has the disadvantage that it's not named in that moment, so reading the last |
Yeah Gjum already mentioned that the main problem with adding snitches on place is that they will not be named and as such won't be in the Snitch List for snitches from /jalist. That is why I added the feature for right clicking to add them to the manual group. If you want to see the snitch's field immediately, for positioning it correctly, you can right click it. When you're done placing the snitches you can use the normal loading feature to have them added normally. I do agree that removing a snitch on block break would be useful. The exact semantics on what should happen though will probably be a little more complicated. |
That's incorrect; unnamed snitches actually do appear in |
I've thought about this a bunch. As it stands, it would indeed be quite hard to add snitches on their placement because it's difficult/inefficient to tell whether a placed Noteblock/Jukebox is reinforced. However, I believe this could be solved by modifying Juke Alert to display the info (name, group, coords, etc.) of a newly placed snitch. The current snitch placement message would remain unchanged; the info would be added as a hover action, making it easily accessible by Snitch Master and non-intrusive to the players. The issue of naming the snitch could be solved similarly - by adding the hover info to /janame. Do you agree? If so, I'll look into adding the functionality to JA. |
@Gjum I somehow missed your comment so apologies for my late reply. I phrased what I was trying to say very badly and I am aware that unnamed snitches appear in @iykHvfIvfR I do very much like that idea and I think it would be a welcome addition to JA. With respect to this mod it is most important that the hover actions for creating a snitch and for using |
@MrLittleKitty It's done. Live on the devoted test server, but not live on the main one yet. |
@iykHvfIvfR Alright I'll get around to it after I finish my work on the Gui upgrades. Thanks for the help! |
This is complete as of the guiUpgrades branch. The code for adding a snitch on its placement is there but needs to be tested once the new version of JukeAlert is on the build server or live on Devoted. Snitches are now removed when they are broken. |
@MrLittleKitty The code at bbd0f74 compiles but crashes the game on startup:
|
@iykHvfIvfR Oh yeah I forgot about that. Its a problem with the settings file that is an unfortunate side effect from changing the quiet time feature. I'm gonna add in a fix right now but if you delete the quiet time line from your settings file it will fix it also. |
@iykHvfIvfR Should be fixed as of 135750d |
Neither feature seems to work for me on the Devoted test server. |
@iykHvfIvfR Which specific features? |
Placed snitches don't get added and destroyed ones don't get removed. Does it work for you? |
@iykHvfIvfR I looked into it some more and unfortunately it doesn't look like removing snitches on break is going to be as easy to add as I thought. There is a BreakEvent but it doesn't work client side. (I thought it did because I tested it on single player) Barring that event, I haven't found a way to go about doing it. As for the adding on place, I haven't had a chance to test the code yet. The new JukeAlert version isn't on the Devoted build server and I really can't be bothered to compile it from the source. So don't expect that to work until the new JukeAlert is running on Devoted. |
It is on the server though. I'm able to parse the hover info with my own code, too. |
@MrLittleKitty It's been a while, so I'm wondering if you've missed my previous message by chance ;) |
@iykHvfIvfR Yeah sorry I've been quite busy as of late. Hopefully when I get some free time I can get around to it :) |
@iykHvfIvfR Its working as of 242c486 |
@MrLittleKitty Wow, so fast :D I guess now the 'Manual mode' functionality is unnecessary? |
@iykHvfIvfR Not at all. The ability to manually add snitches that you find during your travels is a necessity. |
Not sure how feasible this is, but it would greatly improve the user experience as updating the whole snitch list is slow and inefficient.
The text was updated successfully, but these errors were encountered: