Coder Social home page Coder Social logo

dancetools's Introduction

DanceTools

A plugin with an in-game console that allows the host to spawn in items, spawn enemies, set credits, and more (to be added :^])
(Only the host needs this plugin as of right now)
The console can also be used while you are dead

Installation

Download the zip and extract DanceTools.dll and /DanceTools/ folder inside your plugins folder!
You need the /DanceTools/ folder with the included assetbundle (dancetoolsconsole) for the console to work.

Plugin Info

Currently there are 6 commands that are usable with the in-game console, and 2 chat commands (from older version)
Default key to open the console is ~ (Under your escape button) <- This can be changed in the config!
Most commands are HOST ONLY. Some can be used by client such as clear to clear the console.
In the future, there will be some client side commands

Each command has its own description and a way to see how to use it.
The help command will give you a list of all available commands.
Using help <another command name> will give you a description of that command.
Example: help item will show what the item command does and how to use it all within the console!

Current list of commands

clear, close, enemy,god, help, item, lights, tester (does nothing), setcredits

Command Usage/Descriptions
  • Arguments that have a ? infront can be omitted and are optional.
Command Usage Description
clear clear Clears the console log
close close Closes the console UI. Use this in case of bug/getting stuck
enemy enemy name ?amount ?onme Spawns X amount of enemies inside random vents. Use command without arguments to see list of all enemies available
god god Toggles Godmode for the host
help help ?command Without arguments shows list of commands, if used with an argument, it will show that commands description.
item item itemID/name ?amount ?value ?weight(buggy) Spawns X amount of items on top of your (or spectated) player with a specified value.
lights lights on/off Changes the lights inside
tester tester Command for me to play around with. does nothing as of right now
setcredits setcredits amount Sets the groups credits to a specified amount
Vanilla Item List (v49) (Click to expand)
ItemID Item Name
0 Binoculars
1 Boombox
2 box
3 Flashlight
4 Jetpack
5 Key
6 Lockpicker
7 Apparatus
8 Mapper
9 Pro-flashlight
10 Shovel
11 Stun grenade
12 Extension ladder
13 TZP-Inhalant
14 Walkie-talkie
15 Zap gun
16 Magic 7 ball
17 Airhorn
18 Bell
19 Big bolt
20 Bottles
21 Brush
22 Candy
23 Cash register
24 Chemical jug
25 Clown horn
26 Large axle
27 Teeth
28 Dust pan
29 Egg beater
30 V-type engine
31 Golden cup
32 Fancy lamp
33 Painting
34 Plastic fish
35 Laser pointer
36 Gold bar
37 Hairdryer
38 Magnifying glass
39 Metal sheet
40 Cookie mold pan
41 Mug
42 Perfume bottle
43 Old phone
44 Jar of pickles
45 Pill bottle
46 Remote
47 Ring
48 Toy robot
49 Rubber Ducky
50 Red soda
51 Steering wheel
52 Stop sign
53 Tea kettle
54 Toothpaste
55 Toy cube
56 Hive
57 Radar-booster
58 Yield sign
59 Shotgun
60 Ammo
61 Spray paint
62 Homemade flashbang
63 Gift
64 Flask
65 Tragedy
66 Comedy
67 Whoopie cushion

Known Issues/Bugs

  • Items that are spawned have no value when scanned. These items still sell for the correct value.
  • Items that are spawned while in the ship/pre-game will sometimes go through the ship until landed.
  • Sometimes console won't open if Steam overlay is opened or tabbed out of the game. (Fix is to tab in and out again)
  • Weight parameter doesn't work properly for item command
  • Some inputs are recorded while you have the console open (ie typing god will also drop your active item)

Special Thanks to:

MrMiinxx - YouTube tutorial for how to make a plugin
GameMaster Plugin - Great Plugin with great examples
And a big thanks to everyone who has given feedback and suggestions. <3

Other

Feel free to use code from this plugin

Changelog

Version 1.1.4

  • Added the ability to change the console opacity as per request
    • This can be done through the config using HEX color
      • This also means you can change the color of the background if you wish
  • Changed how the weight parameter works to make sure it doesn't set weight of items to 0 if nothing specified
    • Weight parameter is still buggy.

Version 1.1.3

  • Added god command
  • Added lights command
  • Added new functionality to Item command:
    • You can now type the name of the item to spawn it instead of ID. Both ways work
    • Weight is now a parameter. <- Doesn't work properly, set it to 0 or leave it for normal weight.

Version 1.1.2

  • Reworked enemy command:
    • Can now use names to spawn enemies (Uses in-game names (Eyeless dog = Mouth Dog))
    • All enemies should be available to be spawned in regardless of level
    • Added outside enemies to the spawnable list
  • Fixed empty spaces counting as empty characters in the console
  • Console can now be opened in the main menu. Should be avaiable anywhere.
  • (WIP!!) External command implementation for plugin developers.
    • Check ExternalCommands folder in the github repo
  • Removed chat commands (old way of spawning items/enemies through chat)
  • Enemies should actually actually now spawn in random vents (lol)

Version 1.1.1

  • Added the option to change the default console key in the config file.
  • Fixed an issue with the enemy "onme" function to spawn an enemy correctly.

Version 1.1.0

  • Added Console UI with new commands
    • clear, close, help, tester (does nothing), setcredits
  • Moved item and enemy commands to the console and fixed bunch of bugs
  • Added config file. As of right now, it only has console customization for colors. Will be adding more in the future
  • Keeping the chat commands for the time being for anyone who still may want to use them.

dancetools's People

Contributors

quackest avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

thesunmax knawk

dancetools's Issues

Spawned items don't apply default weight if previously a weight was specified. / Spawned items all change to the last specified weight

Spawn an item with a specified weight:
"item duck 1 1 10"

Then spawn another with a different specified weight:
"item duck 1 1 2"

Both items change their weight to the newest specified weight

Not a big deal but what's more annoying is that if you now spawn another item without specifying weight:
"item duck"

It won't have the default weight applied, instead it will have the same weight of the last specified weight you used.

Console opacity + auto-clear request

Another little request, but I'd like to be able to adjust the opacity of the console box that appears when you enter the dance tools console.
Specifically, I'd like to be able to make it entirely transparent so that if there isn't anything in the console's history then the console takes up a minimal amount of space
Additionally, alongside this feature, I'd like to be able to automatically clear the console every time I close it.
The goal here is basically to just make the console take up as little space on my screen as possible with those 2 features

By default, the opacity and toggle for auto-clear should be the way it currently is, but still allowing those to be changed within the config. Do you think this is something you could do? Thanks!

New idea for mod

  1. Add the function to spawn inside the ship/around the ship door
  2. Add a function for spawning at point of the radar booster
  3. Add access to all monsters on the map:
    Remove/kill, force someone to attack (aggression is reset if it is impossible to attack)
    Send to the ship, show the ghost girl to all players

Spawning requests

Hiya, wanted to request a few more things! I really love this mod, so thank you very much for all the work you've put into it!

Firstly, I'd like to request the addition of the "Red Pill" test enemy (Obunga) into the spawnable enemy list, and potentially other enemies that currently aren't in the list (circuit bees, docile locusts, manticoils).
Secondly, if this is something you can even do, I'd like to be able to spawn mines and turrets from the enemy list. I know this is something that can be done (such as the Lethal Presents mod spawning them on the player from a gift) so if it isn't too much trouble it'd be cool to have that added to the spawn list.
And one last thing, I'd like another spawn parameter for both item and enemy that lets me input a player's name (or part of it if it can recognize shortened names) in order to spawn an item or enemy on someone when I am not already dead

Thank you very much for your time and effort, it's greatly appreciated!

i need help

i try to spawn things using dancetools it just doesnt let me it just says that you need to be the host to use the command but i did host the game it just didnt register me as a host i tried both public and friends only lobbies it just doesnt work for me

Help

I press the button, nothing happens.. I have it installed, not sure what to do.

Value is 1

spawned a laser and a gold bar both valued at 1 and both sold for one only got 2 for quota please fix thankyou in advance

Mod Idea + Fix request

Currently outside enemies do not show up in the list of spawnable enemies, could they be added?

Also, when you die and spectate someone you can use the "item" command properly and it'll spawn an item on the person you're spectating, but if you try and spawn an enemy "onme" it spawns it out in the void instead of on the spectated player. Could this be fixed to properly spawn enemies on players that you spectate?

Feature request: Highlight command

When experimenting techniques or routing challenge moons, it would be nice to easily see where various kinds of objects or entities are, even through walls. It would be nice if there was a command that would highlight various types of objects, like enemies or scrap items.

Ideas:

  • Highlighted objects would have colored outlines that are visible through walls/floors, like those provided by the Quick Outline asset.
  • Each type of object could be highlighted independently:
    • enemy, turret, mine (red)
    • player (orange)
    • scrap items, including keys/shotguns/apparatus (lime green)
    • equipment, i.e. items purchasable from the store (yellow)
    • ship, exit, circuit breaker, security door, valve (white)
  • Command syntax: highlight ?type ?mode, must have type or mode or both
    • highlight enemy on and highlight enemy off would enable/disable enemy highlighting, respectively
    • highlight enemy would toggle enemy highlighting
    • highlight on and highlight off would enable/disable all highlighting, respectively
  • Highlight colors would be configurable.
  • Only objects in the same scene area as the camera (that is, exterior or interior) would be highlighted. That way, you don't see interior scrap items through the floor of the outside area, and vice versa. (I say same area as the camera, not the player, so that this feature would work well with freecam mods and spectator mode.)
  • Objects that appear after highlighting is enabled should be highlighted too. For example if I run highlight enemy on and an enemy spawns afterwards, that enemy should also be highlighted.
  • Maybe held scrap/equipment items shouldn't be highlighted for the holding player's camera.

New Command Idea

Mod has been very useful and fun, great work mate. Could weather be added as a command?
usage would be weather name
names being: Eclipsed, Flooded, Foggy, Rainy, and Stormy
so we could set weather for all moons by doing weather Stormy

not a issue but a fix to the console issue

install using thunderstore then manual download the lastest file delete the console in thunderstore bepinex plugins folder then copy paste dancetools from the manual download one paste in the dancetool folder in the pluggins and your folder should look something like this
image

Feature request: Terminal command(s)

It would be nice to be able to send terminal commands from outside the ship using the dancetools console, especially scan, ping, and transmit. Maybe these could be added as top-level dancetools commands, or instead there could be a terminal command that sends all of its arguments to the ship terminal verbatim.

its not working

I downloaded the mod from thunderstore mod manager, but when i press ~ nothing happens, i am in a game sitting in my ship but it isnt working. Could you change the keybind to F5 or something because i cant get this to work and it seems like the only good menu i can find
I think i have may found the problem, my keyboard wont let me use "~" ingame it only will let me use ` and i dont know how to change it

does not let me spawn anything?

i think what is happening is that i dont know what to type, if i want to spawn a shotgun do i type shotgun 1 or something else? i would love some help and sorry that i dont understand :/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.