DB personalized node - GM/player differences
I would like to create a section of the DB in which we can save some specific information related to the game system that my friends and I are creating.
The structure should be this:
Code:
<test>
<playername1>
data
</playername1>
<playername2>
...
</playername2>
...
</test>
Each player should have access to their own section, of course. I have a windowclass which is opened with the statement
Code:
Interface.openWindow("testrecord", "test." .. User.getUsername() );
Looking at the DB everything seems fine while the GM uses it. In fact I get:
Code:
<test>
<GM>
data
</GM>
</test>
But when a player uses it I get no errors, but the structure doesn't appear.
What am I doing wrong? Because I'm definitely doing something wrong.