Jump to content




[DISC/OpenSourced] Portable Peripherals 1.0 - PDAs, turtle transmitter!

wireless computer turtle

43 replies to this topic

#1 mentlerd

  • Members
  • 22 posts

Posted 15 February 2013 - 08:49 AM

PortablePeripherals v1.0b Discontinued

It appears I wont be able to work on this anymore, so I decided to make my source code public, hoping someone could make something out of it:

PPeripherals_stable.zip



Latest version: PortablePeripherals 1.0b

Since this is my first serious mod, I am open to any suggestions!

What is this?

This is a mod that adds wireless terminals (or PDAs if you prefer), and transmitters to computercraft! Using these these devices you can access your computers from 256-640 meters away, no more turtle chasing!




Posted Image


Terminals have support for multiple computer screens, colors, multiple users, and events! Pressing a key, or clicking the screen will queue an event on the host computer. For further info, see technical details.


How do I craft X?

Recipes are quite simple, they use vanilla minecraft items, for now. You can see their recipes on the image:
Spoiler

How do I use these items?

For a simple connection, you will need to create a transmitter, a terminal, and two quartz crystals. Transmitters and terminals are linked using crystals, if your terminal has a crystal that matches your transmitters, it will link up automatically.

If you wish to extend the range of your transmitter, put up to 4 antenna blocks on the top of it.

Altought crystals are not that simple. They have a frequency associated with. To change the frequency of a crystal, you need to 'pollute' it with other items. Put a crystal in the center of the crafting grid, and start placing items around: ( Be aware that the crystal does NOT support items that can be damaged, like tools, or armor )

Spoiler
As mentioned above, your crystals must have the same frequency to work!

Simplest usecase

Well, if you are not an advanced programmer, just use the built in program: transmit!
This little program will start the specified program, and transmit its output to a wireless transmitter. All events from the pda are translated, just like you started a program on a real computer!
transmit <side> <program>
transmit right shell

API

The api is quite simple, it is exactly the same as a monitors. You have to wrap the device, and you can use it just like a monitor!

Since version 1.0, there are a few new functions tough:
Spoiler

Technical details

The range of transmitters is limited to 256 right now, but it is a subject to change.
For people who want to mess with the internal workings, currently these events are supported:
Spoiler

Downloads, and Changelog

[CC. 1.481][MC 1.4.7] - PortablePeripherals_1.0b

[CC. 1.481][MC 1.4.7] - PortablePeripherals 0.9b
[CC. 1.481][MC 1.4.7] - PortablePeripherals 0.9 RC1


Changelog:
Spoiler


#2 Xavura

  • Members
  • 13 posts
  • LocationEngland, UK

Posted 15 February 2013 - 08:57 AM

It's great that we finally have an alternative to CCPortable (which was never updated for 1.4). I have really enjoyed testing this add-on and am happy to see a release. :)

Give it a try people, I've had some fun with this.

#3 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 15 February 2013 - 09:43 AM

*Claps* Well done! Downloading...
EDIT: Amazing! But I recommend moving them to the ComputerCraft creative tab.
EDIT 2: Clicking isn't working...
EDIT 3: If you insert a crystal and then immediately try to access the terminal, Minecraft crashes. You have to close and re-open the PDA not to crash.

#4 Ehrlingby

  • Members
  • 25 posts

Posted 15 February 2013 - 11:11 AM

CCPortable is going to update too, I'm kind of the beta tester for the upcoming version! :)

#5 mentlerd

  • Members
  • 22 posts

Posted 15 February 2013 - 11:20 AM

 Shnupbups100, on 15 February 2013 - 09:43 AM, said:

If you insert a crystal and then immediately try to access the terminal, Minecraft crashes. You have to close and re-open the PDA not to crash.

Could you send me the crashlog, or give more detailed info about this? I can't seem to reproduce.

I have fixed mouse events not working, also plan to add mouse_drag, mouse_scroll in the bugfix version. (Sometime tomorrow)

#6 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 16 February 2013 - 03:38 AM

The range should be configurable like with Computer Craft as a whole. Or may be it could be (computer range x 4) since that kind of what it is right now with the default settings.

#7 Xavura

  • Members
  • 13 posts
  • LocationEngland, UK

Posted 16 February 2013 - 06:56 AM

 Ehrlingby, on 15 February 2013 - 11:11 AM, said:

CCPortable is going to update too, I'm kind of the beta tester for the upcoming version! :)
Ah that's cool, competition is healthy anyway. ;)

 Left4Cake, on 16 February 2013 - 03:38 AM, said:

The range should be configurable like with Computer Craft as a whole. Or may be it could be (computer range x 4) since that kind of what it is right now with the default settings.

I agree that the range should be configurable but I'm also fond of the antenna idea...

#8 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 16 February 2013 - 08:27 AM

 Shnupbups100, on 15 February 2013 - 09:43 AM, said:

*Claps* Well done! Downloading...
EDIT: Amazing! But I recommend moving them to the ComputerCraft creative tab.
EDIT 2: Clicking isn't working...
EDIT 3: If you insert a crystal and then immediately try to access the terminal, Minecraft crashes. You have to close and re-open the PDA not to crash.

It seems to happen when you click a terminal and there is no crstal in the tab. However the tab dose not load the crystal imminently on insertion, but rather when you close and reopen it.

#9 absorr

  • Members
  • 41 posts
  • LocationUnited States

Posted 16 February 2013 - 10:27 AM

Hi, I would like to add your mod into a Tekkit addon I am making called the Hackers' Modkit. The modkit is all about adding more things for programming lovers to be able to do more with their code within Tekkit Lite. It will be an addon through the new custom zip feature in the Technic Launcher. You will, of course, be given the proper credit for your mod. I hope to hear from you soon with your reply!

#10 mentlerd

  • Members
  • 22 posts

Posted 16 February 2013 - 11:49 AM

Thank you for the detailed crash report. Fixed.

Current versions changelog:
- Fixed mouse events being off
* added pda_scroll, and pda_drag events
- Moved items to the CC Creative tab
- Added config option for the transmitter max range

#11 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 16 February 2013 - 04:18 PM

Not sure if this is really a big deal, but I have a 4:3 monitor and if full screen with GUI set to auto the edges of the window go off screen. Not so much that any aspect of it is un-usable, but just thought you would like to know.

#12 Thomasims3

  • Members
  • 16 posts
  • LocationBelgium

Posted 17 February 2013 - 01:44 AM

 Xavura, on 16 February 2013 - 06:56 AM, said:

 Ehrlingby, on 15 February 2013 - 11:11 AM, said:

CCPortable is going to update too, I'm kind of the beta tester for the upcoming version! :)/>
Ah that's cool, competition is healthy anyway. ;)/>

Ah great now I have to compete with someone who already released his peripheral... oh well, i have a great feature planned anyway

Nice peripheral btw
EDIT: it might not be a big competition now that I look at it, mentlerd has worked mostly on the transmitter while I've been putting my time in the PDA.( no spoilers untill I release first version :))

#13 DorfDepp

  • Members
  • 3 posts

Posted 18 February 2013 - 02:53 AM

Any way to make your mod compatible with xfel peripheral cable?


Time: 17.02.13 14:50

Description: Exception in server tick loop

java.lang.AbstractMethodError: hu.mentlerd.ccportable.shared.TileEntityTransmitter.writeToNBT(Lbq;)V
at xfel.mods.cccable.common.blocks.TileCableServer.b(TileCableServer.java:193)
at aam.a(AnvilChunkLoader.java:311)
at aam.a(AnvilChunkLoader.java:127)
at im.b(ChunkProviderServer.java:232)
at im.a(ChunkProviderServer.java:284)
at in.a(WorldServer.java:844)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:373)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:605)
at bdz.q(IntegratedServer.java:170)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
at fy.run(SourceFile:849)



#14 mentlerd

  • Members
  • 22 posts

Posted 18 February 2013 - 03:48 AM

I tracked down the problem, I have to refactor the codebase entirely, because I made a design mistake with interfaces. I already made the code compile without errors, but I have to test everything again, so it will take a while. ( I think it will be done in less than 2 days )

#15 schilcote

  • Members
  • 9 posts

Posted 18 February 2013 - 07:53 AM

Neat-O.

I'm working on a little project that this could be helpful for, for mapping and stuff. The range limit is going to be a tremendous pain for that though.

You might make it so that we can have boosters that take EU or something to transmit their signal for long distances.

EDIT:

Though I just tested it, and 256 blocks is a lot further than I thought. :P

#16 abihoooo

  • Members
  • 33 posts
  • LocationForge World

Posted 18 February 2013 - 09:34 AM

It would be awesome if you could make a turtle peripheral for the PDAs. RC turtles!

#17 mentlerd

  • Members
  • 22 posts

Posted 18 February 2013 - 09:58 AM

At the end, I decided to implement antenna blocks

 schilcote, on 18 February 2013 - 07:53 AM, said:

The range limit is going to be a tremendous pain for that though.

I might add a cheat antenn, uncraftable, and it would give you infinite range. If there is a need for it.

 abihoooo, on 18 February 2013 - 09:34 AM, said:

It would be awesome if you could make a turtle peripheral for the PDAs. RC turtles!

The refactoring has a positive side effect that transmitters can exist now without tile entites, so this is comeing in the next update!

Update:
Posted Image

I still have to work on antenn blocks, and a way to allow turtles to select their transmitters frequency.

#18 abihoooo

  • Members
  • 33 posts
  • LocationForge World

Posted 18 February 2013 - 11:05 AM

Quote

I still have to work on antenn blocks, and a way to allow turtles to select their transmitters frequency.

You can do something like t.selectCrystal(slot), or craft the peripheral with a crystal.

#19 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 19 February 2013 - 01:05 PM

You said you looking for better textures.
How about this? Attached Image: PP.png

#20 mentlerd

  • Members
  • 22 posts

Posted 20 February 2013 - 05:56 AM

Updated to 1.0

Added turtle peripheral for terminals, and antenna blocks. I tried to resolve compatibility issues, but did not really tested it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users