RobCo PALM
Download PALM on Nexus Mods · GitHub release · Source code · Changelog
Personal Access & Loadout Manager is a wheel menu for Fallout 4 VR, with quick access to your equipment, consumables and hand gestures. Its Config opens RPS UI Framework's menu: PALM's Wheel items and Wheel settings, the Spawner and the Console. This page describes RobCo PALM 2.0.2. The plugin file is wheelmenu.dll, its F4SE registration is RobCoPALM, and its log is RobCoPALM.log.
Requirements
- Fallout 4 VR, F4SEVR and RPS UI Framework 2.0.2 or newer.
- Optional: ROCK 1.0.4 or newer for physical item handling (weapons go into the hand you point with, items come into your hand, held items can be added to the wheel). The wheel itself works without ROCK.
- Optional: FRIK 0.79.1 or newer with FRIK API 2.3, together with ROCK, for hand gestures.
PALM 2.0.2 is released together with ROCK 1.0.4, RPS UI Framework 2.0.2, PAPER 2.0.2 and the ROCK add-ons: update them together. With a ROCK older than 1.0.4, PALM logs the mismatch and runs without ROCK's item handling, as it does without ROCK.
What 2.0.2 changes
- Config opens on PALM's Wheel items and Wheel settings, with the Spawner and the Console. The other RPS mods' settings moved to each mod's page in Mods Config FO4 VR; ROCK keeps a ROCK tab in Config with its setup wizard.
- Choosing a grenade on the wheel asks ROCK for it. With ROCK's Immersive Grenades on it comes to your hand; with it off PALM equips it. PALM no longer reads ROCK's settings to decide.
What 2.0 adds
- Equip into the hand you point with. With ROCK, a weapon chosen on the wheel goes into the hand you selected it with and replaces that hand's weapon; the other hand keeps its own.
- Put what you hold on the wheel. Hold a weapon, or a loose aid or food item, point at an empty slot on its page and select it (ADD HELD WEAPON or ADD HELD ITEM): it takes the slot and is put away. Aid and food need ROCK.
- Slots follow your inventory. A weapon on the wheel that leaves your inventory (dropped, sold, scrapped or modded into another variant) frees its slot.
- Config opens RPS UI's menu with the Spawner and the Console, plus PALM's Wheel items and Wheel settings tabs.
- Themes, a movable menu, sharper panels, a ring pointer and controller ticks, all from RPS UI Framework 2.0.
- The stick click follows ROCK's PALM binding, so moving it in ROCK changes how PALM opens.
- Hand gestures are off by default; turn them on in Wheel settings.
- Settings moved to
PALM.toml. YourPALM.inisettings are carried over automatically.
Opening and selecting
Both presets use the physical right controller. Choose one in Config → Wheel settings → Controls.
| Mode | Open | Select | Close |
|---|---|---|---|
| 1, stick click (default) | Click and release the right stick (or the button ROCK's Palm binding names). No minimum hold. | Point and click with the pointing hand's trigger or A/X. The wheel stays open between selections. | Click Cancel at the center. |
| 2, trigger + grip | Hold right trigger and grip together for 0.50 seconds. | Keep holding, point, and release either button. | Aim at the center and release. |
| 3, Custom | Your binding. | Release to select, or Click to select. | As for the chosen selection style. |
Custom mode edits the opening hand, button, optional modifier on either hand, gesture (press, tap, double tap, hold, long press or release), timing and selection style. Tap and release openings need Click to select. Touch and axis inputs are excluded; the stick click is supported. Custom's binding is kept when you switch back to a preset. Release the opening buttons fully before opening again.
PALM yields to gameplay that shares its buttons:
- ROCK's trigger equip of a loose weapon in the bound hand.
- ROCK's bipod: a stick click used by the bipod does not open the wheel. Each stick works for its own hand.
- Placing a held object with ROCK Pimp my House.
- A bound hand inside a Virtual Holsters zone, including an empty slot.
- Mods Config FO4 VR: while its menu is open, PALM's panels take no input.
- Unrelated held buttons, native menus or unavailable controller input.
After a blocked attempt, release the opening buttons and make a fresh gesture; leaving a holster zone or finishing another action while still holding them does not open the wheel.
Wheel items
The categories are Weapons, Armor, Aid, Food and Grenades, with up to eight items each. Pick them in Config → Wheel items: choose a category on the left and tick its items. Choices are saved with your game. The wheel opens on Weapons.
- Weapons and armor: select to equip, select an equipped one to unequip.
- Aid and food: with ROCK, one comes into your free hand to eat, drink or inject; without ROCK, it is used at once.
- Grenades: with ROCK's immersive grenades, the grenade comes into your hand; otherwise it is equipped as your grenade.
- Adding what you hold: see "What 2.0 adds". A slot kept for an item you are not carrying stays reserved until you change it in Config.
- The wheel opens while you hold a loose object that is not touching a surface.
Hand gestures
Turn them on in Config → Wheel settings → Wheel sections (Gestures takes two slots, left and right hand). Thumbs up, Middle finger, Rock and roll, Peace, Pointing, Fist, Open hand and Shaka. Point at a gesture to pose that hand and select it again to clear it. The hand must be free; an occupied hand shows BUSY. Gestures need ROCK and FRIK.
Wheel settings
- Wheel sections: which categories, gestures and mod sections appear. The ring holds up to ten entries, Config included; hidden sections leave no gaps and keep their item choices. Config and Cancel always remain. Mod sections start hidden until turned on here.
- Controls: the modes above.
- Pointer aim: pitch and yaw for each hand, from straight forward, with an aim test target and Reset to defaults.
PALM.toml
Documents/My Games/Fallout4VR/Mods_Config/RobCo_PALM/PALM.toml
In-game control and pointer changes apply at once and are saved here. Manual edits are read at startup, so edit the file while the game is closed. Each option has its help above it.
[Controls]
InputMode = 1 # 1 stick click, 2 trigger + grip, 3 Custom
Mode = "press" # Custom only: press = click to select, hold = release to select
OpenMenu = "right release thumbstick suppress" # Custom only
[Pointer]
LeftPitchDegrees = 0.0
LeftYawDegrees = 0.0
RightPitchDegrees = 0.0
RightYawDegrees = 0.0
Mode and OpenMenu store Custom's binding and never change a preset. A Custom gesture like Mode 2 with editable timing is InputMode = 3, Mode = "hold", OpenMenu = "right hold trigger 0.50 suppress +grip". Pointer angles accept -90 to +90 degrees. [Developer] Enabled adds the Developer section to the wheel after a restart. Item choices are saved with your game, and other mods' settings are in their own files, edited on their pages in Mods Config FO4 VR.
The first start after an update carries PALM.ini into PALM.toml and deletes the INI; an INI from before input modes keeps its binding through the matching preset or Custom. Console shortcuts move to RPS UI's ConsoleCommands.ini (see the Console).
Troubleshooting
- The wheel does not open: release unrelated buttons, move the hand out of a holster zone, and in Mode 2 check that ROCK is not using that trigger to equip a held weapon.
- Gestures are missing: turn them on in Wheel sections, and check ROCK 1.0.4 and FRIK 0.79.1 or newer.
- The panel is invisible or the pointer is off: check RPS UI Framework is installed and current, and use the pointer aim test.
For a report, include your headset and controllers, SteamVR or OpenComposite, your input mode and binding, RobCoPALM.log and RPS_UI_Framework.log (and ROCK.log with ROCK) from the affected session, and your ROCK, FRIK and Virtual Holsters versions.
Native mod sections
PALM publishes provider API 2.0 (Menu and Developer) from its repository's include/RobCoPALM/. Add include/ through a cache variable such as PALM_INCLUDE_DIR, and never copy the headers. Resolve PALMAPI_QueryInterfaceV1 from the loaded wheelmenu.dll and acquire a table with palm::api::acquire from Client.h, which requests exactly the version and table size your headers declare:
#include <RobCoPALM/Client.h>
#include <RobCoPALM/Menu.h>
const auto module = GetModuleHandleW(palm::api::kModuleName);
const auto query = module ? reinterpret_cast<palm::api::QueryInterfaceV1>(
GetProcAddress(module, palm::api::kQueryExportName)) : nullptr;
const palm::api::menu::Api* menu{};
if (palm::api::acquire(query, menu) == palm::api::Result::Ok) {
// Every function in the table is set.
}
PALM logs every version refusal once with the calling DLL; the game keeps running. Major 1 is refused, and the pre-2.0 exports GetPALMMenuApi and GetPALMDeveloperApi stay exported, return no table and are logged the same way. A section built against PALM 1.2's PALMMenuApi.h is updated with Migrating from RobCo PALM 1.2.
The Menu interface (Menu.h, with built-in icon IDs in Icons.h) exposes registration, unregistration and atomic item-snapshot replacement. Up to ten mod sections may register, with eight items per section. New sections start hidden until the player enables them in Wheel settings.
PALM copies names and item data. The consumer keeps its selection callback and context until unregistration succeeds. Selection runs on the F4SE game task thread. Release-to-select closes the wheel before dispatch; click-to-select keeps it open, so consumers must not require closure before dispatch. The mod owns the action: an item may identify a vanilla operation, a ROCK feature, or a physical magazine object independent of ammo forms. Respect the owning feature's thread and lifetime rules.
Unregistration returns CallbackBusy while a callback is active; keep its context and retry later. Removed or disabled items and unregistered sections cannot dispatch queued selections. PALM clears extension item snapshots at a game load; consumers republish from a task queued after a successful PostLoadGame or NewGame. PALM's tests/ConsumerExample.cpp, a compiled physical-magazine example, demonstrates discovery, registration and publication.
Developer actions
The Developer interface (Developer.h) adds actions to one shared wheel of eight, shown only when PALM's Developer mode is on, for local diagnostics such as a capture switch. enabled reports whether Developer mode is on. registerAction takes a stable, mod-qualified ID, a label that includes your mod's name, and a callback. unregisterAction removes it; the callback and context stay borrowed until it returns Ok, and CallbackBusy requires a nonblocking retry. A full wheel returns CapacityReached and evicts nothing. Callbacks run on the game task thread: enqueue blocking capture or file work to your own thread.
Failure and dependency behavior
The wheel requires RPS UI readiness and its independent native input service. Physical item handoffs additionally require ROCK's inventory-transfer support and the matching interface permissions. If registration, presentation, input claim or rendered-selection delivery fails, the wheel releases input ownership. A confirmed presentation failure disables the wheel for that session until the next game load.
A registered or open panel is not proof of a rendered frame: RPS UI can skip draws when scene depth or projection is invalid, and close, cancel and release paths never wait for another render callback. The desktop preview validates layout and interaction logic, not stereo depth or in-game input.
Current modular dependencies
PALM's optional ROCK integration acquires Hands, Grab, Weapon, Input and Animation as needed. It reads and writes no ROCK settings. With ROCK, physical aid, food and throwable handoffs use Grab.requestInventoryGrab: exactly one owned item transfers to a free hand, without immediate use or equip; a grenade ROCK refuses with FeatureDisabled (Immersive Grenades off) is equipped instead; an accepted command is not a finished handoff, and terminal results give the outcome. PALM uses RPS UI's Framework, Input and SettingsMenu interfaces, even when ROCK is unavailable; its Wheel items and Wheel settings are its own pages in RPS UI's menu. Gestures use FRIK API 2.3.
The Menu interface's registerSection copies identity and metadata and returns a non-reused handle, setItems atomically replaces up to eight items, and unregisterSection retires callback ownership. IDs and data are values, not engine pointers. Registration survives game loads but item snapshots are cleared; republish after successful load or new-game processing. CallbackBusy requires keeping the context and retrying later.
Complete public declarations: RobCoPALM/Abi.h
#pragma once
#include <cstddef>
#include <cstdint>
#include <type_traits>
#define PALM_CALL __cdecl
// RobCo PALM's shared ABI vocabulary. Each interface header carries its own
// kMajor and kMinor; records and tables belong to their interface headers.
#pragma pack(push, 8)
namespace palm::api
{
// Layout version of every size/version-tagged record. Interface versions
// are separate and negotiated through discovery.
inline constexpr std::uint32_t kRecordVersion = 1;
enum class Result : std::uint32_t
{
Ok = 0,
InvalidArgument = 1,
NotFound = 2,
DuplicateId = 3,
CapacityReached = 4,
CallbackBusy = 5,
ItemUnavailable = 6,
InternalError = 7,
Disabled = 8,
// Discovery.
UnknownInterface = 100,
UnsupportedMajor = 101,
UnsupportedMinor = 102,
TableTooSmall = 103,
};
// Interface IDs are permanent and never reused.
enum class InterfaceId : std::uint32_t
{
Menu = 1,
Developer = 2,
};
static_assert(sizeof(void*) == 8, "RobCo PALM requires a 64-bit consumer");
static_assert(sizeof(Result) == 4 && sizeof(InterfaceId) == 4);
}
#pragma pack(pop)
Complete public declarations: RobCoPALM/Discovery.h
#pragma once
#include "Abi.h"
// Resolve kQueryExportName from the loaded kModuleName and ask for an interface
// by ID, exact major, minimum minor and minimum table size. A major this PALM
// does not serve returns UnsupportedMajor and no table; PALM logs the refusal
// with the calling DLL.
// The pre-2.0 exports (GetPALMMenuApi and GetPALMDeveloperApi) only refuse
// outdated consumers; their names are never reused.
#pragma pack(push, 8)
namespace palm::api
{
struct InterfaceDescriptorV1
{
std::uint32_t size{ sizeof(InterfaceDescriptorV1) };
InterfaceId interfaceId{};
std::uint32_t major{};
std::uint32_t minor{};
std::uint32_t tableByteSize{};
std::uint32_t reserved{};
const void* table{};
};
// Any thread. The descriptor and table stay valid for the process lifetime.
using QueryInterfaceV1 = Result(PALM_CALL*)(InterfaceId interfaceId,
std::uint32_t exactMajor, std::uint32_t minimumMinor,
std::uint32_t minimumTableBytes,
const InterfaceDescriptorV1** outDescriptor) noexcept;
inline constexpr char kQueryExportName[] = "PALMAPI_QueryInterfaceV1";
inline constexpr wchar_t kModuleName[] = L"wheelmenu.dll";
static_assert(sizeof(InterfaceDescriptorV1) == 32);
}
#pragma pack(pop)
Complete public declarations: RobCoPALM/Client.h
#pragma once
#include "Discovery.h"
namespace palm::api
{
// Consumer-side helper only; it is not part of the DLL ABI. Pass the
// kQueryExportName export resolved from the loaded kModuleName, for example
// reinterpret_cast<QueryInterfaceV1>(GetProcAddress(module, kQueryExportName)).
// Requests exactly the version and table size this header set declares, so
// every refusal is a real version mismatch. Any thread.
template <class Table>
[[nodiscard]] Result acquire(QueryInterfaceV1 query, const Table*& output) noexcept
{
output = nullptr;
if (!query) return Result::InvalidArgument;
const InterfaceDescriptorV1* descriptor{};
const auto result = query(Table::interfaceId, Table::majorVersion, Table::minorVersion, sizeof(Table), &descriptor);
if (result != Result::Ok) return result;
if (!descriptor || descriptor->size != sizeof(InterfaceDescriptorV1) ||
descriptor->interfaceId != Table::interfaceId || descriptor->major != Table::majorVersion ||
descriptor->minor < Table::minorVersion || descriptor->tableByteSize < sizeof(Table) ||
!descriptor->table) return Result::InternalError;
output = static_cast<const Table*>(descriptor->table);
return Result::Ok;
}
}
Complete public declarations: RobCoPALM/Icons.h
#pragma once
#include <cstdint>
namespace palm::api {
// Stable built-in outline icons. Use the supplied names, not atlas UVs.
enum class Icon : std::uint32_t {
ThumbsUp, MiddleFinger, RockAndRoll, Peace, Pointing, Fist, OpenHand, Shaka,
Aid, Food, Grenades, Weapons, Armor, Config, LeftHand, RightHand,
Pistol10mm, Revolver, PipePistol, Deliverer, CombatRifle, HuntingRifle, AssaultRifle, CombatShotgun,
DoubleBarrel, SubmachineGun, LaserPistol, LaserRifle, PlasmaPistol, PlasmaRifle, InstituteRifle, GaussRifle,
Minigun, GatlingLaser, MissileLauncher, FatMan, Flamer, Cryolator, GammaGun, LaserMusket,
RailwayRifle, Broadsider, JunkJet, CombatKnife, BaseballBat, SuperSledge, PowerFist, DeathclawGauntlet,
Stimpak, RadAway, RadX, MedX, Psycho, Jet, Buffout, Mentats,
Addictol, Antibiotics, BloodPack, StealthBoy, Serum, Herbal, RefreshingBeverage, Chems,
NukaCola, NukaCherry, NukaQuantum, PurifiedWater, DirtyWater, Beer, Spirits, Wine,
RawMeat, CookedMeat, Vegetables, Mutfruit, PackagedFood, CannedFood, SweetRoll, Soup,
FragGrenade, Molotov, PlasmaGrenade, PulseGrenade, CryoGrenade, NukaGrenade, Mine, BottlecapMine,
Helmet, PowerArmor, Clothing, ChestArmor, LeftArm, RightArm, LeftLeg, RightLeg,
GrognakAxe, OfficerSword, Machete, Switchblade, Ripper, Shishkebab, PipeWrench, LeadPipe,
Baton, Knuckles, BoxingGlove, Board, AlienBlaster, FlareGun, Syringer, PipeRevolver,
Count, Automatic=Count
};
}
Complete public declarations: RobCoPALM/Menu.h
#pragma once
#include "Abi.h"
#include "Icons.h"
// A mod's own section on the wheel: a named group of up to kMaxItems items.
#pragma pack(push, 8)
namespace palm::api::menu
{
inline constexpr InterfaceId kInterfaceId = InterfaceId::Menu;
inline constexpr std::uint32_t kMajor = 2;
inline constexpr std::uint32_t kMinor = 0;
inline constexpr std::uint32_t kMaxSections = 10;
inline constexpr std::uint32_t kMaxItems = 8;
inline constexpr std::uint32_t kMaxVisibleEntries = 10; // Includes PALM's Config entry.
using SectionHandle = std::uint32_t;
enum class ItemFlag : std::uint32_t { Disabled = 1, Equipped = 2, ShowQuantity = 4 };
// Called on the F4SE game task thread without PALM locks. In press/click mode
// the wheel remains open; consumers must not depend on it closing before dispatch.
// The mod owns the action: vanilla equipment, ROCK requests, or another feature.
// Never throw across this callback. Keep the module and context alive until
// unregisterSection succeeds. CallbackBusy means an invocation is still running;
// retry unregister later, without blocking a game/input/render callback.
using SelectCallback = void(PALM_CALL*)(std::uint32_t itemId, std::uint64_t userData, void* context) noexcept;
struct Section
{
std::uint32_t size{ sizeof(Section) };
std::uint32_t version{ kRecordVersion };
Icon icon{ Icon::Config };
char id[64]{}; // Stable, globally unique ASCII ID: letters, digits, '_', '-', '.'.
char name[48]{};
char modName[48]{};
SelectCallback onSelect{};
void* context{};
};
struct Item
{
std::uint32_t size{ sizeof(Item) };
std::uint32_t version{ kRecordVersion };
std::uint32_t id{}; // Nonzero, stable within this section. Not necessarily a FormID.
Icon icon{ Icon::Config };
std::uint32_t quantity{};
std::uint32_t flags{};
char name[96]{};
std::uint64_t userData{};
};
// Thread-safe, bounded calls. Text and items are copied before returning; only
// the callback/context are borrowed. No engine pointers enter the API.
// Register once per plugin lifetime, replace the item snapshot when it changes,
// and unregister before releasing callback state. Handles are never reused.
// New sections start hidden; users enable them in PALM settings. Registration
// survives game loads; PALM empties item snapshots at the start of a game load.
// Republish from a game task queued after a successful PostLoadGame or NewGame.
// Removing a section or item cancels any queued selection that refers to it.
struct Api
{
static constexpr InterfaceId interfaceId = kInterfaceId;
static constexpr std::uint32_t majorVersion = kMajor;
static constexpr std::uint32_t minorVersion = kMinor;
Result(PALM_CALL* registerSection)(const Section* section, SectionHandle* outHandle) noexcept {};
Result(PALM_CALL* unregisterSection)(SectionHandle handle) noexcept {};
Result(PALM_CALL* setItems)(SectionHandle handle, const Item* items, std::uint32_t count) noexcept {};
};
static_assert(std::is_standard_layout_v<Section> && sizeof(Section) == 192);
static_assert(std::is_standard_layout_v<Item> && sizeof(Item) == 128);
static_assert(std::is_standard_layout_v<Api> && sizeof(Api) == 24);
}
#pragma pack(pop)
Complete public declarations: RobCoPALM/Developer.h
#pragma once
#include "Abi.h"
// Actions on the shared Developer wheel. Registration survives game loads.
// Borrowed callback/context must remain alive until unregister succeeds;
// CallbackBusy requires a nonblocking retry. CapacityReached preserves every
// existing action; obtain user approval before unregistering an existing action
// to make room. No automatic eviction.
#pragma pack(push, 8)
namespace palm::api::developer
{
inline constexpr InterfaceId kInterfaceId = InterfaceId::Developer;
inline constexpr std::uint32_t kMajor = 2;
inline constexpr std::uint32_t kMinor = 0;
inline constexpr std::uint32_t kCapacity = 8;
using Handle = std::uint32_t;
// Game-task callback: enqueue work to the owning mod's appropriate thread.
// No exceptions or blocking capture/file operations across this boundary.
using Callback = void(PALM_CALL*)(void* context) noexcept;
struct Action
{
std::uint32_t size{ sizeof(Action) };
std::uint32_t version{ kRecordVersion };
char id[64]{}; // Stable mod-qualified ID. Registration never replaces another ID.
char label[96]{}; // Include the mod name; all mods share one eight-action wheel.
Callback invoke{};
void* context{};
};
struct Api
{
static constexpr InterfaceId interfaceId = kInterfaceId;
static constexpr std::uint32_t majorVersion = kMajor;
static constexpr std::uint32_t minorVersion = kMinor;
bool(PALM_CALL* enabled)() noexcept {};
Result(PALM_CALL* registerAction)(const Action* action, Handle* outHandle) noexcept {};
Result(PALM_CALL* unregisterAction)(Handle handle) noexcept {};
};
static_assert(std::is_standard_layout_v<Action> && std::is_trivially_copyable_v<Action> && sizeof(Action) == 184);
static_assert(std::is_standard_layout_v<Api> && sizeof(Api) == 24);
}
#pragma pack(pop)