Page 2 of 4 First 1234 Last
  1. #11
    Teknykk's Avatar
    Join Date
    Jul 2015
    Location
    Hervey Bay, Australia
    Posts
    158
    Hey Trenloe, is there a way to change the title of the MOTD to something else more suited to a campaign? I guess an example would be "Previously on Curse of Strahd", but basically anything to suit a campaign being run instead of a plain old MOTD. While I'm okay with XML code now, I'm not too much up on LUA stuff yet, even though it does look somewhat similar.

    If possible I'd like you to walk me through the process needed to change it from MOTD to anything I so desire, or a DM in a group I play in also wishes too. I have Notepad++ so I know how to easily edit files after changing extensions and modules to ZIP files and opening the LUA and XML files to change things, I just don't quite understand what I'm looking at entirely yet, and a bit of practice would make perfect, so to speak.
    “The line between the Light and the Darkness is not always so thin, for Good can come of wrong just as Evil may show from right. But sometimes...the Ends justify the Means”.

  2. #12
    Quote Originally Posted by Teknykk View Post
    Hey Trenloe, is there a way to change the title of the MOTD to something else more suited to a campaign? I guess an example would be "Previously on Curse of Strahd", but basically anything to suit a campaign being run instead of a plain old MOTD. While I'm okay with XML code now, I'm not too much up on LUA stuff yet, even though it does look somewhat similar.

    If possible I'd like you to walk me through the process needed to change it from MOTD to anything I so desire, or a DM in a group I play in also wishes too. I have Notepad++ so I know how to easily edit files after changing extensions and modules to ZIP files and opening the LUA and XML files to change things, I just don't quite understand what I'm looking at entirely yet, and a bit of practice would make perfect, so to speak.
    Looks like the following line in manager_motd_extension.lua is what you need to change:
    if DB.getValue(vNode, "name", "") == "MOTD" then

    Actually not the whole line, just the MOTD between quotes.

    Whatever title you want to use on your story entry has to match exactly with what is between those quotes.

  3. #13
    Teknykk's Avatar
    Join Date
    Jul 2015
    Location
    Hervey Bay, Australia
    Posts
    158
    Hah, yeah I had a feeling it'd be as simple as a single line of code or one section of it. I'm just not exactly an expert in the field and only dabble when I want something done. It's always the way though, one little thing, but it did the trick when I tested it via Local Host.

    Thanks for jumping in for me, it'll be useful to both myself as a GM and for the DM who runs another game for me.
    “The line between the Light and the Darkness is not always so thin, for Good can come of wrong just as Evil may show from right. But sometimes...the Ends justify the Means”.

  4. #14
    Quote Originally Posted by Teknykk View Post
    Hah, yeah I had a feeling it'd be as simple as a single line of code or one section of it. I'm just not exactly an expert in the field and only dabble when I want something done. It's always the way though, one little thing, but it did the trick when I tested it via Local Host.

    Thanks for jumping in for me, it'll be useful to both myself as a GM and for the DM who runs another game for me.
    And now you've done some Lua programming and will be pumping out the extensions in no time!

  5. #15
    Quote Originally Posted by NotRussellCrowe View Post
    Looks like the following line in manager_motd_extension.lua is what you need to change:
    if DB.getValue(vNode, "name", "") == "MOTD" then

    Actually not the whole line, just the MOTD between quotes.

    Whatever title you want to use on your story entry has to match exactly with what is between those quotes.
    Noob question: How do I open the file to change this line? Notepad did not work

  6. #16
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    10,958
    Quote Originally Posted by GainunX View Post
    Noob question: How do I open the file to change this line? Notepad did not work
    Notepad does work. You need to change the .ext to .zip and then unzip the file to get at the files first. Then open up the file manager_motd_extension.lua file.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea to the wish list http://fg2app.idea.informer.com/

  7. #17
    Quote Originally Posted by Zacchaeus View Post
    Notepad does work. You need to change the .ext to .zip and then unzip the file to get at the files first. Then open up the file manager_motd_extension.lua file.
    Thanks!

  8. #18

  9. #19
    Thanks for the confirm.
    I never claimed to be sane. Besides, it's more fun this way.

  10. #20
    That's a great extension ! Very usefull ! Thanks a lot
    Ultimate license holder
    Pref : Cthulhu and savage Worlds

Thread Information

Users Browsing this Thread

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

Posting Permissions

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

Log in

Log in