You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wiki for users: [http://lorekeeper-arpg.wikidot.com/](http://lorekeeper-arpg.wikidot.com/)
7
+
Original git repository: [https://github.com/corowne/lorekeeper](https://github.com/corowne/lorekeeper)
7
8
8
-
# Features
9
+
# Info
9
10
10
-
- Users can create an account which will hold their characters and earnings from participating in the game.
11
-
- Mods can add characters to the masterlist, which can also record updates to a character's design. (Yes, multiple mods can work on the masterlist at the same time.)
12
-
- Characters get a little bio section on their profile that their owners can edit. Personalisation!
13
-
- Users' ownership histories (including whether they are an FTO) and characters' previous owners are tracked.
14
-
- Users can submit art to the submission queue, which mods can approve/reject. This dispenses rewards automagically.
15
-
- Users can spend their hard-earned rewards immediately, without requiring mods to look over their trackers (because it's all been pre-approved).
16
-
- Characters, items and currency can be transferred between users. Plus...secure trading between users for game items/currency/characters on-site is also a thing.
17
-
- Logs for all transfers are kept, so it's easy to check where everything went.
18
-
- The masterlist is king, so ownership can't be ambiguous, and the current design of a character is always easily accessible.
19
-
- Speaking of which, you can search for characters based on traits, rarity, etc. Also, trait/item/etc. data get their own searchable lists - no need to create additional pages detailing restrictions on how a trait should be drawn/described.
20
-
- Unless you want to, in which case you can add custom pages in HTML without touching the codebase!
21
-
- A raffle roller for consecutive raffles! Mods can add/remove tickets and users who have already won something will be automatically removed from future raffles in the sequence.
22
-
- ...and more! Please refer to the [Wiki](http://lorekeeper-arpg.wikidot.com/) for more information and instructions for usage.
11
+
This fork was set up for the purpose of sharing some of the changes I made. These changes are usually merged to master, but can also be found in their own branches.
23
12
24
-
#Setup
13
+
## inventory_stacks
25
14
26
-
Important: For those who are not familiar with web dev, please refer to the [Wiki](http://lorekeeper-arpg.wikidot.com/) for a much more detailed set of instructions!!
15
+
This changes the default inventory in Lorekeeper from displaying each user_item row as a stack of 1, and instead condenses duplicate entries into stacks. This has affected Inventory, Trades, and Design Updates the most, though there could still be remnants of code that still aren't using the new system.
27
16
28
-
## Obtain a copy of the code
17
+
Once the changes are pulled, the database needs to be updated as well - this can be done with:
deviantART client ID and secret are required for this step.
41
-
While obtaining the ID and secret, also add whitelist entries for redirection for your site URL (if being hosted) or localhost (if working locally).
42
-
Add the following to .env, filling them in as required (also fill in the rest of .env where relevant):
43
-
```
44
-
CONTACT_ADDRESS=(contact email address)
45
-
DEVIANTART_ACCOUNT=(username of ARPG group account)
46
-
47
-
DEVIANTART_CLIENT_ID=(client ID as supplied by deviantART)
48
-
DEVIANTART_CLIENT_SECRET=(client secret as supplied by deviantART)
49
-
DEVIANTART_CALLBACK_URL=/
50
-
```
51
-
52
-
## Setting up
53
-
54
-
Composer install:
55
-
```
56
-
$ composer install
57
-
```
58
-
59
-
Generate app key and run database migrations:
60
-
```
61
-
$ php artisan key:generate
62
20
$ php artisan migrate
63
21
```
64
22
65
-
Add basic site data:
66
-
```
67
-
$ php artisan add-site-settings
68
-
$ php artisan add-text-pages
69
-
$ php artisan copy-default-images
70
-
```
23
+
The migrations will add 2 new columns to user_items: trade_count and update_count, for tracking items held in trades and updates respectively. It will also change the default value of count in user_items to 0.
71
24
72
-
Finally, set up the admin account for logging in:
73
-
```
74
-
$ php artisan setup-admin-user
75
-
```
25
+
Note that existing data in the database will need to be edited such that duplicate entries (where the item_id, user_id, and data are the same) need to be combined separately.
26
+
27
+
You could just update each row's count column to reflect the total count at that point in time, leaving the duplicate entries alone. I'm unsure if it will break anything, but I don't think so.
76
28
77
-
You will need to send yourself the verification email and then link your dA account as prompted.
29
+
You can also delete the duplicate rows once the count column is updated. However, this will probably require deleting the item logs associated with the affected stacks, unless you create your own workaround.
78
30
79
-
## Contact
31
+
I have included some SQL that you can reference in creating a query, but it is unlikely to work out of the box. Alternatively, you can also edit the database manually. Either way, ALWAYS backup your database before making changes.
80
32
81
-
If you have any questions, please feel free to contact me through email: [email protected]
33
+
The migrations do not remove holding_type and holding_id, which are not used in this version of the inventory; these may be left in or removed on your own.
0 commit comments