Jump to content


ingie's Content

There have been 58 items by ingie (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#190207 Opinion on OpenComputers?

Posted by ingie on 05 August 2014 - 06:30 PM in General

View PostCranium, on 05 August 2014 - 05:56 PM, said:

View Postingie, on 05 August 2014 - 05:51 PM, said:

View Posttheoriginalbit, on 05 August 2014 - 11:01 AM, said:

well you can make CC recognise and run files with .lua without specifying it, its just that's not what the shell does.
exactly... and it should, out of the box.
OC emulates more of a modern shell. CC is more late 80's early 90's shells. None of those earlier shells had filetype association like you're expecting or used to. You actually had to type out the entire filename by hand in order for it to work.

um... MS-DOS used to happily take BAT and COM/EXE files without the extension back in the 80s ... i've been using DOS since 3.3 and probably before - i'm very old ;)

i do get your point though, and I agree that CC is intended to be retro... and as i say, i do love it for all it is.



#190201 Opinion on OpenComputers?

Posted by ingie on 05 August 2014 - 05:51 PM in General

View Posttheoriginalbit, on 05 August 2014 - 11:01 AM, said:

well you can make CC recognise and run files with .lua without specifying it, its just that's not what the shell does.

exactly... and it should, out of the box.

edit 2: and you make an interesting point... to modify the OC shell and any of the default libraries you just install it on to a virtual hard disk and edit it... CC is faff-city in that regard.

View Posttheoriginalbit, on 05 August 2014 - 11:01 AM, said:

Also the whole tailored to mimic a Linux system can also be a downfall, since a large percentage of the market are Windows users, and a large percentage of Minecraft players are children, they don't necessarily know how to use a unix based system, personally I think the amalgamation of the OSes so people from both worlds can use the system is a good approach (if you don't know what I mean, type dir and ls into a CC computer).

however, since i was talking about why i like it, and i'm 100% linux + mac... that point is moot. plus i'd rather people/children learn how linux/osx works in its structure and methodology, than windows... [ that's not flamebait, it's just how i'd like things to be ] ... unix/osx is more sensible. [ IMO - again, that's not up for discussion here, my point was - i prefer it to CC because of those reasons - edit: i.e. i'm not decreeing everyone else should ]

edit 2: oh, but since you did come back with that point... OC does the same... dir/ls cls/clear help/man etc...



#190171 Opinion on OpenComputers?

Posted by ingie on 05 August 2014 - 10:51 AM in General

my ponderings on this, after using OC for a few days:

it's long and rambling, because i'm like that, so i'll spoiler-wrap it :

Spoiler

TL;DR =
personally, the only thing keeping CC in my "needs" list for a modpack is OpenPeripherals and/or OpenCCSensors depending on what i'm doing... but parts of both of their functionality already exist in OpenComputers in the form of robot module upgrades. I think i'm like the poster above: i'll use CC for creative/map control, OC for actual gameplay.



#184755 Making a turtle move from within its hosted peripheral

Posted by ingie on 20 June 2014 - 12:31 AM in Ask a Pro

update...

aye, it seems it's a combination of both.

i first used ITurtleAccess.teleportTo(World world, int x, int y, int z) to teleport the turtle.
and followed that directly with ITurtleAccess.playAnimation(TurtleAnimation animation) to make turtle do the teleport in it's proper smooth way

perfect.

many thanks again for pointing me at my lack of reading... [ i'd seen that it was "ToDo" documented at the top level of ITurtleAccess and stopped there as it's name wasn't a giveaway for what i thought i wanted ]



#184752 Making a turtle move from within its hosted peripheral

Posted by ingie on 20 June 2014 - 12:14 AM in Ask a Pro

View PostLignum, on 19 June 2014 - 07:10 PM, said:

I believe this belongs in the "Peripheral Help and Discussion" section.

very true... was thinking it was a pro cc question when that's really just usage of cc not coding the api, sorry about that... if it can be moved - that'd be cool by me.

View PostLignum, on 19 June 2014 - 07:10 PM, said:

Anyway, I'm not too experienced with peripheral development but having a quick look at ITurtleAccess, it appears to me that you need to play the moving animation manually with ITurtleAccess.playAnimation(TurtleAnimation).

derp. you're right... for some reason i'd scanned that method as being simply for tool animation... but now i look again, i seeeee....

many thanks.



#184692 [MC 1.7.10 | CC 1.65] OpenCCSensors

Posted by ingie on 19 June 2014 - 05:50 PM in Peripherals and Turtle Upgrades

View PostLyqyd, on 19 June 2014 - 05:42 PM, said:

I'll take a look at what you mean about the checksums, but I haven't had any issues building the mod with the ant script.

it's only when it downloads the forge.zip and unpacks the server... so if you already had them down, then it wouldn't be evident.

[ weirdly, editing the md5s as per that link didn't work on the ant build for OCCS - but it did on the same 8.11 mcp/forge 953 ver when i built my dev env last week - so, ymmv ]



#184677 Making a turtle move from within its hosted peripheral

Posted by ingie on 19 June 2014 - 04:00 PM in Ask a Pro

Hi there.

on the back of "fixing" OpenCCSensors ;) .... well, a tiny little buglet - [ see their thread ] .... can anyone pay me a solid in return:


can anyone cleverer than i advise if there is any way of moving a turtle within a turtle peripheral other than with setDirection and teleportTo?

i have a lovely peripheral which i'm making, but i want the peripheral to command the turtle to move [dependent on a thing]
and whilst insta-teleporting and insta-turning with setDirection will "get me there" - it's not really the nice elegant journey I want :)


i was wondering initially if the executeCommand(ILuaContext context, ITurtleCommand command) would allow this, but looking deeper, it seems not...
seems weird to be a turtle's peripheral and not be able to make the turtle itself do the equivalent of the lua "turtle.forward()" etc...

either
a ) i'm missing something obvious; or
b ) i'm not

:)

many thankity thanks in advance.



#184676 [MC 1.7.10 | CC 1.65] OpenCCSensors

Posted by ingie on 19 June 2014 - 03:50 PM in Peripherals and Turtle Upgrades

Hi folks... well. Lyqyd et al really... :)

... i was having issues with the WorldSensor [as in, it wasn't working] on my kids' server... but the past week i've finally been getting back into coding-as-a-pastime after a long break... so, i was poking around other people's code - as you do - for hints, tips, cunning ways of things...

so, one of my "reference materials" i added today to my workspace was OpenCCSensors, which i thought would be a good source of reference...

while i was in there on my dev world i thought i'd check in case the bug was due to the mod itself or something else on my actual server...

and whoop... i've fixed it...

in openccsensors.common.sensor.WorldSensor.getDetails

there was this:
  Vec3 location = (Vec3) obj;

  HashMap response = new HashMap();

  int x = (int) location.xCoord;
  int y = (int) location.yCoord;
  int z = (int) location.zCoord;

which i changed to this:

  ChunkCoordinates location = (ChunkCoordinates) obj;

  HashMap response = new HashMap();

  int x = (int) location.posX;
  int y = (int) location.posY;
  int z = (int) location.posZ;

i'm a git-n00b, so apologies for not going through the git system and just posting it here... but I thought i'd pass it on to yous. [ edit: i've raised a git issue detailing it, so you all have it to hand ]

but the above change seems to make the world sensor happy [ and i can have my lovely CC sun/moon angle display again ]


enjoy!

oh, and p.s. the ant build doesn't like the checksum of the forge download [ fixable with the last post on this thread http://www.minecraft...with-forge-164/ ]
... i didn't need the ant build as i'm not releasing, just viewing and running with my dev env, but those two checksums are the culprits, so you may wish to update your readme.md with that link until it's not a dependency.



#163625 [WEBSITE] Death's Website!

Posted by ingie on 05 February 2014 - 03:54 AM in General

View Posttheoriginalbit, on 05 February 2014 - 03:51 AM, said:

2. enough common sense
to know that stating what you wrote above is just stupid and superfluous.

huh?

as in: are you referring to me as stupid? i wouldn't expect so, but if so, i'd like to know why...
i'm hoping i'm just not getting the context of "what you wrote" correct :)

edit2: methinks i'm tired - i'm now guessing you meant the bit i cited as being stupid myself. i'll go to sleep now.



#163623 [WEBSITE] Death's Website!

Posted by ingie on 05 February 2014 - 03:42 AM in General

another thought...

the Links: and the Downloads: and Information: bits are superfluous really, as that is evident - and saying it twice detracts from the uncluttered style... and is tautological most of the time :)

I've seen some websites where it pretty much reads: "Welcome to the links page, on this page of links you'll find links to other pages"

Posted Image

:D

on the homepage, it should [and is on your design] obvious what to do next without saying "Links" - similarly on the others...

it's also bad practice in accessibility testing to have "click this" [or click here, or there, or anywhere] as it makes no sense for people using screen-readers etc... better to say "follow this link" or some other wording with the action tied semantically... but since that's inside the old-skool table based layout of espernet's own IFrame, there's not much you can do there... i say it here just to relieve the pain i feel in seeing it there :)



#163621 Is there a way to acquire and dump recipes?

Posted by ingie on 05 February 2014 - 03:14 AM in Ask a Pro

you can't get at that with CC as far as I know...

this mod has all the code you need in its main class, from the look of it... you could strip this down to its bare bones and just dump to a file where it's doing its for (Object orecipe : CraftingManager.getInstance().getRecipeList()) { loop.

https://github.com/F...va/arg/ARG.java


i noticed in DW20 1.5 there was a minium stone bug with turtles... you could use them forever without the stone degrading... i set up a production line of 4 x 8 or something turtles... first line making cobble, then into clay, then into iron, then into gold, then into diamonds - or something like that - with a cobble genning TE device to keep them full... they needed no fuel themselves, they just used compare and rotation to grab, check it crafted, pass on to the input chest of the next turtle... it was ace to watch :)



#163619 [WEBSITE] Death's Website!

Posted by ingie on 05 February 2014 - 02:39 AM in General

View PostDeath, on 05 February 2014 - 02:25 AM, said:

I can't really use bacon ipsum as it's an ordered list-type thing

there's 21 others to choose from on that link :)

but i see what you mean if your intended content is to be OLs. There's a few of those on that link that generate with custom tags, but don't think there's any LI options from what i saw... but you could easily do a fast search-replace on the generated ones to replace the DIVs or whatever with your OL

but no biggie... 'twas just a thought to aid the layout judgement. you get what i mean anyway; the method is immaterial :)



#163615 [WEBSITE] Death's Website!

Posted by ingie on 05 February 2014 - 02:08 AM in General

View PostDeath, on 05 February 2014 - 02:02 AM, said:

Totally didn't see that - sorry :D

Anything else you think I should add?

s'okay :)

um... not really, i think it suits what i imagine you want, judging from your avatar and tag :)
of course, once you get content in, this sorta thing can change how the page really looks
- you should perhaps put some lorem ipsum in there to see how the pages flow when more full of content.

or use a suitable alternative :)


edit: one thing i did think was just that you should move the CSS into a separate file, and the javascript perhaps - it just makes it easier to manage later or apply an alternate theme quickly...



#163613 [WEBSITE] Death's Website!

Posted by ingie on 05 February 2014 - 02:00 AM in General

View Posttheoriginalbit, on 05 February 2014 - 01:39 AM, said:

View Postingie, on 05 February 2014 - 01:34 AM, said:

i'd rather just have fallback to something that looks ok [which it does], than use browser specific css myself, but that's just my personal feelings on it...
browser specific CSS looks the same as the standard, so it may as well just be included.

as i said - personal opinion - in that it shouldn't be included as it makes for more possible errors, and the whole concept is basically evil in my mind - all major browsers support enough ACID compliant non-specific tags to make a perfectly nice website without any specifics... anything which falls outside that should be reconsidered and designed without it, rather than made specific or excluding... again, that's just how i feel about it [ and many designers and devs i've worked with in my job ] - i know others think otherwise and i'm happy for them :)

View PostDeath, on 05 February 2014 - 01:40 AM, said:

EDIT- Do you guys like the button rollover animation?

yup, i said that... i think - assuming what i described with the radii changing is what you mean :)



#163609 [WEBSITE] Death's Website!

Posted by ingie on 05 February 2014 - 01:34 AM in General

i really like it. nice and clean.

i like the buttons as they are now, with the corners curling into the radius nicely.

but yeah, you're not using browser-specific radii [edit: me derpa] transform css... but personally, i'd keep it that way, i'd rather just have fallback to something that looks ok [which it does], than use browser specific css myself, but that's just my personal feelings on it... so long as the fallback still maintains enough contrast to be accessible.

don't like the Welcome side strap though... it doesn't seem necessary. i'd be more inclined to use a font based illuminated text image as the corner strap, like a single corner border of a frame - using the font from your signature at the bottom but more embellished ... but that'd need a graphic illustrator to get looking right...



#163553 [solved] [openperipherals] over lan

Posted by ingie on 04 February 2014 - 06:09 PM in Peripheral Help and Discussion

attach a wired modem to the batbox, then activate it by right clicking on the modem... cable to the computer, with a modem on that too...

then the batbox, from memory, should be "batbox_0" - this should be confirmed when you right-click the modem on the batbox itself, the _0 bit changes for each modem you attach to each batbox

you can then read the capacity with peripheral.wrap("batbox_0").getEUStored() - change batbox_0 to whatever yours is called obviously.



#163550 [TOTALLY OFF TOPIC] Who likes planes? and which?

Posted by ingie on 04 February 2014 - 05:47 PM in General

p1 = (x1, y1, z1)
p2 = (x2, y2, z2)
p3 = (x3, y3, z3)

where p1, 2 & 3 are all non-collinear... ?



#163516 ComputerCraft FTP

Posted by ingie on 04 February 2014 - 01:14 PM in Suggestions

View PostFinal Approach, on 04 February 2014 - 12:22 AM, said:

So I can connect to my NAS and escape from Pastebin!

what is actually the thing you're trying to do?

if you're trying to use your NAS as a place to copy and edit programs from your CC session, and it's a home-server game or local SSP then you can directly edit the programs by browsing into the computer folder of your world...

if you're trying to back up all your computers' code to your NAS, you can just zip + copy the folder from the world above in the same way...

if you're trying to do something else... i'm not sure what it would be or why :)



#163496 String to table

Posted by ingie on 04 February 2014 - 09:44 AM in Ask a Pro

View Postmibac138, on 03 February 2014 - 02:17 PM, said:

Oh, thanks! I didnt see it before :P

hehe. it's usually the simplest things
i read the output several times before i saw it staring me in the face :)


View Postmibac138, on 04 February 2014 - 08:41 AM, said:

I know about your API already, and it was my inspiration, i wanted to do something on my own :)

to make it more proactive in Ask a Pro, and as Lyqyd has detailed here in the Read This Before Asking thread, it's always better to state the full reason behind something...

lyqyd said:

When creating a question topic, be sure to fully explain your question. If you're having a problem with a piece of code, you should explain three things about it. Explain what you're trying to do, the big picture goal for the program. [..] Next, explain what you expect the piece of code that you're having trouble with to do. Finally, explain what the code is actually doing instead of what you want it to do.

that's not a complaint at all, as "your inspiration" is not explicit in that text, but i'm sure you see how it fits the same goal as lyqyd's message :) - your original question would have been better if it had said "I was inspired by ABC to do XYZ so as to learn it myself"


also, within your clarification, do you mean you're trying to replicate almost the same thing using your own new code?... or are you're trying to do a slightly different task than surferpup's API?

- both are equally good to do -i'm not knocking either reason- but if you're modifying his API, then a good question might be "Is is possible to do XYZ by changing your api in someway - don't tell me the way to do it, as I want to work that out myself"

and that way, you can hack, but still have the enjoyment of assisted self-discovery - but also with the knowledge that you have probably a flattered author of the api, who will be the best person to ask if you get stuck


i hope that makes sense...
- i'm not trying to poke fun or rules at you or anything like that. just sayin' :)


oh, and

View Postmibac138, on 04 February 2014 - 08:41 AM, said:

BTW. it didnt work (lol?) i did:
api = dofile("timeapi")
api.printTime([...])

is about as useful as a conversation starter which says "You know what? I went to the shops yesterday..." and nothing else.
you can't say that without everyone going "AND? ... What happened?" :)

*cough* - see the last part of that quoted section from the forum sticky *cough*

it may not be relevant to you anymore if you've decided to write your own, but it'd still be nice to know how something didn't work rather than just saying it didn't as it could be a valid bug... or it could be operator error



#163479 [mc 1.6.x] Openperipheral

Posted by ingie on 04 February 2014 - 06:48 AM in Peripherals and Turtle Upgrades

[ this post is intentionally left blank - as the "follow post" button keeps ignoring me ]

[ edit: nope, that didn't work either it said "problem with the database" when i posted this, and i'm still not following the thread despite me ticking the option in the full editor - i'll try and test further - without posting, and report a bug if it is one ]



#163431 [mc 1.6.x] Openperipheral

Posted by ingie on 03 February 2014 - 08:32 PM in Peripherals and Turtle Upgrades

View PostLicker, on 03 February 2014 - 04:00 PM, said:

If anyone is looking for the old page with the documentation, I found something like this:
http://www.dnacraft....l/documentation

Back up on a local drive before it disappears from the internet :P

ooh... hellllloooooo there.

[ backing up the internet in 5,4,3,2,1 ]

... whoops, not the whole internet.


edit:
for linux and osx folks,
wget -rk http://www.dnacraft.info/open.info/web/app.php/
is a rather handy command here



#163420 ComputerCraft Benchmarking (Emulators and Minecraft)

Posted by ingie on 03 February 2014 - 07:54 PM in General

it's probably a balance though isn't it... most CC computers aren't used for high-speed graphics... so a graphical performance test is interesting, but perhaps not applicable in practice. To place the code more tightly coupled into the java would mean that the heap always needs that code even if you're not doing graphical output... with it being a lua side api, then you're only increasing the chunk-space in lua if required.

- though i say this from vaguely educated postulation, not any knowledge of either dan's reasoning or methodology, or indeed lua chunks :)
... but it seems plausible as a reason, it's at least an excuse, so hey i'm saying it :)



#163412 Create RealWorld Time/Date function in os API

Posted by ingie on 03 February 2014 - 07:22 PM in Suggestions

View PostCranium, on 03 February 2014 - 05:55 PM, said:

One really easy implementation is using http://www.timeapi.org/
You can use the http api to get a value of the real time, specified by the arguments you put in your url. They even have proper documentation.

that's what surferpup's wrapper api does that he mentioned in the first post, it wraps that website into a handy set of functions... he was asking if that could become/was likely to become built-in...



#163384 Create RealWorld Time/Date function in os API

Posted by ingie on 03 February 2014 - 04:01 PM in Suggestions

i'll dig out some code i have already played with in python and see if i can knock up a basic METAR lua lib... i'll stick it in the utils section...

it may be very basic rather than a complete decoder tho, unless i can find a public domain lua decoder and wrap it - as the number of parameters in the decoding is redonkulous - and a lot of the codes are optional... [read: i can't be arsed typing all the decoding conditionals in] but to add it to, say, your "localised real world of things" stuff it'd be nice if it did do the whole decode and allowed the whole report to be displayed like your time zone display board...



#163381 ComputerCraft Benchmarking (Emulators and Minecraft)

Posted by ingie on 03 February 2014 - 03:49 PM in General

View Postnutcase84, on 03 February 2014 - 08:25 AM, said:

View Postoeed, on 03 February 2014 - 02:15 AM, said:

This looks really interesting. Nice to see that the latest Mimic is pretty much the fastest of them all. Out of curiosity, why didn't 1lann post it if he made it?

View Postnutcase84, on 02 February 2014 - 06:52 PM, said:

Why Java 6?
OS X and Java have a strange relationship. You generally can't use the version you want, it's sh•t or nothing.

Hmm... my old macbook worked fine with 7... but I can relate because my PowerBook hated openJRE or whatever it's called. XD

both is true.
apple used to write their own JRE until after 1.6 when they handed over responsibility to Oracle/ Users to install their own choice - mainly because the support of the JRE was annoying them as it was allowing a malware infection vector on OSX... so up until OS X 10.7.3 you had no choice and had to use the Apple one ... after that, you can use the Oracle one here... i've not upgraded tho as it was such a pain to get the RXTX serial library working that i daren't touch it :)


back on track: i ran the benchmark on my home server instance, it crashed the server... :(
- out of memory
so i adjusted the java params and tried again... 9.5 :(
mind you, it was raining in game at the time... but i could hear the other computers fans speed up as soon as i hit enter on the benchmark :)

edit: interesting: 23 when it's not raining.

this server is only a core2 duo 2.something ghz with 4gb - 1.5 for java - but it's running a headless linux install [no window system] to keep it's overheads down...

i'm tempted to install MineOS or similar [anyone any experience with it, is it worth it?] - to really take it to a bare bones install, if i do, i'll do the same test and post here...