1. #16061
    Stood in the Fire listo95's Avatar
    10+ Year Old Account
    Join Date
    Aug 2009
    Location
    Manassas, VA
    Posts
    437
    Quote Originally Posted by Danner View Post
    @Lora, you need a hug.

    --

    For the last few weeks I have been on vacation. Which means I have not been able to be online much if at all (murphys law: absolutely every camping on the trip site had wifi, but every camping site somehow managed to not cover the location where I was sleeping).

    So, I have been coding. A new rolecard builder. This one is client-side only, and makes the styles a separate thing ... that you ideally never need to touch unless you want to and feel like going full CSS. I hated how the old rolecards constantly ended up needing manual style hacking; this is ideally no longer needed.

    Consider this is an early beta; it will likely have many bugs. And as such I ask - anyone feeling bored and eager to bugtest?
    Basically: break it as much as you can. But let me know which data broke it.

    https://www.pvv.ntnu.no/~andreasd/ma...card_builder2/
    So how would change color of text? Also move an image to say the right side of it?

    - - - Updated - - -

    Also noticed that if you try to bold multiple words on the same line it will do everything between the first and last *.

    - - - Updated - - -

    Example, I'm just trying to recreate my butler role card and this line comes out like this

    Defeat the *Unseen* or *Cult*, and any *neutrals* that seek to do you harm.

  2. #16062
    Quote Originally Posted by listo95 View Post
    So how would change color of text? Also move an image to say the right side of it?
    All handled under the style section.

    Think of every line as an HTML tag, nested under the parent line. Each of those lines can have styles.

    Sample Rolecard
    Code:
    ###
     [RIGHT:http://www.pvv.org/~andreasd/mafia/rolecard_builder2/dagger.png,32,32] This is text and an image floats to the right of it. Feel free to add Lorem Ipsum test until you are satisfied about the wonders of right-facing images.
    Sample Style:
    Code:
    [
      {
        "action": "block",
        "regex": "^###(.*)",
        "replace": "$1",
        "style": "width: 670px; border: 1px solid black; background-color: #D3D3FC; 
                  padding: 15px; box-shadow: 2px 2px #bab1bf; background-image: url(http://www.pvv.org/~andreasd/mafia/rolecard_builder2/bokeh.png)",
        "onmouseover": "this.style.backgroundColor='#E3E3FE';",
        "onmouseout": "this.style.backgroundColor='#D3D3FC';"
      },
    
      {  
        "action": "transform",
        "search": "\[RIGHT:(\S*\.png|\S*\.jpg),(\S*),(\S*)\]",
        "replace": "<u style='display:inline-block; float: right; background-image: url($1); width:$2px; height:$3px'></u>" // this works!
      }
    
    ]
    - - - Updated - - -

    Also noticed that if you try to bold multiple words on the same line it will do everything between the first and last *.
    Doh!

    I thought I did a non-greedy regex. It is easy to fix...

    Code:
      // *Bold Text*
      // Text immediately inbetween stars turn bold. 
      {
        "action": "transform",
        "search": "\*(\S[^*]*\S)\*",
        "replace": "<b>$1</b>"
      }
    I've updated the default style to have this fix. Your localstorage copy won't have that fix unless you create a new style after refreshing....
    Last edited by Danner; 2019-07-17 at 11:58 PM.
    Non-discipline 2006-2019, not supporting the company any longer. Also: fails.
    MMO Champion Mafia Games - The outlet for Chronic Backstabbing Disorder. [ Join the Fun | Countdown | Rolecard Builder MkII ]

  3. #16063
    Stood in the Fire listo95's Avatar
    10+ Year Old Account
    Join Date
    Aug 2009
    Location
    Manassas, VA
    Posts
    437
    Hmm... So to get the image floating on the right I'd have to make a change to the style sheet? Cause putting the RIGHT in front of the link just removes it from the entire card.

    - - - Updated - - -

    Yes I'm dumb when it comes to stuff like this

  4. #16064
    Quote Originally Posted by listo95 View Post
    Hmm... So to get the image floating on the right I'd have to make a change to the style sheet? Cause putting the RIGHT in front of the link just removes it from the entire card.

    - - - Updated - - -

    Yes I'm dumb when it comes to stuff like this
    Affirmative.

    The idea was that if you want one rolecard with a right-centered image, you likely want MANY rolecards with such a feature. And as such, you want to make a wikitag thing that does just that. The one I created in that example looks like "[RIGHT:http://www.pvv.org/~andreasd/mafia/rolecard_builder2/dagger.png,32,32]". But the power to define it is yours.

    Exactly where this right-facing image should be is a bit of a cardstyle-specific thing.

    I will admit it is not at all user-friendly to create a new style. I wish it was. I'm basically making it more complicated than HTML here. And I wish I didn't have to (it's all QT's fault for adding all those limits forcing me down that route - I'd be using HTML and CSS otherwise!)

    The default style exists, and that was what I expect other people to use. At most I expect people to replace the background color or images


    That said: I am happy to extend it to your wishes, or help you make new styles.
    I can add the right-image tag to the default style if you like

    Currently playing with making a snazzy zero escape rolecard style. I'm truly lost on the design though
    Non-discipline 2006-2019, not supporting the company any longer. Also: fails.
    MMO Champion Mafia Games - The outlet for Chronic Backstabbing Disorder. [ Join the Fun | Countdown | Rolecard Builder MkII ]

  5. #16065
    Stood in the Fire listo95's Avatar
    10+ Year Old Account
    Join Date
    Aug 2009
    Location
    Manassas, VA
    Posts
    437
    Yeah right now I'm more or less just trying to recreate my ToL game role cards because like I said I do plan to run a game similar to it again in the future. And honestly if I can just create 1 I can usually create them all since at that point it is just replacing the image/text for each card.

    - - - Updated - - -

    Literally right now it is only the image giving me issues lol.

    - - - Updated - - -

    Okay I think I finally got it. Image isn't exactly where I'd like it but it works!

    - - - Updated - - -

    Finally found the line to put it on to get it in the area I want so yay! I should now be able to remake all of my role cards... and make the new ones for the new roles... *shoots self*

  6. #16066
    You guys need to start killing me earlier in games so that I have time to work on a ruleset. I've got a framework; just working on some mechanics and balance (I don't want a repeat of my last game where town won N1... ooooopssss) so it'll probably be a few days before it's ready.
    Cheerful lack of self-preservation

  7. #16067
    Stood in the Fire listo95's Avatar
    10+ Year Old Account
    Join Date
    Aug 2009
    Location
    Manassas, VA
    Posts
    437
    Danner curious, how does it decide what order to place the role cards made?

  8. #16068
    Quote Originally Posted by listo95 View Post
    Danner curious, how does it decide what order to place the role cards made?
    Each card and style has a number internally. That's the number it has when created.
    The order placed is simply the order of appearance, numerically.


    No, that's actually a lie. It's just picking the order based on the order in the webstorage container. Which should be equal to the order of creation, but may not be on all browsers.

    I can give it an order I guess. I have also been pondering making a drag-and-reshuffle feature. I miss that functionality too :P
    Non-discipline 2006-2019, not supporting the company any longer. Also: fails.
    MMO Champion Mafia Games - The outlet for Chronic Backstabbing Disorder. [ Join the Fun | Countdown | Rolecard Builder MkII ]

  9. #16069
    Quote Originally Posted by Lora View Post
    been constantly grief puking but got sick last week and started puking up dark red blood so that was a fun trip to the ER for 8 hours for them to basically tell me to go fuck myself since they didnt tell me what was wrong with me.
    *poof*

    https://en.wikipedia.org/wiki/Mallor...Weiss_syndrome

    *poof*

    This message was brought to you by socialized medicine

  10. #16070
    Who left the "Hey Catta" device on always-on listening mode? I told you they can spy on us when you do that!

  11. #16071
    Quote Originally Posted by Razamith View Post
    Who left the "Hey Catta" device on always-on listening mode? I told you they can spy on us when you do that!
    Guys I found the scum bussing!
    Cheerful lack of self-preservation

  12. #16072
    Blademaster Kryllian's Avatar
    7+ Year Old Account
    Join Date
    Feb 2016
    Location
    Minnesota, USA
    Posts
    25
    Everyone got so quiet. It's like we all "Vanished"...that sounds like a good game theme!

    Signup Thread...


    https://www.mmo-champion.com/threads...5#post51464655

  13. #16073
    The Lightbringer Lora's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    Some random weird place
    Posts
    3,114
    Quote Originally Posted by Catta View Post
    *poof*

    https://en.wikipedia.org/wiki/Mallor...Weiss_syndrome

    *poof*

    This message was brought to you by socialized medicine
    i love socialism!

    Quote Originally Posted by Uggorthaholy View Post
    Thanks but no thanks, Lora, for making me question everything in existence forever.

  14. #16074
    I thought Lysah was Arcanine

  15. #16075
    So in the current game even people who are lynched just vanish? That's interesting.

  16. #16076
    Rumors of my permanent deletion from the universe is highly over-
    Non-discipline 2006-2019, not supporting the company any longer. Also: fails.
    MMO Champion Mafia Games - The outlet for Chronic Backstabbing Disorder. [ Join the Fun | Countdown | Rolecard Builder MkII ]

  17. #16077
    Quote Originally Posted by Danner View Post
    Rumors of my permanent deletion from the universe is highly over-
    oh snap...

  18. #16078
    I'm working on finalizing mechanics for the game I've been poking at for a while. It should be ready soon but it'll take until the 19th make a signup thread.
    Cheerful lack of self-preservation

  19. #16079
    Quote Originally Posted by Nefarious Tea View Post
    I'm working on finalizing mechanics for the game I've been poking at for a while. It should be ready soon but it'll take until the 19th make a signup thread.
    Well, I can't speak for anybody else but that works for me! I'm moving house on Saturday so I'm going to be busy for the next week or so.

  20. #16080
    The Lightbringer Lora's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    Some random weird place
    Posts
    3,114
    friday is my moms anniversary and im going to be a fucking shitshow.

    Quote Originally Posted by Uggorthaholy View Post
    Thanks but no thanks, Lora, for making me question everything in existence forever.

Posting Permissions

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