Difference between revisions of "Extensions:Awards"

From Lorekeeper Wiki
Jump to navigation Jump to search
(add tutorial to warning about installation)
Tag: 2017 source edit
(Added Vanilla Awards)
Tag: 2017 source edit
Line 7: Line 7:
 
Pull the branch and run <code>php artisan migrate</code>!
 
Pull the branch and run <code>php artisan migrate</code>!
  
'''Please be aware that this extension builds off of several existing extensions. I'm currently working on a vanilla version that will be safe for people without the above extensions. If you pull and have errors, it's probably because you don't have one of the extensions listed!
+
'''Please be aware that this extension builds off of several existing extensions. If you pull and have errors, it's probably because you don't have one of the extensions listed!
 
I'll update this page when the vanilla version is finished. In the meanwhile, it is recommended that you read [[Tutorial: Installing Extensions]] for MERGING and TROUBLESHOOTING before proceeding.'''
 
I'll update this page when the vanilla version is finished. In the meanwhile, it is recommended that you read [[Tutorial: Installing Extensions]] for MERGING and TROUBLESHOOTING before proceeding.'''
  
 
'''Note''' that this extension needs [[Extensions:Character Items]] and [[Extensions:Bootstrap_Tables]] (an extension by [[User:Preimpression]]) implemented to work properly.
 
'''Note''' that this extension needs [[Extensions:Character Items]] and [[Extensions:Bootstrap_Tables]] (an extension by [[User:Preimpression]]) implemented to work properly.
 +
 +
==Vanilla Awards==
 +
[[User:Preimpression]] made a [https://github.com/preimpression/lorekeeper/tree/VanillaAwards Vanilla Lorekeeper] version of Awards, for those users who awards without having Character Items, Bootstrap Tables, or Item Stacks. It is using the original code but separating out most references to the other extensions. Questions or bug reports should still go through [[User:Tgi]].
  
 
==Configuration==
 
==Configuration==

Revision as of 19:38, 10 September 2020

This extension creates a separate "Awards" system for Lorekeeper based off the existing items/inventory system. Awards are stored in the "Award Case" and also displayed on user profiles.

This extension builds off of the existing code from Extensions:Stacked Inventories, Extensions:Submission Addons, and Extensions:Item Entry Expansion. (Though these extensions are not required for the awards extension to run.)

Awards
Description Adds an "Awards" System to base LK
Author(s) user:Tgi
Status Testing (Character Awards WIP)
Github Awards_System
LK Version Unspecified
Contains a Migration






Installation

Pull the branch and run php artisan migrate!

Please be aware that this extension builds off of several existing extensions. If you pull and have errors, it's probably because you don't have one of the extensions listed! I'll update this page when the vanilla version is finished. In the meanwhile, it is recommended that you read Tutorial: Installing Extensions for MERGING and TROUBLESHOOTING before proceeding.

Note that this extension needs Extensions:Character Items and Extensions:Bootstrap_Tables (an extension by User:Preimpression) implemented to work properly.

Vanilla Awards

User:Preimpression made a Vanilla Lorekeeper version of Awards, for those users who awards without having Character Items, Bootstrap Tables, or Item Stacks. It is using the original code but separating out most references to the other extensions. Questions or bug reports should still go through User:Tgi.

Configuration

None required.

Optional: if you'd like to change the names of your awards to something else (i.e. trophies, medals, etc) you can change the way it's listed in the following blades: resources/views/world/--> award_categories.blade.php, award_page.blade.php, awards.blade.php, index.blade.php

resources/views/user --> _sidebar.blade.php, awardcase.blade.php, profile.blade.php, award_logs.blade.php

resources/views/home --> _sidebar.blade.php, awardcase.blade.php

Usage

Currently Awards are only user-specific. Awards are like items: you can make award categories, grant awards, and earn them through prompts and claims, but all awards are account-bound and nontransferable. (If an admin accidentally grants an award to wrong user, it has to be deleted)

Character-specific awards are currently a work in progress!

Troubleshooting

After pulling, you may run into a bunch of conflicts. If anything seems broken, go into your files and check for <<<<<< HEAD. Git adds these in when there's conflicts or additions to existing files, and they can cause stuff to break. Remove them, save, and push, and everything should work great. (To avoid this in the future, in Sourcetree, review your staged files + click on the weird code + press "unstage lines". Saves you a lot of headache.)

There may be some stray code from Extensions:Submission Addons as well. Let TGI know on discord if you run into any issues!

See Also