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
An SMAPI mod for modders, to simplify the addition of custom content. Notably it focuses primarily on ease of use, with flexibility being directly second.
10
+
11
+
##### _This is an early work-in-progress. As such it may or may not work as intended, and is not yet recommended for production use whatsoever. Please stay tuned._
12
+
13
+
###### Features:
14
+
* Still working on basic item support
15
+
16
+
###### Future plans/ideas (subject to change):
17
+
18
+
* Custom machines, with custom recipes and animations
19
+
* Custom maps (using something like Tiled)
20
+
* Custom weapons/armors
21
+
* Custom forage items
22
+
* Custom quest items/quests
23
+
* Custom NPCs
24
+
* Custom ResourceClumps and LargeTerrainFeatures
25
+
* Custom Crops
26
+
* Custom TV stations
27
+
* NPC Schedule modifications
28
+
29
+
-----
30
+
31
+
### Usage (for players):
32
+
33
+
This mod may be a prerequisite for a mod you'd like to play. If so, simply install this mod normally into your SMAPI _/mods/_ folder, and you should be good to go.
34
+
35
+
-----
36
+
37
+
### Usage (for modders):
38
+
39
+
You will need to ensure that your mod can access this one. I'm still working on the details of dependant mods in SMAPI, and will post more details here as I learn them. But regardless, you will need to add a reference to this mod's DLL to your project, though ideally you should _not_ need to include this mod inside your own mod's folder.
40
+
41
+
You will need to create an instance of StardewCustoms.CustomObject. If the instance members don't provide the functionality you need, you can extend the class and override any of its virtual methods to push the boundaries even further.
Notably CustomObject does _not_ extend StardewValley.Object; the behind-the-scenes of this middleware are rather complex and quite potentially subject to change, should future updates of either the game or this mod break the current design. So instead CustomObject is our own specification, and efforts will be made to preserve the integrity of this data structure across updates.
48
+
49
+
Once you have your CustomObject instance, you will need to register the object, by calling
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:
63
+
64
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
65
+
66
+
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.
67
+
68
+
-----
69
+
70
+
### Dependencies:
71
+
72
+
*[Harmony](https://github.com/pardeike/Harmony)[included as binary, as I couldn't find a NuGet package][MIT Licensed]
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
0 commit comments