Virt a mate куда кидать файлы var
Virt-A-Mate Plugin Template for VSCode
What you will need
-
to edit your plugins to compile your code (optional) (you might already have this) to use your plugins
Get this template
First of all, decide what your author name will be, and what your plugin name will be. From now on, replace Author and MyPlugin by your selected name. I suggest your keep those simple without any special characters.
- If you have a GitHub account (recommended), click on Use this template on the vam-plugin-template. It will create your own copy. You can also download this repository.
- Clone (or unzip) this repo under (VaM install path)\Custom\Scripts\Author\MyPlugin , replacing Author and MyPlugin by yours, so that the MyPlugin.cs is directly under the MyPlugin folder.
You should now be able to open the project in vscode by using File , Open Folder and select the MyPlugin folder.
Adapt the template
- Rename the MyPlugin.cs and MyPlugin.csproj to match your plugin name.
- Replace in files ( ctrl + shift + h ) all occurences of Author and MyPlugin by yours.
- In meta.json , fill in the description (keep v0.0.0 if you plan on using GitHub Actions), credits, instructions and promotionalLink. You might also want to chage the licenseType , if you wish.
- Replace the content of README.md by your own content.
- Replace the author name in LICENSE.md file to put your own name (it's all right, you have my blessing!)
The plugin is really a Unity MonoBehavior, which means you can use methods like Update , FixedUpdate , OnEnable , OnDisable and OnDestroy . Init however is called by Virt-A-Mate.
Keep in mind however that OnEnable will be called before Init .
Package var using GitHub Actions
If you use GitHub , you can push a tag with the naming convention v0.0.0 , and it will automatically create a release draft. You can then edit it (e.g. add a description) and publish it.
Learning about Git
There are tons of references out there, you might want to look at GitHub Learning Lab. Learning Git is really worth your time.
В пустой сцене по порядку кликаем на указаные вкладки: 1 вкладка открывает панель «Добавить Atom (объект)», 2 вкладка создает стандартного персонажа, после загрузки персонажа в сцене переходим на 3 вкладку это панель персонажа и там все настройки что с ним связаны
Это панель одежды здесь вы выбираете как нарядить вашего персонажа. Ставим галку в «Active Only» что бы отсортировать одежду которая на персонаже
В вкладке «Combined» мы можем отредактировать цвет, блеск, а также работать с текстурами. Во вкладке «Physics» мы можем настроить физику ткани
В «Control & Physics 1» мы можем загрузить персонажа «Load Look», сохранить персонажа «Save Look», а так же выбрать ему позу «Load Pose» или сохранить позу «Save Pose»
Community content cannot be loaded with the "Free" version of VAM. This version does not show the required green "Load Scene" button in the menu and can only load "Built-In" scenes. Only the "Teaser", "Entertainer" and "Creator" tiers can load community created scenes.
Enter Your Supporter Key
-
that matches the version and Supporter Level you're using and copy it.
- Start VaM in Desktop Mode.
- Enter your key.
Organization
When your scene folder fills up and becomes too large to easily browse and find scenes, you can use subfolders to keep your scenes folder manageable. What method of organization you use is entirely up to you, but here are some suggestions:
Virt-A-Mate is a sandbox VR scene creator (with an additional desktop mode) currently in development. While it is far from complete, it is still very playable and robust in it's current state.
Capabilities include character customization, posing and animation, environment use, image panels and Web enabled TVs, and audio support. The user can "possess" a character, taking their perspective and controlling them with VR headset and controllers. Full body VR "possession" can be done with a VR headset, 2 VR controllers and 3 or more Vive Trackers.
.7z and .rar files
- Open the archive and check the contents. Every creator that uses .7z and .rar files packages them slightly differently.
- Somewhere in the Archive you should find a folder called Saves - and sometimes also a combination of Import, Assets, Extras, or Custom. These are the "top level" folders (similar to the "data" folder for all'y'all Skyrim/FO4 modders)
- Drag/Drop the Saves (+Import +Assets +Custom +Extras folders, if any) into the main VaM folder. All the content will be placed in the right directories automatically.
- Load Desktop or VR Mode and check the new scene/person.
Finding Community Content
The Virt-A-Mate community is always growing. Currently these are the best places to find shared content:
Virt-A-Mate Program installation
- Download the latest version from the Patreon page
- Extract the zip file to a non-protected folder (i.e. C:/Games/VaM instead of C:/Program Files/VaM).
- Inside the extracted folder you'll see a number of *.bat files. Run the appropriate windows batch file for Desktop Mode or OpenVR mode. There are also quite a few benchmarks you can run, as well.
- NOTE: Do not install / extract Virt-A-Mate into a Windows protected directory, like "Program Files" or "Program Files (x86)". VaM needs to write the key-file and user preferences files to this directory which may fail when the directory is protected.
.vac Files (most common)
- .vac files are "just" zip files with a custom extension that VaM has packaged for portability.
- Place the downloaded .vac file in your VaM /Saves/scene folder.
- To maintain structure and organization, all .vac files create a new subfolder within **/Saves/scene and then extract all files into the new subfolder. This should help in organizing your folders to better manage your content.
- Some organize only by creator, some organize by content (i.e. Full scenes vs. People/Looks) first and by creator inside those.
Fire it up!
- Load up VaM in either Desktop or VR mode and select the Load Scene icon or Menu-> Load Scene.
- Select the .json or .vac file inside your /Saves/scene/(etc, etc, etc.) folder.
- It will load automatically.
Folders
- MEGA also allows the download of Folders.
- Like a .7z and .rar, you want to examine how the creator put the folder together.
- Find the Saves (+Import +Assets +Custom +Extras folders, if any) folder inside.
- Drag/Drop to your VaM folder.
- If there is no /Saves folder inside, then put the top level folder anywhere in your organizing folders below /Saves/scene (i.e. in /Saves/scene/Looks// or /Saves/scene/Full Scenes// etc.)
Downloading from MEGA (common to all three archives)
- MEGA allows creators to share folders. This is the easiest way to install content.
- From the Mega page, select Import to (M) (and Transfer with Mega Desktop if you have that installed/configured)
- Click Import when prompted. This will import the content to your Mega directory, but won't automatically sync like Dropbox or Onedrive or Box.
- In Mega, you can select all the content you've imported and download it to your local Mega archive directory (which is why a big, slow HDD is recommended)
- In your local Mega Folder you'll have all three kinds of archives - follow the steps below to use them.
Content Format
The primary Virt-A-Mate content format is called a scene. It is a JSON file that lists all references and settings needed to run a sandbox environment. Scene files are usually paired with a thumbnail image that will appear as the scene icon in the open scene dialog in Virt-a-Mate. Both files must have the same name, e.g.:
Some scenes load external assets like skin textures, custom Unity assets, or audio files. These files are not included in the scene file and must be copied to the correct folder location in your Virt-A-Mate installation.
To help with sharing complex scenes that require more than a JSON file, Virt-A-Mate added a distribution file format called VAC. Scene authors can compile all needed files into one package instead of sharing a pile of files and needing to explain where to put them.
VAC files follow the same pairing convention of scene file and thumbnail image. A more complex handjob scene might be distributed as:
Scene assets are also distributed by themselves. Some creators specialize in just one aspect of Virt-a-Mate scenes, e.g. looks or scene environments. Please follow those creator's instructions on how to obtain and install these files in Virt-A-Mate.
Saving Looks - common question
Some scenes are just one character, and you'll want to save them to use in other scenes.
Get rid of Virt-A-Mate Custom and Saves files that have been made available in a .var file.
Download from the Releases, and extract somewhere on your machine.
In a command line:
This will scan your Virt-A-Mate Saves and Custom folders as well as the .var packages in your AddonPackages folder. When it finds a file that exists in both the AddonPackages var files and your Saves/Custom folder, it will update the scene and delete the duplicated files.
- --vam : The root path of Virt-A-Mate.
- --include : Limit affected files to this path prefix, relative to vam (affects files that would be deleted or updated).
- --exclude : Paths to skip, relative to vam (affects files that would be deleted or updated).
- --verbose : Print more information.
- --warnings : Print missing references found while scanning (usually broken scenes).
- --noop : Does not actually delete or update anything.
- --log : Log file operations to a file.
Note that if you don't specify the --vam argument, it will first check if it's in the same folder as VaM.exe . So if you have no idea how to run a command line tool, you can drop it in the Virt-A-Mate install folder and doube-click on it.
This will delete files on your system. Varbsorb tries very hard to ensure it's as safe as possible, but if you have symbolic links in your Saves or Custom folder, Varbsorb will follow them. You might want to make a backup of your Virt-A-Mate Saves and Custom folders, just in case (or add them to Git).
Folders starting with a . such as .git will not be cleaned.
When multiple var version matches are found, the highest version will be selected. If multiple var packages are found, the one with the least files will be selected. The reasoning is if someone creates a var file with a look that contains morphs, textures and other things, but there's also a package that exists that only contains the textures, the latter is usually a better choice.
Loading your first Scene:
Entertainers and Creators: Load scenes from the VaM Scenes Sub follow these steps:
- NOTE: almost all community content is hosted on Mega - a Mega account and the MEGAsync app pointed to a MEGA folder on a big, slow HDD is the currently recommended practice.
- Download the community created files using Import to my MEGA or a direct download to a 'storage' directory for the archives.
- There are three ways community creations typically are released. How to handle each one is listed below.
Installing Scenes
Download your scenes and thumbnails into the "scene" subfolder in your Virt-A-Mate installation. Going with the handjob example above, the files should end up like this:
- Virt-A-Mate\Saves\scene\handjob.jpg
- Virt-A-Mate\Saves\scene\handjob.json
Same principle for VAC files:
- Virt-A-Mate\Saves\scene\handjob.jpg
- Virt-A-Mate\Saves\scene\handjob.vac
After you installed the scene, you can open it inside Virt-A-Mate by opening the Quick Panel and selecting the Open Scene icon. Point at the scene icon in the list and push the select button to load it.
Note that VAC files will unpack their contents into a subfolder when you open them. After that first load, you can also open the scene from that sub folder, instead of opening the VAC and unpacking it again.
You can safely delete unpacked VAC files or, in case you want to reorganize your collection later on, move them to a backup folder of your choice. See below for some ideas.
Читайте также: