Jump to content




How to built Computercraft


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

#1 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 07 May 2017 - 12:30 PM

I want to built Computercraft from the source. But how can I do that? I had downlaoded the GitHub repository and run setup.sh. After a half hour, I got the Message, that it has finished but I dont't get a file.

#2 SquidDev

    Frickin' laser beams | Resident Necromancer

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

Posted 07 May 2017 - 12:47 PM

Run the ./deploy.sh or deploy.bat file (.bat if windows, .sh if not) and wait for a few minutes - you should get a file in build/libs which you can then play with. Alternatively, just download one of the "nightly" builds that CrazedProgrammer has set up.

Note: If you're writing a feature, you can use ./gradlew runClient instead. This will build ComputerCraft and start the game, which saves an awful lot of time.

Note: If you're thinking of writing a feature, think really hard about it first. Have a look through some of the existing PRs and see what you think other people did wrong or right.

Edited by SquidDev, 07 May 2017 - 12:51 PM.


#3 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 08 May 2017 - 03:56 PM

Thankyo for the link. I only want to have the latest beta of Computercraft. But I have a question: I have built Computercraft (Just for Fun) with your command. But if I click on a Computer, I only get a black screen. CraftOS is not booting. Why?

#4 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 08 May 2017 - 05:30 PM

View PostWilma456, on 08 May 2017 - 03:56 PM, said:

CraftOS is not booting. Why?

View PostWilma456, on 08 May 2017 - 03:56 PM, said:

latest beta
you have answered your own question

#5 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 09 May 2017 - 01:58 PM

I had update tehe code and make another build. Same Problem. The last build from the Website is a half hour ago, and the last code change is a hour ago, so the built from the website and my built has the same codebase. Why works the built from the website and my built not?

#6 SquidDev

    Frickin' laser beams | Resident Necromancer

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

Posted 09 May 2017 - 02:03 PM

How are you building it? Are you using ./deploy.sh or ./gradlew build? If the former is still not working, replace your build.gradle file with this one and try again.

#7 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 09 May 2017 - 04:24 PM

It works with your file. Thankyou. You should make a Pull Request, to put this file in the Computercraft Repository.

#8 SquidDev

    Frickin' laser beams | Resident Necromancer

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

Posted 09 May 2017 - 04:34 PM

View PostWilma456, on 09 May 2017 - 04:24 PM, said:

It works with your file. Thankyou. You should make a Pull Request, to put this file in the Computercraft Repository.
That is pretty much what apemanzilla's PR does, just with a couple of cosmetic changes.

#9 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 15 June 2017 - 10:17 AM

I need further help: Building on my PC works, but the builtserver from CrazedProgrammer is down, so I want to make a Cronjob on my PI to built this. But I only get the error:
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
How can I solve this?

#10 SquidDev

    Frickin' laser beams | Resident Necromancer

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

Posted 15 June 2017 - 10:25 AM

The build server isn't down, it just got moved to here.

In regards to your error, you're just running out of memory - the build process requires more than 2GB of memory so you'll need to allocate more.

#11 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 15 June 2017 - 05:38 PM

Thank you for the new link. I had changed my bookmark.

But how can I allocate more memory?

#12 SquidDev

    Frickin' laser beams | Resident Necromancer

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

Posted 15 June 2017 - 05:55 PM

View PostWilma456, on 15 June 2017 - 05:38 PM, said:

But how can I allocate more memory?
You should be able to allocate more using the GRADLE_OPTS option and the appropriate Java flags: GRADLE_OPTS=-Xmx3G ./gradlew build will build it with 3GB. Make sure you're running 64 bit Java too.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users