From e8f629123ad805b6bae74f0f7efe036f16228a41 Mon Sep 17 00:00:00 2001 From: leapofazzam123 Date: Mon, 11 Jul 2022 12:06:49 +0700 Subject: [PATCH 1/6] minor fixes --- README.md | 12 +++---- lang/{lol_US.py => en_LOL.py} | 4 +-- lang/en_x_pig_latin.py | 63 +++++++++++++++++++++++++++++++++++ requirements.txt | 1 + 4 files changed, 72 insertions(+), 8 deletions(-) rename lang/{lol_US.py => en_LOL.py} (95%) create mode 100644 lang/en_x_pig_latin.py create mode 100644 requirements.txt diff --git a/README.md b/README.md index bba05ad..c80e398 100644 --- a/README.md +++ b/README.md @@ -27,19 +27,19 @@ Current Development Version: **0.2.2b-dev2** Built on Python 3. -Dependencies: ```rich``` +Dependencies: `rich` 1. Download the zip file and extract. 2. Open your terminal/command prompt inside the extracted contents. -3. Make sure the dependencies have been met. -4. Simply do ```python boot.py``` +3. Install the dependencies by running `pip install -r requirements.txt` +4. Simply do `python boot.py` ## Common Issues Before you create an issue, please make sure you check the following: - Please check that the dependencies are installed. -- Did you get an error about pip not being found when you ran `pip install rich`? - - **Windows:** That means that pip is not installed in your PATH variable. Simply run `python -m pip install rich` to go around this issue. - - **Linux:** This means that the pip package is not installed. Run your package manager with the package `python-pip` and install `rich` after. +- Did you get an error about pip not being found when you ran `pip install -r requirements.txt`? + - That means that pip is not installed in your PATH variable. Simply run `python -m pip install -r requirements.txt` (or `py3 -m pip install -r requirements.txt` on Windows) to go around this issue. + - If Python complains that there are no module named pip, run your package manager with the package `python-pip` or `python3-pip` and install `rich` after. - Did you get an error about Python not being found when you launched `boot.py`? - **Windows:** Python is either not installed, or you did not check the box in the installer to put Python into PATH. - **Linux:** Make sure Python is installed and can be found within a folder in your $PATH variable. diff --git a/lang/lol_US.py b/lang/en_LOL.py similarity index 95% rename from lang/lol_US.py rename to lang/en_LOL.py index 5b6aa2f..9cb7fc1 100644 --- a/lang/lol_US.py +++ b/lang/en_LOL.py @@ -1,5 +1,5 @@ class language(): - # en_US language configuration file + # en_LOL language configuration file # {*} <-- these are for python's .format() command, used for placing variables in strings. # Please do not remove \n, {*}, or [] objects. @@ -58,4 +58,4 @@ class language(): adeptAcquired = '\nADEPT LABEL ACQUIRD!' grandAcquired = '\nGRAND LABEL ACQUIRD!' whatAcquired = '\nWHAT?' - magicPink = 'MAGIC PINK!' \ No newline at end of file + magicPink = 'MAGIC PINK!' diff --git a/lang/en_x_pig_latin.py b/lang/en_x_pig_latin.py new file mode 100644 index 0000000..dff7c41 --- /dev/null +++ b/lang/en_x_pig_latin.py @@ -0,0 +1,63 @@ +class language(): + # en_x_pig_latin language configuration file + # {*} <-- these are for python's .format() command, used for placing variables in strings. + # Please do not remove \n, {*}, or [] objects. + + # boot + pleaseSelect = 'easePlay electsay youryay anguagelay ybay enteringyay ethay anguagelay odecay otay ethay eftlay.' + sparrow = '[white]arrowSpay Assistantyay Enhancedyay extTay IOSBay.[not bold]80.1[/not bold][/white] - [bright_yellow]Energyyay arStay (unyay)oweredPay[/bright_yellow]' + # {0} is for the build verson, {1} is for the compile date. + version = '[white]ICLay ervay. [bold]{0}[/bold] - ompiledcay {1}[/white]' + dev = '[bold red]- EVELOPMENTDay UILDBay // UGSBay AYMay EBay OMMONCay -[/bold red]\n\n' + # {0} is for the boot menu list number, {1} is for the full system name, {2} is the level number required for unlock, {3} is the level you need in a specified system to unlock this one. + notUnlocked = '[red][not bold]{0}[/not bold]. [not bold]{1}[/not bold] - etGay otay evellay {2} inyay {3} otay unlockyay isthay![/red]' + credits1 = "ogress[#12cc00]CLI[/#12cc00]Pray95 [blink]evelopmentDay[/blink] andyay [blink]ontributorCay[/blink] eamTay" + credits2 = "ogress[#12cc00]CLI[/#12cc00]Pray95 [blink]anslationTray[/blink] eamTay" + + # player + loading = '\n\n\nowNay oadingLay...' + bar = '\nYouryay arbay::' + barProgress1 = '\nYouyay avehay {0}% ithway {1}% orangeyay inyay youryay ogressbarpray.' + barProgress2 = "\nYouyay avehay {0}% inyay youryay ogressbarpray." + doYouWant = "oDay youyay antway otay avehay isthay :" + popupSetting = "\notay ethay opuppay indowway? (Y/N)" + wait = 'e a s e P l a y a i t w a y . . .\n\n\n' + closeCMD = '[bold yellow]Ityay isyay ownay afesay otay oseclay youryay ommandCay ineLay Interfaceyay.[/bold yellow]' + bm1 = 'e g i n B a y e n u M a y' + bm2 = 'ewNay ameGay' + bm3 = 'oadLay ameGay' + bm4 = 'estartRay' + bm5 = 'utdownShay' + bm6 = 'ettingsSay' + bm7 = 'esumeRay' + sett1 = 'e t t i n g s S a y' + sett2 = 'opupPay' + sett3 = 'eturnRay' + annoyingPopup = ':) Annoyingyay opuppay!' + outOfLives = "[bold bright_blue]Youyay areyay outyay ofyay iveslay. ameGay overyay![/bold bright_blue]" + noLevelTaken = '[i]Ayay evellay ashay otnay eenbay akentay.[/i]' + negateLevel = '[bold i]-1 evelLay[/bold i]' + level = 'evelLay' + oneLifeLeft = "Youyay avehay [italic bright_red]1 ifelay eftlay[/italic bright_red]. eBay arefulcay." + # {0} is the current number of lives. + livesLeft = "Youyay avehay {0} iveslay eftlay." + pressInstructions = "ypeTay 'cay' otay atchcay, anyyay otheryay eykay otay ovemay awayyay, andyay 'qay' otay uitqay.\n" + gameOver = 'ameGay Overyay! anksThay orfay ayingplay!' + pressEnter = '\nessPray ENTERyay otay ayplay anotheryay evellay.' + gameBravo = 'avoBray!' + gamePerfect = 'erfectPay!' + gameOuterSpace = 'Outeryay acespay!' + gameYinAndYang = 'Yinyay anday yangyay' + gameNonconformist = "onconformistNay!" + game95percent = '95%' + gamePoints = " ointspay" + mine = "ineMay" + newSystem = '[i]Ayay ewnay ystemsay ashay unlockedyay...[/i]' + proCongrats = '\nongratulationsCay! Youyay areyay ethay ofessionalPray!!' + proAcquired = 'oPray abelLay acquiredyay!' + expertAcquired = '\nExpertyay abelLay acquiredyay!' + masterAcquired = '\nasterMay abelLay acquiredyay!' + adeptAcquired = '\nAdeptyay abelLay acquiredyay!' + grandAcquired = '\nandGray abelLay acquiredyay!' + whatAcquired = '\natWhay?' + magicPink = 'agicMay inkpay!' diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3f382dd --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +rich From 620694b42fbbcc15d8556f18c4264c5c1e1779bb Mon Sep 17 00:00:00 2001 From: leapofazzam123 Date: Mon, 11 Jul 2022 12:10:59 +0700 Subject: [PATCH 2/6] minor fixes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c80e398..2bade24 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Before you create an issue, please make sure you check the following: - Please check that the dependencies are installed. - Did you get an error about pip not being found when you ran `pip install -r requirements.txt`? - That means that pip is not installed in your PATH variable. Simply run `python -m pip install -r requirements.txt` (or `py3 -m pip install -r requirements.txt` on Windows) to go around this issue. - - If Python complains that there are no module named pip, run your package manager with the package `python-pip` or `python3-pip` and install `rich` after. + - If Python complains that there are no module named pip, install the package `python-pip` or `python3-pip` with your package manager and install `rich` after. - Did you get an error about Python not being found when you launched `boot.py`? - **Windows:** Python is either not installed, or you did not check the box in the installer to put Python into PATH. - **Linux:** Make sure Python is installed and can be found within a folder in your $PATH variable. From 91525e75bd6db2b01fed8d8a3f1b2ac35f8bc7fc Mon Sep 17 00:00:00 2001 From: leapofazzam123 Date: Mon, 11 Jul 2022 12:41:40 +0700 Subject: [PATCH 3/6] finished the lolcat language --- lang/en_LOL.py | 58 +++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lang/en_LOL.py b/lang/en_LOL.py index 9cb7fc1..384fa82 100644 --- a/lang/en_LOL.py +++ b/lang/en_LOL.py @@ -5,44 +5,44 @@ class language(): # boot pleaseSelect = 'PLZ SELECT UR LANGUAGE BY ENTERIN TEH LANGUAGE CODE 2 TEH LEFT.' - sparrow = '[white]Sparrow Assistant Enhanced Text BIOS.[not bold]80.1[/not bold][/white] - [bright_yellow]Energy Star (un)Powered[/bright_yellow]' + sparrow = '[white]SPARROW ASISTANT ENHANCD TEKS BIOZ[not bold]80.1[/not bold][/white] - [bright_yellow]ENERGI STAR (UN)POWERD[/bright_yellow]' # {0} is for the build verson, {1} is for the compile date. - version = '[white]CLI ver. [bold]{0}[/bold] - compiled {1}[/white]' - dev = '[bold red]- DEVELOPMENT BUILD // BUGS MAY BE COMMON -[/bold red]\n\n' + version = '[white]CLI VER. [bold]{0}[/bold] - COMPILD {1}[/white]' + dev = '[bold red]- DEVELOPMNT BUILD // BUGZ CUD BE COMMON -[/bold red]\n\n' # {0} is for the boot menu list number, {1} is for the full system name, {2} is the level number required for unlock, {3} is the level you need in a specified system to unlock this one. notUnlocked = '[red][not bold]{0}[/not bold]. [not bold]{1}[/not bold] - GIT 2 LEVEL {2} IN {3} 2 UNLOCK DIS![/red]' - credits1 = "Progress[#12cc00]CLI[/#12cc00]95 [blink]Development[/blink] and [blink]Contributor[/blink] Team" - credits2 = "Progress[#12cc00]CLI[/#12cc00]95 [blink]Translation[/blink] Team" + credits1 = "PROGRES[#12cc00]CLI[/#12cc00]95 [blink]DEVELOPMNT[/blink] and [blink]CONTRIBUTR[/blink] TIM" + credits2 = "PROGRES[#12cc00]CLI[/#12cc00]95 [blink]TRANZLASHUN[/blink] TIM" # player - loading = '\n\n\nNAO LOADIN...' - bar = '\nYour bar:' + loading = '\n\n\nNAW LOADIN...' + bar = '\nUR BAR:' barProgress1 = '\nU HAS {0}% WIF {1}% ORANGE IN UR PROGRESBAR.' barProgress2 = "\nU HAS {0}% IN UR PROGRESBAR." doYouWant = "DO U WANTS 2 HAS DIS :" popupSetting = "\n2 TEH POPUP WINDOW? (Y/N)" - wait = 'P l s w a i t . . .\n\n\n' - closeCMD = '[bold yellow]It is now safe to close your Command Line Interface.[/bold yellow]' - bm1 = 'B e g i n M e n u' - bm2 = 'New Game' - bm3 = 'Load Game' - bm4 = 'Restart' - bm5 = 'Shutdown' - bm6 = 'Settings' - bm7 = 'Resume' - sett1 = 'S e t t i n g s' - sett2 = 'Popup' - sett3 = 'Return' - annoyingPopup = ':) Annoyin popup!' - outOfLives = "[bold bright_blue]U R OUT OV LIVEZ. GAME OVAR![/bold bright_blue]" - noLevelTaken = '[i]A level has not been taken.[/i]' - negateLevel = '[bold i]-1 Level[/bold i]' - level = 'Level' - oneLifeLeft = "U HAS [ITALIC BRIGHT_RED] 1 LIFE LEFT [/ITALIC BRIGHT_RED]. BE CAREFUL." + wait = 'P L Z W A I T . . .\n\n\n' + closeCMD = '[bold yellow]IT NAW SAFE 2 CLOSE UR COMMAN LINE INTERFEZ/bold yellow]' + bm1 = 'B I G I N M E N U' + bm2 = 'NEW GAM' + bm3 = 'LOAD GAM' + bm4 = 'RESTART' + bm5 = 'SHUTDOWN' + bm6 = 'SETTINGZ' + bm7 = 'RESUME' + sett1 = 'S E T T I N G Z' + sett2 = 'POPUP' + sett3 = 'RETURN' + annoyingPopup = ':) ANOYIN POPUP!' + outOfLives = "[bold bright_blue]U R OUT OV LIFEZ. GAM OVAR![/bold bright_blue]" + noLevelTaken = '[i]A LEVEL HAZ NOT TAKEN[/i]' + negateLevel = '[bold i]-1 LEVEL[/bold i]' + level = 'LEVEL' + oneLifeLeft = "U HAS [italic bright_red] 1 LIFE LEFT [/italic bright_red]. BE CERFUL." # {0} is the current number of lives. - livesLeft = "U HAS {0} LIVES LEFT." + livesLeft = "U HAS {0} LIFEZ LEFT." pressInstructions = "TYPE 'C' 2 KATCH, ANY OTHR KEY 2 MOOV AWAY, AN 'Q' 2 QUIT.\n" - gameOver = 'GAME OVAR! THX 4 PLAYIN!' + gameOver = 'GAM OVAR! THX 4 PLAYIN!' pressEnter = '\nPRES ENTR 2 PULAY ANOTHR LEVEL.' gameBravo = 'BRAVO!' gamePerfect = 'PERFIK!' @@ -54,8 +54,8 @@ class language(): proCongrats = '\nCONGRATULASHUNS! U R TEH PROFESHUNAL!!' proAcquired = 'PRO LABEL ACQUIRD!' expertAcquired = '\nEXPERT LABEL ACQUIRD!' - masterAcquired = '\nMASTER LABEL ACQUIRD!' + masterAcquired = '\nMASTEAH LABEL ACQUIRD!' adeptAcquired = '\nADEPT LABEL ACQUIRD!' grandAcquired = '\nGRAND LABEL ACQUIRD!' - whatAcquired = '\nWHAT?' + whatAcquired = '\nWUT?' magicPink = 'MAGIC PINK!' From af297b05bc7cd979513966c3cc76a8fed7756898 Mon Sep 17 00:00:00 2001 From: leapofazzam123 Date: Mon, 11 Jul 2022 12:50:29 +0700 Subject: [PATCH 4/6] bug fixes --- boot.py | 1 + lang/en_LOL.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/boot.py b/boot.py index 92bedd3..bcfedc8 100644 --- a/boot.py +++ b/boot.py @@ -57,6 +57,7 @@ def loadSettings(system): else: xlevel = x xbadge = calculateBadge(xlevel, xobj.prolevel) + xlvllimit = 0 if hasattr(xobj, "levellimit"): xlvllimit = xobj.levellimit if hasattr(xobj, "systemunlock"): diff --git a/lang/en_LOL.py b/lang/en_LOL.py index 384fa82..073e3a0 100644 --- a/lang/en_LOL.py +++ b/lang/en_LOL.py @@ -22,7 +22,7 @@ class language(): doYouWant = "DO U WANTS 2 HAS DIS :" popupSetting = "\n2 TEH POPUP WINDOW? (Y/N)" wait = 'P L Z W A I T . . .\n\n\n' - closeCMD = '[bold yellow]IT NAW SAFE 2 CLOSE UR COMMAN LINE INTERFEZ/bold yellow]' + closeCMD = '[bold yellow]IT NAW SAFE 2 CLOSE UR COMMAN LINE INTERFEZ[/bold yellow]' bm1 = 'B I G I N M E N U' bm2 = 'NEW GAM' bm3 = 'LOAD GAM' @@ -49,7 +49,9 @@ class language(): gameOuterSpace = 'OUTR SPACE!' gameYinAndYang = 'YIN AN YONG' gameNonconformist = "NONCONFORMIST!" - gamePoints = "POINTS" + game95percent = '95%' + gamePoints = " POINTZ" + mine = "MINE" newSystem = '[i]A NEW SISTEM HAS UNLOCKD[/i]' proCongrats = '\nCONGRATULASHUNS! U R TEH PROFESHUNAL!!' proAcquired = 'PRO LABEL ACQUIRD!' From 6a6e2639d408c4928494cee729150a5918cf7249 Mon Sep 17 00:00:00 2001 From: leapofazzam123 Date: Mon, 11 Jul 2022 12:55:30 +0700 Subject: [PATCH 5/6] lolcat language fixes --- lang/en_LOL.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/en_LOL.py b/lang/en_LOL.py index 073e3a0..22185cb 100644 --- a/lang/en_LOL.py +++ b/lang/en_LOL.py @@ -10,8 +10,8 @@ class language(): version = '[white]CLI VER. [bold]{0}[/bold] - COMPILD {1}[/white]' dev = '[bold red]- DEVELOPMNT BUILD // BUGZ CUD BE COMMON -[/bold red]\n\n' # {0} is for the boot menu list number, {1} is for the full system name, {2} is the level number required for unlock, {3} is the level you need in a specified system to unlock this one. - notUnlocked = '[red][not bold]{0}[/not bold]. [not bold]{1}[/not bold] - GIT 2 LEVEL {2} IN {3} 2 UNLOCK DIS![/red]' - credits1 = "PROGRES[#12cc00]CLI[/#12cc00]95 [blink]DEVELOPMNT[/blink] and [blink]CONTRIBUTR[/blink] TIM" + notUnlocked = '[red][not bold]{0}[/not bold]. [not bold]{1}[/not bold] - GIT 2 LEVL {2} IN {3} 2 UNLOCK DIS![/red]' + credits1 = "PROGRES[#12cc00]CLI[/#12cc00]95 [blink]DEVELOPMNT[/blink] AN [blink]CONTRIBUTR[/blink] TIM" credits2 = "PROGRES[#12cc00]CLI[/#12cc00]95 [blink]TRANZLASHUN[/blink] TIM" # player @@ -35,15 +35,15 @@ class language(): sett3 = 'RETURN' annoyingPopup = ':) ANOYIN POPUP!' outOfLives = "[bold bright_blue]U R OUT OV LIFEZ. GAM OVAR![/bold bright_blue]" - noLevelTaken = '[i]A LEVEL HAZ NOT TAKEN[/i]' - negateLevel = '[bold i]-1 LEVEL[/bold i]' - level = 'LEVEL' + noLevelTaken = '[i]A LEVL HAZ NOT TAKEN[/i]' + negateLevel = '[bold i]-1 LEVL[/bold i]' + level = 'LEVL' oneLifeLeft = "U HAS [italic bright_red] 1 LIFE LEFT [/italic bright_red]. BE CERFUL." # {0} is the current number of lives. livesLeft = "U HAS {0} LIFEZ LEFT." pressInstructions = "TYPE 'C' 2 KATCH, ANY OTHR KEY 2 MOOV AWAY, AN 'Q' 2 QUIT.\n" gameOver = 'GAM OVAR! THX 4 PLAYIN!' - pressEnter = '\nPRES ENTR 2 PULAY ANOTHR LEVEL.' + pressEnter = '\nPRES ENTR 2 PULAY ANOTHR LEVL.' gameBravo = 'BRAVO!' gamePerfect = 'PERFIK!' gameOuterSpace = 'OUTR SPACE!' From 76b5324dfae26e1f230a8d23ffe14d433c27f5dd Mon Sep 17 00:00:00 2001 From: leapofazzam123 Date: Mon, 11 Jul 2022 12:59:14 +0700 Subject: [PATCH 6/6] lolcat language fixes --- lang/en_LOL.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/en_LOL.py b/lang/en_LOL.py index 22185cb..121b4e6 100644 --- a/lang/en_LOL.py +++ b/lang/en_LOL.py @@ -17,9 +17,9 @@ class language(): # player loading = '\n\n\nNAW LOADIN...' bar = '\nUR BAR:' - barProgress1 = '\nU HAS {0}% WIF {1}% ORANGE IN UR PROGRESBAR.' - barProgress2 = "\nU HAS {0}% IN UR PROGRESBAR." - doYouWant = "DO U WANTS 2 HAS DIS :" + barProgress1 = '\nU HAZ {0}% WIF {1}% ORANGE IN UR PROGRESBAR.' + barProgress2 = "\nU HAZ {0}% IN UR PROGRESBAR." + doYouWant = "DO U WANTS 2 HAZ DIS :" popupSetting = "\n2 TEH POPUP WINDOW? (Y/N)" wait = 'P L Z W A I T . . .\n\n\n' closeCMD = '[bold yellow]IT NAW SAFE 2 CLOSE UR COMMAN LINE INTERFEZ[/bold yellow]' @@ -38,9 +38,9 @@ class language(): noLevelTaken = '[i]A LEVL HAZ NOT TAKEN[/i]' negateLevel = '[bold i]-1 LEVL[/bold i]' level = 'LEVL' - oneLifeLeft = "U HAS [italic bright_red] 1 LIFE LEFT [/italic bright_red]. BE CERFUL." + oneLifeLeft = "U HAZ [italic bright_red] 1 LIFE LEFT [/italic bright_red]. BE CERFUL." # {0} is the current number of lives. - livesLeft = "U HAS {0} LIFEZ LEFT." + livesLeft = "U HAZ {0} LIFEZ LEFT." pressInstructions = "TYPE 'C' 2 KATCH, ANY OTHR KEY 2 MOOV AWAY, AN 'Q' 2 QUIT.\n" gameOver = 'GAM OVAR! THX 4 PLAYIN!' pressEnter = '\nPRES ENTR 2 PULAY ANOTHR LEVL.' @@ -52,7 +52,7 @@ class language(): game95percent = '95%' gamePoints = " POINTZ" mine = "MINE" - newSystem = '[i]A NEW SISTEM HAS UNLOCKD[/i]' + newSystem = '[i]A NEW SISTEM HAZ UNLOCKD[/i]' proCongrats = '\nCONGRATULASHUNS! U R TEH PROFESHUNAL!!' proAcquired = 'PRO LABEL ACQUIRD!' expertAcquired = '\nEXPERT LABEL ACQUIRD!'