This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
JustPingo's profile picture

[MC 1.7.10][CC 1.65] ÜNA - Über Networking Antennas

Started by JustPingo, 23 October 2014 - 04:19 PM
JustPingo #1
Posted 23 October 2014 - 06:19 PM
Über Networking Antennas




What is ÜNA ?

ÜNA is a ComputerCraft add-on that let you create huge antennas, allowing you to send messages through a very long distance (even through dimensions), and that without having a huge amount of Chunk Loading. In order to have a little RP dimension and more difficulty, you will have to launch customizables Satellites in space. The gameplay is for now a bit light, but it will surely become richer in the future.

Feel free to use it in any modpack (but just give a credit please lol).


Downloads



Current Version


Compatible with ComputerCraft 1.64 and 1.65


Changelog

- 0.1.0 : Energy Update
- Added Solar Storms Capacitors and Satellite Batteries
- Fixed some potential bugs
- Energy consumption

- 0.0.2 : - Better client/server optimization
- Fixed a major bug with GalactiCraft

- 0.0.1 : First release

My Twitter for the updates

How to use

1. Satellites

Satellites are an essential part of the mod : they allow the antennas to communicate.
Every Satellites have to be made with at least a Satellite Core, it's basically the element that link them all.


Satellite Core

In space, a Satellite Core alone is not enough. So you'll need to add Satellite Bridge Upgrades.
Those upgrades allow antennas to connect to the Satellite. Alone, those upgrades allow 3 antennas to connect to the Satellite.
You can add an illimited amount of them to a Satellite.



Satellite Bridge Upgrade

To launch a Satellite, you'll have to send every element one at a time.
However, when you'll launch a Satellite Core, you will need to have a Satellite Identifier.
This little card will store the name of you future Satellite and the very secret control codes.
(those codes are so secret that you will never see them xD)
Be careful, this card will then become unique. If you loose it, you also loose the control of your Satellite.
By right clicking a Satellite Controler or an Antenna Controler, you link it to the Satellite.


Satellite Identifier

2. Satellite Controller



The Satellite Controller is an element allowing you to send and control Satellites.
It needs energy in order to send satellites (10000 + distanceToSkyInBlocks * 50 Units).
You can send elements to space with it like this :



It is a peripheral. You can call those functions :
  • isComponentSendable(), boolean : Return if a Satellite element is ready to be sent.
  • sendNewSatellite(), boolean : Prepare the platform to send a Satellite Core. To validate, you'll have to right-click the Satellite Controler with a Satellite Identifier. It will then be assigned to this Satellite.
  • sendNewElement(), boolean : Send an element to the connected Satellite (except Satellite Core).
  • selfDestruct(), boolean : Destroy the connected Satellite.
  • getFrequency(), string : Return connected Satellite's name (its frequency).
  • deconnect(), void : Deconnect the connected Satellite from the Satellite Controler.
3. Antennas

Antennas are the main gameplay element of the mod. You build them like this (air blocks may be replaced by everything you want) :

Spoiler






Antenna Frame



Antenna Support



Antenna Transmitter





Antenna Controller


This last block (Antenna Controller) is a peripheral, its functions are the following :
  • isBuilt(), boolean : Return if yes or no the multiblock structure is correctly built (the controler may take up to 30 seconds to realize the the antenna is built again).
  • open(), boolean : Return true if the computer is now correctly listenning messages from the antenna. In case of incoming message, an event is fired ("uber_message") with the sender id and message as parameters. Receiving a message cost 20 Units/listenning antenna to the Satellite.
  • broadcast(string message), boolean : Send the message to every computers listenning an antenna connected to the same Satellite that the sender's one. Return true if the message has been received by at least one computer (just received, not treated).
  • send(number id, string message), boolean : Same as broadcast, but will be received only by the computer with the specified ID.
  • getFrequency(), string : Return connected Satellite's name (its frequency).
  • setFrequency(string frequency), boolean : Allow the user to manually set the frenquency of the targeted Satellite without owning the Satellite Identifier.
4. Energy

ÜNA implements a small and independant energy system.
The Satellite Battery, when connected to a Satellite, give energy storage to the Satellite (10 000 Units).
On the ground, if connected* directly to a Satellite Controller, it allows the Controller to get its energy.
A Satellite Battery can be connected* to a Satellite Solar Storms Capacitor.
Those capacitor catch Solar Storms particles, it happens almost every 30 seconds (it produce 300 Units/30 seconds/capacitor).
Those batteries, if picked by a turtle, keep their energy storage.

* by connect, I mean you only place them next to each other


Known issues
  • peripheral.getFrequency() not working in Satellite Controllers
TODO list
  • More upgrades to Satellites
  • More stuff to do with Satellites and energy
  • Fix little issues said before
License

This mod is licensed under JMMPL 1.0.


Hope you'll enjoy this mod !
Edited on 06 April 2015 - 09:15 AM
Lyqyd #2
Posted 23 October 2014 - 08:03 PM
I would discourage the use of a listMethods peripheral method. It is better to use the built-in method of getting peripheral names, peripheral.getMethods(name).
JustPingo #3
Posted 23 October 2014 - 09:00 PM
I've never heard about that peripheral.getMethods function.
So listMethods will surely disappear in the next update. Thanks.
Agent Silence #4
Posted 24 October 2014 - 12:28 AM
There is a typo, It is controller, not controler
JustPingo #5
Posted 24 October 2014 - 10:14 AM
There is a typo, It is controller, not controler

Yep that's true. Translating mistake.
I'll fix it in the next update.

EDIT : Updated.
Edited on 24 October 2014 - 08:43 AM
ardera #6
Posted 24 October 2014 - 07:32 PM
How do you receive messages? Is there an event or something?
JustPingo #7
Posted 24 October 2014 - 08:13 PM
Yep!

In case of incoming message, an event is fired ("uber_message") with the sender id and message as parameters.
JustPingo #8
Posted 25 October 2014 - 10:15 PM
New update ! ÜNA 0.0.2

Better client/server optimization
Fixed a major bug with GalactiCraft
JustPingo #9
Posted 11 November 2014 - 08:42 PM
New update ! ÜNA 0.1.0

Energy Update
- Added Solar Storms Capacitors and Satellite Batteries
- Fixed some potential bugs
- Energy consumption
Secret2 #10
Posted 20 December 2014 - 06:17 PM
The solar panels only work for a day and then don't generate power again even when it's day time
negamartin #11
Posted 23 December 2014 - 09:59 PM
This is way too overexpensive and overcomplicated, specially when compared with computercraft's standards. It's ok to ask for some enderpearls or some diamonds, but this…
Also, you should replicate the modem API, not rednet.
SpencerBeige #12
Posted 24 December 2014 - 03:43 AM
diemensional? NETFLIX IN THE NETHER!
Darkhej #13
Posted 21 January 2015 - 10:12 AM
Can you please upload it again.
JustPingo #14
Posted 21 January 2015 - 05:25 PM
The solar panels only work for a day and then don't generate power again even when it's day time

Oops. It will be fixed asap.

This is way too overexpensive and overcomplicated, specially when compared with computercraft's standards. It's ok to ask for some enderpearls or some diamonds, but this…
Also, you should replicate the modem API, not rednet.

That was the idea. This things allow you to send message across dimensions.
But anyway, I don't get what is too expensive.
And modem is a little bit too high level. I want you to do some programming instead of just a plug and play system ^^

Can you please upload it again.

Sorry, I had completly forgotten that my dropbox did that annoying thing.
Fixed.
Edited on 21 January 2015 - 04:30 PM
Darkhej #15
Posted 31 January 2015 - 03:28 PM
Thank you.
zurbo #16
Posted 04 April 2015 - 05:09 AM
Hello,
I'm working on a public FTB Modpack and I would like to know if I can use this mod ? I will provide a link to this thread.
JustPingo #17
Posted 06 April 2015 - 11:14 AM
Hello,
I'm working on a public FTB Modpack and I would like to know if I can use this mod ? I will provide a link to this thread.

Yeah, sure!
PomTom12 #18
Posted 22 June 2015 - 04:54 AM
This is cool, Ive been looking for something to send messages long distance
DejaVu #19
Posted 01 July 2016 - 09:04 PM
cool as a bean.
:)/>
joshuachris #20
Posted 13 November 2016 - 10:14 PM
i can't seem to get the batteries to do any thing or the solar storm capacitor but the api works fine
is there a way i can give the satellite controller power