Jump to content


Neekow's Content

There have been 13 items by Neekow (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#265227 Alpha Cloud

Posted by Neekow on 01 March 2017 - 12:21 AM in Programs

Ok, premier post, bien plus jeune que moi, fait un truc de tueur ... j'vais chercher une corde ;)
Je testerai à l'occaz ^^

-- translation

Ok, first post, way younger, made a huge thing ... go to take a rope ;)
Will try someday ^^



#265162 ComputerCraft Discord Server

Posted by Neekow on 27 February 2017 - 03:01 PM in General

Well, saw the 2nd post, but not the first =/
Thx and sorry ^^'



#265160 ComputerCraft Discord Server

Posted by Neekow on 27 February 2017 - 02:52 PM in General

Didn't see something about it (maybe failed in my research) but think it would be a cool things. Without escaping the forum at all, i will be easier to discuss about anything ^^ (like asking help, giving advice, share challenges and ideas)



#265159 Need your help...please

Posted by Neekow on 27 February 2017 - 02:44 PM in Ask a Pro

Well, as i'm a newbie, there are my way to try to have a neat and clear thing ^^:

- Using comments to "cut" my program in different steps:
  -- Init
	-- Color
	-- Variables
	-- Program
  -- Functions
  -- Program
  -- Ending


To know how to cut, i'm asking thing like: "What should happend at start but never again?"

For you, think should be something like that:
  -- Init
	-- Color
	-- Variables
	-- Program
	  term.clear()
	  term.setCursorPos(1,1)
	  term.setCursorBlink(true)
	  turtle.select(1)
	  textutiles.slowPrint("Welcome...please enter the WaterBukkit:")
  -- Functions
  -- Program
  -- Ending

As your while will only run if there isnt 1 item in slot 1, you can do
 while turtle.getItemCount(1) ~= 1 do 
and delete your if.

Beside having eStop = ioread() then an if
if io.read() == "stop" then
works well

As turtle.getItemCount(1) will look in 1st slot, turtle.select(1) isnt needed. actually you'r doing: "i'm selecting 1st slot then i count item in 1st slot"
but turtle.getItemCount(1) = "i count item in 1st slot"
this line can be deleted

io.read() will pauses the program, waiting an input, so the 2nd while isn't needed.

So ... rewriten, looks like (note: its "textutils" not "textutiles" ^^):
  -- Init
	-- Colors
	-- Variables
	-- Program
	  term.clear()
	  term.setCursorPos(1,1)
	  term.setCursorBlink(true)
	  textutils.slowPrint("Welcome...please enter the WaterBukkit:")
  -- Functions
  -- Program
	while turtle.getItemCount(1) ~= 1 do
	  textutils.slowPrint("Start in 3 seconds!")
	  sleep(3)
	  term.clear()
	  term.setCursorPos(1,1)
	  textutils.slowPrint("Program has startes")
	  textutils.slowWrite("Type stop to stop the program")
		if io.read() == "stop" then
		  break
		end
	end
  -- Ending
	term.write("It works")

Hope it will help =)



#265145 Mazes for fun and challenge

Posted by Neekow on 27 February 2017 - 01:59 AM in Ask a Pro

Beside opening a new thread, do a double post ^^ (does editing a post mark it as unread?)
please note that i cant try in game at the moment =(

-----------


Well, i'm looking about runing a program with another program. I remember that i used shell.run() But completly forgotten how it's works. And if i'm not wrong, i'll have to resolve/set the path before run.

How do i do that? =/
my expectation for /root/maze (where is the main program)/parts (where are the other parts):
shell.setPath("parts/")
shell.run("part_2", arg1, arg2, arg3)

and ... how do i recover args in the second program? ^^'
And final question about shells. If i end it, do i return on the program what created it, if yes, how to return args?

-----------


about tables beside do
	  Laby = {}
	  Laby[0] = {}
	  Laby[0][0] = {}
	  Laby[0][0][carte] = {}
	  Laby[0][0][pFind] = {}
do:
 Laby[0][0] = { { carte = {}, pFind = {} } }
works?


-----------


Is there a way to have an event on unloading? Like: if turtle will unload do a last function before shuting down.


-----------


[center]That all for now ... will probaby return with a huge amount of question when i'll can try what i made ^^




#265026 Mazes for fun and challenge

Posted by Neekow on 22 February 2017 - 02:01 PM in Ask a Pro

function createTable(nb)
  if type(Laby[nb]) ~= "table" then
    Laby[nb] = {}
  end
end

function fillTable()
  turtleSens()
    if TurtleSens == 0 then
	  nbx = TurtlePosX
	  nby = TurtlePosY + 1
    elseif TurtleSens == 1 then
	 nbx = TurtlePosX - 1
	  nby = TurtlePosY
    elseif TurtleSens == 2 then
	 nbx = TurtlePosX
	  nby = TurtlePosY - 1
    elseif TurtleSens == 3 then
	  nbx = TurtlePosX + 1
	  nby = TurtlePosY
    end
  createTable(nby)
    if turtle.detect() == true then
	  Laby[nby][nbx] = Wall
    else
	  Laby[nby][nbx] = Path
    end 
end

Think something like that would work ^^ (i've nothing to try atm).

But yet, i'm quite stuck on "how the program should work" so i'm doing a plan ... ^^



#264956 Mazes for fun and challenge

Posted by Neekow on 20 February 2017 - 01:44 AM in Ask a Pro

Well, returning to CC without playing it during a loo[...]oong time is quite hard, but still as fun as before =)

So, i'm trying to do a turtle what can find different objectives in a maze, and send what it already did on a screen.
Rule for mazes:
- paths are 1 wide
- maze is unknown, only the type (to end, to obj, to obj then end)
- If there's a start and an end known, taking the estimated shortest way (discovering wall step by step)
- If there's a start and objective to find (8 RS block on floor in square), going randomly if gone on a wrong way, taking the nearest undiscovered path. trying to find where the square can be. Return to start by path finding.

How will i do that ... well:
- taking the estimated shortest way to the objective (as position unknown, going randomly and looking to a logical patern of where it can be)
- doing sends each step to a computer (count how many time it scans, moves etc ...)
- will fill and print what it made on the turtle and monitor, turtle centered

And ... i looked some site about tables, but didn't understand a bit ...

Think something like:
maze = {{ wall, wall, path},
{ wall, wall, path},
{ wall, wall, path}}
But i clearly i've no idea to how i can create it =/ (and so insert values in), if someone can help a bit? =)

________________________________________________________________________



EDIT:
hum ... think i just found (funny how i can be stuck on a thing ... and when i post to ask help i find something).

so:
table = {}
if type(table[x]) ~= "table" then table[x] = {} end

"x" will be the line what the turtle is testing.

am i right?



#264788 [MC 1.8.9-1.11.2] CC Tweaks

Posted by Neekow on 15 February 2017 - 02:08 AM in Peripherals and Turtle Upgrades

Well, limiting amount of computer will reduce the amount of useless ones and force player to learn and do better programs. ^^
About unowned computer/turtle: cancel event? well ... by writing it just remembered how its fun to settle a turtle army so turtle has to have the right to put a lil' sister. Meh

I absolutely don't know how CC is done, but a huge improvement could be an asynchronous treatment of comps/turtle. I saw the difference between regular WorldEdit and moded WE (with FAWE). Regular: 200k bloc and crash, FAWE = 10M random blocks with light updates in something like 1 minutes

I'll try to do a list of what player's do with CC to find a suggestion ;)


Oh yeah, i cant launch CC =(. When i launch forge (1.11.1-13.20.0.2228) its says me that CC1.8pr0 (or above) is missing, but i've it in my folder =/
I promise, no more work on my server past 3am ...



#264760 [MC 1.8.9-1.11.2] CC Tweaks

Posted by Neekow on 14 February 2017 - 04:20 AM in Peripherals and Turtle Upgrades

View PostSquidDev, on 12 February 2017 - 12:05 AM, said:

View PostNeekow, on 11 February 2017 - 11:14 PM, said:

- Is there permissions? (max turtle/player, max comp/player etc ...)
No. This sort of limiting is kinda hard to get right: both in terms of player tracking and limiting. If someone can come up with a decent strategy to approach this I'd be happy to implement it.

Hum, while trying to find Sponge was thinking about that. It's only an idea, i'm not a dev' at all. Why not creating a file (json?*)? When a player put a computer, it writes [computer ID | Player] if ever the player has a name computer, he can't place it (cancel event) if he already reached the maximum.
OFC, can be by passed if Comp/Turtle can be placed by dispenser ... (never tried)

And by this way, having turtle ID and Player, should be possible to disable some functions, isn't it? Like, i'm using Pex atm, when a computer runs a program, should ping the player's permissions. (Clearly, i don't know why would i disable functions, but i know my player, you can build a massive concrete wall without door, they'll find a way pass through)

*if i'm not wrong, there already some plugins (even minecraft itself) uses json, and could be useful to log things like [comp/turtle | ID | player UUID | location (for comp) | etc....], quite easy to read this format.



#264682 [MC 1.8.9-1.11.2] CC Tweaks

Posted by Neekow on 12 February 2017 - 12:49 AM in Peripherals and Turtle Upgrades

Thx! =)

I'll make some tests in few days. ;)



#264679 ComputerCraft and ...

Posted by Neekow on 11 February 2017 - 11:14 PM in General

hehe ... missed this post ... i continue there: http://www.computerc...post__p__264678



#264678 [MC 1.8.9-1.11.2] CC Tweaks

Posted by Neekow on 11 February 2017 - 11:14 PM in Peripherals and Turtle Upgrades

Hey! Don't know how i missed this server and opened a thread ...

Who am i? Well, a quite ancient/inactive player. Played CC some years ago. Actually i'm a server admin.
Which server? To avoid any problem about advertising, wont tell unless an admin allows me. But the goals of the server are quite simple: Free (respecting EULA), Fair, Fun. Actually we have a Redstone world and a Command block world. (Bungee powered)
Why would i ComputerCraft? Well, as said before, we already have Redstone and CmdB. With them we can build computers, why not having ComputerCraft and start programming?

Note: About the server, we'r clearly not here to make money but to provide a cool place to who want to have fun.

about Unborked:
- Seems to be in 1.11, works only on forge? Or Sponge is good too? (clearly, i don't know both ... i'm more spigot/bungee)
- Does it respect plots?
- Is there permissions? (max turtle/player, max comp/player etc ...)



#264647 ComputerCraft and ...

Posted by Neekow on 11 February 2017 - 12:08 AM in General

Hi everyone! Well, it's my first post since a while ... time goes fast ><

Well, saw that unfortunately ComputerCraft hasn't been updated, but as i really like it, i've some question. Actually i'm making a BungeeCord server, based on redstone, recently added something for command blocks and i'd really like to have a "CC instance". So i would know:
- What's the last MC version that CC (or "forks", unofficial but highly trusted update etc ...) run well?
- Does someone tried something like that before?
I know there's another computer mod, but ... meh Redproject is not Redpower, and i miss my turtles =(

Note: Think it's quite important to mention it, of course my server strictly respect EULA (well to be honest, there's even no "donate" button at the moment). My goal is to have a completely free server where there's everything technical and fun things.

Thx =)

PS: If ever you have questions, remarks ... you'r welcome