Kuribo64
Views: 19,854,326 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-29-24 05:34 AM
Guest:

0 users reading PyBCK - Animation Reader | 1 bot

Main - Archived forums - SMG hacking tools development - PyBCK - Animation Reader Hide post layouts | New reply

Pages: 1 2
Marionumber1
Posted on 01-12-13 02:38 AM Link | #5363
This is a Python program that I made recently. It currently reads BCK files, which are the joint animations used by BMD and BDL models. Support for editing will come soon, but right now, this program can export a text file that contains all the joint information in the animation.

https://www.dropbox.com/s/195tf4bbcp7s40a/PyBCK.zip

Usage:

python bck.py [flag] ...

Flags:
-e: Exports the BCK to a text file, with the BCK filename and optionally, the name of the text file, as an argument

MK7tester
Posted on 01-12-13 04:22 PM Link | #5529
Is there any usage to this? I mean, nice job but can't bmdviewer2 detect joint info?

Marionumber1
Posted on 01-12-13 05:53 PM Link | #5558
Like I said above, PyBCK will soon have support for editing animations. Also, bmdview2 only gives you joint information for the model, not the animations.

Tahcryon
Posted on 01-12-13 06:08 PM Link | #5568
It'll soon be able to edit animations? That's going to be awesome :O

____________________


[04/15/2018]gridatttack: I still think the whole smg2.5 team are still in middle school lol
[04/15/2018]gridatttack: and they are 14yrs old
__________

cosmological: There's no one in Russia who doesn't agree with Putin, probably because his ideas are that great



MK7tester
Posted on 01-12-13 06:10 PM Link | #5572
How will that work? It's a Python program so it'll be REALLY hard to use.

Marionumber1
Posted on 01-12-13 06:11 PM Link | #5573
Only if you don't know how to use the command line, which is incredibly easy to use.

Arisotura
Posted on 01-12-13 07:29 PM Link | #5598
That's blarg. Command line feels totally unnatural unless you're a Linux-nerd.

Anyway, that's a nice tool. I hope it can help us understand how animation data works.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

MK7tester
Posted on 01-12-13 07:33 PM Link | #5600
Eww Linux Suxxxxx ASDFA

But really, it isn't that simple.

shibboleet
Posted on 01-12-13 07:36 PM Link | #5601
Running a command line? Isn't too hard. Unless you know all the values and which goes where and what does what.

____________________
a

MK7tester
Posted on 01-12-13 07:37 PM (rev. 2 of 01-12-13 07:38 PM) Link | #5602
Well still, lacking visual is lacking charm. But I credit you for your work.

Arisotura
Posted on 01-12-13 07:38 PM Link | #5603
Um guys, back on topic please...

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

Gericom
Posted on 01-12-13 07:58 PM Link | #5615
You can also export bck and bca with mkds course modifier. It exportes to ma (maya ascii). You can find in tools menu.

MK7tester
Posted on 01-12-13 07:59 PM Link | #5617
We aren't going to be using that. Sorry.

shibboleet
Posted on 01-15-13 07:02 PM Link | #6263
Well, it's still useful to use

That is, if it's functional enough...

____________________
a

Marionumber1
Posted on 01-16-13 12:18 AM Link | #6308
My code almost supports editing, but I'm getting an error. Here is the code: https://www.sugarsync.com/pf/D9745722_62761472_619841

This is the error I got.

Traceback (most recent call last):
File "C:\Users\Person\Generic Code\pybmd\pybck\bck.py", line 249, in <module>
bck.import_bck('bck_export.txt')
File "C:\Users\Person\Generic Code\pybmd\pybck\bck.py", line 227, in import_bck
stream << self.j3dheader
File "C:\Users\Person\Generic Code\pybmd\pybck\btypes.py", line 221, in __lshift__
packer.pack(self)
File "C:\Users\Person\Generic Code\pybmd\pybck\btypes.py", line 155, in pack
field.pack_part(self,stream)
File "C:\Users\Person\Generic Code\pybmd\pybck\btypes.py", line 179, in pack_part
self.type.pack(getattr(struct,self.name),stream)
File "C:\Users\Person\Generic Code\pybmd\pybck\btypes.py", line 76, in pack
stream.write(string)
TypeError: 'int' does not support the buffer interface

Marionumber1
Posted on 01-17-13 12:30 AM Link | #6459
Now I've managed to fix the error, but it produces incorrect BCK files.

https://www.sugarsync.com/pf/D9745722_62761472_619841

Marionumber1
Posted on 02-10-13 01:58 AM Link | #14595
blank, if you're ever on these forums, can you please take a look?

blank
Posted on 02-10-13 07:41 AM Link | #14620
The only thing I noticed after a brief look that might cause problems is that you only export/import one scale, translation and rotation per joint. I don't have any BCK files at my disposal at the moment, so I can't really test it.

Marionumber1
Posted on 02-10-13 12:50 PM Link | #14644
Yeah, I ignore the count variable, since that would make creating this editor even more complicated. I'll take a look at the original BCK and see if any of its count variables are greater than 1.

Marionumber1
Posted on 02-17-13 01:09 AM Link | #15781
Kind of like I expected, many joints have more than one scale, rotation, or translation value. I'm not quite sure why joints would have more than one, but I guess I'll have to implement that.
Pages: 1 2

Main - Archived forums - SMG hacking tools development - PyBCK - Animation Reader Hide post layouts | New reply

Page rendered in 0.041 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 235/235, time: 0.013 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.