#1
  1. Not a clue what to put ...
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2006
    Location
    in front of this keyboard
    Posts
    879
    Rep Power
    333

    MCP GUI programs with Fuzzball MUCK


    This is, perhaps, just a touch arcane, but what the hell ...
    I am trying to concoct a MUF program using the MCP gui elements to provide a 'windowed' front-end to character editing/creation within a Fuzzball 6 based MUCK.
    I have a basic program (which I tracked down after being pointed to it by someone in another MUCK) and have hacked it around a little - and yes, it still works!
    What my need is is quite simple ... I want to be able to not just show information (which is what is done currently) but to be able to have data input/changed and to be able to access that data within the MUF program.
    According to Sod's Law, buttered toast lands butter side down, when dropped.
    Per nature, cats always land on their feet.
    So, what happens when you strap buttered toast to the back of a cat and throw it out a window?
    .
  2. #2
  3. Not a clue what to put ...
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2006
    Location
    in front of this keyboard
    Posts
    879
    Rep Power
    333
    I am sure you will all be thrilled to learn that I think that I have managed to work this out for myself!

    Comments on this post

    • LinuxPenguin agrees : Ooooh, you're just inviting trolling ;)
    According to Sod's Law, buttered toast lands butter side down, when dropped.
    Per nature, cats always land on their feet.
    So, what happens when you strap buttered toast to the back of a cat and throw it out a window?
    .
  4. #3
  5. Not a clue what to put ...
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2006
    Location
    in front of this keyboard
    Posts
    879
    Rep Power
    333
    This is real fun! I can do it, and I even think I understand a bit of how I am doing it. What is, currently beyond me is the positioning and sizing ... it seems to be semi-dynamic in nature and, sometimes, relative. But, I can get a gui shown and can detect what button has been pressed, and even detect the selection/change of a drop down list.

    It ain't what I'd do for fun and with the documentation I have I would never have got anywhere without the basic program I mentioned. Not a hope in hell! The docs hold no examples at all.
    According to Sod's Law, buttered toast lands butter side down, when dropped.
    Per nature, cats always land on their feet.
    So, what happens when you strap buttered toast to the back of a cat and throw it out a window?
    .
  6. #4
  7. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1051
    Dont MUCK up your Fuzzball, and don't play with MUF.

    Now, since none of us has a clue what you're on about, want to provide some links, for the rare possibility someone else has an issue like this?
  8. #5
  9. Not a clue what to put ...
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2006
    Location
    in front of this keyboard
    Posts
    879
    Rep Power
    333
    Originally Posted by LinuxPenguin
    and don't play with MUF.
    You saying I should not go MUF diving?

    As for a link ... hmmm, not as yet - I do have a MUCK up and running on a server but am developing on me laptop - and, well ... it is going to be an adult-orientated MUCK and, from what I have seen, some of you here ain't old enough!

    My currnet bete noire is a little section of code that if I leave it in it works, but when exiting the gui causes errors - one per time round the loop. If I comment it out it still goes round the loop but just does not do one "operation" per loop. SO far as I can see the snippet of code leaves the stack exactly as it was before - oh well!

    You asked, so ...

    Code:
      arrRaces @ swap atoi array_getitem
      "@a/races/" over strcat dup strRace ! ourDataObj @ LMGR-GetCount dup ourCounter !
      begin                              (* begin effect-applying loop *)
        dup while
        strRace @ ourDataObj @ LMGR-GetElem
        dup "stats" instr if
          "," explode pop pop 
          Capitalize "val" swap strcat
          strStat ! 
          intStat !
          (dlgMainWindow @ strStat @ intStat @ gui_value_set)
        else
          pop
        then
        ourCounter @ 1 - dup ourCounter !
      repeat                                (* end effect-applying loop *)
      pop
    If it isn't obvious, the ( and ) are comment delimitors and the snippet:
    Code:
    (dlgMainWindow @ strStat @ intStat @ gui_value_set)
    is the code at issue.
    According to Sod's Law, buttered toast lands butter side down, when dropped.
    Per nature, cats always land on their feet.
    So, what happens when you strap buttered toast to the back of a cat and throw it out a window?
    .
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2006
    Posts
    2,270
    Rep Power
    1737
    Originally Posted by Ehlanna
    If it isn't obvious...
    Oh don't worry. It's dead obvious and we completely understand it.

    Erm, is this Fuzzball ? Not sure you what you are mucking around in
  12. #7
  13. Not a clue what to put ...
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2006
    Location
    in front of this keyboard
    Posts
    879
    Rep Power
    333
    Originally Posted by Oler1s
    Oh don't worry. It's dead obvious and we completely understand it.

    Erm, is this Fuzzball ? Not sure you what you are mucking around in
    Yes, that's the one!
    According to Sod's Law, buttered toast lands butter side down, when dropped.
    Per nature, cats always land on their feet.
    So, what happens when you strap buttered toast to the back of a cat and throw it out a window?
    .

IMN logo majestic logo threadwatch logo seochat tools logo