Question about programming
Register

User Tag List

Results 1 to 9 of 9
  1. ISO #1

  2. ISO #2

  3. ISO #3

    Re: Question about programming

    Nice.

    Have you ever considered adding the option for users to program their own roles? I was working on a Java-based mafia game that had roles and a lot of the game logic programmed in Javascript, which would be executed on the server on the fly. The idea would be that users could easily add/tweak settings and roles. It never really went anywhere, but it would be a cool idea.

  4. ISO #4

    Re: Question about programming

    I've been designing the game so that it'd be easy for me to implement new roles easily. It took me all of 1 hour to have Poisoner added and tested.

    However, any way I think of trying to do custom roles via programming sounds like a security nightmare. How were you implementing it in your version?

    FM XVII: Bonney Jewelry (Journalist)
    FM XVIII: Kalou (Savage Godfather)
    FM XX: Joseph Bertrand (Marshall)
    FM XXI: USA (Escort)
    FM XV: Whiskey (Whore)

  5. ISO #5

    Re: Question about programming

    Quote Originally Posted by Voss View Post
    I've been designing the game so that it'd be easy for me to implement new roles easily. It took me all of 1 hour to have Poisoner added and tested.

    However, any way I think of trying to do custom roles via programming sounds like a security nightmare. How were you implementing it in your version?
    I used an embedded Javascript engine called Rhino and sandboxed all user-provided code so that it couldn't access Java classes/methods, apart from some specific whitelisted ones for utility purposes.

  6. ISO #6

    Re: Question about programming

    I'd like this a lot, but it seems like there would be a lot of shit roles & troll roles.
    Would this be just for the 1 game they are created for, or would they enter a permanent database?

    Quote Originally Posted by S-FM Blue Masquerader View Post
    Hey moron. shut the fuck up or I will shut you up, k? I'm not the person your going to insult and live happily ever after. K? Understand that,

  7. ISO #7

    Re: Question about programming

    The way I currently have it set up, is that only people with strictly one-phase night actions would be able to be inserted into the game. Any special day mechanics, or special two-time passes would be tough to implement.

    I guess it could be in a permanent database connected to the user who created it.

    FM XVII: Bonney Jewelry (Journalist)
    FM XVIII: Kalou (Savage Godfather)
    FM XX: Joseph Bertrand (Marshall)
    FM XXI: USA (Escort)
    FM XV: Whiskey (Whore)

  8. ISO #8

    Re: Question about programming

    Apo was doing something similar with the custom provided roles using a sandboxed javascript environment. It wasn't the best of implementations, but it worked somewhat in eMafia. There were no hard coded roles.

    Quote Originally Posted by SuperJack View Post
    Look what you have caused. Seems like everyone who posted is now confused about their own gender and are venting their frustration into opinions.

  9. ISO #9

    Re: Question about programming

    Quote Originally Posted by Apocist View Post
    Apo was doing something similar with the custom provided roles using a sandboxed javascript environment. It wasn't the best of implementations, but it worked somewhat in eMafia. There were no hard coded roles.
    Yep, the actual Java implementation for my finished product was intended to be pretty bare-bones, essentially just a chat client with some Mafia-necessary stuff, like ability to input actions. The implementation of much of the game logic, such as routing chat messages, night actions, win conditions, voting, etc., were all implemented in Javascript. The intention was to allow people to change even the most low-level parts of the game, to allow for unusual setups like Kingmaker.

    It never got farther than writing part of the engine, though.

 

 

Posting Permissions

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