Repository
https://github.com/RamiLego4Game/LIKO-12
New Features
- What feature(s) did you add?
I have added a package system, allowing the user to download extra programs for the fantasy computer. You can install, remove, and search packages. Each package has triggers that are ran at install, remove, enable, and disable. This allows you, for example, to move files to a specific location at install. The package system will allow there to be more features, without making the base code too big, and also it will allow there to be more specific features.
- How did you implement it/them?
It has both a program and a library. The program gets input from the user and runs functions in the library. The library, meanwhile does most of the work, reading / writing JSON files, and downloading files from the internet. The library's most important functions, that I implemented, are: - checkPackage: https://github.com/RamiLego4Game/LIKO-12/blob/d832a0470f62f82476a7db2c343086fbf23760bd/OS/DiskOS/PackagesManager/init.lua#L131 , which returns information on the package's status.
- installPackage (https://github.com/RamiLego4Game/LIKO-12/blob/d832a0470f62f82476a7db2c343086fbf23760bd/OS/DiskOS/PackagesManager/init.lua#L147) and removePackage (https://github.com/RamiLego4Game/LIKO-12/blob/d832a0470f62f82476a7db2c343086fbf23760bd/OS/DiskOS/PackagesManager/init.lua#L250) and search (https://github.com/RamiLego4Game/LIKO-12/blob/d832a0470f62f82476a7db2c343086fbf23760bd/OS/DiskOS/PackagesManager/init.lua#L282). Which do the basic functions for the program.
- And finally checkVersion, which makes sure a version meets a requirement. (https://github.com/RamiLego4Game/LIKO-12/blob/d832a0470f62f82476a7db2c343086fbf23760bd/OS/DiskOS/PackagesManager/init.lua#L231)
Thanks for the task request!
Looks like a really cool project, and it's great you are helping out! I am curious how you started contributing to it - do you know the owner or did you just randomly come across it?
Could you add your Steem username to e.g. your GitHub bio just so we know for sure it's you?
It would also be great if for future contributions you could write a little bit more about how you implemented everything and add a few more comments to the code. Also it is preferable if you link to the commit directly.
Keep up the good work!
Click here to see how your contribution was evaluated.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I got into this project because I liked the idea of fantasy computers, and I found it interested that it was free and open source. I have added my steemit account to github. I will try to do better next time.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @snewmark
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit