Question about the 3DS format as native format

Discuss the future of Warzone 2100 with us.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Question about the 3DS format as native format

Post by stiv »

i-NoD wrote:As long as they will not hang Blender during export
It is not clear to me what you are referring to.
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Question about the 3DS format as native format

Post by i-NoD »

Blender 2.49a works fine for the old scripts. I've updated them with the new ones and CPU usage is up to %100 after i've tried to export some models.. Blender hangs, so I have to shut it down. Since there are almost no changes I think it has smth to do with

Code: Select all

from Blender import * 
import Blender as B
Maybe its just some local bug, plus I'm using other converters mostly, so we'll simply ignore this.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Question about the 3DS format as native format

Post by stiv »

This is both curious and ungood. Definitely worth chasing down. Maybe worth opening a ticket for.

Which models are having problems?

The import statements just change how Python builds and maintains its internal dictionaries. The 'from foo import *' form is considered bad practice because it does not initialize modules properly in some cases and it causes collisions between names that appear in more than one module. Example: Python's sys and Blender.sys.
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Question about the 3DS format as native format

Post by i-NoD »

I was working with the truck model by Orlox (somewhere on the forum or you can grab it from #851), scaling and such.. It hanged 2 times in row during export with the new script. Trying different pies it hanged 2 time of 10 totally... and I see that .pies are created ok all the time. The problem that I can't get what is going wrong. Maybe it's some Blender bug...

Ow, I just typed this message after last successful export and Blender hanged in the background. :-S
I've looked at script and it seems like
from Blender import *
is still used in sub-script pie_common.py and both export and import depends on it...

Overall, if works for the majority without any issues, then its not a big deal for me. I'll post a ticked if I'll find any new details, as this is not much for now.