austinv11 / peripheralsplusplus Goto Github PK
View Code? Open in Web Editor NEWA pseudo-port of miscperipherals, with other stuff as well!
License: GNU General Public License v2.0
A pseudo-port of miscperipherals, with other stuff as well!
License: GNU General Public License v2.0
What do these do? Add it to the wiki!
Can you please add function for unix time and formate time return in array (like that - http://pastebin.com/AzciqsbA)? :-)
I wrote in the Interactive Lua Prompt on a Turtle peripheral.wrap("right").getNearbyPlayers(20) and it says Java Exception Thrown.
The title says it all. You should avoid packaging APIs with your compiled mod, it causes all kinds of problems, especially if you're bundling an outdated API!
APIs should be located in src/api/java
according to the Maven style, and when you build they won't be packaged.
We even have an annotation from Forge to help out if it isn't a hard dependency, @Optional.Interface
The polygon culling on the rocket is backwards.
Caused by a lack of a null check here:
https://github.com/austinv11/PeripheralsPlusPlus/blob/master/src/main/java/com/austinv11/peripheralsplusplus/event/PeripheralContainerHandler.java#L21
If a player doesn't have an item equipped, then it will return null.
Hello there.
I think chatbox is missing one feature - listening to server's messages. That suggestion came from my friend when we were making CC casino. If ChatBox listens to /say output messages, we can handle restart announcement, stop players from playing 5 minutes before restart and close casino.
Originally from this topic. May or may not be a bug.
When logCoords
is set to true, you should not be able to pass a name as a parameter, it should produce an error. However this error only occurs when the variable is not a string.
A sort of patch I knocked together from the original file
- if (arguments.length > 3 && Config.logCoords && !(arguments[3] instanceof String)) {
+ if (arguments.length > 3) {
if (Config.logCoords) {
throw new LuaException("Coordinate logging is enabled, disable this to enable naming");
+ } else if(!(arguments[3] instanceof String) {
throw new LuaException("Bad argument #4 (expected string)");
}
}
Could you make some kind of GPS Module as a Turtle peripheral, so that the Turtle can use something like this?
local gps = peripheral.wrap("left")
local x,y,z = gps.getPosition()
One thing that I always found nearly impossible to do, was to get a turtles position for continuing a program after a chunk unloaded and reloaded. Using Rednet for GPS is pretty much not an option if you want a turtle to move over a large area or just want to place it down and fire it up.
The GPS Module should be reasonably expensive IMO, since it is a pretty nice thing to have.
Maybe it could be upgrade from the Compass module. :)
Thanks for reading o/
normal and advance teleporters spawn and link with a repeater fine
but I can't get the turtle.to teleport
I know I'm missing something or doing something stupid... but the ppp in the correct mod folder etc...
help need my turtles teleporting
If you're going to include your build.gradle
you should also supply the gradle folder as well as the gradlew and griddlew.bat
Hello,
First, this is an awesome mod and I'm really glad somebody has brought back MiscPeripherals—and even better!
Second, I've noticed that if I have an ME Security Terminal from AE2 connected to the same network as the ME Bridge peripheral, both retrieve() and craft() methods return "Java Exception Thrown: java.lang.ClassCastException". When I remove the Security Terminal, the methods work as expected. (listAll(), listItems(), and listCraft() work in both instances). AE2 requires you to have the security terminal connected in order to use the wireless terminal (I think), so this potentially renders the peripheral useless if one likes to use the wireless terminal.
Thank you!
Andreiovitch
while running this script:
//
chatbox = peripheral.wrap("left")
speaker = peripheral.wrap("right")
while true do
event, player, message = os.pullEvent("chat")
if message ~= nil then
speaker.speak(message, 100, "en")
end
end
//
it runs one time, outputs a chatmsg via speakers and then show the following error:
Java Exception Thrown:
java.lang.ArrayIndexOutOfBoundsException: 3
MEBridge crash in ae2RV2
The Jenkins link appears to be dead, you may know this already.
Non-fatal exception thrown while preparing program mount:
http://pastebin.com/MfciFvAb
Confirmed in latest dev build.
I have a problem with the chatbox:
When I call chat.tell("ply", "msg"), I get a java exception about the mod didn't found the "Vec3 func_70666()" function in EntityPlayer. This only happens on the server-side.
I'm using the 1.2.7 version of the mod on Minecraft 1.7.10 with Forge #1291 running in Java 1.8.0-ea-b120 (Java8)
Simple, Turtle moves next to RF Charger, causes crash.
ComputerCraft 1.73
Peripherals++ 1.2.2
http://pastebin.com/PKtKChqu
Title says it all. The title is multifunctional.
Railcraft and Buildcraft both use RF, I have no idea how/if the api is different but I would love to be able to use it with these mods. Some people even run power-converters and Might want the option.
ME bridge crashes when it is placed on the ground and when loaded in start up. Crash report here http://pastebin.com/p8KS0xkm
This is a minor bug.
The hud.getResolution()
function returns the resolution from the small GUI scale.
Would be nice to either get the resolution depending on GUI scale or get a hud.getGUIScale()
function. (Or even have the GUI scale be a third variable to return from hud.getResolution()
).
And in the case of getting the GUI scale I then mean a number, like 50% of the resolution.
Last option could also be to ignore the GUI scale and have it draw smaller anyways, but that wouldn't be a good solution imo.
You should really break up every version that you start working on into branches then once your done with that version merge it into master. Just a suggestion.
Hello.
Whenever I try starting my server using Cauldron 1236 it crashes on me. I've tried launching the server without Cauldron and that works fine.
I really hope you manage to fix this(if it's on your end) because I love this mod and I really want it on my server. Thank you.
My crash log is here: http://pastebin.com/fJ9FpkTK
EDIT: I just read http://www.computercraft.info/forums2/index.php?/topic/20903-mc-1710cc-165-peripherals-v120beta4-miscperipherals-reimagined-now-includes-speakers/page__view__findpost__p__203322 and I understand this can't be fixed. This really sucks... Oh well.
There's already a Project Red upgrade to allow it's tools to go onto Turtles, can we have it so Bluepower's can be as well?
http://paste.ee/p/YwEN9
this just randomly started happening, I would give more info but really have none
Apparently it hasn't been suggested yet, so I do it : OpenPeripherals add a Player Interface to allow modification of player inventory. Could it be added to PPP ? Because I think your mod offers more content than OpenPeripheral do, and I don't like to add mods that do almost the same thing...
In case you don't know it (or for anyone who come here), the PIM allow to edit player inventory who stands on it. A wiki page about it : http://ftbwiki.org/PIM
I was just watching Etho's modded episode (https://youtu.be/T3fceIoQsE4) where he introduced Peripherals++ to his series, and he had this idea that the custom NPCs you can make with the Custom NPCs mod should be able to communicate with computercraft via the chat.
If you're not familiar with custom NPCs then it's a mod that lets you make custom NPCs (surprise surprise) but also lets you script them, like entity turtles.
Would be cool if you could tap into the NPCs API (if they have one) and have the ChatBox listen to their chat messages as well.
Link to Custom NPCs: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1278956-custom-npcs
Hello there!
I'm back with new issue.
In our CC casino we have CC server, that response to slot machines request about jackpot. That server solves every jackpot thing - add items to jackpot, generate jackpot, payout jackpot... But if we want to log every acess on server with time, we have to use AEdison's function, that returns timestamp. That function get timestamp at our web. But sometimes this function has 0.4 ms response time. Thats too much. If server waits for time to log, in this time teoreticaly can get 5 request about jackpot and due to this wait time, 5 slot machines can't get information about jackpot and generates only common wins. What we need is some function that allow you get unix timestamp from java server. That's all.
If you want to look at sourcecode of AEdison rtime funciton, here is: http://pastebin.com/XDjBMX3z
Things like display name, amount, etc
From: http://www.computercraft.info/forums2/index.php?/topic/20903-mc-1710cc-165-173-peripherals-v129-miscperipherals-reimagined-now-includes-speakers/page__view__findpost__p__216776
Add a (boolean) arg, isAsync maybe
Im adding this in mxSurvival reloaded v2. I couldn't contact on the CC forums cuz im banned there, I have to use a proxy to view it.
Currently, there is a large issue I have found while running my server.
The console reads: "5.0", over and over (approx. 25 times per second). This lags the server, and affects me, a server owner, by spamming the console to the point where it's unreadable.
For the SMP Rocket crash, when you place a rocket, the server crashes instantly. Looking through the tracelog, I can verify that the mod is attempting create an instance of an Audio file on the server. (a.k.a. Audio in wrong Proxy, put in client, not common).
When running this in singleplayer however, the problem is non-existent, however, it still spams the console
I hope this helps the mod and other people with this same issue.
Hello. When deleting/removing/unloading a world with Multiverse it crashes my server. Here's a pastebin. I tried disabling Satellites in the config but it doesn't remove it completely I guess. Let me know if this is a Multiverse issue, I'm reporting it here because my crash doesn't mention Multiverse at all.
Server crashes on rocket place event.
though from your file comments it looks like you know the rocket sounds are broken.
Error log: http://pastebin.com/Xm5wqcqn
I have a suggestion for the Ore Dictionary Peripheral block, and I think that it should have all the same functionality as the Ore Dictionary Peripheral for Turtles, just using an adjacent chest's inventory for storage.
Looks like you're not properly checking if it's a client or a server.
Using the getUnlocalizedName() method from the turtle's barrel upgrade will output a different unlocalized name than CC's turtle.getItemDetail() name.
Is there some way how you can fix orignal CC FakePlayer? We have some problems with turtles going into residence...
Don't know if you noticed this but as the title says. You somehow are rendering the rockets model using inverted normals. So all the back faces of the block model are visible instead of the front faces.
Hello there!
First i want to apologize for my bad English - I'm from Czech.
I had a big problem. My friend AEdison wrote a complex program for my server. It works like real casino. Everythink is good, but when he want's to move modded items from ME to chest, function returns 0. But when he want move vanilla items, all works. If you need more informations, ask me here. Or we can meet on my TeamSpeak server.
Greetings
ArcasCZ
I am trying to use the smart helmet but it doesn't draw anything on my screen.
I tried using the helmet
program that comes with the mod (the Dynamic Mount so to speak) by @Fxzy (says Fxz_y in the code) but the only thing that worked on there was the print resolution option. I played around a bit more and found that it simply can't draw for some reason. Super strange.
This is the program I tested and it doesn't do anything noticeable, while it should make a big red bar at the top right?
p = peripheral.find("antenna")
hud = p.getHUD(p.getPlayers()[1])
w,h = hud.getResolution()
color = hud.getColorFromRGB(255,0,0)
hud.drawRectangle(0, 0, w, 200, color)
hud.sync()
You can't cache the peripherals in your upgrades. #createPeripheral(ITurtleAccess, TurtleSide)
shouldn't retain the new instance like you've done in PeripheralXP and the likes. Doing so will mean all Turtles share the same peripheral, which can really cause problems, especially if it is location dependent! When you need the IPeripheral back in #update(ITurtleAccess, TurtleSide)
, you can do
@Override
public void update(ITurtleAccess access, TurtleSide side) {
IPeripheral periph = access.getPeripheral(side);
if (periph instanceof PeripheralXP) {
PeripheralXP xp = (PeripheralXP) periph;
// do what you need here
}
}
This error occurs after all mods are initialized when starting with the bleeding edge build.
Versions:
Server: Cauldron Latest
Forge: 1231
P++: B13
Crash log: https://pste.me/#/vDL3H
http://puu.sh/dROsr/fd2c8a61df.png
http://pastebin.com/Z7Cnj7R0
Probably on line 36-40
When installing P++ onto my dedicated server, the mounted programs seem to generating twice. Once in /null/mods/ppp_mount and /mods/ppp_mount/
Specific OS + Java Version:
Debian 7 (Wheezy)
Java 1.7.0_65 (Iced Tea 2.5.3)
High
Medium
Low
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.