Comments (10)
Are you perhaps trying to edit them directly in the build directory?
In release builds you currently have to blow away the associated .pyc file before changes to the .py file will get detected. If you edit in the source directory and rebuild then the .pyc should be updated automatically.
This explains more: https://github.com/efroemling/ballistica/wiki/Knowledge-Nuggets#python-cache-files-and-release-builds
from ballistica.
🤦♂️ Oh, thanks, I forgot about it.
Hmm, ok, but I can't seem to redefine hooks from Python code; it feels like the internal layer is using a copy of them.
from ballistica.
And it seems make update
doesn't work (it doesn't detect new files and/or directories)... Perhaps I should create another issue for this purpose 🤔
from ballistica.
If 'make update' isn't working for you then yes that could be a separate bug unto itself. Or if you want to diagnose it yourself, it is not doing anything too crazy; make update
just calls tools/update_project which will itself call tools/update_assets_makefile to rewrite part of assets/Makefile based on what files it finds. The result should be that new files you add under assets/src/ should end up listed in assets/Makefile after you run make update
. Is that not happening for you?
from ballistica.
🤦♂️ Oh, thanks, I forgot about it.
Hmm, ok, but I can't seem to redefine hooks from Python code; it feels like the internal layer is using a copy of them.
The only 'copy' of them it could be using is the .pyc file I think. Did you delete that for sure or are you working in the assets source directory for sure?
As a test, I just edited assets/src/ba_data/python/ba/_hooks.py and added a 'print("hello world")' under the launch_main_menu_session()
function. Then I ran make prefab-debug
and got the 'hello world' output when the game launched. Do those same steps not work for you?
from ballistica.
I haven't tools/update_assets_makefile... And tools/update_project just do nothing if it can't find this executable.
If 'make update' isn't working for you then yes that could be a separate bug unto itself. Or if you want to diagnose it yourself, it is not doing anything too crazy;
make update
just calls tools/update_project which will itself call tools/update_assets_makefile to rewrite part of assets/Makefile based on what files it finds. The result should be that new files you add under assets/src/ should end up listed in assets/Makefile after you runmake update
. Is that not happening for you?
from ballistica.
🤦🏼♂️
That is definitely a bug. That file is supposed to be there. I'll get that fixed now..
from ballistica.
The only 'copy' of them it could be using is the .pyc file I think. Did you delete that for sure or are you working in the assets source directory for sure?
As a test, I just edited assets/src/ba_data/python/ba/_hooks.py and added a 'print("hello world")' under the
launch_main_menu_session()
function. Then I ranmake prefab-debug
and got the 'hello world' output when the game launched. Do those same steps not work for you?
Yes, this way works fine, but I can't use something like ba._hooks.filter_chat_message = my_filter_chat_message
Hmm, now it works but... yesterday I couldn't do it 🤔 🤔
from ballistica.
Ok, I think this issue may be closed.
from ballistica.
Ok; I got the update_assets_makefile script added. You should now be able to do make update
and see new scripts show up in assets/Makefile and in builds. Please let me know if not.
from ballistica.
Related Issues (20)
- Updating BombSquad for App Store HOT 1
- Bug in filter_chat_message function HOT 2
- BallisticaKitHeadless.exe does not find python HOT 3
- . Your server does not appear to be joinable from the internet. HOT 1
- 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
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.