Skip to content

Instantly share code, notes, and snippets.

@nkpart
Last active November 23, 2016 05:24
Show Gist options
  • Save nkpart/57ac9655c1dd00ab944af5ccda9eb011 to your computer and use it in GitHub Desktop.
Save nkpart/57ac9655c1dd00ab944af5ccda9eb011 to your computer and use it in GitHub Desktop.

How to Install No-Install Bedrock

Remove the .rba files from Omnitrans

  • OT/plugin/rb
    • Delete 1_bedrock_configure_load_paths.rba
    • Delete zz_bedrock_config.rba

Prepare your project

[Optional] Get your locked BDK patched

If your locked BDK is older than November 2016, it will need to be patched to work with the Startup.rb tooling. Contact STEAM or equivalent.

Update your scripts

Each script now needs to declare the bedrock version it would like to use.

Add the following to the top of each script:

use_bedrock(915)

When the job is run, if that bedrock hasn't been downloaded yet, it will be downloaded into the project: [ot-project-folder]/bedrocks/[version]

If your script uses bdk/resources, you'll need to add the following call as well after the use_bedrock line:

BedrockEnvironment.set_resources_dir('d:\bdk\resources')

It's possible to just use regular programming tools to avoid repeating the version number in scripts, eg.

jobs/Settings.rb

use_bedrock(915)

And then in each job script:

require 'Settings'

You could then have multiple Settings files (ZMRSettings vs RegularSettings, for example).

[Developers] Point at your development bedrock

There is also a function named use_bedrock_at in etc/Startup.rb, which can be used to load a bedrock at a file path:

use_bedrock_at('d:\bdk\bedrock')

[Developers] Update your rubymine settings

VlcInitialize has moved to bedrock/app/VlcInitialize.rb.

@ajmcmiddlin
Copy link

ajmcmiddlin commented Nov 8, 2016

Feedback

  • I found the list of headings at the top confusing - didn't realise there were explanations below. I'd maybe just get rid of them.
  • No startup.zip (yet)
  • No mention of use_bedrock_at

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment