Ryno Productions Forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.

The dead forums for Ryno Productions


    Mod Guidelines

    Ryno
    Ryno
    Owner


    Posts : 9
    Join date : 2016-01-01
    Location : Somewhere

    Mod Guidelines Empty Mod Guidelines

    Post by Ryno Sat Jan 02, 2016 3:48 pm

    Welcome to the TTMME Mod Forums! Have you modified the code and wanted to share it? Or are you here to improve your experience? Well you've come to the right place!

    MOD POSTING STRUCTURE:
    In order to post your mod, you must use the following structure.
    For an example, I'll list a mod that I created called the "Walking Mod" that functions using Magic Words. This is already in TTMME.


    Title of Mod: Walking Mod

    Version Number: 1.0

    TTMME Version(s) Supported: 1.0.0 (should work in higher versions)

    What it does: Allows a Toon to be reduces to a walking pace.

    Commands: ~walkOn - Activates walking speed.
    ~walkOff - Deactivates walking speed.

    Installation Instructions: 1. Go to "otp\avatar" and edit "LocalAvatar.py". Recommending using Notepad++.
    2. Look for "def setWalkSpeedNormal(self):" and paste the following below it (line 425 in unedited code)
    Code:
       def setWalkSpeedWalking(self):
            self.controlManager.setSpeeds(OTPGlobals.ToonForwardSlowSpeed, OTPGlobals.ToonJumpForce, OTPGlobals.ToonReverseSlowSpeed, OTPGlobals.ToonRotateSpeed)
    3. Look for "def run():" and paste the following below it (line 1238 after pasting "def setWalkSpeedWalking")
    Code:
    @magicWord(category=CATEGORY_COMMUNITY_MANAGER)
    def walkOn():
        """
        Changes the forward speed to make use of walking.
        Something I originally intended to implement as default, but never worked.
        """
        invoker = spellbook.getInvoker()
        walkslow = invoker.setWalkSpeedWalking()
        inputState.set(walkslow, inputState.isSet(walkslow) == True)
        return 'Turned walking speed on.'
        
    @magicWord(category=CATEGORY_COMMUNITY_MANAGER)
    def walkOff():
        """
        Changes the forward speed back to normal.
        Something I originally intended to implement as default, but never worked.
        """
        invoker = spellbook.getInvoker()
        runback = invoker.setWalkSpeedNormal()
        inputState.set(runback, inputState.isSet(runback) == True)
        return 'Turned walking speed off.'
    4. Save.
    5. Have fun!

    Known Bugs or Glitches: Opening your Shtickerbook or entering a new area will disable walking.



    If your mod is useful, it could end up on a release of the game.

    MOD COPYING:
    If you're caught stealing other people's work, you will be banned from the TTMME Forums. That is unless you get their permission to modify their mod.

    UPVOTE AND DOWNVOTE:
    The "Thanks" feature will not give any Reputation in this forum, so the only way to see who has good mods is to upvote/downvote mod posts made by modders.

    JOINING OTHER PEOPLES SERVERS WITH MODS:
    It is highly recommended that you have the same mods as the host of a server before joining it. Check with them to see what mods they have. If they don't have a mod that you have, you should disable it by putting # signs in front of the lines of code of the mod.

    Good luck and have fun!

      Current date/time is Fri Mar 29, 2024 2:32 am