Coder Social home page Coder Social logo

wolvenkit / braindanceprotocol Goto Github PK

View Code? Open in Web Editor NEW
93.0 13.0 23.0 646 KB

A GUI to modify your Cyberpunk 2077 experience

Home Page: https://www.nexusmods.com/cyberpunk2077/mods/616

License: GNU General Public License v3.0

Lua 99.90% Makefile 0.04% Shell 0.06%
cyberpunk2077 cyberpunk-mods mods cyberpunk

braindanceprotocol's Introduction

BraindanceProtocol

A GUI and Console tool to modify your Cyberpunk 2077 experience.

Preview

Preview GUI Favorites and Search

Requirements

Installation

Drop mods folder into bin\x64\plugins\cyber_engine_tweaks\

*Please make a clean installation if you are updating BraindanceProtocol

Usage

  • Configure the hotkey for opening the GUI inside the Hotkeys tab of CyberEngineTweaks
  • To open the GUI, either:
    1. Open the CET console - OR -
    2. Press the hotkey to open the GUI (You need to close the console first)

Configuring Custom Hotkeys

Follow these steps to configure custom hotkeys, for the protocols you want to keybind:

  1. Open the BDP GUI
  2. Find your desired protocol(s), and press the hotkey icon: Hotkey icon
  3. Open the CET console and press the Reload All Mods button
  4. Configure your new hotkey(s) from the Hotkeys tab in CET

Custom Hotkeys

Currently Supported Languages

  • English
  • Chinese - 中文 (Translator: Senfee-Cheng)
  • Danish - Dansk (Translator: VP-EN)
  • German - Deutsch (Translator: nodeg)
  • Russian - Русский (Translator: vanja-san)
  • French - Français (Translator: praxatics)

How to display other languages

Here is a detailed guide on how to change the font of CET to display the non-English Characters.

Need help with translation

Please read this guide and this issue to get more information.

braindanceprotocol's People

Contributors

dirtydanisreal avatar e-oz avatar ghaggin avatar kristoferblack avatar kyle873 avatar maxfqs avatar nats-ji avatar nodeg avatar osulli avatar praxatics avatar senfee-cheng avatar sunilrav avatar vanja-san avatar vectoradw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

braindanceprotocol's Issues

Can't seem to open the UI after update to latest

Description

After updating CET to 1.10.0, BD protocol to 1.6.1, the UI can't seem to be opened. I checked the logs, and this is the error I'm seeing:
[2021-02-05 16:43:40 UTC-08:00] [error] ...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:57: attempt to index a nil value (global 'protocols') stack traceback: ...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:57: in function <...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:50>

Expected Behaviour

UI to be opened

Actual Behaviour

UI can't be opened

Replication Steps

  • update CET and BD protocol to the latest versions
  • open cyberpunk
  • bind BD protocol UI key to B, or any key
  • click on the key bind to opening the UI
  • nothing opens

Missing mouse cursor

Description

Opening menu will not activate mouse cursor

Expected Behaviour

Mouse cursor should appear when menu opened and let you choose options

Actual Behaviour

Cursor doesn't appear, menu stays on screen, V moves freely around

Replication Steps

Step 1: Bind key for menu via CyberEngineTweaks
Step 2: Press key to activate menu

Workaround

Step 1: Open CyberEngineTweaks menu, cursor appears
Step 2: Open BraindanceProtocol menu
Step 3: Select wanted options
Step 4: Profit?

Need help with translation

Include i18n.lua library for multi-language support, since CET 1.9 now allow user to change font to show utf8 characters.

  • Need to have languages in separate files. (e.g. en.lua, cn.lua, de.lua ...)
  • A language list file for the GUI to add more languages without needing to edit the init.lua (similar to protocols.lua)
  • Save user language setting into a config.json file

i18n has been implemented in the i18-support branch.

i18n has been merged into the main branch. Please PR your translations.
Here is a guide on how to add a new language and update existing language files.

Some protocols no long work

Description

No reload and Godmod doesn't seem to work anymore. Haven't tried other protocols yet.

[2021-04-16 17:50:38 UTC+08:00] [error] Error: Function 'gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat' parameter 0 must be gamedataStatType.
[2021-04-16 17:50:38 UTC+08:00] [error] Error: Function 'GetStatValue' parameter 1 must be gamedataStatType.
[2021-04-16 17:50:38 UTC+08:00] [error] ...r_engine_tweaks\mods\braindance_protocol\cheats\ammo.lua:202: attempt to perform arithmetic on field 'numShotsToFire' (a nil value)
stack traceback:
	...r_engine_tweaks\mods\braindance_protocol\cheats\ammo.lua:202: in function 'SetInfiniteAmmoNoReload'
	...r_engine_tweaks\mods\braindance_protocol\cheats\ammo.lua:167: in function 'OnUpdateAmmo'
	...cyber_engine_tweaks\mods\braindance_protocol\ui\init.lua:20: in function <...cyber_engine_tweaks\mods\braindance_protocol\ui\init.lua:13>
[2021-04-16 17:53:24 UTC+08:00] [error] Error: Function 'gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat' parameter 0 must be gamedataStatType.
[2021-04-16 17:53:24 UTC+08:00] [error] Error: Function 'GetStatValue' parameter 1 must be gamedataStatType.
[2021-04-16 17:53:52 UTC+08:00] [error] Error: Function 'GetStatValue' parameter 1 must be gamedataStatType.

ImGUI

Description

Transform BD into a usable, simple, GUI.

Further Details

  • Protocols are broken down by category, as they are now.
  • Parameters are input text boxes, though booleans should be a drop-down list.
  • Configurable key-binding to open the GUI
  • GUI is ideally also accessible via CET console command

savegame commands don't work at all and toggle rain is missing

The increase quick save slots and disable autosave commands simply don't do anything. The give money command doesn't do anything but at least it says: "executing protocol." Inputting commands related to saves don't produce any response from the console.

[edit] And the toggle rain command is missing from the command list.

Menu open with CyberEngineTweaks console key

Description

Open menu with CyberEngineTweaks console

Code Snippets and Documentation

registerForEvent("onOverlayOpen", function()
	drawWindow = true
end)
registerForEvent("onOverlayClose", function()
	drawWindow = false
end)

Further Details

Make this option choosable for user how they wants to menu appear.

Summary

Personally for me this is best method, I don't need to press too many hotkeys for menus to appear. One hotkey for all of menus.

Not all achievements unlocked using cheat

Description

Not all achievements unlocked using cheat.

Expected Behaviour

100% achievements on GOG.

Actual Behaviour

98% achievements (without "Right back at ya" trophy).

BD.Cheats.Legend.Create() does not add missing mod slots to existing legendaries since patch 1.1

Since patch 1.1 BD.Cheats.Legend.Create() will not add missing mod slots when upgrading existing legendaries. Example: using cheat on legendary pants with only 1 mod slot does not upgrade pants to have 3 mod slots like it used to pre-patch.

If you use the cheat on a non-legendary quality item, it does upgrade it to legendary with the max number of mod slots, but it does not seem to be working on items that are already legendary. This may have something to do with the changes in patch 1.1 that stops you from re-rolling legendaries by re-loading a save game, but I am not sure.

Item Sets

What

  • Provide sets for collections such as Max Tac armour, etc.

Examples:

  • Corpo Rat (suits/skirts/heels/dress shoes)
  • Wastelander (goggles/fatigues...)
    etc.

All Achievements not working

All achievements command not working

Supposed to unlock all achievements

Doesnt give error but does nothing

Tried 1, Steam, All etc but nothing works

Refactor hashlists

Description

A refactor is needed to simplify and reduce duplication, of item codes.

Further Details

  • Item list should be in the data/ directory
  • Item list should ideally be grouped (e.g. category, rarity)
  • Utility functions to getItem(category, rarity), or more appropriate params, are created
  • Protocols updated to use utility functions to quickly and cleanly add bulks of items

[MEDIA] New Images

Description

New Screenshots, Icons, etc.

Further Details

  • Needs to be fully licensed to the repo, following the same license and copyright for code
  • Moved to /images/ directory

These images will go on Nexus, Cybermods, and the README.md

Problems with DisableAutosave() and IncreaseQuickSaves()

Hello!

Saves.DisableAutosave()

GameOptions.SetFloat("SaveConfig", "AutoSaveEnabled", false)

Is this expected to work? Because it doesn't for me, the command errors, from what I can see it should be SetBool

Saves.IncreaseQuicksaves()

GameOptions.SetInt("SaveSlotsConfig", "NumQuickSaveSlots", 10)

Same here, has someone tested whether this works? It errors for me as there is no such thing as SaveSlotsConfig, there is only Developer/SaveSlotsConfig as can be seen here:

Developer/SaveSlotsConfig/NumQuickSaveSlots = 3

I tried running GameOptions.SetInt("Developer/SaveSlotsConfig", "NumQuickSaveSlots", 10) and it showed as success, I also tried adding it to the autoexec.lua, but after reloading the game, the value is set, but pressing f5 still only keeps using slots 0 1 2, not more. Any ideas?

init.lua error/crash

Description

Mod doesn't work.

Expected Behaviour

Should open menu, nothing happens

Actual Behaviour

As mentioned, nothing happens

.log file

[2021-02-06 18:29:01 UTC+02:00] [error] ...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:12: attempt to index a nil value (global 'CPS')
stack traceback:
	...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:12: in function <...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:7>
[2021-02-06 18:29:01 UTC+02:00] [error] ...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:57: attempt to index a nil value (global 'protocols')
stack traceback:
	...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:57: in function <...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:50>
[2021-02-06 18:29:01 UTC+02:00] [error] ...ns\cyber_engine_tweaks\mods\braindance_protocol\init.lua:57: attempt to index a nil value (global 'protocols')

Last error repeats over and over again (counted over 47000 )

Todo list for future development

  • Add a favorite button for adding protocols to the favorites list
  • Add a button for adding any protocols to the hotkey list
  • Scale UI with font size

BD.Cheats.Legend.Create() - Should items be upgradable after using this command

Hello, forgive me if this is the wrong way to ask this, I'm new to GitHub.

When using the BD.Cheats.Legend.Create() command to make all my equipped items Legendary with max slots, how does this command interact with the built-in Upgrading system?

In testing just now, I took several items I had on my V and executed the command. It worked! But when I went into the Crafting Upgrades menu, I could still upgrade the items, though now they were of Legendary quality so they took legendary components to max out.

Thanks!

Deprecate Utilities.StartProtocol()

.. and Utilities.FinishProtocol()

Why

  • Adds Spam to CET
  • No longer needed with UI and good feedback from the input
  • 'Help Text' duplicated in protocols.lua

Further Details

Available solutions:

  • Have the description inside the Function and have ImGUI read it
  • Pass the description from protocols.lua into the function and have a much smaller "Starting: %s" than what we have in utility.lua

[CI] Automate publishing to Cybermods & Nexus

Description

Automate publishing of new git tags to Cybermods

Further Details

My credentials will be supplied as a pipeline secret; likewise for Nexus.

  • On git tag push (from Master), run the package command and publish to registries

Can't run the mod

When I attempt to run the mod I get this error message:
lua: error: [string "BD = GetMod("braindance_prot..."]:1: attempt to call a nil value (global 'GetMod')

BD.Cheats.Player.AddMoney(amount) doesn't work.

Description

BD.Cheats.Player.AddMoney(amount) doesn't do anything.

Expected Behaviour

Supposed to give money.

Actual Behaviour

Nothing happens.

Replication Steps

Step 1: Enter BD = GetMod("braindance_protocol")
Step 2: Enter BD.Cheats.Player.AddMoney(50000)
Step 3: ????

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.