FG Spreadshirt Swag

Thread: 'Notes' glitch?

  1. #1

    'Notes' glitch?

    Hi all,

    For some reason players can no longer create new notes, although they are still able to modify pre-existing notes. Has anybody got any ideas how to resolve this one? As ever, any help would be gratefully received.

  2. #2
    You can try the /flushdb command which removes all record sharing in the campaign. Any owned items (characters and notes) will remain owned and accessible. Otherwise, I'd have to look at the db.xml for the campaign.

    Regards,
    JPG

  3. #3
    Stollesson's Avatar
    Join Date
    Feb 2013
    Location
    Sundsvall Sweden
    Posts
    38
    I would say that this is not a "glitch" it's a bug.

    It happens to me too, with a new campaign no extensions loaded.
    When the player adds a new note nothing happens on the player side.
    On the GM side I see a new note belonging to the player.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by Stollesson View Post
    I would say that this is not a "glitch" it's a bug.

    It happens to me too, with a new campaign no extensions loaded.
    When the player adds a new note nothing happens on the player side.
    On the GM side I see a new note belonging to the player.
    To try to identify the underlying issue: if the player closes FG and connects again do they see the note they created then?
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #5
    Stollesson's Avatar
    Join Date
    Feb 2013
    Location
    Sundsvall Sweden
    Posts
    38
    No the notes don't come back.

    While doing some testing I spotted what might be the problem.

    I created a new campaign and then started a second instance with the player name Tester. When Tester creates a note nothing happens on the player side
    but on the GM side a new note is created with the owner Teste. It doesn't matter what I call the player the last character is missing when the owner of the note is created.

    <?xml version="1.0" encoding="iso-8859-1"?>
    <root version="3.0" release="1">
    <effect>
    <holder name="Tester" />
    </effect>
    <image>
    </image>
    <modifier>
    <holder name="Tester" />
    </modifier>
    <note>
    <holder name="GM" owner="true" />
    <id-00001>
    <holder name="GM" />
    <holder name="Teste" owner="true" />
    <ispublic type="number">0</ispublic>
    <newnote type="number">0</newnote>
    <owner type="string">Teste</owner>
    </id-00001>
    </note>
    <preference>
    <UseSkillLevels type="string">Yes</UseSkillLevels>
    </preference>
    </root>
    When I then starts a new payer name Teste he sees the note

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    You've hit the nail on the head there.

    A quick fix is to add the 3 red highlighted lines in the sendCommand function in scripts\chatmanager.lua

    Code:
    function sendCommand(name,text)
      local msg = {};
      msg.sender = "/cmd "..name.." "..User.getUsername();
      if name == "note" then
    	msg.sender = msg.sender .. " ";
      end 
      msg.text = text;
      msg.font = "";
      deliverMessage(msg, "");
    end
    This will result in the note being created with the correct owner name, but the player has to close the note list and open it again to see the note. I can't find any code that automatically opens the new notes window on the client - as it relies on the GM creating the underlying database node I'm guessing this is as designed.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  7. #7
    Stollesson's Avatar
    Join Date
    Feb 2013
    Location
    Sundsvall Sweden
    Posts
    38
    Trenloe thanks for your help.

  8. #8
    ddavison's Avatar
    Join Date
    Sep 2008
    Posts
    6,134
    Blog Entries
    21
    Quote Originally Posted by Trenloe View Post
    You've hit the nail on the head there.

    A quick fix is to add the 3 red highlighted lines in the sendCommand function in scripts\chatmanager.lua

    Code:
    function sendCommand(name,text)
      local msg = {};
      msg.sender = "/cmd "..name.." "..User.getUsername();
      if name == "note" then
    	msg.sender = msg.sender .. " ";
      end 
      msg.text = text;
      msg.font = "";
      deliverMessage(msg, "");
    end
    This will result in the note being created with the correct owner name, but the player has to close the note list and open it again to see the note. I can't find any code that automatically opens the new notes window on the client - as it relies on the GM creating the underlying database node I'm guessing this is as designed.
    Thanks Trenloe.

    I've posted the fix to the patch system.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in