Coder Social home page Coder Social logo

nkhook5's People

Contributors

disabledmallis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nkhook5's Issues

Game termination detected error

Describe the bug
After making a mod (in this case I got btd evolution to make sure everything was working) and trying to run it using -r, the console outputs: Game termination detected, exiting... Steam also shows the allow this game to run popup, so I am assuming that might be causing it not to run. However, I don't know how to get rid of it or know any other way around it.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a mod or just use btd-evolution
  2. Run the command in powershell ./DevKit.exe -r "(name of mod)"

Expected behavior
The game should boot up with the mod installed and working.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 0.6.0

Additional context
Probably just me being an idiot again.

Possible other "BTD5" engine support?

Is your feature request related to a problem? Please describe.
No, it is more of a request

Describe the solution you'd like
A mod loader for NKHook5, ether that or NKHookC for BMC
The engines I assume are the same except with some minor differences
I wouldn't say this is needed right now, more of a want than a need.

Describe alternatives you've considered
I have not really considered alternatives but I thought it would be nice for BMC modders

Additional context
I unfortunately have no additional context

DevKit.exe adds duplicate entries when packaging a mod twice

Describe the bug
When packaging a mod with DevKit.exe, it doesnt check to delete or clear the .nkh file before writing new entries, leading to cases where packaging multiple times for testing or other reasons leads to multiple entries of the same file.

To Reproduce
Steps to reproduce the behavior:

  1. Package a mod
  2. package it again

Expected behavior
The .nkh file shouldnt have repeated entries

Suggestion: onGame event

onGame event

What it would look like:

onGame(fun(game)

What it will do:

What it will do is whenever you start a normal game, not a challenge it will do the stuff in the event once.

Suggestion: Multiplier

Make it so that if you have a line like:

gameData.setHealth(gameData.getHealth()-1)

Instead of copy and pasting that in your code 5 times to can do:

gameData.setHealth(gameData.getHealth()-1 multiplier.x5)

So you put:

multiplier.x<how many times you want to multiply)

At the end of the parentheses, you put a space and put that. The reason why I want this is that you don't have code like this:

gameData.setHealth(gameData.getHealth()-1)
gameData.setHealth(gameData.getHealth()-1)
gameData.setHealth(gameData.getHealth()-1)
gameData.setHealth(gameData.getHealth()-1)
gameData.setHealth(gameData.getHealth()-1)

Instead like this:

gameData.setHealth(gameData.getHealth()-1 multiplier.x5)

Replace File

Be able to do something to tell NKHook5 to replace a file instead of always merging them.

BloonType Targeting Filters and Custom Bloons

When targeting filters are used and include bloon types, custom bloons are also included when they are not on the list. You are able to exclude the custom bloon, but you still have to change vanilla towers.

Organized Sprites' Folder

Be able to have folders in the "WeaponSprites", "TowerSprites", "BloonSprites" and others similar to these, so that you can organize the folders better, and to make this work when NKHook compiles your mod to move them over to the sprites folder.

DevKit.exe doesn't account for mods with no textures

Describe the bug
Packaging a mod with no textures causes DevKit to fail to package it

To Reproduce

  1. Create a mod with no textures
  2. Package it

Expected behavior
DevKit packages a mod without textures that can load as expected

Tower Unlocking Bug

Describe the bug
When NKHook adds towers to save, it will unlock anything in the game that requires you to unlock that tower. Such as in the tower building the towers are normally supposed to have a locked sprite on top of them, but the unlocking system now automatically removes that lock.

Expected behavior
NKHook to not unlock them.

Failed to Find Signatures and Apply Patches

Describe the bug
Failed to find the signatures: "CProjectile_Clone", "CTowerFactory_GetTowerName", "CWeaponFactory_CCTOR", "JsonObject_ReadBoolProperty", and "JsonObject_ReadIntProperty". Also when it tries to apply patches it fails the apply the patches: "CProjectile::Clone", "CTowerFactory::GetTowerName", and "CWeaponFactory::Constructor".

Screenshots
image

image

DevKit.exe doesn't do anything

Describe the bug
So when I run the file, a cmd prompt opens for a milisecond before closing and nothing happens.

To Reproduce
Steps to reproduce the behavior:

  1. Download DevKit.exe along with the dlls
  2. Put the dlls in the game directory
  3. Run DevKit.exe

Expected behavior
A setup, or the tool itself should open

Screenshots
NaN

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 0.6.0

Additional context
Idk if this is just me being dumb.

Texture Pixel Offset

With textures currently there is an issue which creates a 2 pixel gap between each texture:

image

The pixel gap between each texture can be fixed by reducing the numbers for "w", "h", "aw", and "ah" in the spreadsheet files by 1, after doing that I get this result with the tower in the image before:

image

DevKit setup exe path cannot have spaces

Describe the bug
The exe path for BTD5 that the DevKit requests from the user cannot have spaces, or else it will not parse the path properly and find the file(s)

To Reproduce

  1. Download a fresh copy of the devkit
  2. Perform the setup
  3. Enter the path to a BTD5 install that includes spaces

Expected behavior
The DevKit should properly parse the path and continue with setup without issue

Custom Damage Types

Have custom Damage Types that people can apply to Bloons and that towers can do. Have a folder in the Mod folder named "DamageDefinitions" and a rules file similar to how you did custom status effects. Another feature that would make this good is to have the damage type file be able to specify which Bloons are immune, so that you don't have to edit every Bloons to be immune to the damage type.

Tower sprite support at abstract upgrade levels

Suggestion: Support for tower sprites at upgrade levels other than what's originally supported in vanilla TowerSpriteUpgradeDefinitions. Would preferably, though not necessarily, read from the actual TowerSpriteUpgradeDefinitions JSON files and follow the same pattern that vanilla entries do:
"00" : 0 - 0/0 uses sprite 0
"42" : 5 - 4/2 uses sprite 5
"35" : 25 - 3/5 uses sprite 25

If tower

I want if tower thing so something like this:
if(tower == "DartMonkey")
{
//do stuff here
}
Where it says DartMonkey can be replaced with a name or hotkey like:
Dart Monkey is "DartMonkey" or "Q"
Tack Shooter is "TackTower" or "W"
Sniper Monkey is "SniperMonkey" or "E"
Boomerang Thrower is "BoomerangThrower" or "R"
Ninja Monkey is "NinjaMonkey" or "T"
Bomb Tower is "BombTower" or "Y"
Ice Tower is "IceTower" or "A"
Glue Gunner is "GlueGunner" or "S"
Monkey Buccaneer is "MonkeyBuccaneer" or "D"
Monkey Ace is "AcePlane" or "F"
Super Monkey is "SuperMonkey" or "G"
Monkey Apprentice is "MonkeyApprentice" or "H"
Monkey Village is "MonkeyVillage" or "C"
Banana Farm is "BananaFarm" or "V"
Mortar Tower is "MortarTower" or "B"
Dartling Gun is "DartlingGun" or "N"
Spike Factory is "SpikeFactory" or "M"
Heli Pilot is "HeliPilotAircraft" or "J"
Monkey Engineer is "MonkeyEngineer" or "L"
Bloonchipper is "Bloonchipper" or ";"
Monkey Sub is "MonkeySub" or "K"

Deleted Text

Describe the bug
NKHook seems to delete the text in game for some things, such as the name of super storm in agents shop or everything related to the wizard or boomerang monkey. Like with the super storm in the shop it has no name or the wizard monkey not having a name, description, upgrade name, or upgrade description.

To Reproduce
Steps to reproduce the behavior:

  1. Use NKHook
  2. Look at the name of super storm in agents shop or wizard and boomerang in towers building.

Expected behavior
It actually has text.

Screenshots
image
image
image

Additional context
I tried this without using mods as well. And it shows the text when I remove NKHook from BTD5.

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.