Comments (9)
You can do monkey patch for any of this functions.
def function_new(*args, **kwargs) -> None:
# your code here
return function_old(*args, **kwargs)
function_old = module.function
module.function = function_new
from ballistica.
You can do monkey patch for any of this functions.
def function_new(*args, **kwargs) -> None: # your code here return function_uld(*args, **kwargs) function_old = module.function module.function = new_function
this will not work for the "ba" module from the plugin
from ballistica.
And also this functionality is needed on the server
from ballistica.
monkey patch will not work for ba._hooks.filter_chat_message from plugin
from ballistica.
this will not work for the "ba" module from the plugin
For most functions/methods the monkey patch will work correctly.
from ballistica.
monkey patch will not work for ba._hooks.filter_chat_message from plugin
Yes, this is known issue. As far as I know, the C++ layer caches this function on startup. So, you can't monkey patch it from the plugin. To solve this problem you can create .py file at bastd
module that will do monkey patch of this function, but don't forget to import this from bastd/__init__.py
file.
from ballistica.
edit files in folder in ba_data is not an option
from ballistica.
Yes, known issue, if anyone would come up with some reload_hooks()
PR, it would be great.
from ballistica.
Yes, known issue, if anyone would come up with some
reload_hooks()
PR, it would be great.
Yes, that's a good idea
from ballistica.
Related Issues (20)
- spinoff error HOT 2
- Change the health green cross to a red heart HOT 2
- Bug) Persistent Issue with Missing Language Support in PC Version HOT 4
- Update BombSquad Remote at files.ballistica.net/bombsquad/builds/old/
- Fake punch contact HOT 3
- Add Features to New Console
- Buggy stress test
- Add Third Master Server for Chinese Users HOT 1
- login failed in version 1.7.29
- Reflection bug in Lake Frigid map HOT 3
- ghost character HOT 1
- generate dummy modules error in WSL HOT 2
- There's a little problem, Mr. Eric HOT 1
- Game gets stuck on exit HOT 1
- Bug[Windows]: Blurry text and texture on HiDPI monitor
- Restart button HOT 2
- I have problem with making my server public HOT 13
- Error with bombs HOT 1
- Alterable Health amount
- Using StrEnums instead of String Constants in bomb.py HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ballistica.