Skip to content

Commit

Permalink
Update readmes, assetbundle and add thunderstore files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooleyy committed Mar 15, 2021
1 parent f57eda8 commit 608bd0b
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 1 deletion.
14 changes: 14 additions & 0 deletions EasySpawner.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EasySpawner", "EasySpawner\EasySpawner.csproj", "{D575372D-3E88-42F8-B234-BF555C7016D6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1C2766F4-E34E-45A3-A02E-E78E0126D13C}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Thunderstore", "Thunderstore", "{5282156F-802B-4537-8065-49267DA8BB89}"
ProjectSection(SolutionItems) = preProject
Thunderstore\manifest.json = Thunderstore\manifest.json
Thunderstore\TS-README.md = Thunderstore\TS-README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -19,6 +30,9 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{5282156F-802B-4537-8065-49267DA8BB89} = {1C2766F4-E34E-45A3-A02E-E78E0126D13C}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {268A2DC7-D96E-4D63-8BF6-FC6330A41667}
EndGlobalSection
Expand Down
Binary file added EasySpawnerAssetBundle
Binary file not shown.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ Clicking the spawn button, pressing "=" or "Numpad +" will create the selected p

* By default the dropdown only fills with up to 100 search results as large dropdowns can cause a bit of lag when opened, check the "Show > 100 search results" toggle to fill the dropdown with every result found. (Dropdown with every single prefab can lag the game for a few seconds)*

* Spawn something you didnt mean to or didnt realise would be indestructible? You can undo it by pressing the Undo hotkey, defaults to left ctrl + z

## Config

In your BepInEx/Config there is a config file that can be used to change the hotkeys to open the menu or spawn items. Be aware setting this to a letter will cause the menu to close if you type it in the search box!
In your BepInEx/Config there is a config file that can be used to change the hotkeys to open/close the menu, spawn items and undo. Be aware setting this to a letter will cause the menu to close if you type it in the search box!

## Installation

Expand All @@ -73,6 +75,11 @@ Some times the coroutine checking for changes in the player list is killed unexe

## Changelog

#### 1.2.0

* Added Undo hotkey feature. Can be used to undo last set of spawns, deleting the objects from the game. If items have been destroyed since spawning this does nothing.
* Hotkeys are now shown on UI. Hotkey text will update when hotkeys changed in config.

#### 1.1.4

* Fixed bug with spawning Serpent Trophy as its max stack size is incorrectly set to 0 by the base game.
Expand Down
89 changes: 89 additions & 0 deletions Thunderstore/TS-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# EasySpawner
## Mod for Valheim using BepInEx
Easy to use Item/NPC/Prefab spawner

Easy spawner provides a simple and easy to use UI for spawning any Valheim prefab inside the game.
Use this mod to spawn in items or enemies (of any level!) or just experiment spawning any gameobject possible (includes fx, vfx, and sfx)

While in game press "/" or "Numpad /" to show/hide the menu. Hotkey can be changed in config.

The main feature of the provided menu is a search field that when typed into updates a dropdown of prefabs that contain the search term (non case-sensitive).
The prefabs will contain all manner of gameobjects from items, enemies, world objects, fx, vfx, sfx and anything else in the game.
Anything that can be provided a level such as equipable items and enemies can be spawned at any level up to 999,999,999.
The mod is fully client-side and not required by anyone but the person who wants to use it, this can be used on any server.

Note: The prefab names may differ from the in game name. E.g. The 5th boss Yagluth's prefab is called GoblinKing

*Warning: This mod can massively affect your character and world. Do not use this on a server where you are not given permission by others on it!*

## Menu UI
![Menu UI](https://john2143.com/f/oTub.png)

Example. Entering "copper" will provide all prefabs with "copper" contained in the name, here it provide Copper bar, Copper ore, Copper knife and three variants of a copper vein.

![Copper example](https://john2143.com/f/cFY4.png)

Clicking the spawn button, pressing "=" or "Numpad +" will create the selected prefab at the chosen player.

## Features

* The menu UI can be dragged within the screen with the mouse.

* The search field auto updates the prefab dropdown with every character entered

* You can choose the player to spawn the prefab at.
*Note: you cannot place items into others inventory*

* You can choose the amount and level of the item/object you want to spawn using the amount and level field

* You can create Items/Npcs much higher level than the game normally permits. E.g. a level 999999999 Silver sword

![High level silver sword example](https://john2143.com/f/w2rG.png)

* You can tick the "Put in inventory" toggle to immediately place the item in your inventory.
*Note: this only works for item drops and only works on yourself, if you tick this and try on other players it will just spawn in front of them as normal*

* You can go over the normal stack size limit by ticking the "Ignore stack size" toggle. E.g. a 999 stack of arrows

![Large arrow stack example](https://john2143.com/f/UYIf.png)

* By default the dropdown only fills with up to 100 search results as large dropdowns can cause a bit of lag when opened, check the "Show > 100 search results" toggle to fill the dropdown with every result found. (Dropdown with every single prefab can lag the game for a few seconds)

* Spawn something you didnt mean to or didnt realise would be indestructible? You can undo it by pressing the Undo hotkey, defaults to left ctrl + z

## Config

In your BepInEx/Config there is a config file that can be used to change the hotkeys to open/close the menu, spawn items and undo. Be aware setting this to a letter will cause the menu to close if you type it in the search box!

## Installation

1. [Install BepInEx for Valheim](https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/)

2. If you have the zip, extract within your BepInEx plugins folder. Otherwise place the .dll and Assetbundle file in your BepInEx plugins folder.

## Changelog

#### 1.2.0

* Added Undo hotkey feature. Can be used to undo last set of spawns, deleting the objects from the game. If items have been destroyed since spawning this does nothing.
* Hotkeys are now shown on UI. Hotkey text will update when hotkeys changed in config.

#### 1.1.4

* Fixed bug with spawning Serpent Trophy as its max stack size is incorrectly set to 0 by the base game.

#### 1.1.3

* Added ability to set hotkey modifiers. E.g. leftAlt + / to open menu

#### 1.1.2

* Fixed conflict with Extended Item data mod

#### 1.1.1

* No longer needs exact file name, should fix issues with mod managers

#### 1.1.0

* Added config file to change hotkeys
Binary file added Thunderstore/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions Thunderstore/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "EasySpawner",
"version_number": "1.2.0",
"website_url": "https://github.com/Cooleyy/EasySpawner",
"description": "Easy spawner provides a simple and easy to use UI for spawning any Valheim prefab inside the game. Use this mod to spawn in items or enemies (of any level!) or just experiment spawning any gameobject possible (includes fx, vfx, and sfx)",
"dependencies": [
"denikson-BepInExPack_Valheim-5.4.701"
]
}

0 comments on commit 608bd0b

Please sign in to comment.