Page 1 of 1
ODF editing
Posted: Thu Apr 07, 2016 2:49 pm
by wagromph
I am doing a Mustafar map and I imported must1_blgf_world_3 to have the desired flowing lava. However, the moving lava is all I need from this ODF, is there a way I can edit the odf to remove the rock walls and the like so I can just get a flat strip of flowing lava.
Re: ODF editing
Posted: Thu Apr 07, 2016 3:08 pm
by thelegend
I am sorry about that but the walls and the lava all belong to one .msh file. You would need to edit the .msh file to remove the walls by (probably possible; I am not sure) removing the mesh chunks from the .msh by using a hexeditor or (recommend) importing the .msh in a 3D modeling program to remove the walls manually. I personally recommend the second option.
Re: ODF editing
Posted: Thu Apr 07, 2016 3:53 pm
by AnthonyBF2
When I just want to remove a chunk from a model, I use SWBF model viewer to import the msh file into a wrl file. I open the wrl file in text editor program, and search for the texture names for the objects I want to remove, remove them and then import the file back to msh so all I have is the part of the model I want. If you can't get it, I'll do it for you later, let me know.
Re: ODF editing
Posted: Thu Apr 07, 2016 5:58 pm
by wagromph
anthonybf2 wrote:When I just want to remove a chunk from a model, I use SWBF model viewer to import the msh file into a wrl file. I open the wrl file in text editor program, and search for the texture names for the objects I want to remove, remove them and then import the file back to msh so all I have is the part of the model I want. If you can't get it, I'll do it for you later, let me know.
You have me lost @.@ I don't know the first thing about this sort of thing.
Re: ODF editing
Posted: Fri Apr 08, 2016 12:02 am
by AnthonyBF2
wagromph wrote:anthonybf2 wrote:When I just want to remove a chunk from a model, I use SWBF model viewer to import the msh file into a wrl file. I open the wrl file in text editor program, and search for the texture names for the objects I want to remove, remove them and then import the file back to msh so all I have is the part of the model I want. If you can't get it, I'll do it for you later, let me know.
You have me lost @.@ I don't know the first thing about this sort of thing.
I went ahead and made the edits. In the download you'll find the msh file and the related texture used. Put them in the msh folder in your mod's world folder.
http://www.mediafire.com/download/dl49u ... nowall.zip
Let me know if the lava isn't "moving"

Re: ODF editing
Posted: Fri Apr 08, 2016 1:10 pm
by wagromph
Thanks ! What I ended up doing was making an .odf file that read
And this managed to get the lava itself in game, but sadly the lava doesn't seem to move
Edit: Also the lava is solid, as in I can walk across the top of it where as with the other lava I would fall through (Where I would put a death region to make it look like they were swallowed up with the lava)
Re: ODF editing
Posted: Fri Apr 08, 2016 2:09 pm
by AnthonyBF2
In the odf file under [Properties] add SoldierCollision = "none"
Later when I am on my computer I will explain how to make the lava move.
Re: ODF editing
Posted: Fri Apr 08, 2016 2:30 pm
by wagromph
Alright ! Thanks!
Re: ODF editing
Posted: Fri Apr 08, 2016 3:18 pm
by AnthonyBF2
To get "moving" lava open the msh file hex editor. Find the little bit of code that looks like HBATRB, on the left side of hex editor, you'll see seven sets of 00. Write 03 over the fifth byte and write 0A over the sixth byte.
Re: ODF editing
Posted: Fri Apr 08, 2016 4:38 pm
by wagromph
I gave it a shot. I changed this
to this
not a clue if this is what you told me to do, but I did not work so I assume you intended me to do something else.
Re: ODF editing
Posted: Fri Apr 08, 2016 9:12 pm
by AnthonyBF2
seven bytes after HBATRB.
Re: ODF editing
Posted: Fri Apr 08, 2016 9:27 pm
by wagromph
I am super new to hex editing, I don't really know what you mean by that.
This is what I am looking at right now, not where the 7 sets of 00 are to

Re: ODF editing
Posted: Fri Apr 08, 2016 9:33 pm
by AnthonyBF2
http://i.imgur.com/RlfEcQh.png
I recommend the HxD Hex Editor. I personally dislike editors that show 2 byte groups instead of single bytes.
Re: ODF editing
Posted: Sat Apr 09, 2016 12:06 am
by wagromph
Yup and I think that is what was messing me up. Worked like a charm ! Thanks a million, now I can actually make some headway on my Mustafar map XD
EDIT
I think this is a pretty useful thing to have around, perhaps you should toss it up on one of the released asset pages ?
Re: ODF editing
Posted: Sat Apr 09, 2016 12:13 am
by AnthonyBF2
It's nothing special. Anyone can do it providing they find and understand the way to do it. The 2 bytes you changed are material and scroll speed flags discussed here, if you want to play with more.
http://www.gametoast.com/viewtopic.php?f=27&t=24851