sj-rando


Namesj-rando JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummaryA tool to randomize a Solar Jetman (NES) rom file.
upload_time2024-08-04 19:18:58
maintainerNone
docs_urlNone
authorNiamek
requires_python>=3.8
licenseMIT License
keywords nes solar jetman famicom nes randomizer retro
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Solar Jetman Randomizer
    This is a randomizer for the NES game "Solar Jetman : Hunt for the Golden Warpship."

    You will need a version of the game. I cannot help you on this.

    Current version : Version 0.1.2
    Wrote by Niamek originally, current maintainer is akerasi

    Discord channel : https://discord.gg/HNDEnvz


# Usage for end users:
If you don't already have Python, get Python 3.8 or newer (testing is on 3.9.6 as that's what MiSTerFPGA runs and that's my target platform, but should work anywhere as it's simple pure python)
install via pip (pip install sj-rando)
once done, sj-rando is like any other executable. I haven't planned on adding a GUI or anything, but if there's call for one, glad to toss in a quick and dirty GUI version.

sj-rando --help

will tell you the command line options. This won't work without an original rom; default location is same location you're executing from with name Vanilla.nes but rompath is configurable via command line argument (as are any randomizer options, though the defaults are sane)

# Files included in source distro:
* .gitignore : You can delete this, it's for github and me.
* README.md : infos about the randomizer, please read at least the Getting started section.
* sj_rando/main.py : the one and only script to run. All the other scripts don't do anything interesting by themself.
* sj_rando/randomizer.py : This file includes everything:
** The codes for changing the game (and thus everything relies on this file).
** some code that will change very specific stuffs. 
** Includes all randomizers of the program.
* sj_rando/subrando.py : a module that containt fragments of codes needed for the randomizer.py file. Created to lighten the code of randomizer.py.
* sj_rando/items.py : This contains informations used by randomizer.py. Don't delete this
* pyproject.toml : this is a file that defines how the project is built. End users can ignore it.

* Any other files are dev files. You can delete them.
** assembly.txt : This is a file I made to better understand some portion of the game. It's really a mess, so read at your own risk. You can delete this: none of the scripts need this file.
** infos.py : This is a file I use to store infos I found. You can delete this as the randomizer don't use it.

# Getting started for developers:
    You need to download Python 3.8.
        https://realpython.com/installing-python/
    Drag the game named Vanilla.nes in the same folder.
        Note : You can rename your file without any issue.
        Note : The capital is important. I've never worked with anything that let you select your file or something. I personally prefer it with a capital, so for now, I settled with this. This is something I'll fix eventually.
    Open the command line on the same folder.
        For windows : https://www.thewindowsclub.com/how-to-open-command-prompt-from-right-click-menu/
    type the command : python main.py -h
        then press return/ENTER on the keyboard.
        This will display what the randomizer supports.
        You can skip this step.
    type the command with the settings you want to use.
        EXAMPLE : python main.py -arp --seed 450 --mode reckless

# Features :
* Some modes: normal, reckless, goldhunt, lateral
* Astronaut randomizer
* Item randomizer (with no logic yet)
* Palette randomizer
* Rocket's randomizer

## Future features :
* Logic for item randomizer
* Gravity randomizer
* Weapon randomizer
* And much more!

# Modes:
    -> normal : This is the normal mode. No major changes.
    -> reckless : This mode will remove the constraints that block you from being a true bulldozer. Fear not of the walls nor enemies with this mode! This doesn't remove the OHKO collisions from the last level.
        -> This mode highlight the rocket's randomizer
        -> Disable any rocket damage from enemies bullet.
        -> Disable any rocket damage from wall collisions.
    -> goldhunt : This mode will remove the need of gathering the fuels before hunting the gold warpship. Ideal for a quick hunting game.
        -> This mode highlights the item randomizer.
        -> Set all planets' initial mothership's fuel to full.
        -> Change all fuels to fueltanks

# ROM modifications :
    To open up some randomization, some instructions in the code were removed. As a side effect, alongside with some other randomizations, the last level is altered. To compromise, I've set a new "vanilla" X maxspeed for the last level and the astronaut's. If I understand FATRATKNIGHT's notes, my changes may have changed interactions between the pod and the thetered item. I did not notice this prior of Version 1. I'll leave it as is, since it's not that noticeable or huge.

    I've done this to allow astronaut maxspeed randomization. Since the last level use the same formula, they share the same max speed, if it's lower than 5. I've honestly not understood how it stays at 5. And since the last level is only one level among the 14 available levels and is completely different, I decided to go with this change.

    In summary :
        Astronaut max speed changes :
            X : 7 (3,56)  -> 3
            Y : 3  -> 3


        Last level :
            X max speed: 5 -> 3
            Y max speed: 3 -> 3


    And to make sure the game is still doable with these modifications, the rock damages of the last level are toned down. This is done to give more leverage because of the different controls (and that can change from a seed to an another if the astronaut's randomizer is on).
        Vanilla damage : 64
        New damage : 32

# Detailled descriptions of the randomizers:
    -> Astro randomizer: X maxspeed, Y up maxspeed, jetpack acceleration, X acceleration
        -> X max speed is randomized with a value of the following range: [3,4,5,6,7,8,9,10]
            - Vanilla value is 7, but actual vanilla behavior is a little bit over 3
            - NOTE: This has a side effect of altering the max speed of the last level if the new maxspeed is 3-4-5. Vanilla X maxspeed is 5. The new "vanilla" value following forementionned modification is 3.
        -> Y max speed is randomized to a value of the following range: [3,4,5,6,7,8]
            - Vanilla value is 3
            - NOTE: This has a side effect of altering the last level's y max speed. The vanilla speed in this level is 3. The maxpseed in the last level can go up to 5.

        -> X acceleration is randomized: Note that there are two pieces : the friction that always reduce the speed of the astronaut and the acceleration.
            - the friction is randomized. It can be any value from 0 to 243.
                - Vanilla : 2
            - The acceleration is randomized. It is always at least 12 over the friction to make sure it's playable, with a maximum of 255.
        -> Jetpack's power is randomized (Y acceleration for going up is randomized)
            - It can be in the following range: [22,..., 255].
                - Vanilla : 32

    -> Palette randomizer: colors
        I made a somewhat algorithm to make sure the rocket's colors make sense.
    -> Rocket randomizer: X&Y maxspeed, acceleration
        -- The X&Y max speed is randomized together : it can be any from the following value: [3,4,5,6,7,8]
            -> Vanilla value is 3.
            -> This has a side effect of altering astronaut's max fallspeed as they share the same Y maxspeed.
        -- The acceleration is randomized:
            - The acceleration for X and Y speed depends on the rocket's direction. This dependency is randomized. It can be either : [vanilla, linearized, reversed]
            - The max value of acceleration is randomized. it can be anything in the following range : [20,...,255]
                -> Note that the speed of the rocket will determine the minimum of the range. Here are the minimum according to speed:
                    speed => min acceleration
                    3 => 20
                    4 => 42
                    5 => 64
                    6 => 86
                    7 => 108
                    8 => 130
                -> 64 is vanilla.
            - All the others acceleration of the distribution are adjusted with the same ratio of vanilla max accel vs. randomized max accel.
    -> Item randomizer: Currently, there is no logic.
        -> The timer for that planet 2 warp that leads to the middle section is disabled, regardless of logic.
        -> There is a check for the planet 2 to ensure you can at least reach the middle section in case the golden ship warp is in that section. This check is present regardless of logic to ensure completable seeds.


# ACKNOLEDGEMENTS:
    steve_hacks : For answering my multiples questions and being patient.
    MeleeWizard : For suggesting this game and helping in the testings. Also big thanks for answering lots of my questions.
    TheMotherBrains86 : For speedrunning this game, showing big interest in the randomizer, and running this for the Randomania superweek.
    FATRATKNIGHT : for his lua script that gave me some useful infos to start everything. Here is the link of the lua script: http://tasvideos.org/userfiles/info/12531497925152203
    Randomania discord channel for being a useful place to learn about randomizers.
    Randomizers communities : This randomizer is inspired by other randomizers' "structure".
    sbm : For helping in understanding upcodes
    Niamek : for his initial versions
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "sj-rando",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "NES, Solar Jetman, famicom, nes, randomizer, retro",
    "author": "Niamek",
    "author_email": "akerasi <akerasi@gmail.com>",
    "download_url": null,
    "platform": null,
    "description": "# Solar Jetman Randomizer\n    This is a randomizer for the NES game \"Solar Jetman : Hunt for the Golden Warpship.\"\n\n    You will need a version of the game. I cannot help you on this.\n\n    Current version : Version 0.1.2\n    Wrote by Niamek originally, current maintainer is akerasi\n\n    Discord channel : https://discord.gg/HNDEnvz\n\n\n# Usage for end users:\nIf you don't already have Python, get Python 3.8 or newer (testing is on 3.9.6 as that's what MiSTerFPGA runs and that's my target platform, but should work anywhere as it's simple pure python)\ninstall via pip (pip install sj-rando)\nonce done, sj-rando is like any other executable. I haven't planned on adding a GUI or anything, but if there's call for one, glad to toss in a quick and dirty GUI version.\n\nsj-rando --help\n\nwill tell you the command line options. This won't work without an original rom; default location is same location you're executing from with name Vanilla.nes but rompath is configurable via command line argument (as are any randomizer options, though the defaults are sane)\n\n# Files included in source distro:\n* .gitignore : You can delete this, it's for github and me.\n* README.md : infos about the randomizer, please read at least the Getting started section.\n* sj_rando/main.py : the one and only script to run. All the other scripts don't do anything interesting by themself.\n* sj_rando/randomizer.py : This file includes everything:\n** The codes for changing the game (and thus everything relies on this file).\n** some code that will change very specific stuffs. \n** Includes all randomizers of the program.\n* sj_rando/subrando.py : a module that containt fragments of codes needed for the randomizer.py file. Created to lighten the code of randomizer.py.\n* sj_rando/items.py : This contains informations used by randomizer.py. Don't delete this\n* pyproject.toml : this is a file that defines how the project is built. End users can ignore it.\n\n* Any other files are dev files. You can delete them.\n** assembly.txt : This is a file I made to better understand some portion of the game. It's really a mess, so read at your own risk. You can delete this: none of the scripts need this file.\n** infos.py : This is a file I use to store infos I found. You can delete this as the randomizer don't use it.\n\n# Getting started for developers:\n    You need to download Python 3.8.\n        https://realpython.com/installing-python/\n    Drag the game named Vanilla.nes in the same folder.\n        Note : You can rename your file without any issue.\n        Note : The capital is important. I've never worked with anything that let you select your file or something. I personally prefer it with a capital, so for now, I settled with this. This is something I'll fix eventually.\n    Open the command line on the same folder.\n        For windows : https://www.thewindowsclub.com/how-to-open-command-prompt-from-right-click-menu/\n    type the command : python main.py -h\n        then press return/ENTER on the keyboard.\n        This will display what the randomizer supports.\n        You can skip this step.\n    type the command with the settings you want to use.\n        EXAMPLE : python main.py -arp --seed 450 --mode reckless\n\n# Features :\n* Some modes: normal, reckless, goldhunt, lateral\n* Astronaut randomizer\n* Item randomizer (with no logic yet)\n* Palette randomizer\n* Rocket's randomizer\n\n## Future features :\n* Logic for item randomizer\n* Gravity randomizer\n* Weapon randomizer\n* And much more!\n\n# Modes:\n    -> normal : This is the normal mode. No major changes.\n    -> reckless : This mode will remove the constraints that block you from being a true bulldozer. Fear not of the walls nor enemies with this mode! This doesn't remove the OHKO collisions from the last level.\n        -> This mode highlight the rocket's randomizer\n        -> Disable any rocket damage from enemies bullet.\n        -> Disable any rocket damage from wall collisions.\n    -> goldhunt : This mode will remove the need of gathering the fuels before hunting the gold warpship. Ideal for a quick hunting game.\n        -> This mode highlights the item randomizer.\n        -> Set all planets' initial mothership's fuel to full.\n        -> Change all fuels to fueltanks\n\n# ROM modifications :\n    To open up some randomization, some instructions in the code were removed. As a side effect, alongside with some other randomizations, the last level is altered. To compromise, I've set a new \"vanilla\" X maxspeed for the last level and the astronaut's. If I understand FATRATKNIGHT's notes, my changes may have changed interactions between the pod and the thetered item. I did not notice this prior of Version 1. I'll leave it as is, since it's not that noticeable or huge.\n\n    I've done this to allow astronaut maxspeed randomization. Since the last level use the same formula, they share the same max speed, if it's lower than 5. I've honestly not understood how it stays at 5. And since the last level is only one level among the 14 available levels and is completely different, I decided to go with this change.\n\n    In summary :\n        Astronaut max speed changes :\n            X : 7 (3,56)  -> 3\n            Y : 3  -> 3\n\n\n        Last level :\n            X max speed: 5 -> 3\n            Y max speed: 3 -> 3\n\n\n    And to make sure the game is still doable with these modifications, the rock damages of the last level are toned down. This is done to give more leverage because of the different controls (and that can change from a seed to an another if the astronaut's randomizer is on).\n        Vanilla damage : 64\n        New damage : 32\n\n# Detailled descriptions of the randomizers:\n    -> Astro randomizer: X maxspeed, Y up maxspeed, jetpack acceleration, X acceleration\n        -> X max speed is randomized with a value of the following range: [3,4,5,6,7,8,9,10]\n            - Vanilla value is 7, but actual vanilla behavior is a little bit over 3\n            - NOTE: This has a side effect of altering the max speed of the last level if the new maxspeed is 3-4-5. Vanilla X maxspeed is 5. The new \"vanilla\" value following forementionned modification is 3.\n        -> Y max speed is randomized to a value of the following range: [3,4,5,6,7,8]\n            - Vanilla value is 3\n            - NOTE: This has a side effect of altering the last level's y max speed. The vanilla speed in this level is 3. The maxpseed in the last level can go up to 5.\n\n        -> X acceleration is randomized: Note that there are two pieces : the friction that always reduce the speed of the astronaut and the acceleration.\n            - the friction is randomized. It can be any value from 0 to 243.\n                - Vanilla : 2\n            - The acceleration is randomized. It is always at least 12 over the friction to make sure it's playable, with a maximum of 255.\n        -> Jetpack's power is randomized (Y acceleration for going up is randomized)\n            - It can be in the following range: [22,..., 255].\n                - Vanilla : 32\n\n    -> Palette randomizer: colors\n        I made a somewhat algorithm to make sure the rocket's colors make sense.\n    -> Rocket randomizer: X&Y maxspeed, acceleration\n        -- The X&Y max speed is randomized together : it can be any from the following value: [3,4,5,6,7,8]\n            -> Vanilla value is 3.\n            -> This has a side effect of altering astronaut's max fallspeed as they share the same Y maxspeed.\n        -- The acceleration is randomized:\n            - The acceleration for X and Y speed depends on the rocket's direction. This dependency is randomized. It can be either : [vanilla, linearized, reversed]\n            - The max value of acceleration is randomized. it can be anything in the following range : [20,...,255]\n                -> Note that the speed of the rocket will determine the minimum of the range. Here are the minimum according to speed:\n                    speed => min acceleration\n                    3 => 20\n                    4 => 42\n                    5 => 64\n                    6 => 86\n                    7 => 108\n                    8 => 130\n                -> 64 is vanilla.\n            - All the others acceleration of the distribution are adjusted with the same ratio of vanilla max accel vs. randomized max accel.\n    -> Item randomizer: Currently, there is no logic.\n        -> The timer for that planet 2 warp that leads to the middle section is disabled, regardless of logic.\n        -> There is a check for the planet 2 to ensure you can at least reach the middle section in case the golden ship warp is in that section. This check is present regardless of logic to ensure completable seeds.\n\n\n# ACKNOLEDGEMENTS:\n    steve_hacks : For answering my multiples questions and being patient.\n    MeleeWizard : For suggesting this game and helping in the testings. Also big thanks for answering lots of my questions.\n    TheMotherBrains86 : For speedrunning this game, showing big interest in the randomizer, and running this for the Randomania superweek.\n    FATRATKNIGHT : for his lua script that gave me some useful infos to start everything. Here is the link of the lua script: http://tasvideos.org/userfiles/info/12531497925152203\n    Randomania discord channel for being a useful place to learn about randomizers.\n    Randomizers communities : This randomizer is inspired by other randomizers' \"structure\".\n    sbm : For helping in understanding upcodes\n    Niamek : for his initial versions",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A tool to randomize a Solar Jetman (NES) rom file.",
    "version": "0.1.2",
    "project_urls": {
        "Issues": "https://github.com/akerasi/SJ-rando/issues",
        "Repository": "https://github.com/akerasi/SJ-rando"
    },
    "split_keywords": [
        "nes",
        " solar jetman",
        " famicom",
        " nes",
        " randomizer",
        " retro"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4cea0322c0d6afc317bf3bd67ca601ef94d023e3cfc2e662fa67423ddb65db7",
                "md5": "42877baa52f54fced4bbd42accd086ce",
                "sha256": "dc72ca2c68d8a8fa7e819138b7f98246a355744653471c5035c9e930282d8f3e"
            },
            "downloads": -1,
            "filename": "sj_rando-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "42877baa52f54fced4bbd42accd086ce",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16754,
            "upload_time": "2024-08-04T19:18:58",
            "upload_time_iso_8601": "2024-08-04T19:18:58.822880Z",
            "url": "https://files.pythonhosted.org/packages/f4/ce/a0322c0d6afc317bf3bd67ca601ef94d023e3cfc2e662fa67423ddb65db7/sj_rando-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-04 19:18:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "akerasi",
    "github_project": "SJ-rando",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sj-rando"
}
        
Elapsed time: 9.51748s