Need Python Code Projects


  • Creator

    Hello! I'm still on this whole learn code to make an Evennia MUSH thing. Though through all my past failings I've learned how I actually need to learn that would work for me.

    Given all the various systems one might have to deal with in a MUSH, like combat, inventories, items, and other weird bullshit if you think about RPIs and Firan, and possibly stuff I'm not even thinking of...

    Anyone know any projects I can do that might teach me valuable concepts in coding a MUSH with Python/Evennia coding?

    I know that the obvious kneejerk answer might be "just make the game and learn with that", but I'd really like to do some self-contained projects that might teach me useful concepts before I go through the intimidating process of staring down a wall of an entire game.


  • Pitcrew

    The problem with the standalone project approach is that it might help you learn Python but it won't help you learn Evennia.

    If you want to learn Evennia, the best way (IMO) is to dive in. Start with something small-- I think my first project was changing the appearance of the room parent-- then work your way up to more complex things. If you don't know Python at all then taking a course (or investing in a good Python book) will definitely help, especially when it comes to more advanced topics (such as django).

    If you need help, jump on the Evennia Discord server (I think you're on it already?).



  • The last time I messed with Evennia, there was essentially a "Hello World!" tutorial. That may be of interest to you, if you haven't done it yet. I suggest that you start there.

    Otherwise, pull down the Arx codebase and start altering it. Figure out how to customize the stats. Figure out how to customize the recipes. Figure out how to add "<name> seems to be holding <object list>" to descriptions. Poke and fiddle and try to change things.



  • There's a number of tutorials in Evennia. I tend to also favor the "just dive in" approach, but you could also try a book like "Automate the Boring Stuff With Python" which tries to teach python by letting you write various scripts for different tasks. A lot of them are kind of contrived but I think it gets the point across.

    As others echo though, general python knowledge might be a prerequisite for Evennia, but that's in itself just a starting point. Evennia is a framework built on other frameworks, so there's some deep tribal knowledge there that there's no way around than just looking through it.


  • Pitcrew

    @Tehom said in Need Python Code Projects:

    There's a number of tutorials in Evennia. I tend to also favor the "just dive in" approach, but you could also try a book like "Automate the Boring Stuff With Python" which tries to teach python by letting you write various scripts for different tasks. A lot of them are kind of contrived but I think it gets the point across.

    In general, and especially for Python in particular, No Starch Press rocks. If you're of a mind to go buy books or to look for them through your local library (even in electronic collections, if necessary), you're in great hands with No Starch's stuff.


  • Creator

    Okay, I've decided that I'm gonna get a server up and fuck with Evennia and just read documentation.

    That's what I've narrowed things down to.

    Trial by fire.



  • @HelloProject said in Need Python Code Projects:

    Okay, I've decided that I'm gonna get a server up and fuck with Evennia and just read documentation.

    That's what I've narrowed things down to.

    Trial by fire.

    Trial by fire works. Evennia code itself is super well documented so you can open up files and putz around looking for how stuff works.

    It's good to have a working knowledge of Python though too. There used to be a good years and years ago in the 'Headfirst' series of coding books: "Headfirst Python". I've recommended it more than once to folks new to writing code that were interested in Python.

    Not sure how new you are, but if you want some little projects to learn the syntax and some of the "guts" of Python itself you can probably score that book for cheap.


  • Creator

    @Reason said in Need Python Code Projects:

    @HelloProject said in Need Python Code Projects:

    Okay, I've decided that I'm gonna get a server up and fuck with Evennia and just read documentation.

    That's what I've narrowed things down to.

    Trial by fire.

    Trial by fire works. Evennia code itself is super well documented so you can open up files and putz around looking for how stuff works.

    It's good to have a working knowledge of Python though too. There used to be a good years and years ago in the 'Headfirst' series of coding books: "Headfirst Python". I've recommended it more than once to folks new to writing code that were interested in Python.

    Not sure how new you are, but if you want some little projects to learn the syntax and some of the "guts" of Python itself you can probably score that book for cheap.

    In all my searching and reading suggestions, oddly the most sensible learning Evennia + Python suggestion has been "read the official Python website". >__> This has so far actually worked better than nearly anything I've tried over the years.


  • Pitcrew

    You have a github? I want to do the same thing.


  • Creator

    @Doozer said in Need Python Code Projects:

    You have a github? I want to do the same thing.

    I do but I'm probably gonna make a new one because I think I made it as a part of some thing that I don't feel like cleaning up!


  • Pitcrew

    @HelloProject
    No rush. Holla when ya do.


Log in to reply