Skip to content

How to set up Owen2k6 Launcher

Owen2k6 edited this page Mar 18, 2022 · 1 revision

In order to set up the launcher in the environment, you will need the following:

  1. Replit with the free plan ofc.

  2. A secondary py file to be launched from the launcher.

  3. The O2k6L Main.py and Updater.py

Steps to getting the launcher working:

  1. Import Main.py and Updater.py into the root of the Repl Project.

  2. Before starting for the first time, locate

# ADMIN DB RESET. DO NOT TOUCH.
# db["RUNINNIT"] = int(0)
# END OF ADMIN. DO NOT UNCOMMENT IF ALREADY SET UP.

and uncomment the code inbetween.

  1. Start the Repl for the first time in order to create the repl keys.

  2. Recomment the ADMIN DB RESET code.

  3. Modify the launch code area to make it launch the pyfile you wish to start.

For example,

if input1 == "test":
  RUN = True
  import testo2k6l

could become

if input1 == "phow":
  RUN = True
  import phow

Note. Ensure that the import code matches the FILENAME of the python file.

Phow.py would be import Phow

phow.py would be import phow

PhOw.py would be import PhOw

it is CaSe SeNsItIvE

  1. Run the repl and type in the launch code for the py file ("phow")

In order to verify the db system works, perform step 6 again and then continue.

  1. Run the repl and then run "system" then while in system, enter "stats".

If you ran step 6 twice, you should receive a statistic of 2 runs.

And that's it! enjoy using the launcher!

Copyright (c) 2022 Owen2k6

Do not modify any code that your not supposed to modify. Thanks :^)

Clone this wiki locally