Comments (11)
- You want https://github.com/CovertJaguar/Railcraft-API/blob/master/mods/railcraft/api/tracks/IRoutingTrack.java
- See https://github.com/CovertJaguar/Railcraft-API/blob/master/mods/railcraft/api/carts/IRoutableCart.java
- Override https://github.com/CovertJaguar/Railcraft-API/blob/master/mods/railcraft/api/signals/SignalController.java
and https://github.com/CovertJaguar/Railcraft-API/blob/master/mods/railcraft/api/signals/SignalReceiver.java - The format is similar to vanilla books, a tag list of pages (tag lists) of lines (string nbt), or something like that. Look at ItemRoutingTable, I could add more support if needed. Not sure if the blocks implement IInventory though. Would be simple to add a function to the api.
from computronics.
Okay, I will look into this after I'm done with AsieLauncher2.
from computronics.
@CovertJaguar IRoutableCart should get a method to get the current owner (if that is related to that interface at all, if not, which interface is the owner related to?).
Additionally, a setter method like ItemRoutingTable.setPages (respective to getPages) would be very useful.
EDIT: 1 and 4 have been implemented, will make a Pull Request in here soon. Number 3 is being worked on and for 2 I'll have to wait.
from computronics.
Railcraft/Railcraft-API@0068793
from computronics.
@CovertJaguar Thank you for implementing getOwner 👍
Will ItemRoutingTable.setPages also be implemented? That would be very useful for setting the routing table content via a computer.
Secondly, apparently the TileEntity of the routing track and its TrackRouting instance aren't being initialized properly when you place the track down, but once it receives a Redstone signal for the first time, it is being recognized; this makes it impossible for OpenComputers to recognize the track as a component until it receives that redstone signal. Is that intended?
from computronics.
Hmm...I wonder if that explains the weirdness you get sometimes when placing tracks.
What function are you triggering off of?
from computronics.
OpenComputers recognizes a TileEntity the following way (See implementation of driver here as reference):
It calls getTileEntityClass which specifies which TE to look for, then it called createEnvironment to actually create the driver. From what I've tested, createEnvironment is never being called at all until you give the track a redstone signal, meaning that the track apparently does not have the TileEntity specified in getTileEntityClass until you apply a Redstone signal, then createEnvironment is being called.
from computronics.
I've never heard of those functions. Are they OC specific? I meant more what event are you tracking neighbors by? onNeighborBlockChanged()? onNeighborTileChanged()? or something completely different.
from computronics.
Everything mentioned is OC specific, and OC handles the neighbor tracking.
from computronics.
Okay, now that we know this is a problem with OC (See MightyPirates/OpenComputers#496), I am almost done with the drivers. Still hoping for ItemRoutingTable.setPages() to be implemented :)
from computronics.
Done. See https://github.com/asiekierka/Computronics/blob/master/changelog.txt for what exactly I added. If you have any more suggestions, please let me know!
from computronics.
Related Issues (20)
- Speech boxes crashing game HOT 6
- Tape playback
- Mitigating constant player chat spam HOT 2
- add support for modern versions of minecraft HOT 5
- Microcontroller Minecarts HOT 1
- Make tape drive installable into robots
- Recipes are created after crafttweaker removes/edits them HOT 2
- Sound card not producing sound HOT 2
- [suggestion for improvement] The camera installed in the OC drone always looks north. HOT 1
- Crash when breaking Cipher Block with items in its inventory
- Railcraft Betas break integration HOT 1
- Incompatibility with BetterFoliage
- Sound card accepts nonsensical floating-point inputs in its methods
- Sound card plays the modulator channel after set to modulate multiple channels
- Computronics 1.7.10-1.6.6 throws an error during loading
- [Wiki] Firefox shows security issue with the Wiki HOT 1
- Computronics Ticket Machine not showing up HOT 2
- Digital Controller Box can NOT send off aspect
- serious vulnerability of tapes [1.12.2]
- Speakers Audio Issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from computronics.