zeldamods / byml-v2 Goto Github PK
View Code? Open in Web Editor NEWNintendo BYML or BYAML parser, writer and converter. Fully supports Breath of the Wild and Super Mario Odyssey files.
License: GNU General Public License v2.0
Nintendo BYML or BYAML parser, writer and converter. Fully supports Breath of the Wild and Super Mario Odyssey files.
License: GNU General Public License v2.0
C:\Users!!!\AppData\Local\bcml\mods\0103_MinimumValidBNP\content\Actor>byml_to_yml dummy.byml dummy.yml
Traceback (most recent call last):
File "c:\users!!!\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users!!!\appdata\local\programs\python\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users!!!\AppData\Local\Programs\Python\Python38\Scripts\byml_to_yml.exe_main.py", line 7, in
File "c:\users!!!\appdata\local\programs\python\python38\lib\site-packages\byml\byml_to_yml.py", line 26, in main
root = byml.Byml(data).parse()
File "c:\users!!!\appdata\local\programs\python\python38\lib\site-packages\byml\byml.py", line 67, in init
raise ValueError("Invalid magic: %s (expected 'BY' or 'YB')" % magic)
ValueError: Invalid magic: b'' (expected 'BY' or 'YB')
C:\Users!!!\AppData\Local\bcml\mods\0103_MinimumValidBNP\content\Actor>
According to the documentation on ZeldaMods, empty BYML documents are supported. In this case, the offset to root node would be 0 if the document is completely empty.
However, yml_to_byml
throws an error when the input YAML document is empty:
$ touch empty.yml
$ yml_to_byml empty.yml ./empty.byml
Traceback (most recent call last):
File "/Users/dzc/.local/venv/bin/yml_to_byml", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/dzc/.local/venv/lib/python3.12/site-packages/byml/yml_to_byml.py", line 27, in main
byml.Writer(root, be=args.be, version=args.version).write(buf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dzc/.local/venv/lib/python3.12/site-packages/byml/byml.py", line 232, in __init__
raise ValueError("Data should be a dict or a list")
ValueError: Data should be a dict or a list
I installed python 3.8 and now how am I suppose to use that command? I'm new to python shells and when I put in pip install byml it throws an error. trying it in cmd also throws an error
Am I missing something? Also do I just drag the files to the python script after I do this and it simply works?
I'm trying to convert from .byml to .yml to view animal crossing new horizons textures.
Thanks!
So I got a couple odd errors trying to install this. BYML is extracted to my Documents folder, but AAMP didn't really have an issue with that.
I do have Python installed, of course, but in my AppData folder (where it installs by default, I guess?). It worked with AAMP so I'm wondering what's wrong, here...
so, i know this thing is 100% not actively maintained anymore, and i doubt i'm gonna get a response, but i just wanted to use this so i could mess around with splatoon 2's byml files. anyways, every time i try to use it, it just says "error in line 7, you can't use 'from . import byml'" ๐ค๐ค๐ค๐ค๐ค๐ค๐ค
i saw another issue (#9) relating to this, but all you responded with was just to "use byml_to_yml
instead"? how exactly do you "use" a python file without opening it in command prompt?
i won't send the image because it's just the exact same thing as in issue #9
Hey, I'm trying to edit a .sbyml file for BOTW, and I get this log whenever I try to convert it into a .yml:
>>byml_to_yml ActorInfo.product.sbyml Actor.yml
Traceback (most recent call last):
File "/usr/local/bin/byml_to_yml", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/byml/byml_to_yml.py", line 25, in main
data = wszst_yaz0.decompress(data)
File "/usr/local/lib/python3.6/dist-packages/wszst_yaz0/__init__.py", line 26, in decompress
stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True).stdout
File "/usr/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'wszst': 'wszst'
I tried to install wszst manually, but it seems it is already installed.
>>pip3 install wszst_yaz0
Requirement already satisfied: wszst_yaz0 in /usr/local/lib/python3.6/dist-packages
Is there a way to get a byml from a yml in the python shell?
Turns out Ice Spear doesn't necessarily use UTF-8, and byml
will fail to parse cp1252
encoded strings. 'Twould be easy enough to support either.
Please let me preface this by saying that i am totally new to the world of modding and programming in general, so any instruction on what else i need to provide will be appreciated.
I have tried to install byml-v2 on 4 PC's currently, 2 being frequently used systems, and 2 being brand new installs that i have only installed 2 to 3 days ago.
when i try to convert Breath of the Wilds ActorInfo.Product.sbyml to a yml i receive the error
Traceback (most recent call last):
File "c:\users\scc\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\scc\appdata\local\programs\python\python38\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\SCC\AppData\Local\Programs\Python\Python38\Scripts\byml_to_yml.exe_main.py", line 4, in
File "c:\users\scc\appdata\local\programs\python\python38\lib\site-packages\byml\byml_to_yml.py", line 8, in
import syaz0
ImportError: DLL load failed while importing syaz0: The specified module could not be found.
Please help
Hello, when trying to use yml_to_byml and the --version or -V arguments I am met with this error.
Traceback (most recent call last): File "c:\users\user\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\user\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\User\AppData\Local\Programs\Python\Python38\Scripts\yml_to_byml.exe\__main__.py", line 7, in <module> File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\byml\yml_to_byml.py", line 27, in main byml.Writer(root, be=args.be, version=args.version).write(buf) File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\byml\byml.py", line 234, in __init__ if not (1 <= version <= 4): TypeError: '<=' not supported between instances of 'int' and 'str'
hi, i'm fairly new to modding and since both the switch toolbox and ex-king editor don't support byml v7 yet, i'm trying to convert some .byml files into .yml files and see if they'll work. anyways, im confused as how to use this. idrk if it's right but the exact command i type in is as follows:
byml_to_yml C:/Users/User/Downloads/mwf/Weapon_Sword_070.Nin_NX_NVN.esetb.byml !!.yml
and it gives me the error :
"Fatal error in launcher: Unable to create process using '"C:\Users\User\AppData\Local\Programs\Python\Python310\python.exe" "C:\Users\User\AppData\Local\Programs\Python\Python310\Scripts\byml_to_yml.exe" C:/Users/User/Downloads/mwf/Weapon_Sword_070.Nin_NX_NVN.esetb.byml !!.yml': The system cannot find the file specified."
i would love to know more about what i'm doing wrong. thank you as always !!
I've got a byaml save from Ring Fit Adventure. Looks like it's a v4 schema, but when running byml_to_yml, I don't get anything usable. Is this the expected output, or are modifications going to be required?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.