- OT/plugin/rb
- Delete
1_bedrock_configure_load_paths.rba
- Delete
zz_bedrock_config.rba
- Delete
- Download startup.zip - http://test.vlc/job/bedrock_packager/lastSuccessfulBuild/s3
- Place Startup.rb and the bedrock-downloader.exe into your project's
jobs
folder. - the path should be
Project/Jobs/Startup.rb
- ie. do not not put it in a subdirectory
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.
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).
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')
VlcInitialize has moved to bedrock/app/VlcInitialize.rb
.
Feedback
use_bedrock_at