Page 4 of 5

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 07 Aug 2009, 09:56
by thesleepless
sorry i don't have it anymore, i'm going to leave the BOS exporter until blender 2.5 is done with its new animation system then port it over

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 30 Nov 2009, 22:57
by Super Mario
Blender 2.5 alpha version is out. The next stable release is 2.6

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 30 Nov 2009, 23:03
by thesleepless
yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 30 Nov 2009, 23:05
by Super Mario
thesleepless wrote:yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
Woot! Be sure to add support for 3do import please :D

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 30 Nov 2009, 23:15
by krychle
thesleepless wrote:yep, i have the alpha, although it's not really ready for production use, i'll work on porting the importer/exporter
I'm working in it, 2.5 is looking realy GREAT. The oficial alpha release looks stable, but i'm only modeling.

I think python API should be freezed before first beta (2)... I don't know where I read it :)

http://www.blender.org/development/rele ... ender-250/

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 20 Dec 2009, 11:34
by thedude
When I try to use my exported model in Spring the texture is only at some faces correct but the others seems to be broken. I don't know why cause in Blender it looks ok.
(I attached the blend file, the textures, and ingame screenshot)

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 20 Dec 2009, 11:44
by thesleepless
sorry, this is a problem with the exporter as discussed earlier, you'll need to split the edges where the texture is split.

the easiest way to do this is probably to mark the edges where the texture splits as sharp, then apply the EdgeSplit modifier (From Marked As Sharp)

i'll try to figure out a more automatic solution, but that's a workaround for the moment

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 21 Dec 2009, 19:58
by thedude
Many thanks!

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 27 Jan 2010, 18:04
by thedude
This time I try to export a "model" (just more cubes) to s3o but after importing it to Upspring it looks very crazy. I guess I tried to apply everything (like: scale, rotate, ...) but it does not help. When I do "Alt+P -> Clear Parent Inverse" the model looks the same way like after importing to Upspring. I modeled from scratch (did not import a s3o). I use Blender 2.49b.

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 25 Jun 2010, 20:24
by EatMyShrapnel
Hello there!

I imported in blender a s30 model and tried to exported it, but didn't work. I get a message « Python script error : check the console »

Code: Select all

loading /home/user/.spring/mods/damned/objects3d/orc_wall1.s3o
loaded header
loading texture 'orc_wall1.tga' ...
loading piece 'orc_wall'
loading 0 verts
loaded 0 faces
finished loading piece 'orc_wall'
loading 1 children
loading piece 'base'
loading 204 verts
loaded 68 faces
finished loading piece 'base'
constructing mesh...
done
Traceback (most recent call last):
  File "/home/user/.blender/scripts/s3o_export.py", line 231, in save_s3o_file
    header.texture2 = os.path.basename(textures[1].tex.image.getFilename())
AttributeError: 'NoneType' object has no attribute 'tex'
I use Blender 2.49b on ubuntu 10.4, can anyone help me ?

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 27 Jun 2010, 12:48
by EatMyShrapnel
When I tried with suzane (blender's monkey mesh), it works :

Code: Select all

texture1: tex_1.png
texture2: tex_2.png
exporting [Suzanne]
exported 507 verts
Root = [Suzanne]
Root = [Suzanne]
Root = [Suzanne]
saving object [Suzanne]
saving 0 children
done [Suzanne]
Export Complete
With my own mesh, it not working. I get this message :

Code: Select all

texture1: tex_1.png
texture2: tex_2.png
Traceback (most recent call last):
  File "/home/user/.blender/scripts/s3o_export.py", line 304, in save_s3o_file
    pieces.append(piece)
UnboundLocalError: local variable 'piece' referenced before assignment
I need help, I don't understand what that mean...

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 03 Aug 2010, 23:21
by Cremuss
Hey,

Great tool :)

Any updates on the UV problem ?
I don't want to "mark sharp" 300 edges... :mrgreen:

Blender 2.53 beta is done now, it's the "ready for documentation" release so I guess you can port you exporter to 2.5 now :-) 8)

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 04 Aug 2010, 01:51
by Super Mario
Cremuss wrote:Hey,

Great tool :)

Any updates on the UV problem ?
I don't want to "mark sharp" 300 edges... :mrgreen:

Blender 2.53 beta is done now, it's the "ready for documentation" release so I guess you can port you exporter to 2.5 now :-) 8)
The next stable version of spring will support the .obj model format.

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 04 Aug 2010, 14:45
by Cremuss
Oh, that's great news thanks ! :-)

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 30 Sep 2010, 02:03
by Wartender
any chance this can be made to export to the newfangled Lua animation system thingamajig?
apparently BOS is oldsauce

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 05 Oct 2010, 02:14
by Wartender
So, with the power of my experience in python (never having written a single line of code of it), my experience with animating spring units (never even attempted to), i modified the script to output lua instead, using as a guideline car's BOS-to-LUA converter.

It works, the difference between the two scripts is what you get passing BOS through car's script. will it animate a unit? i don't know. i don't know how to animate units.

edit: i also forgot to mention i don't know any Lua or BOS.

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 05 Oct 2010, 03:15
by thesleepless
> I don't want to "mark sharp" 300 edges... :mrgreen:

Yeah, it's not fun... I haven't figured out a way to do this automatically yet.

But yes, since new spring will support .obj i don't really see the point on working on the s3o exporter further.

the animation exporter will need to be reworked with blender's new animation system. I may look into this soon, adapting it for lua should be no problem.

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 09 Oct 2010, 21:21
by Wartender
what's the chances of this being done soon? would adapting the current one to export to lua (better than mine) be too much work? i don't use the new blender anyway, the UI is confusing and new D:

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 17 Dec 2010, 04:54
by NeOmega
line 23 in <module>
import BPyMessages
Import error: No Module Named BPyMessages

:?

I have the latest python installed, or at least the one that was recent when this script was posted.

Blender 249.2 (I think 2.49b)

Re: Blender S3O Import/Export + BOS Export Plugin v0.6

Posted: 24 Feb 2013, 12:54
by tino415
I downloaded, extracted to script/addons directory, twice restart blender, set access level of that files to very public, restart blender, nothing...., I use blender 6.5, also a small suggestion... export to lua script...