Skip to content

Commit

Permalink
Add license and permissions info
Browse files Browse the repository at this point in the history
  • Loading branch information
IllyaMoskvin committed Oct 1, 2019
1 parent e795b48 commit 13cd672
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 5 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ Once you've got that figured out, follow these steps:

5. Run your server, cast a modded spell, and check the log. You should see something like this:

```
[2019-09-30 04:43:36] [INFO]: [Script]: [ mbsp ]: PID #0 cast "foobar" with base cost 42
```
```
[2019-09-30 04:43:36] [INFO]: [Script]: [ mbsp ]: PID #0 cast "foobar" with base cost 42
```

If you see that, then the script successfully detected your modded spell. Everything will work as expected. If you want to see more info, set `logLevel = 0` in your `tes3mp-server-default.cfg` and restart the server.

Expand Down Expand Up @@ -245,3 +245,18 @@ File credits from MBSP via the ncgdMW Compatibility Version:
* Fix for multiple calls suggested by Galsiah
* Aragorn was the first person to notice the mis-assigned spell sounds in the CS
* All scripters owe thanks to GhanBuriGhan from his canonical Morrowind Scripting For Dummies
## Permissions
The two scripts I created ([main.lua](main.lua) and [generate.lua](generate.lua)) both follow the [MIT License](https://en.wikipedia.org/wiki/MIT_License). You may do with them whatever you wish, including but not limited to using them as a basis for your own scripts, and redistributing them elsewhere.
As a courtesy, if you release your work, please consider doing the following:
1. Link back to this repo: https://github.com/IllyaMoskvin/tes3mp-mbsp
2. In your credits, acknowledge this mod and/or some of the people in the [Credits](#credits) section above. Use your discretion.
Mainly, I just want to make sure that the documentation and provenance of this mod don't get lost, and that if there are any updates, people will know where to find them.

Each of the scripts in the `lib/` directory has its own license terms, which are generally listed in that script's header. For more info about any given script, contact its author.
43 changes: 43 additions & 0 deletions generate.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
--[[-------------------------------------------------------------------
Spell List Generator for TES3MP-MBSP v1.0.0 by Illya Moskvin
SOURCE:
https://github.com/IllyaMoskvin/tes3mp-mbsp
DESCRIPTION:
This script scans ESP/ESM files listed in `generate.json` and
extracts spell costs and IDs from those mods into a JSON file,
`spells/custom.json`. If moved to the right place as described
in the documentation, this list will be used by TES3MP-MBSP to
look up spell costs for the purposes of issuing Magicka refunds
and awarding bonus skill progression.
LICENSE:
Copyright (c) 2019 Illya Moskvin <https://github.com/IllyaMoskvin>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
HISTORY:
2019-09-30 - v1.0.0 - Initial release
]]---------------------------------------------------------------------

local dkjson = require('lib/dkjson')
local config

Expand Down
8 changes: 6 additions & 2 deletions lib/espParser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
~~~~~~~~
Modified by Illya Moskvin to remove dependency on TES3MP.
Further modified to only extract "SPEL" records.
Jakob has given permission for this script to be used by and bundled with TES3MP-MBSP.
https://github.com/IllyaMoskvin/tes3mp-mbsp
It has been modified by Illya Moskvin to work outside TES3MP.
It has been further modified to only extract "SPEL" records.
No modifications were made to the description above.
For usage rights, contact Jakob.
]]

-- Add this to whatever requires espParser
Expand Down
41 changes: 41 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
--[[-------------------------------------------------------------------
TES3MP-MBSP v1.0.0 by Illya Moskvin
SOURCE:
https://github.com/IllyaMoskvin/tes3mp-mbsp
DESCRIPTION:
This mod makes magical skill progression be based on the amount of
Magicka used, rather than the number of spells cast. Additionally,
it refunds a portion of the Magicka cost of each spell based on the
player's skill level.
LICENSE:
Copyright (c) 2019 Illya Moskvin <https://github.com/IllyaMoskvin>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
HISTORY:
2019-09-30 - v1.0.0 - Initial release
]]---------------------------------------------------------------------

-- Paths to config and data files
local dataPath = 'custom/__data_mbsp.json'
local configPath = 'custom/__config_mbsp.json'
Expand Down

0 comments on commit 13cd672

Please sign in to comment.