Page 1 of 1

Blender 2.6 Trespasser Exporter 1.0

Posted: Sun Dec 25, 2011 9:14 pm
by Dragonlord
Rewrite of the exporter to work with Blender 2.6 . This script exports models into trespasser formats. Supports writting TPM files as well as values.txt files. Also adds UI elements to configurate the export easily (so no need anymore for Text-block hacks as in 2.49). For the individual types of meshes a basic set of values is exported. For meshes, physics meshes, invisible meshes and magnet meshes parenting as well as configuration values are taken into consideration to produce more useful default values.txt files.

Grab it over at ModDB (you might have to wait a few hours for the download to be authed): Blender 2.6 Trespasser Exporter 1.0

I'll do the importer next after I got something else done first.

EDIT: Important changes:
- no more Text-block configuration (uses now Blender 2.6 UI panel extensions)
- no $-hack required anymore (Blender 2.6 allows now $ in names)

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Sun Dec 25, 2011 10:10 pm
by s13n1
Nice work!

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Thu Dec 29, 2011 8:01 pm
by LtSten
Thanks for this, I've been meaning to get round to doing more Blender stuff recently...

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Thu Dec 29, 2011 9:24 pm
by Dragonlord
I forgot to write something into the README. Blender 2.6 has a bug in the exporter code which causes file patterns with a dot in it (aka .values.txt ) to explode the file path while changing directories. To counter this the file pattern in the exporter is ".values_txt". The exporter does though replace the "_" before exporting so if you export to bla.values_txt it actually writes to bla.values.txt . Just so you are not surprised what's going on there.

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Sun Jan 01, 2012 11:04 pm
by Anna
Sounds great! That'll come in handy :-)

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Tue Jun 19, 2012 4:19 pm
by lardman
Is there an importer plugin to go with the exporter?

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Tue Jun 19, 2012 7:54 pm
by Dragonlord
Not yet but it would be possible to make one since the file formats are not too complicated. In the mean time export from TresED to 3DS and import this file using the 3DS importer existing in the default blender installation.

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Wed Jun 20, 2012 6:41 am
by lardman
I don't have access to 3ds unfortunately.

Being a programmer rather than an artist I was actually wondering about directly extracting from the swp file (or even the compressed data files now the source is available) and automatically generating rigged CryEngine models (as again the animation data is apparently part of the engine).

I need to do some experimentation and see how the rigging is performed. Is there source for TresEd? It would be nice to not need to rewrite the extraction routines.

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Wed Jun 20, 2012 8:22 pm
by Dragonlord
TresED exports to 3DS besides a TresED specific format (an ASCII format). You can import this then in Blender using the internal importer module. With TresED you can by the way export an entire map into a single tpm file with one export step. Hence you could write a python script or whatever fits your plans to mass export each object from this huge tpm file into something CryEngine can handle. A mass import into Blender would though be interesting too. I'm just short on time the next couple of weeks due to work at the company but otherwise I could maybe hang my nose in there to add import code to the blender scripts. I just have to fix the exporter first though since the blender API changed once again and broke texture coordinates.

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Tue Oct 08, 2019 11:15 pm
by Double_G
so there's no tmp import script for blender? how do i convert these tmp files to something that is readable by blender?

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Tue Oct 08, 2019 11:22 pm
by Draconisaurus
Hold out for others to answers.. but, worst case, TresEd can export models as 3DS, a very versitile format. Just note that, it tends to corrupt models at the same time.

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Wed Oct 09, 2019 11:02 am
by Double_G
Draconisaurus wrote:Hold out for others to answers.. but, worst case, TresEd can export models as 3DS, a very versitile format. Just note that, it tends to corrupt models at the same time.
that's exactly my problem. I'm trying to do something. I want to combine all the maps into one big island like some people have done before, but when I try to export the terrain as 3ds, half of the terrain is missing

Edit: so I figured it out. good thing I downloaded a trial version of 3ds max 8 yesterday. so in case someone needs to import TPM files from TresEd, this is what you need to do.



1. you need a trial version of 3ds max. get either import or export script from this thread https://www.trescomforum.org/viewtopic.php?f=9&t=5680

2. if you run into this error "Runtime Error: Out of scripter memory- use options to increase", follow these instructions
3dsmax sets aside a set amount of memory for use in scripts, the import plugin you are using is one such script. Load the Listener window (press F11) type "heapsize" and push enter and it will show how much memory is being allocated for use in scripts.

To increase, type "heapsize += 10000000" where 10000000 is the amount of bytes to increase by. You can't decrease, reloading 3dsmax will set the assigned memory to default
done

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Wed Oct 09, 2019 4:34 pm
by tatu
Note: You can do it with a trial version of any Max. The latest one work fine as well and doesn't require the heapsize tweak.

And as for the Blender Importer. Yes, sadly it apparently only work on one specific version, and even then it doesn't appear to work properly.

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Wed Oct 09, 2019 9:04 pm
by Double_G
yeah but I didn't feel like downloading an 8gb program just to convert some files. 3ds max 8 was perfectly enough to get it done and that heapsize issue was just a minor inconvenience :) as to blender TPM importer, I wasn't aware there is one. all I knew is that there is a script for exporting TPM

Re: Blender 2.6 Trespasser Exporter 1.0

Posted: Thu Oct 10, 2019 3:19 am
by tatu
Double_G wrote:yeah but I didn't feel like downloading an 8gb program just to convert some files. 3ds max 8 was perfectly enough to get it done and that heapsize issue was just a minor inconvenience :) as to blender TPM importer, I wasn't aware there is one. all I knew is that there is a script for exporting TPM
Oh maybe it is the Exporter I meant, I've never used it so I am probably mistaken that it was an importer. :D