Jump to content




[CC 1.5] [MC 1.4.6/1.4.7] [SMP] Xfel's peripherals - New cable appearance!

peripheral api

524 replies to this topic

#441 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 23 September 2012 - 06:37 PM

OK, here it is... peripheral cables are updated for MC1.3.2 and CC1.42 . I think I also fixed most bugs. ARP will take a while longer, as it is a lot more complex.

#442 DarkSnake

  • Members
  • 48 posts

Posted 26 September 2012 - 10:24 PM

As I was removing a cable from the side of my computer... :S
(Hooked this cable to another cable which was colored white, hooked to a disk drive...
http://pastebin.com/wQWNzEAJ

#443 kaj

  • Members
  • 43 posts

Posted 26 September 2012 - 10:50 PM

Hello.
Just posting to say thanks for the quick update to 132,
and also thanks for splitting the peri-cables and arp into separate DL's.
-Much more convenient IMO.

- as an afterthought, I don't know if this is a bug or intended, but I seem unable to print the same message on two monitors using the same color cables.
Any chance you could make this work in future?
- so that you could use one computer to write (the same) text on several monitors across your base (or server) ?

thanks again

-kaj

EDIT: How can I change the block ID??
It dosen't seem to generate a config file.

#444 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 27 September 2012 - 05:45 AM

This is intentional. You can only acces one peripheral over one color tag. tre, it might work for monitor.write(), but what if you call monitor.getSize() ant the monitors don't have the same size? No, to stay universal, this shouldn't be allowed.

@DarkSnake:
I thought I fixed that one... seems that I didn't. I'll look into it, but not for a week or so, as I'm busy in real life.

PS: the project is open source on github now. so if anyone has an idea for a fix, you might implement it and write a pull request.

#445 DarkSnake

  • Members
  • 48 posts

Posted 27 September 2012 - 11:41 AM

View PostXfel, on 27 September 2012 - 05:45 AM, said:

This is intentional. You can only acces one peripheral over one color tag. tre, it might work for monitor.write(), but what if you call monitor.getSize() ant the monitors don't have the same size? No, to stay universal, this shouldn't be allowed.

@DarkSnake:
I thought I fixed that one... seems that I didn't. I'll look into it, but not for a week or so, as I'm busy in real life.

PS: the project is open source on github now. so if anyone has an idea for a fix, you might implement it and write a pull request.

aww! :3 ok

#446 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 28 September 2012 - 05:45 PM

Oh, seems I actually found time to fix the bugs. So hey, there is a new release. Any point such an exception could possibly occur is now heavily secured. They cannot crash your minecraft anymore in any possible way.

#447 DarkSnake

  • Members
  • 48 posts

Posted 28 September 2012 - 06:15 PM

View PostXfel, on 28 September 2012 - 05:45 PM, said:

Oh, seems I actually found time to fix the bugs. So hey, there is a new release. Any point such an exception could possibly occur is now heavily secured. They cannot crash your minecraft anymore in any possible way.

yay

#448 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 29 September 2012 - 05:26 AM

View PostXfel, on 27 September 2012 - 05:45 AM, said:

This is intentional. You can only acces one peripheral over one color tag. tre, it might work for monitor.write(), but what if you call monitor.getSize() ant the monitors don't have the same size? No, to stay universal, this shouldn't be allowed.

It could call the method on all peripherals but only return the result from one of them (arbitrarily).
If you call monitor.getSize() it would return the size of any one of your monitors, so unless you know what you're doing they'd better all be the same size.

#449 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 29 September 2012 - 07:22 AM

That would be too unpredictable. It may work for monitors, but imagine you had two arp digital chests at one address. You would only get the content of one, but the manipulation methods would be executed on both. That's absolutely not a good solution.
Additionally, the current routing process wouldn't work with it. it assumes that there is only one peripheral per color tag, which allows it to call, add and remove peripherals much faster.

#450 DarkSnake

  • Members
  • 48 posts

Posted 29 September 2012 - 03:28 PM

Ermm... I was just right clicking a cable in my test world... >_>
Computer->Cable->Cable->Disk Drive

	  Minecraft has crashed!	 
	  ----------------------	 
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:UsersDarkSnakeAppDataRoaming.minecraftcrash-reportscrash-2012-09-29_11.27.15-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.

--- BEGIN ERROR REPORT 84a37f82 --------
Generated 9/29/12 11:27 AM
- Minecraft Version: 1.3.2
- Operating System: Windows NT (unknown) (amd64) version 6.2
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 8346214192 bytes (7959 MB) / 8555069440 bytes (8158 MB) up to 8555069440 bytes (8158 MB)
- JVM Flags: 6 total; -Xincgc -Xmx8192m -Xms8192m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=4
- FML: FML v3.1.30.390 Minecraft Forge 4.1.4.295 32 mods loaded, 32 mods active
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
mod_CodeChickenCore [CodeChicken Core] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
mod_NotEnoughItems [Not Enough Items] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
BuildCraft|Core [BuildCraft] (buildcraft-A-3.2.0pre7.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
BuildCraft|Builders [BC Builders] (buildcraft-A-3.2.0pre7.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
BuildCraft|Energy [BC Energy] (buildcraft-A-3.2.0pre7.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
BuildCraft|Factory [BC Factory] (buildcraft-A-3.2.0pre7.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
BuildCraft|Transport [BC Transport] (buildcraft-A-3.2.0pre7.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
BuildCraft|Silicon [BC Silicon] (buildcraft-A-3.2.0pre7.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
CameraCraft [Camera Craft] (CameraCraft.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
CCCable [ComputerCraft Peripheral Cables] (cccable-1.1.1-universal.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
chocolatefoodstuffs [Chocolate Foodstuffs] (ChocolateFoodstuffs) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
ComputerCraft [ComputerCraft] (ComputerCraft) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
CCTurtle [ComputerCraft Turtles] (ComputerCraft) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
ExtraBees [Extra Bees] (extrabees-1.4.0.16-dev-build.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forestry [Forestry for Minecraft] (forestry-A-1.5.0.2.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
MSC [Mob Spawn Controls] (Forge_MobSpawnControlsv1.3.2.1.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
IC2 [IndustrialCraft 2] (industrialcraft-2_1.106.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
mod_InvTweaks [Inventory Tweaks] (InvTweaks-1.43b-1.3.2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
LogisticsPipes|Main [Logistics Pipes] (LogisticsPipes-0.5.1.pre3.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
MiscPeripherals [MiscPeripherals] (miscperipherals-1.0b1.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
CompactSolars [Compact Solar Arrays] (mod_compactsolars-main-3.0.1.13.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
IronChest [Iron Chest] (mod_ironchests-client-4.0.2.44.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
mod_Boombox [mod_Boombox] (PK_Boombox_1.3.2_v2.1(PiKPod).zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
mod_BoomboxRemote [mod_BoomboxRemote] (PK_Boombox_1.3.2_v2.1(PiKPod).zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
PortalGun [PortalGun] (portalgun.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
Railcraft [Railcraft] (Railcraft_6.0.0.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
redstoneblock [RedStone Block] (RedStoneBlock) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
TreeCapitator [TreeCapitator] (Treecapitator.FML.1.3.2.r02.Universal.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
WirelessRedstoneCore [Wireless Redstone] (WirelessRedstone.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
ASTU [ASTU] (zASTU.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available->Available
- LWJGL: 2.4.2
- OpenGL: GeForce GTX 550 Ti/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
- Is Modded: Definitely; 'forge,fml'
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- World MpServer Entities: 34 total; [atg['Serpen64'/191004, l='MpServer', x=-777.89, y=6.37, z=-233.74], mt['Pig'/190924, l='MpServer', x=-840.03, y=4.00, z=-279.91], EntityBlock['unknown'/191303, l='MpServer', x=-786.25, y=8.25, z=-262.75], EntityBlock['unknown'/191304, l='MpServer', x=-785.75, y=7.00, z=-262.75], EntityBlock['unknown'/191305, l='MpServer', x=-785.75, y=8.25, z=-263.25], EntityBlock['unknown'/191306, l='MpServer', x=-785.60, y=6.00, z=-262.60], EntityMechanicalArm['unknown'/191302, l='MpServer', x=-782.00, y=4.00, z=-253.00], mt['Pig'/190965, l='MpServer', x=-708.97, y=4.00, z=-251.97], od['Villager'/190958, l='MpServer', x=-728.59, y=5.00, z=-310.22], od['Villager'/190971, l='MpServer', x=-698.50, y=5.00, z=-301.94], od['Villager'/190959, l='MpServer', x=-740.38, y=4.00, z=-290.72], mp['Cow'/190944, l='MpServer', x=-786.94, y=4.00, z=-304.97], od['Villager'/190957, l='MpServer', x=-728.91, y=5.00, z=-304.72], mt['Pig'/190960, l='MpServer', x=-726.84, y=4.00, z=-260.84], mt['Pig'/190966, l='MpServer', x=-712.91, y=4.00, z=-238.16], od['Villager'/190972, l='MpServer', x=-702.91, y=5.00, z=-310.69], od['Villager'/190975, l='MpServer', x=-703.59, y=5.00, z=-309.63], mt['Pig'/190923, l='MpServer', x=-836.16, y=4.00, z=-274.59], nj['item.item.egg'/190927, l='MpServer', x=-834.94, y=4.13, z=-262.84], mo['Chicken'/190926, l='MpServer', x=-835.44, y=4.00, z=-262.56], mu['Sheep'/190925, l='MpServer', x=-833.81, y=4.00, z=-284.63], mu['Sheep'/190930, l='MpServer', x=-818.97, y=4.00, z=-294.06], mt['Pig'/190931, l='MpServer', x=-830.38, y=4.00, z=-287.84], mo['Chicken'/190928, l='MpServer', x=-845.56, y=4.00, z=-195.44], mo['Chicken'/190929, l='MpServer', x=-842.25, y=4.00, z=-201.81], mu['Sheep'/190934, l='MpServer', x=-808.94, y=4.00, z=-312.91], mp['Cow'/190935, l='MpServer', x=-806.84, y=4.00, z=-313.97], mp['Cow'/190932, l='MpServer', x=-822.84, y=4.00, z=-184.97], mo['Chicken'/190938, l='MpServer', x=-812.63, y=4.00, z=-204.41], mp['Cow'/190939, l='MpServer', x=-802.41, y=4.00, z=-180.59], mu['Sheep'/190936, l='MpServer', x=-808.31, y=4.00, z=-275.19], nj['item.item.egg'/190937, l='MpServer', x=-815.19, y=4.13, z=-203.09], mo['Chicken'/190940, l='MpServer', x=-805.53, y=4.00, z=-180.53], od['Villager'/190979, l='MpServer', x=-703.28, y=5.00, z=-288.53]]
- World MpServer Players: 1 total; [atg['Serpen64'/191004, l='MpServer', x=-777.89, y=6.37, z=-233.74]]
- World MpServer Chunk Stats: MultiplayerChunkCache: 441
- Forced Entities: 36 total; [mp['Cow'/190944, l='MpServer', x=-786.94, y=4.00, z=-304.97], EntityBlock['unknown'/191306, l='MpServer', x=-785.60, y=6.00, z=-262.60], EntityBlock['unknown'/191304, l='MpServer', x=-785.75, y=7.00, z=-262.75], EntityBlock['unknown'/191305, l='MpServer', x=-785.75, y=8.25, z=-263.25], EntityMechanicalArm['unknown'/191302, l='MpServer', x=-782.00, y=4.00, z=-253.00], EntityBlock['unknown'/191303, l='MpServer', x=-786.25, y=8.25, z=-262.75], od['Villager'/190957, l='MpServer', x=-728.91, y=5.00, z=-304.72], od['Villager'/190959, l='MpServer', x=-740.38, y=4.00, z=-290.72], od['Villager'/190958, l='MpServer', x=-728.59, y=5.00, z=-310.22], mt['Pig'/190960, l='MpServer', x=-726.84, y=4.00, z=-260.84], mt['Pig'/190965, l='MpServer', x=-708.97, y=4.00, z=-251.97], mt['Pig'/190966, l='MpServer', x=-712.91, y=4.00, z=-238.16], od['Villager'/190971, l='MpServer', x=-698.50, y=5.00, z=-301.94], od['Villager'/190972, l='MpServer', x=-702.91, y=5.00, z=-310.69], od['Villager'/190975, l='MpServer', x=-703.59, y=5.00, z=-309.63], mt['Pig'/190923, l='MpServer', x=-836.16, y=4.00, z=-274.59], nj['item.item.egg'/190927, l='MpServer', x=-834.94, y=4.13, z=-262.84], mo['Chicken'/190926, l='MpServer', x=-835.44, y=4.00, z=-262.56], mu['Sheep'/190925, l='MpServer', x=-833.81, y=4.00, z=-284.63], mt['Pig'/190924, l='MpServer', x=-840.03, y=4.00, z=-279.91], mu['Sheep'/190930, l='MpServer', x=-818.97, y=4.00, z=-294.06], mt['Pig'/190931, l='MpServer', x=-830.38, y=4.00, z=-287.84], mo['Chicken'/190928, l='MpServer', x=-845.56, y=4.00, z=-195.44], mo['Chicken'/190929, l='MpServer', x=-842.25, y=4.00, z=-201.81], mu['Sheep'/190934, l='MpServer', x=-808.94, y=4.00, z=-312.91], mp['Cow'/190935, l='MpServer', x=-806.84, y=4.00, z=-313.97], mp['Cow'/190932, l='MpServer', x=-822.84, y=4.00, z=-184.97], mo['Chicken'/190938, l='MpServer', x=-812.63, y=4.00, z=-204.41], mp['Cow'/190939, l='MpServer', x=-802.41, y=4.00, z=-180.59], mu['Sheep'/190936, l='MpServer', x=-808.31, y=4.00, z=-275.19], nj['item.item.egg'/190937, l='MpServer', x=-815.19, y=4.13, z=-203.09], mo['Chicken'/190940, l='MpServer', x=-805.53, y=4.00, z=-180.53], atg['Serpen64'/191004, l='MpServer', x=-777.89, y=6.37, z=-233.74], od['Villager'/190979, l='MpServer', x=-703.28, y=5.00, z=-288.53], nj['item.item.egg'/190927, l='MpServer', x=-834.94, y=4.13, z=-262.84], nj['item.item.egg'/190937, l='MpServer', x=-815.19, y=4.13, z=-203.09]]
- Retry Entities: 0 total; []
java.lang.NullPointerException
at xfel.mods.cccable.common.blocks.BlockCable.a(BlockCable.java:100)
at atc.a(PlayerControllerMP.java:322)
at net.minecraft.client.Minecraft.c(Minecraft.java:1318)
at net.minecraft.client.Minecraft.l(Minecraft.java:1731)
at net.minecraft.client.Minecraft.J(Minecraft.java:845)
at net.minecraft.client.Minecraft.run(Minecraft.java:775)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 2ea79188 ----------


#451 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 30 September 2012 - 12:34 PM

Oh yes, I forgot to check whether the player actually has an item in hand...

#452 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 30 September 2012 - 12:42 PM

Just fixed.

#453 DarkSnake

  • Members
  • 48 posts

Posted 30 September 2012 - 12:55 PM

View PostXfel, on 30 September 2012 - 12:42 PM, said:

Just fixed.
<3

#454 sylphio

  • Members
  • 20 posts

Posted 30 September 2012 - 07:59 PM

Hello Xfel,

Thank you for releasing the ARP source.. (p.s this mod is awesome)... I took a look on github and and I was just wondering if it may be possible to also release the source of the 1.2.5 version too? (i dont know the extend of change you made before the initial commit).

Thank you

#455 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 01 October 2012 - 12:53 PM

The source for the 1.2.5 version is on my old hard drive... and my pc isn't working currentlly so the answer is no.

#456 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 07 October 2012 - 02:02 PM

After some really hard work, I finished the first pre-release of arp for MC1.3.2, cc1.43. You can download it here. Please report any bugs so I can fix them before the main release.

You should not use the allocator except to craft the digital chest, as it is not finished yet. The digital workbench is not included at all. I'll have to think whether I add id, or if I prefer to operate a buildcraft auto workbench with a digital chest and an allocator.

#457 Sebra

  • Members
  • 726 posts

Posted 07 October 2012 - 04:39 PM

Buildcraft is another mod.
But now we have alternative inside of ComputerCraft.
I mean Crafty Turtles wireless or not.

#458 matejdro

  • Members
  • 324 posts

Posted 07 October 2012 - 04:43 PM

Yeah crafty turtle works OK.

I have never actually used digital workbench, but I suspect that its advantage was in speed? Pretty much everything else in ARP is instantaneous, while regular CC inventory management have delays.

Could you maybe add config option to remove ability to view names of items? I would love ability to move/compare items between any slot in turtle and chest, but actually identifying name of items seems a bit OP.

#459 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 07 October 2012 - 07:03 PM

The item names are a central part of the internal function. They won't get removed, as they are used (along with the ids) to identify the items on the lua side. And I also don't think it's op, as the recipe is also a bit more costly...

@Sebra:
You are right, that's another option. unfortunately, I wasn't able to craft an ARP crafty turtle yet. It's only working for the modem. But you can place a digital chest next to the turtle to operate.

#460 Sebra

  • Members
  • 726 posts

Posted 07 October 2012 - 07:40 PM

You can craft a crafty turtle, place items in slots needed, then ask crafty to craft. Nothing too complex.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users