←  Peripherals and Turtle Upgrades

ComputerCraft | Programmable Computers for Minecraft

»

[MC 1.2.5 / CC 1.4.1] CCPortable - And not...

G3R4RD's Photo G3R4RD 27 Aug 2012

Posted Image
----- Oops -----


It seems this peripheral is bussy with upgrading.

Please come tomorrow back.



What's done:
+ Connecting PDA to a server
When the server is destroyed, the pda will give a message.
+ Every PDA has his own MAC-Address.
Quote

justync7's Photo justync7 27 Aug 2012

Awesome!
Quote

cant_delete_account's Photo cant_delete_account 27 Aug 2012

So basically a portable computer but needs a computer? Cool!
Quote

Graypup's Photo Graypup 27 Aug 2012

Yet not OP... Does the recipe include a battery (if ic2 is installed), a wireless modem, whaat else? Also, *if* you still don't think it's OP, go ask Ecu if it's OP, and how to nerf it.
Quote

G3R4RD's Photo G3R4RD 27 Aug 2012

 Graypup, on 27 August 2012 - 02:25 AM, said:

Yet not OP... Does the recipe include a battery (if ic2 is installed), a wireless modem, whaat else?

I'm gonna add batteries later.
I did get already from other users (from servers) to add batteries. But this is a test, just for looking if there are bugs in it.
And also if you want already to use it. :D/>
Quote

FuzzyPurp's Photo FuzzyPurp 27 Aug 2012

This looks neat. Needs a configurable config file?
Quote

Xfel's Photo Xfel 27 Aug 2012

Tell me... what would be an unconfigurable config file? (The opposite to the configurable config file you proposed)
Quote

FuzzyPurp's Photo FuzzyPurp 27 Aug 2012

 Xfel, on 27 August 2012 - 06:06 AM, said:

Tell me... what would be an unconfigurable config file? (The opposite to the configurable config file you proposed)

Hardcoded ID's/Config files with no ingame effect
Quote

G3R4RD's Photo G3R4RD 27 Aug 2012

There is a config...
When you have started minecraft, it generates it in mods/ccportable.
It's also sets all the PDA ID's there... Will be changed in the next version.

I have already fixed some bugs, and added some new functions.
Quote

FuzzyPurp's Photo FuzzyPurp 27 Aug 2012

Null Pointer Exception if you click the peripheral with the item PDA and the peripherla isn't mounted.
Rebooting and changing Icon seems to hang the PDA?
Running your example program hangs the PC, console errors about the peripheral not being detached, might be related to the problem above( i think this is a CC bug?, i've encountered something like this with another addon, also bricks your PC - ctrl+s,r,t won't work.)
I had to move your receiver API in the rom folder, your mod is not mounting your lua file(s)
Quote

G3R4RD's Photo G3R4RD 27 Aug 2012

 FuzzyPurp, on 27 August 2012 - 09:49 AM, said:

Null Pointer Exception if you click the peripheral with the item PDA and the peripherla isn't mounted.
Rebooting and changing Icon seems to hang the PDA?
Running your example program hangs the PC, console errors about the peripheral not being detached, might be related to the problem above( i think this is a CC bug?, i've encountered something like this with another addon, also bricks your PC - ctrl+s,r,t won't work.)
I had to move your receiver API in the rom folder, your mod is not mounting your lua file(s)

Null Pointer Exception is also fixed, same for the Icon. When you switch from receiver the PDA will be cleared.
About the API is weird, do you have placed the folder in .minecraft/mods and called CCPortable?
Quote

FuzzyPurp's Photo FuzzyPurp 27 Aug 2012

I found the config file, didnt think to look there :D/>

Yea, i also have my CC extracted and installed the old way - as well as all my ccaddons, folders, not zips.
Not sure why the api isn't being loaded i'll test it some more. Even os.load("api/receiver.lua") or ("/receiver.lua")/("receiver.lua")
gives "file not found"

If you punch with the portable receiver with your hand, it breaks instantly with no drop(losing the block)
breaking it with a tool breaks fast and drops the block tho.

Now it just won't work, don't know what happened
Just keep getting "receiver:29: attempt to index ? (a nil value)
but i havent altered the API at all, and it was working before

Waiting to test the new version.
Quote

G3R4RD's Photo G3R4RD 27 Aug 2012

Well, it isn't "api/receiver.lua".
Its load like this:
"mods/CCPortable/api/receiver.lua" > "rom/apis/receiver"

I can just use receiver.adssad(), without any os.load().
Quote

FuzzyPurp's Photo FuzzyPurp 27 Aug 2012

deleting config file fixed the nil error, guess you can't change ID's or something. When's the next version up?
Quote

G3R4RD's Photo G3R4RD 27 Aug 2012

Today. I'm adding some features and testing if there some bugs to fix, then I will post it
Quote

Xfel's Photo Xfel 27 Aug 2012

You should add a way to wrap pda io into a term-like object so that we can use term.redirect (and similar) on it.
Quote

FuzzyPurp's Photo FuzzyPurp 27 Aug 2012

 Xfel, on 27 August 2012 - 11:13 AM, said:

You should add a way to wrap pda io into a term-like object so that we can use term.redirect (and similar) on it.

All the functions of term would be nice
Quote

G3R4RD's Photo G3R4RD 27 Aug 2012

Possible in the Next version:
https://dl.dropbox.c...27_13.36.23.png
There was a bug with the text-size. And now you can do receiver.setTextAt(0, 2, "Hello world", id) :D/>
Quote

FuzzyPurp's Photo FuzzyPurp 27 Aug 2012

 G3R4RD, on 27 August 2012 - 11:38 AM, said:

Possible in the Next version:
https://dl.dropbox.c...27_13.36.23.png
There was a bug with the text-size. And now you can do receiver.setTextAt(0, 2, "Hello world", id) :D/>

Seems PDA's dont unload, needs a way because if i update my program for it and relink it, both old and new software runs.
Quote

G3R4RD's Photo G3R4RD 27 Aug 2012

Updated. Try if you now gets error's. :D/> .
Quote