Giter Club home page Giter Club logo

byml-v2's People

Contributors

benoitanastay avatar bravely-beep avatar davidzchen avatar leoetlino 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

Watchers

 avatar  avatar  avatar

byml-v2's Issues

Error

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>

Can't read V7 BYML files because of unknown type

Hi,

When trying to read a BYML file from bytes with a Python script, the following error occurs :
image

As V7, the BYML format now includes the "container" node type which identifier is "0x20".

If the lib has not been updated, do you think I could add the new types through a PR ?

yml_to_byml does not support empty documents

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

how to Install Python 3.6+, then run `pip install byml` issue

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
image

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!

error import byml

image

I already installed it with the command Pip install byml and python -m pip install byml

Eh... huh?

Screenshot (1)

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...

keeps giving me an error from line 7

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

No such directory "wszst"

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

Can't decode cp1252 strings

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.

DLL load failed while importing syaz0

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

--version -V errors

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'

im very confused

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 !!

help (again)

did a fresh re-install of everything along with setting the file path of python and this error occurs. i noticed similar users having the same issue. is there a fix?
image

Usage question

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?

20913_080119.zip

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.