Repository navigation
HD2Runtime v0.31.1 — Performance Graph, Every Language, Bug Holes, Grenade Statuses and More Weapon Damage
HD2Runtime 0.31.1 — performance graph, every language, bug holes and more weapon damage
0.31.1 is a small feature release. It adds a live performance graph and HD2Runtime's own text in every game language
to the F10 panel, an event for closed bug holes, and the damage rows the stats editor was missing for the Peacemaker,
the Redeemer, the missile launchers and the AC-8 flak. Each item says whether it was seen working in game ("live") or
is covered by the offline tests only. The new weapon fields need allow_unverified_effect.
F10: Performance tab (live)
- The F10 panel now has two tabs, SETTINGS and PERFORMANCE. PERFORMANCE shows, live, how much time HD2Runtime and each
mod take per frame:- the total, its share of the frame time, and the frame rate;
- a stacked graph of the last 15 seconds;
- the heaviest parts, each with its average and peak: every mod (
MOD) and every part of the Runtime (HD2R: an
event source, the custom stratagems, an overlay, ...).
- It measures only while the tab is shown, and only time spent in HD2Runtime and its mods (not the game itself).
Each event source's poll is now timed on its own, so it shows up in the graph and in thePERFORMANCElog lines.
Seedocs/getting-started.md("Performance") anddocs/runtime-performance.md("Live view").
F10: Interface size (offline only)
- SETTINGS > INTERFACE sizes the panel and its text with - and +: 90, 100, 110, 125, 140 or 150 %, the HD2R
Editor's sizes. It is saved, and kept to what fits the screen.
HD2Runtime's own text in every game language (offline only)
- Everything HD2Runtime shows on screen is now in the game's language: the F10 panel, the notices, the alert cards,
the custom stratagem panel and its details, the startup progress and the version label. The log stays English. - F10 has a Language row: Automatic (the default) follows the game's language; or pick any of the game's 15
languages. - The translations were generated, not written by native speakers. Corrections are welcome, especially the game's own
terms (stratagem, Quickplay, SOS). hd2.ui.open_settings()/close_settings()/settings_open()open the panel from a mod (the HD2R Editor's
Settings has a button), andhd2.ui.language()returns the language in use.
Bug holes: bughole_destroyed (live)
- A new event fires once when a bug hole is closed, with:
- the hole's kind (
warrior,bile_titan,shrieker, ...) and whether it is a Bile Titan hole; - its entity, the destruction level and its position;
- whether this machine owns it (the host).
- the hole's kind (
- It reads the game's own destruction state 4 times per second, and only while a mod subscribes. Who closed the hole
is not known: the game does not record it. - Live (user report, without a log): closing bug holes fired the event. Clients, Bile Titan holes and the payload
(kind, position) have not been confirmed in game yet.examples/projects/BugHoleEventTestlogs and shows each one.
Seedocs/events.md("Bug holes").
Weapon damage the stats editor was missing (offline only)
- P-2 Peacemaker and P-19 Redeemer: their round's damage and projectile fields. Their weapon record leaves the
projectile to the ammunition row, so the fields come from that row. - FAF-14 Spear, MLS-4X Commando, StA-X3 W.A.S.P.: the missile's direct hit (
damage.primary.*, for example the
Spear's 4000). - AC-8 Autocannon flak, GR-8 Recoilless Rifle HE, RL-77 Airburst cluster: the programmable round's projectile and
damage rows (support_weapon(name):attack('programmable')). The GR-8 row is also fired by the TD-110 and TD-220
tank guns (allow_shared).
Statuses on grenades (offline only)
- A throwable's explosion can now take a status the way a weapon explosion can (a player request: "the gas grenade
has no space to add statuses"). Its used status slots can be swapped, and its first empty slot takes a new status
and its strength: for example the G-4 Gas (Gas, Gas Confusion) gets a third status. Any of the 34 attachable statuses
can be chosen.allow_sharedandallow_unverified_effectare required. Seedocs/throwable-authoring.md. - Weather statuses such as Acid Storm stay unavailable on every weapon and grenade. Acid Storm's definition is a
one-second marker with no damage; what the storm does comes from the weather system, which HD2Runtime has not
mapped.
Compatibility
- Mods built for 0.31.0 work unchanged.
- The startup line reads
HD2Runtime 0.31.1 initialized (API 1). - A mod that uses
bughole_destroyedorhd2.ui.open_settings/hd2.ui.languageneedsmin_version0.31.1. The
new weapon rows need 0.31.1 too: on 0.31.0 they are unknown fields.