ForOhFor's Python Nest [Collisions to shadow system program released! 10/11/11]

Started by ForOhFor Error, July 06, 2011, 03:20:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

heh... actually 404...
all your program does is delete the 3 unk offsets,
and then adds 'FFFFFFFF' * 3 to the end of the header. (before the pipelines)

then it changes the header length with a hard-coded length

and I believe that's it...
the string offsets arn't modified >_>

you can look at my MDL0 resource thread for detailed info on the format ;)
(including v11 header info)

[spoiler]Quote: Friedslick6
you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
But the coolest part was that you didn't stop working on it despite that.

Quote: Internet Explorer
you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

quote: Greg
You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

Hmm.

Anyway, update! New program in progress!

Collisions to shadow system:
Adding the shadow system to a stage is time-consuming and annoying. I'm making a program to streamline the process, by making the shadow system follow collisions.
-----------------------
I've gotten it parsing all the collision data I'll need!

FC: 2191-7379-6272

Quote from: ForOhFor Error on September 27, 2011, 09:13:26 PM
Hmm.

Anyway, update! New program in progress!

Collisions to shadow system:
Adding the shadow system to a stage is time-consuming and annoying. I'm making a program to streamline the process, by making the shadow system follow collisions.
-----------------------
I've gotten it parsing all the collision data I'll need!
and how does this work exactly? O.o
https://privateladyescorts.com - Free Local Dating - No Selfie - Anonymous Casual Dating -   Video Chat Private Lady

September 27, 2011, 09:28:07 PM #18 Last Edit: September 27, 2011, 09:29:18 PM by ForOhFor Error
It will open the collision data, and read all of the points and planes. It takes every plane that is the floor type, and outputs a flat shadow model positioned correctly for that plane.

Anyway, my output for the function which parses the collision data:
Sorry but you are not allowed to view spoiler contents.

The floating point hex isn't converted because I can't find a python method to do that :/

FC: 2191-7379-6272

Quote from: ForOhFor Error on September 27, 2011, 09:28:07 PM
It will open the collision data, and read all of the points and planes. It takes every plane that is the floor type, and outputs a flat shadow model positioned correctly for that plane.

Anyway, my output for the function which parses the collision data:
Sorry but you are not allowed to view spoiler contents.

The floating point hex isn't converted because I can't find a python method to do that :/
hmm i see... very useful program i say ;D
https://privateladyescorts.com - Free Local Dating - No Selfie - Anonymous Casual Dating -   Video Chat Private Lady

Man this thread is so full of win, and so interesting. After lunch, I will read every [censored]ing line.

Quote from: ForOhFor Error on July 07, 2011, 02:40:56 AM
Collisions to shadow system:
Adding the shadow system to a stage is time-consuming and annoying. I'm making a program to streamline the process, by making the shadow system follow collisions.

*Gives you all my weed*


Mewtwo2000 is helping me out. I just need to figure out how to edit verticies manually in hex.

Then I can make my program do it XD

The current version is outputting some sort of triangle bull[censored].

FC: 2191-7379-6272

Quote from: ForOhFor Error on September 27, 2011, 09:28:07 PM
It will open the collision data, and read all of the points and planes. It takes every plane that is the floor type, and outputs a flat shadow model positioned correctly for that plane.

Anyway, my output for the function which parses the collision data:
Sorry but you are not allowed to view spoiler contents.

The floating point hex isn't converted because I can't find a python method to do that :/
hey 404... use the struct module ;)

import _struct as St #_struct is 1 step faster than struct
float32 = chr(0x3F)+chr(0x80)+chr(0x00)+chr(0x00)
print St.unpack('>f',float32)[0]

you can even import the needed functions:

from _struct import unpack as U

use unpack when reading from a file,
and use pack when writing to a file. ;)

check out my cmn.py module for more ;)
(my module for my converter)

[spoiler]Quote: Friedslick6
you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
But the coolest part was that you didn't stop working on it despite that.

Quote: Internet Explorer
you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

quote: Greg
You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

Quote from: Tcll on September 27, 2011, 10:18:29 PM
hey 404... use the struct module ;)

import _struct as St #_struct is 1 step faster than struct
float32 = chr(0x3F)+chr(0x80)+chr(0x00)+chr(0x00)
print St.unpack('>f',float32)[0]

you can even import the needed functions:

from _struct import unpack as U

use unpack when reading from a file,
and use pack when writing to a file. ;)

check out my cmn.py module for more ;)
(my module for my converter)
Actually, I have already ;D
I found a function online :D

FC: 2191-7379-6272

Quote from: ForOhFor Error on September 27, 2011, 10:59:15 PM
Actually, I have already ;D
I found a function online :D
IMO you should prbly use my code as it's worked alot better than using int(v,16) based codes
(don't give me credit as anyone can write it) :)

I would end up getting invalad conversions or a value='' result when it should be value='....'

so yea...
only use int(v,16) code for small things.
(16 variables to set is a large thing)

[spoiler]Quote: Friedslick6
you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
But the coolest part was that you didn't stop working on it despite that.

Quote: Internet Explorer
you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

quote: Greg
You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

I'm using int(x,16) only for 2 small things (the number of points, and the number of plains)

also, I've gotten Mewtwo's MShadow tool to say the points are in the correct places... but there are many differences, and they crash BrBx.

FC: 2191-7379-6272

Quote from: ForOhFor Error on September 28, 2011, 01:50:48 AM
I'm using int(x,16) only for 2 small things (the number of points, and the number of plains)

also, I've gotten Mewtwo's MShadow tool to say the points are in the correct places... but there are many differences, and they crash BrBx.
I'm up early as getting back to sleep seems to be quite a hastle D:

anyways...
those are ok I guess...

oh yea...
the error was with the bone translations on my old melee code.

as soon as I switched to my ru32() function, it worked near perfect :)
(you saw the best result I got)

[spoiler]Quote: Friedslick6
you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
But the coolest part was that you didn't stop working on it despite that.

Quote: Internet Explorer
you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

quote: Greg
You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

BUMP!
hey 404...
how good are you at understanding Python classes??

I need to understand them as I'm creating widgets for the plugin settings.
(reference the widgets and define the logic in your plugin)

the actual result will display on the viewer
(another reason I need to know classes)

[spoiler]Quote: Friedslick6
you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
But the coolest part was that you didn't stop working on it despite that.

Quote: Internet Explorer
you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

quote: Greg
You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

You can think of them like a list, sort of. They contain variables unique to one instance of the class, and have their own methods associated with each class type. You start with a Class <Name>: statement, then use def __init__(self,<other arguments>) to set any local variables contained within the class. you then use def <method name>(self,<other arguments>): to make a new method, and you use self.<var name> to reference the variables in the classes.

That's about all I know :/

FC: 2191-7379-6272