GithubHelp home page GithubHelp logo

austinv11 / peripheralsplusplus Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 28.0 73.46 MB

A pseudo-port of miscperipherals, with other stuff as well!

License: GNU General Public License v2.0

Lua 0.49% Java 99.51%

peripheralsplusplus's People

Contributors

applejag avatar austinv11 avatar darichey avatar grandmind avatar jofkos avatar lordmau5 avatar rolandoislas avatar vexatos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

peripheralsplusplus's Issues

TODO for 1.2.0

  • Finish rocket and satellite system
  • Add built-in programs
  • ???
  • Profit!

Avoid Bundling APIs

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

ChatBox listens to server /say

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.

ChatBox logCoords error reporting

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)");
    }
}

[Feature Request] GPS Module

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/

Gradle

If you're going to include your build.gradle you should also supply the gradle folder as well as the gradlew and griddlew.bat

ME Bridge and network with Security Terminal

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

Chatmsg through Speaker returns outofboundexception after running once

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

Chatbox issues

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)

Smart helmet hud.getResolution()

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.

Using Git

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.

Crash with Cauldron

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.

[Suggestion] Bluepower Upgrade

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?

[Suggestion] Player Interface

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

Chatbox pickup messages from custom NPCs

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

Real time

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

Hey, just wanted to let you know

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.

[Bug] Client/Server Console Log + SMP Rocket Crash

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.

Server crash when deleting worlds with Multiverse

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.

Ore Dictionary Suggestion

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.

Turtle FakePlayer

Is there some way how you can fix orignal CC FakePlayer? We have some problems with turtles going into residence...

Rocket model / inverted Normals

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.

ME Bridge stops work with modded items

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

Smart helmet doesn't work

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()

Turtle Upgrade Peripherals

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
  }
}

Planned features, in order of priority (inclusion TBA)

High

  • OpenComputers Support
  • Magnet Turtle
  • Fix wood in the ore dictionary
  • Make speakers use other methods for tts (added in 1.3.0)
  • Nano Technology (added in 1.3.0)

Medium

  • Villager interface
  • Make speaker be able to play other sounds
  • CClights-esque monitor
  • Chest Upgrade
  • Furnace Upgrade
  • Add in game reference manuals (for general lua, CC, and my mod) that auto-update
  • Dungeon loot
  • More villager trades
  • Cloud Storage :)
  • A controllable Robot mob
  • Make xp turtles drain/give xp to/from players
  • Anvil Upgrade

Low

  • Blood magic turtle: Can use bound blood orbs to activate rituals/runs off LP
  • Grafter and Scoop Upgrades
  • Gate Reader
  • Tree-Tap Upgrade
  • Computer Engineer's Backpack
  • Laser Upgrade
  • Resupply Upgrade and Station (Added in 1.3.0)
  • Security Station
  • Easy-mode programmer block that ‘compiles’ code onto a floppy disk (Steve's Factory Manager-esque) (use CCEdu)
  • IC2 Turtle Charger(s) (Might not happen because the IC2 api is annoyingly unstable)
  • Alchemist Upgrade
  • Solar Upgrade
  • Chunk Loader Turtle Upgrade (Added in 1.3.0)
  • Ore Dictionary block being an inventory (requires a gui)
  • Java Interface
  • Rideable turtles (added in 1.3.0)
  • Wrench Upgrade (Not sure if I'll ever do this, so many issues associated with implementing this)

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.