Close
Showing results 1 to 10 of 41

Threaded View

  1. #6

    Default

    Quote Originally Posted by Pocalypse View Post
    Do you cache the settings in a file somewhere (or in memory somewhere)?
    Settings are saved in files.

    Then, when the already open Mojo with changes detects a new Mojo on the network, it can send over all the settings at the same time, and update the new Mojo.
    That works in that case but there are many other cases. Suppose one Mojo has run and been changed and shut down by itself. Then the same thing with the second. Then you start the first. Then you start the second. See the problem?

    I suppose then you have to start thinking about which Mojo has more up to date information, and the order in which Mojos are opened.
    Exactly. That's the problem. In general, it seems to be impossible to know which file is newer because the files have timestamps based on clocks in different computers.

    I think probably the only way to do this is with a central repository for the info which means Mojo would no longer be 100% peer to peer. I'd like to hold on to peer to peer as a "100% design invariant" for the life of the project, if that's possible.

    This problem has already arisen with mouseover and I handled it by creating entirely separate settings on each PC. I'm inclined to think the solution lies in that direction.

    The basic idea would be, each computer is the master repository for settings that were created on that computer. As a result, each Mojo could have different settings.

    It would be easier for me if each computer is the master repository for its own instances of WoW, but then maybe it starts to get complicated for the user.
    Last edited by Freddie : 01-08-2010 at 01:58 PM
    �Author of HotkeyNet and Mojo

Posting Rules

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