Jump to content


MKlegoman357's Content

There have been 76 items by MKlegoman357 (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#253059 Writing multifile lua programs

Posted by MKlegoman357 on 05 June 2016 - 09:00 AM in Ask a Pro

You should first decide how you'll want to load these files. My personal preference would be to use dofile, loading files which return a table of functions. Next you'll want to use shell.getRunningProgram together with fs.getDir to find out the root directory of your program, so you could load your files relative to your program's location. And then you'll have to figure out how you'll want to distribute your program. There are plenty of programs which allow you to pack a bunch of files together so you could put the single packed file onto pastebin. Just search for them in Programs/APIs and Utilities subforum.



#249555 Windows 10 venting

Posted by MKlegoman357 on 06 April 2016 - 01:20 PM in General

View PosteveryOS, on 06 April 2016 - 11:58 AM, said:

I use virtual machines when I'm away from my computer that has any sense to it (I just hate the computer I'm browsing the forums with) and from my experience, windows10, unlike windows7, converts jar files to zip files. So if it's the case that windows10 is essentially windows7 with UI, then why does it convert the files?

Windows doesn't convert any files you download with your internet browser, it's the browser itself that creates the file and thus changes the extension. Neither MS Edge, nor IE does such a thing.



#249773 Windows 10 venting

Posted by MKlegoman357 on 09 April 2016 - 05:57 PM in General

View PostStekeblad, on 09 April 2016 - 08:36 AM, said:

Their is a setting to tell Windows that a connection is metered and then Windows will reduce its own traffic over that connection. I don't know how this affects Windows Update but it will probably save you some data.

Yes, I'm aware of that setting.



#249112 Windows 10 venting

Posted by MKlegoman357 on 29 March 2016 - 07:18 PM in General

I myself am using Windows 10 for quite some time now and haven't had many issues with it. I don't care about any privacy issues. I think it looks a lot nicer than any Windows so far and I also like the simple design. It's different for everyone when it comes to design and layout. I'm not using any 'mods' or 3rd party software to replace the default Windows programs or features. I am also not using tiles, too used to the start menu.

If there are ads in the start menu (I haven't noticed them) I doubt it's a core part of the OS. If it's a tile - it's an app, and if it's an app it's not really a part of the actual OS, is it?

Talking about start menu, I'm really used to the search feature, it works super fast and I can open any program I want in just second or two.

The main (maybe the only, for me) problems I have are two: automatic updates and tightened security. The first one bugs me because sometimes I am not connected to an infinite-data internet connection and I like to control when I actually download and install the updates. The second one is annoying when I'm modding games. Most (although not all) games' folders have their security tightened, so that you need to confirm every action you do, like deleting or moving files. It gets annoying with those messages ("You need to provide administrator permission to...") with a simple button to confirm that you're an administrator, which is kinda stupid...

I updated to Windows 10 (from Windows 7) mainly because of:

  • the design looks better
  • windows explorer has a better layout and more features
  • the command prompt got some little changes
  • the default windows apps for videos, music and photos (also calculator), they're awesome!

But of course there are issues with Windows 10, I'm not trying to deny it. When it comes to Windows I think you should be using Windows 7, and unless you have a good reason to update, don't really use Windows 10. There are a lot of hate about it (although a bit too much), and it's not just nothing. You should be aware of what your computer is running and what your needs are. I am satisfied with Windows 10.



#256241 Windows 10 venting

Posted by MKlegoman357 on 15 July 2016 - 09:44 PM in General

View PostDog, on 13 July 2016 - 09:03 PM, said:

To disable automatic updates in Win10, set your connection to 'Metered' - then you control when updates are downloaded. You still can't pick and choose between updates, but it's better than nothing...

View PostMKlegoman357, on 08 April 2016 - 07:22 PM, said:

Automatic Windows updates never bothered me, until now, as I'll be on a metered connection for about two weeks. So I went online to look for a 'hack' to disable them and instead found that the "Ask me to download and install" option is still actually a part of windows updates.

View PostBomb Bloke, on 08 April 2016 - 11:05 PM, said:

Good to know, but I notice that applies to professional versions only.

View PostDog, on 09 April 2016 - 06:03 PM, said:

Thanks for the link, MKlegoman357 - very informative :)

Disabling automatic updates worked fine for me. When there are updates Windows will pop a notification and wait for you to actually approve you want to download those updates. Though you cannot select which updates to install.



#249701 Windows 10 venting

Posted by MKlegoman357 on 08 April 2016 - 07:22 PM in General

Automatic Windows updates never bothered me, until now, as I'll be on a metered connection for about two weeks. So I went online to look for a 'hack' to disable them and instead found that the "Ask me to download and install" option is still actually a part of windows updates.



#251248 What happened to the forums?

Posted by MKlegoman357 on 01 May 2016 - 07:27 PM in Forum Discussion

What..?

Posted Image



#251249 What happened to the forums?

Posted by MKlegoman357 on 01 May 2016 - 07:30 PM in Forum Discussion

Also, is posting a problem that it needs approval? I wonder what the actual moderators think about this, there will be a lot more work for them and the forums will slow down, because of slower reply rates.

And I cannot edit my post yet (which should be above this one) because it's not approved yet, which is a bummer.



#257841 Thoughts on No Man's Sky?

Posted by MKlegoman357 on 11 August 2016 - 02:55 PM in General

This bothers me.

I haven't gotten the game myself (don't think I will), as it doesn't look to have enough things to keep me entertained. It looks like after some time it will just get too repetitive and thus become boring.



#249902 The forums are compatible with 3DS and other mobile devices. Is this purposeful?

Posted by MKlegoman357 on 11 April 2016 - 01:18 PM in Forum Discussion

View PosteveryOS, on 11 April 2016 - 11:55 AM, said:

It is???

Well, PHP doesn't really 'do' anything with the web browser, it's ran server-side. It really doesn't matter what browser you use, as long as it supports the HTTP(S) protocol.



#256329 Table index is nil when using dofile

Posted by MKlegoman357 on 18 July 2016 - 08:07 AM in Ask a Pro

First of all, when saving the bytecode you have to save it using a "wb" mode, because it contains bytes that will be corrupted if using "w" mode. Second, dofile, loadfile and any other function will not work because they open the file in "r" mode, not "rb" mode which is required to properly load the bytecode.



#252606 String, optional captures

Posted by MKlegoman357 on 30 May 2016 - 08:03 PM in Ask a Pro

We should probably start with: what's the error you're getting? This code:

local function foo (str)
  for str, pattern in str:gmatch('(.-)(%b[])') do
    print(str, pattern)
  end
end

foo('a string [/*-] a string [-*/] a string')

Runs perfectly fine for me: as expected returns only the first two matches. It's probably the <CODE> part that is actually erroring.



#252652 String, optional captures

Posted by MKlegoman357 on 31 May 2016 - 12:02 PM in Ask a Pro

Like I mentioned before, what's the rest of the code that is erroring?



#253311 Speadersheet program - updated!

Posted by MKlegoman357 on 08 June 2016 - 12:01 PM in Programs

View Postrandomdude999, on 07 June 2016 - 06:50 PM, said:

Some new laptop keyboards don't even have an insert key. (For example my laptop (came preinstalled with win7))

All keyboards have an insert key. It might be hidden as a function key (fn). Or it's name might be shortened to something like "ins".



#259724 Some questions about Top Level Corroutine Override

Posted by MKlegoman357 on 21 September 2016 - 07:52 PM in Ask a Pro

View PostSewbacca, on 21 September 2016 - 07:37 PM, said:

Also TLCO won't work in Lua 5.2.

There are many TLCO implementations and you could think of many more. It doesn't need to rely on Lua 5.1 features (like getfenv) to operate.



#259562 shell.run()

Posted by MKlegoman357 on 19 September 2016 - 01:21 PM in Ask a Pro

It's best to simply run 'os.run({}, "shell " .. path .. arguments)' which will run the program with the shell API and the correct shell environment.



#259624 shell.run()

Posted by MKlegoman357 on 20 September 2016 - 04:40 AM in Ask a Pro

View PostLupus590, on 19 September 2016 - 01:50 PM, said:

you'll have no APIs with that: http://www.computerc...-a-cc-computer/

How so? All the APIs will already be loaded when any user-made programs run.



#249056 Request help with external editor and installling game wide API's

Posted by MKlegoman357 on 29 March 2016 - 05:20 AM in Ask a Pro

You can find the files of a computer or turtle in the world save folder inside the 'computer' directory. Each computer gets it's own directory there based on it's id. You can type 'id' into the computer to get it's id. Also, you only have to add the resource pack to the server, the client doesn't need it for multiplayer, only for singleplayer.



#252781 remove spaces between strings?

Posted by MKlegoman357 on 01 June 2016 - 09:29 PM in Ask a Pro

That's because in the latest CC versions print() was changed to add spaces between each argument. Just concatenate the strings to remove the space:

print(shell.dir() .. ">")



#247308 Proper 24-hour time format.

Posted by MKlegoman357 on 05 March 2016 - 07:22 AM in Suggestions

Why does everyone keep refering to it as "military time"? It's simply a 24-hour format.



#247268 Proper 24-hour time format.

Posted by MKlegoman357 on 04 March 2016 - 06:19 AM in Suggestions

I like the current format too.



#254553 [Results in!] CCJam 2016

Posted by MKlegoman357 on 22 June 2016 - 09:29 PM in General

In which timezone does the competition start. Because the live counter says there's 1 day and 22 hours left, but for me after 23 hours it will be Friday. May I suggest the GMT timezone? Since it's the one and only GMT+0 timezone :D.



#253825 [Results in!] CCJam 2016

Posted by MKlegoman357 on 15 June 2016 - 02:25 PM in General

Just because it has already been done doesn't mean you cannot redo it better, with more features and what not..



#254577 [Results in!] CCJam 2016

Posted by MKlegoman357 on 23 June 2016 - 07:53 AM in General

 TheRockettek, on 23 June 2016 - 07:26 AM, said:

It starts at the beggining of friday @ UTC+1 (UK TIME) ;p

UTC+0 actually.



#254522 [Results in!] CCJam 2016

Posted by MKlegoman357 on 22 June 2016 - 05:05 PM in General

So I guess I should post this here in case I come up with ideas. I'm in!

GitHub repo