Update to SWBF MSH Viewer

Releasing the source files for your mod or map? Post em' here. (Applies to both SWBF1 & SWBF2)

Moderator: Moderators

Recruit Womprat Killer
User avatar
Posts: 7
Joined: Tue Sep 09, 2008 7:27 pm
Location: UK

Update to SWBF MSH Viewer

Postby tipam » Fri Nov 21, 2008 7:49 pm

Hi - I've been out of it for a while, but I've updated the latest viewer for MSH files. All model file geometries now display correctly and load neatly (i.e. centred and zoomed)

I've finally mastered the transforms which means a model's skeleton (bones) could be edited in future versions. All I need to do now is master skinning! I've also included directory list files so you don't need to let the viewer scan through all the SWBF folders for 1st time users. These will only work correctly if you haven't modified the SWBF SDK directories (i.e. added/changed/deleted files). If in doubt, just let the viewer look for the files or click 'No' if you don't want to.

Have fun - here's the link http://sites.google.com/site/swbfmodding/swbf-tools

Hoth Battle Chief
User avatar
Posts: 3352
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc

Re: Update to SWBF MSH Viewer

Postby Fluffy_the_ic » Fri Nov 21, 2008 7:59 pm

niiiiiice.... So by editing a unit's skeleton, what do you mean by that? Change the skeleton, making new anims, rescale the skeleton, or just apply a skeleton? And are you still not doing bumpmaps?

Recruit Womprat Killer
User avatar
Posts: 7
Joined: Tue Sep 09, 2008 7:27 pm
Location: UK

Re: Update to SWBF MSH Viewer

Postby tipam » Sat Nov 22, 2008 4:05 am

Fluffy_the_ic wrote:niiiiiice.... So by editing a unit's skeleton, what do you mean by that? Change the skeleton, making new anims, rescale the skeleton, or just apply a skeleton? And are you still not doing bumpmaps?


... it means that the overall model (inc. skeleton) could be modified although I must admit altering the envelopes/weights is a little more complicated! I've got a grip on how these things work in the MSH file but it might take too much work to write an editor for them! Bumpmaps are possible using pixel shaders, but this needs further investigation too.

For now, I'm continuing to write file converters in the Viewer so you can drop VRML/OBJ/3DS files in and save them as MSH. I've already finished VRML>MSH which can be seen in the BF1 demo I did.

Droid Pilot Assassin
User avatar
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am

Re: Update to SWBF MSH Viewer

Postby Sky_216 » Sat Nov 22, 2008 4:23 am

Hardly found any VRML files but converting obj.s (simply) :thumbs:
ANd editing stuff in viewer..... :bowdown:

Anyway, thanks for this, great program you've made here, very useful I (and I'm sure many many other) modders use this reguarly (so good for skinning...no more 'munge and play every time'). Great job! :D

Recruit Womprat Killer
User avatar
Posts: 7
Joined: Tue Sep 09, 2008 7:27 pm
Location: UK

Re: Update to SWBF MSH Viewer

Postby tipam » Sat Nov 22, 2008 5:19 am

Skyhammer_216 wrote:Hardly found any VRML files but converting obj.s (simply) :thumbs:
ANd editing stuff in viewer..... :bowdown:

Anyway, thanks for this, great program you've made here, very useful I (and I'm sure many many other) modders use this reguarly (so good for skinning...no more 'munge and play every time'). Great job! :D


... erm, yes ... yo could say it 'hacks' the obj format for now! You can get VRML files from www.turbosquid.com, and be specific when searching in google; search for 'VRML buildings' or 'VRML avatar' etc... You can also search for X3D (based on VRML) and WRL files (these are VRML files)
There's quite a bit out there although, as with all free stuff, you need to filter the junk

Master of the Force
User avatar
Posts: 3779
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Update to SWBF MSH Viewer

Postby Deviss » Sat Nov 22, 2008 11:07 am

for end a version where the custom clone's model look good :thumbs:

Jedi
User avatar
Posts: 1223
Joined: Thu Oct 16, 2008 4:05 pm

Re: Update to SWBF MSH Viewer

Postby Null_1138 » Sat Nov 22, 2008 12:39 pm

Great work Tipam!

I got a problem, though. Whenever I open up a BF1 msh, I get an error saying "an exception of class NilObjectException was not handled." How do I look at BF1 msh's? Do I need to move the BFBuilder folder?

Recruit Womprat Killer
User avatar
Posts: 7
Joined: Tue Sep 09, 2008 7:27 pm
Location: UK

Re: Update to SWBF MSH Viewer

Postby tipam » Sat Nov 22, 2008 1:01 pm

Null_1138 wrote:Great work Tipam!

I got a problem, though. Whenever I open up a BF1 msh, I get an error saying "an exception of class NilObjectException was not handled." How do I look at BF1 msh's? Do I need to move the BFBuilder folder?


... does this mean you haven't loaded any models yet or only BF1 ... if only BF1, can you give me an example just in case it crashes on my comp too?

Corporal
User avatar
Posts: 144
Joined: Sat Apr 05, 2008 4:30 pm

Re: Update to SWBF MSH Viewer

Postby MasterFang1 » Sat Nov 22, 2008 2:58 pm

Null_1138 wrote:Great work Tipam!

I got a problem, though. Whenever I open up a BF1 msh, I get an error saying "an exception of class NilObjectException was not handled." How do I look at BF1 msh's? Do I need to move the BFBuilder folder?

The SWBF1 file list looks for the files in C:/LucasArts/BFBuilder/Assets, so if it isnt there make a folder called LucasArts then BFBuilder and then copy and paste the Assets folder there. This worked for me :yes: .

Sith Master
User avatar
Posts: 2640
Joined: Mon Aug 04, 2008 10:32 am
Location: Pizza Land
Projects :: TOR GCWII GCW1035
xbox live or psn: Johnny_Sciroppo

Re: Update to SWBF MSH Viewer

Postby Delta-1035 » Sat Nov 22, 2008 5:50 pm

Yes! this version works perfectly!

Jedi
User avatar
Posts: 1223
Joined: Thu Oct 16, 2008 4:05 pm

Re: Update to SWBF MSH Viewer

Postby Null_1138 » Sat Nov 22, 2008 7:05 pm

MasterFang1 wrote:
Null_1138 wrote:Great work Tipam!

I got a problem, though. Whenever I open up a BF1 msh, I get an error saying "an exception of class NilObjectException was not handled." How do I look at BF1 msh's? Do I need to move the BFBuilder folder?

The SWBF1 file list looks for the files in C:/LucasArts/BFBuilder/Assets, so if it isnt there make a folder called LucasArts then BFBuilder and then copy and paste the Assets folder there. This worked for me :yes: .


EDIT: Ok, copying the entire Assets folder would have taken me 3 hours. No way, I thought, so I copied the Sides and the Shipped Worlds folders and put them in Lucasarts/BFBuilder/Assets.

But I still get the same error. I'm starting to think, by the looks of the error, it has something to do with the MSH's themselves. "NilObjectException" sounds like a) a LUA command, or b) a property of some sort of the MSH. Anyone have any ideas?

Jedi
User avatar
Posts: 1130
Joined: Sun Dec 23, 2007 12:07 am
Location: MI, USA
Games I'm Playing :: BioShock
xbox live or psn: Delta811

Re: Update to SWBF MSH Viewer

Postby Delta 47 » Sun Nov 23, 2008 3:26 pm

Gonna try out this new version right away, your really doing a great job with this!

Private
Posts: 41
Joined: Tue Oct 23, 2007 12:54 am

Re: Update to SWBF MSH Viewer

Postby TomModder » Sun Nov 23, 2008 5:47 pm

Yeah, great job!!! I'm going to try this out too!

Recruit Womprat Killer
User avatar
Posts: 7
Joined: Tue Sep 09, 2008 7:27 pm
Location: UK

Re: Update to SWBF MSH Viewer

Postby tipam » Mon Nov 24, 2008 8:58 am

Null_1138 wrote:
MasterFang1 wrote:
Null_1138 wrote:Great work Tipam!

I got a problem, though. Whenever I open up a BF1 msh, I get an error saying "an exception of class NilObjectException was not handled." How do I look at BF1 msh's? Do I need to move the BFBuilder folder?

The SWBF1 file list looks for the files in C:/LucasArts/BFBuilder/Assets, so if it isnt there make a folder called LucasArts then BFBuilder and then copy and paste the Assets folder there. This worked for me :yes: .


EDIT: Ok, copying the entire Assets folder would have taken me 3 hours. No way, I thought, so I copied the Sides and the Shipped Worlds folders and put them in Lucasarts/BFBuilder/Assets.

But I still get the same error. I'm starting to think, by the looks of the error, it has something to do with the MSH's themselves. "NilObjectException" sounds like a) a LUA command, or b) a property of some sort of the MSH. Anyone have any ideas?


Have you tried dragging and dropping a MSH file onto the Viewer? ... if this still doesn't work, could you let me know what graphics card you're using (inc. mem size) ... the Viewer only supports OpenGL for now.
Tks.

Chief Warrant Officer
User avatar
Posts: 327
Joined: Wed Jun 28, 2006 12:56 pm
Location: The Old Republic
Projects :: The Pwnfest and Games Complex
Games I'm Playing :: SWTOR
xbox live or psn: You and I Know

Re: Update to SWBF MSH Viewer

Postby theITfactor » Mon Nov 24, 2008 8:30 pm

Neat, I'll have to try this. Good work :)

Jedi
User avatar
Posts: 1223
Joined: Thu Oct 16, 2008 4:05 pm

Re: Update to SWBF MSH Viewer

Postby Null_1138 » Tue Nov 25, 2008 4:44 pm

tipam wrote:Have you tried dragging and dropping a MSH file onto the Viewer? ... if this still doesn't work, could you let me know what graphics card you're using (inc. mem size) ... the Viewer only supports OpenGL for now.
Tks.


Drag and drop? I can't even click on a BF1 MSH without the error popping up. That's what happens, I click once on a MSH (working ones), and it shows up in the viewer.

As for a graphics card: I'm running on a Radeon-9600. However, I solved the OpenGL problem when I downloaded Blender. I think the fix was an ATI driver, but that was a while ago...

Recruit Womprat Killer
User avatar
Posts: 7
Joined: Tue Sep 09, 2008 7:27 pm
Location: UK

Re: Update to SWBF MSH Viewer

Postby tipam » Wed Nov 26, 2008 6:09 pm

Null_1138 wrote:
tipam wrote:Have you tried dragging and dropping a MSH file onto the Viewer? ... if this still doesn't work, could you let me know what graphics card you're using (inc. mem size) ... the Viewer only supports OpenGL for now.
Tks.


Drag and drop? I can't even click on a BF1 MSH without the error popping up. That's what happens, I click once on a MSH (working ones), and it shows up in the viewer.

As for a graphics card: I'm running on a Radeon-9600. However, I solved the OpenGL problem when I downloaded Blender. I think the fix was an ATI driver, but that was a while ago...


OK - I think I know what it is - don't use the SWBF_BF1 file I put with the program (i.e. delete it). When you run up the viewer, it will ask to scan for BF1 files - say yes and it will take around 5 mins to scan all your BF1 models (seemingly doing nothing - please wait). The reason why you're getting "Nil Object ... " errors is because it can't find the file. I'll fix the code now so it throws a correct error.

Jedi
User avatar
Posts: 1223
Joined: Thu Oct 16, 2008 4:05 pm

Re: Update to SWBF MSH Viewer

Postby Null_1138 » Wed Nov 26, 2008 6:12 pm

tipam wrote:
Null_1138 wrote:
tipam wrote:Have you tried dragging and dropping a MSH file onto the Viewer? ... if this still doesn't work, could you let me know what graphics card you're using (inc. mem size) ... the Viewer only supports OpenGL for now.
Tks.


Drag and drop? I can't even click on a BF1 MSH without the error popping up. That's what happens, I click once on a MSH (working ones), and it shows up in the viewer.

As for a graphics card: I'm running on a Radeon-9600. However, I solved the OpenGL problem when I downloaded Blender. I think the fix was an ATI driver, but that was a while ago...


OK - I think I know what it is - don't use the SWBF_BF1 file I put with the program (i.e. delete it). When you run up the viewer, it will ask to scan for BF1 files - say yes and it will take around 5 mins to scan all your BF1 models (seemingly doing nothing - please wait). The reason why you're getting "Nil Object ... " errors is because it can't find the file. I'll fix the code now so it throws a correct error.


Sounds good, Tipam. But uh, where do I delete the BF1 "you put with the program?"

General
User avatar
Posts: 799
Joined: Thu Jun 07, 2007 6:26 pm
Location: Far Far away....
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set

Re: Update to SWBF MSH Viewer

Postby computergeek » Wed Nov 26, 2008 6:56 pm

I can't seem to download this

Recruit Womprat Killer
User avatar
Posts: 7
Joined: Tue Sep 09, 2008 7:27 pm
Location: UK

Re: Update to SWBF MSH Viewer

Postby tipam » Wed Nov 26, 2008 9:59 pm

Null_1138 wrote:
tipam wrote:
OK - I think I know what it is - don't use the SWBF_BF1 file I put with the program (i.e. delete it). When you run up the viewer, it will ask to scan for BF1 files - say yes and it will take around 5 mins to scan all your BF1 models (seemingly doing nothing - please wait). The reason why you're getting "Nil Object ... " errors is because it can't find the file. I'll fix the code now so it throws a correct error.


Sounds good, Tipam. But uh, where do I delete the BF1 "you put with the program?"


The SWBF_BF1 file is the in the zip you downloaded - when you extracted the zip, it should have extract the SWBF_BF1 file which can be found in the same directory as the Viewer - this is the one you need to remove.

Next

Return to Released Assets

Who is online

Users browsing this forum: No registered users and 3 guests