Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
slm-env-2dball
Advanced tools
Unity environment binaries for SLM-Lab, built from kengz/ml-agents.
If you're just using prebuilt environments for the Lab, just install the released binaries via yarn
: e.g. yarn add slm-env-3dball
.
This repository hosts the built Unity environment binaries released to npm
.
You need this repo SLM-Env
and the builder repo kengz/ml-agents
(use the fork as opposed to Unity/ml-agents
).
git clone https://github.com/kengz/SLM-Env.git
git clone https://github.com/kengz/ml-agents.git
Then follow the setup instruction and intro from ml-agents
for Unity.
Since the binaries are committed to Github, released on npm
, and used by SLM-Lab, follow the convention compatible to all of them.
CamelCase
, e.g. 3DBall
env_name
: kebab-case
, e.g. 3dball
env_name
: kebab-case
, e.g. 3dball
npm
package name prepended with slm-env-
, e.g. slm-env-3dball
Build your Unity environment and commit asset source code to ml-agents
repo. For the most part follow the original doc. Remember the core settings:
Player > Resolution and Presentation > Run in Background (checked)
Player > Resolution and Presentation > Display Resolution Dialog (Disabled)
Academy > Brain > External
When ready to build binary, decide on an env_name
, e.g. 3dball
. You may want to check on npm
that the name slm-env-3dball
is not already taken, so you can release.
Come to this SLM-Env
repo, create a new git branch from master
:
cd SLM-Env
git checkout master
git checkout -b 3dball
SLM-Env/build/
:Academy > Training Configuration
as follow (or leave as-is if smaller than Inference Configuration
):
SLM-Env/build/
3dball
Training Configuration
same as MacOSXHeadless Mode (checked)
3dball
Next, ready to release.
package.json
and update:envname
as proper: "name": "slm-env-3dball",
"version": "1.0.0",
build/
folder and package.json
:git add build/
git add package.json
git commit -m 'add 3dball'
git push --set-upstream origin 3dball
npm
(make sure you are logged in first, by npm login
):npm publish
Since the binaries are huge, npm
will throw an error near the end of it. Just ignore that.
npm ERR! registry error parsing json
npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! You cannot publish over the previously published version 1.0.0. : slm-env-3dball
It should be available on npmjs.com, just search for your package slm-env-3dball
.
SLM-Lab
for usage: yarn add slm-env-3dball
FAQs
SLM Env
We found that slm-env-2dball demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.