Jump to content




ComputerCraft is now Open Source


  • You cannot reply to this topic
31 replies to this topic

#21 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 06 May 2017 - 09:31 AM

View PostWeareverylucky, on 06 May 2017 - 04:08 AM, said:

Yea and then making this open-source Mabey Dan can make a team that can gather up ideas of CC and make it better somewhat the community can come up with. Also the community can also help with changes and help out with tweaks. They can also be mabey a signup form for mabey helping with the CC mod team. Just my personal opinion.

I prefer the current method, maybe add a few people with control of the repo, but have the majority of people work via pull requests.

#22 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 06 May 2017 - 07:31 PM

View PostLupus590, on 06 May 2017 - 09:31 AM, said:

I prefer the current method, maybe add a few people with control of the repo, but have the majority of people work via pull requests.
I like having dan as the one with the final say on what does and doesn't get into the official repo.
Though SquidDev is a good candidate for maintainer when dan is too busy with other things :D

#23 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 07 May 2017 - 02:53 PM

It's been jolly nearly a week since the ComputerCraft went open source, so I thought I'd post some statistics, thoughts and what not. Note these are only correct at the time of writing
  • There are 33 forks of ComputerCraft, possibly more. Computality is a 1.11.2 fork of CC, but isn't marked as such on GitHub.
  • Of those forks, 14 of them have additional commits, many of which have been merged into the main repo.
  • There have been 48 pull requests, of which 32 have been merged.
  • There have been 83 new commits to the repo (I'm excluding merge commits here).
  • There are 5 non-dan200 contributors.
These commits have fixed several bugs, as well as adding some new features. This includes:
  • Added .getResponseHeaders() to HTTP responses.
  • Return a HTTP response when a HTTP error occurs.
  • Added a GUI to change ComputerCraft config options.
  • os.time() and os.day() now accept parameters to give the real world time.
  • Added os.epoch()
  • Monitor text now glows in the dark.
  • Added a "Pocket Computer upgrde API" so mod developers can add their own pocket upgrades.
  • Added pocket.equipBack()/pocket.unequipBack() to add/remove pocket upgrades.
  • shell.resolveProgram picks up on .lua files, meaning you don't need the file extension in the shell.
  • The terminal pallet can now be configured with term.setPaletteColor()/term.getPaletteColor().
By the looks of it, there are several other exciting features in the pipeline.

I know a couple of people have some features they'd like to add to CC and want to put together a pull request. That's great - the more the merrier. However, I'd suggest a couple of things before wacking the fork button:
  • Use Git: There have been several people committing via GitHub's web interface. For single file changes that's fine, but when you're changing anything more than that it gets confusing for everyone. If you don't know how to use Git, I'd really recommend following their Tutorial, or downloading one of the many GUIs out there - GitHub have a very user-friendly client.
  • Don't commit to master: Create a new branch and add your commits to there. This means you can have multiple PRs on the go at once and, if master gets updated, it is much easier to rebase your commits. I've written a guide on how my repo is set up and how I handle merging.
  • Think about what you're adding: Have a read through the suggestions forum and the list of closed PRs and think about what people's reactions have been to various additions. There is no point going to all the effort of a PR if it isn't going to benefit anyone. Try to avoid PRing in your favourite program or API unless you think it genuinely belongs in ComputerCraft. I'd personally prioritise improving the existing functionality of ComputerCraft than adding 20 new features.
    If you're unsure, create an issue and ask. Even if your original idea is discarded, you might find some even better suggestions. There is also an IRC channel if you need to ask anything.
  • Check it runs: Please, test everything. I've failed to do this once and it is dreadfully embarrassing, and causes more hassle for us all.
  • Check it looks right: Have a prod through the rest of the code. Make sure yours follows roughly the same formatting and stylistic rules. While this is rather petty, a consistent codebase is easier to deal with.
  • Contribute Have a look at other people's PRs. If you've got some feedback, say it (though try to be articulate).

Edited by SquidDev, 07 May 2017 - 10:15 PM.


#24 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 08 May 2017 - 09:50 AM

I don't have too much of an issue with this, but I thought I'd just make everyone aware of it.

From the license:

Quote

Daniel Ratcliffe will retain the right to re-license the mod, including your contributions, in part or in whole, under other licenses.

Not that I can see anything him doing anything malicious, but still worth keeping it in mind.

#25 Tag365

  • Members
  • 109 posts

Posted 09 May 2017 - 03:30 AM

What does using term.setPaletteColor look like? I want to see if it is what I think it is, which is changing the rendered colors of the 16 color palette.

#26 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 09 May 2017 - 07:51 AM

View PostTag365, on 09 May 2017 - 03:30 AM, said:

What does using term.setPaletteColor look like? I want to see if it is what I think it is, which is changing the rendered colors of the 16 color palette.
Exactly that! You can see some examples from the pull request:
Posted Image

The capabilities of this can be better seen in asie's ChenThread image format thread:
Posted Image

#27 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 09 June 2017 - 08:00 PM

CrazedProgrammer and I have been working on improving the unofficial build server. It should be much more accessible now, as well as providing downloads for other PRs (such as CC with Cobalt and Minecraft 1.11.2 support).

You can find it at https://cc.crzd.me/.

Please remember that these are development builds - whilst they have been well tested, there may be some issues. Please report them on the ComputerCraft repository.

Builds for other PRs are served on the maven repository, so can be depended on by other mods (such as Plethora).

Edited by SquidDev, 12 June 2017 - 06:33 PM.


#28 Dahknee

  • Members
  • 1,808 posts
  • Location/home/da

Posted 19 June 2017 - 04:08 PM

View PostSquidDev, on 09 June 2017 - 08:00 PM, said:

CrazedProgrammer and I have been working on improving the unofficial build server. It should be much more accessible now, as well as providing downloads for other PRs (such as CC with Cobalt and Minecraft 1.11.2 support).

You can find it at https://cc.crzd.me/.

Please remember that these are development builds - whilst they have been well tested, there may be some issues. Please report them on the ComputerCraft repository.

Builds for other PRs are served on the maven repository, so can be depended on by other mods (such as Plethora).

On that I am thinking of possibly having versions of AirWaves server for every build/version of CC. What do you think?

So 1.8.9, 1.9.x, 1.10.x, 1.11.2, 1.12 etc etc?

Edited by DannySMc, 19 June 2017 - 04:09 PM.


#29 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 20 June 2017 - 12:59 AM

More testing's always good, but actually finding the time for it is tricky... I suspect you wouldn't get all that many serious testers comparing their code across multiple builds. They'd pick one and stick with it, whereas with a single server you can force them to move up to the latest. More choice might actually be a negative.

If you did provide servers for each build, you'd at the least want to provide pre-made bases on all of them. Large enough to allow some experimentation with huge monitors, farming, mining, whatever.

#30 Dahknee

  • Members
  • 1,808 posts
  • Location/home/da

Posted 20 June 2017 - 08:11 AM

View PostBomb Bloke, on 20 June 2017 - 12:59 AM, said:

More testing's always good, but actually finding the time for it is tricky... I suspect you wouldn't get all that many serious testers comparing their code across multiple builds. They'd pick one and stick with it, whereas with a single server you can force them to move up to the latest. More choice might actually be a negative.

If you did provide servers for each build, you'd at the least want to provide pre-made bases on all of them. Large enough to allow some experimentation with huge monitors, farming, mining, whatever.

That's not a bad shout, it's really what you think would be better? Having an always up to date server...? or having an always up to date but on the same version server?

Would probably be better to always force them to update right...?

#31 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 20 June 2017 - 09:28 AM

I would like for everyone to test all versions. But I believe the best option is to just offer the "latest".

Those who truly have the time and inclination to do full testing are quite capable of setting up their own servers on their local machines anyways. It's not like you need even need a second computer to do it.

#32 Dahknee

  • Members
  • 1,808 posts
  • Location/home/da

Posted 20 June 2017 - 05:52 PM

View PostBomb Bloke, on 20 June 2017 - 09:28 AM, said:

I would like for everyone to test all versions. But I believe the best option is to just offer the "latest".
Those who truly have the time and inclination to do full testing are quite capable of setting up their own servers on their local machines anyways. It's not like you need even need a second computer to do it.

That's a good shout, okay, so keep AirWaves as an always latest server.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users