PDA

View Full Version : Default text on input box issue



Nightstride
April 27th, 2024, 18:03
I found an issue with the default text functionality of input fields.

It should be possible to reproduce with the following setup

on the charsheet, create a list
each element in the list should contain a string with default text
create functionality to programmatically add an element to the list using DB.createchild, and set the text of that input field to something other than the default text


Then it should be possible to reproduce the issue with the following steps:

host and client open the same sheet
host triggers the function to add a line to the sheet
result: client sees proper text, host sees default text


In the cyberpunk red ruleset, we commented out the default text field on the input and the text updated as expected. It can be reproduced in revision: 27143 of the cyberpunk ruleset if the above steps don't work.

The way to reproduce it there is:

create a character
give the character some base stats (to set health)
add character to the combat tracker
add an npc with a weapon to the combat tracker
enable manual dice entry
open up the main page of the character sheet as both a host and client
as the npc, roll damage set exactly 2 dice to 6s, any remaining can be just set to 1
set the next dice to any number
observe injury section on the character sheet between the client and the host

Moon Wizard
April 27th, 2024, 20:42
Yes, it's a known issue. When using records shared across host/client, you should avoid using the default value; as they will conflict in-flight if other values are set via scripting. Only use scripting to set these.

Regards,
JPG