Blender 3D Scripts
13 13

147 posts in this topic

Recommended Posts

 

I shall break the chain of Developer posts to stay true to my member title!

Also, great work man I bet many modders will appreciate this. Personally, I was unable to load anything as it all just kept being a cube but then again, I'm a noob in blender and don't know anything about it lol.

Delete the cube. Most of the imported stuff is so small that they appear inside the cube.

 

-snip-

Thanks a bunch, that helped a LOT. :D

Share this post


Link to post
Share on other sites

Ok, so AFTER testing the darn weight additive in the game, (and several game crashes later), I found out the game always expects every weighted vertex to have 4 weight influence bones (doesn't matter if duplication, and the value for non-influence to fill the empty slots is -1.0). I see this as a problem, although yeah you can get away with doing it just like this. It just seems.. unnecessary. 

 

I'd use a java interpreter as such:

String line = br.readLine();if(line.isEmpty() || line.startsWith("#")) {    continue;} else {... // Read weightsString split = line.split(",")if(split.length > 0) {    // Read weights as arrays...} else {    // Read weight. (one)}

Anyways, Picture time!

 

ibaywcaO87afW7.png

Share this post


Link to post
Share on other sites

Well for some reason I can't export beards and clothes, its file size just shrinks and the game crashes. Basically ive untucked the shirt and blouse and made it a little longer / bigger but it doesnt seem to work. Do I need to export it skinned or with an uv map or should i not use vertex editing or..?

Share this post


Link to post
Share on other sites

Well for some reason I can't export beards and clothes, its file size just shrinks and the game crashes. Basically ive untucked the shirt and blouse and made it a little longer / bigger but it doesnt seem to work. Do I need to export it skinned or with an uv map or should i not use vertex editing or..?

 

I was going to mention how to do this later because I figured in the beginning no one would really use or catch onto this script. When you mod clothes, you must first import the male or female model. (this loads the rig, and has to be there when exporting). Sorry.

 

So:

 

1) import male.txt

2) import shirt.txt

3) mod the shirt

4) export the shirt

 

(This is because the model doesn't contain the bone data required, but still exports the weights of the bones. This is weird, but this is how it is currently for the game.)

Share this post


Link to post
Share on other sites

 

Well for some reason I can't export beards and clothes, its file size just shrinks and the game crashes. Basically ive untucked the shirt and blouse and made it a little longer / bigger but it doesnt seem to work. Do I need to export it skinned or with an uv map or should i not use vertex editing or..?

 

I was going to mention how to do this later because I figured in the beginning no one would really use or catch onto this script. When you mod clothes, you must first import the male or female model. (this loads the rig, and has to be there when exporting). Sorry.

 

So:

 

1) import male.txt

2) import shirt.txt

3) mod the shirt

4) export the shirt

 

(This is because the model doesn't contain the bone data required, but still exports the weights of the bones. This is weird, but this is how it is currently for the game.)

 

Thanks for the help! I'll try that now. Is it like that for every such object, like beards and hair too?

Edit: After some minor headaches, heres the exact steps that worked for me:

0) Make a backup of whatever you wanna mod

1) Import male.txt

2) Import shirt.txt

   2.5) Make sure you do it in exactly THAT order

3) Mod the shirt

4) Deselect everything

5) Select only the shirt in Object Mode

6) Export

 

I am having heaps of fun with your tools, modding the game so much right now lol.

Share this post


Link to post
Share on other sites

Now if there was an easy way (or is there already?) to add new hair\beards\clothes into the game the "Not enough character customization" problem would solve itself. This is awesome.

Share this post


Link to post
Share on other sites

 

 

I wanted to do something similar. Great job though :D!

 

 

But.. i'm so damn bad at it..

 

I got freaking weird ass triangles on it..

Share this post


Link to post
Share on other sites

 

 

 

I wanted to do something similar. Great job though :D!

 

 

But.. i'm so damn bad at it..

 

I got freaking weird ass triangles on it..

 

For your first blender model / edit after a long time, this isnt bad at all. The triangles are 90% likely unnoticable in game, the shotgun has some weird triangles too but no one notices em :).

Share this post


Link to post
Share on other sites

Adding options to the Import / Export scripts, for convenience. I'll possibly look into "smart-finding" the rigs for the clothes / hair so people don't accidently modify clothes without the weights. 

 

iPaNDsBnhppRv.png

Share this post


Link to post
Share on other sites

I'd like to see that getting exported and put into the game... Really curious on how the game's gonna play out with that...

Share this post


Link to post
Share on other sites

I still can't believe you just figured out how to do this.. This is a big step for.. How is it.. This is a big step for humanity.. And modding.. Uh well. THIS IS FREAKIN' INCREDIBLE! I'm gonna try it out right now!

Share this post


Link to post
Share on other sites

Hmm.. For some reason, when I try and import the male.txt, it doesn't really show anything, other than bob_armature object out in the Outliner

 

Oh I got it now.

Even though my game crashes with the edited models.. Hmm :/

I mean, whenever I try to load a save (Or create a new one) it just stalls and a black screen appears.

So it doesn't really crash. Anyone got an idea how to fix this?... :/

 

How do you guys do this?! :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
13 13