shell import

A community Age for Uru.

Moderator: Aloys

shell import

Postby mar » Fri Jan 11, 2008 8:20 am

I have worked on my shell and I want to see how it look likes in Uru.
I thought this was possible. But I doing something wrong. :shock: What have I done:

I have export the shell as a full age but Blender makes no main room PRP.
I have looked in the outliner and there is a book and pages so that is good.

Must I maybe change the "modelled shell prp" for the shell in the latest version off Ahra Paths. Can somebody help. :roll:
User avatar
mar
 
Posts: 182
Joined: Sat Sep 29, 2007 8:04 am

Re: shell import

Postby Robert The Rebuilder » Fri Jan 11, 2008 9:46 am

Hello, Mar!

It should be ok that there is no mainRoom district, since your shell would be in Pahts_District_ShellNNN.prp (where NNN is your shell number).

Try exporting your shell using the "All as full age, per age textures (.age)" option. For more information on how to test your shell, click here.
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Re: shell import

Postby mar » Sat Jan 12, 2008 1:10 pm

Thanks Robert, for your answer and the link with the tutortial to test the shell. :P :P
User avatar
mar
 
Posts: 182
Joined: Sat Sep 29, 2007 8:04 am

Re: shell import

Postby mar » Sun Jan 13, 2008 4:51 am

Still questions. :(

I have get from Aloys 3 shells in one how can I separated them, must I do that in Blender? :?:

Which of the prp file after exporting in Blender, must I change in a Paths_District _Shell NNN file I have get a district build file and a district texture file :?:
User avatar
mar
 
Posts: 182
Joined: Sat Sep 29, 2007 8:04 am

Re: shell import

Postby Robert The Rebuilder » Sun Jan 13, 2008 11:46 am

Just to make things clearer, let's refer to these as "pages" instead of "shells".

So, Aloys sends each developer a blend file with your shell's geometry. All of these objects (plus the ones that you add) will be placed on page NNN - the number of your shell. That means that all these objects have a string property "page_num" whose value is NNN.

When exporting, the plugin should create three PRP files:

- Pahts_District_BuiltIn.prp
- Pahts_District_ShellNNN.prp
- Pahts_District_Textures.prp

If you did this correctly, then all your objects and textures should only be in the Pahts_District_ShellNNN.prp file. This is the file that you send to Aloys.

So, my question is: after you exported it, did the plugin create a Pahts_District_ShellNNN file? If it did not, check that your objects (including the shell walls, floors and collidables) all have a property of type string with the name "page_num" and with the value set to NNN.
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Re: shell import

Postby mar » Wed Jan 16, 2008 7:44 am

Hello Robert,

Thanks for the explanation a shell is a page that is more simple for me to understand, but............... :cry: :cry:
To answered your question, it's make no Pahts_District_ShellNNN.prp.
I have look at the properties of all the objects and there page_num NNN are correct.

Then I thought, I try it with the new PRP and now I get more trouble and a big error. See below :arrow:

Exporting D:\ArhaPahts08\Pathsd.age ...
Args are et_age
['et', 'age']
Exporting age Pathsd
Traceback (most recent call last):
File "<string>", line 171, in open_file
File "<string>", line 69, in export_age
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 978, in export_book
age.export_book(selection)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 879, in export_book
self.book=alcBook(self)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcspecialo
bjs.py", line 54, in __init__
self.book = bookscript.FindOrCreate('age')
AttributeError: 'NoneType' object has no attribute 'FindOrCreate'

Can you see what I have done wrong :?:
User avatar
mar
 
Posts: 182
Joined: Sat Sep 29, 2007 8:04 am

Re: shell import

Postby Robert The Rebuilder » Wed Jan 16, 2008 8:05 am

The new plugin has changed the format on nearly everything, including the "book" and "page" objects. So, just use the stable-v0.5 plugin. [Make sure you delete all alc*.py, prp*.py and uru*.py files when switching back to the stable plugin.]

So, I think the problem is that there is no xPageNNN object in your blend file. To check, you can switch to layer 3 and look for the cubes. There should be one large cube (xBook), and three smaller cubes (xPage-1, xPage-2, and xPageNNN). If there is no xPageNNN, here's how to make your own:

- Right-click on the xPage-1cube
- Press Shift-D to duplicate it, then move the mouse over to a blank area to place the new cube
- Bring up the Editing panel (F9 key) and change OB: to xPageNNN
- Bring up the Logic panel (F4 key)
- change the "page" property value from -1 to your page number
- change the "name" property value from Textures to ShellNNN
- change the "type" property value from 8 to 0

Save your blend file, then try exporting again (using the stable plugin).
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Re: shell import

Postby mar » Wed Jan 16, 2008 9:38 am

Hi Robert,

That's a quick answer. I have uninstall Blender and start with a clean one. I have put the "stable"PRP in the script file and looked at the book and pages.

There is a book and also a page with the shellnumber. Only in the property there was a string with hide that I have delete. Further the name,page, and type property value are standing so as told.

I have tried to exported it but now I get a other error :arrow: :arrow:

[Visual Object 224Crn]
=> Converting texture ShCrn.tga <=
Traceback (most recent call last):
File "<string>", line 171, in open_file
File "<string>", line 86, in export_age
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 871, in export_all
pmat.data.export_mat(obj.data.materials[0],obj,self.prp)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_Classes
.py", line 1888, in export_mat
layer.data.export_uvtex(texture_img,exportTexturesToPrp)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_Classes
.py", line 1455, in export_uvtex
mipmap.data.setBlenderTexture(image,doMipMap=1)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_Classes
.py", line 1004, in setBlenderTexture
self.width, self.height = texture.getSize()
RuntimeError: couldn't load image data in Blender

At the record:
One object has a big texture made in photoshop maybe is that not possible :shock: , further I have one object who has two different materials and to different UV-textures in two layers. Maybe that is also not possible (only with the new PRP). Sometimes it is a little bit confusing and frustrating two PRP's.
The new PRP has so many beatifull features with I want to try. 8-) 8-)
User avatar
mar
 
Posts: 182
Joined: Sat Sep 29, 2007 8:04 am

Re: shell import

Postby Robert The Rebuilder » Wed Jan 16, 2008 10:09 am

If you change your Photoshop texture into a .PNG, you should be able to export. The stable plugin will ignore the other material and UV map, but it will still export if all the textures can be loaded.

We're all eager to use the new plugin's features! Pretty soon, I'll finish writing a converter wizard for the new plugin that will make your age compatible with it.
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Re: shell import

Postby mar » Wed Jan 16, 2008 12:26 pm

I am a little stap further but not completed. I have now a Build prp and a shell prp but not a texture prp.

This is the error :arrow:

Exporting D:\ArhaPahts08\Pathsd.age ...
Args are et_age
['et', 'age']
Exporting age Pathsd
#########################################
##
## => Exporting page BuiltIn -2 <=
##
#########################################
#########################################
##
## => Exporting page Shell224 224 <=
##
#########################################

[Lamp 224LitShFrnt1Lit]

[Lamp 224LitShFrnt2Lit]

[Lamp 224LitShSd1Lit]

[Lamp 224LitShSd2Lit]

[Visual Object 224Crn]
=> Converting texture ShCrn.tga <=
Traceback (most recent call last):
File "<string>", line 171, in open_file
File "<string>", line 86, in export_age
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 871, in export_all
pmat.data.export_mat(obj.data.materials[0],obj,self.prp)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_Classes
.py", line 1888, in export_mat
layer.data.export_uvtex(texture_img,exportTexturesToPrp)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_Classes
.py", line 1455, in export_uvtex
mipmap.data.setBlenderTexture(image,doMipMap=1)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_Classes
.py", line 1004, in setBlenderTexture
self.width, self.height = texture.getSize()
RuntimeError: couldn't load image data in Blender

My textures were in targa and now I have change them in png but still not a complete result. So do you have any other suggestions :?: :?:
User avatar
mar
 
Posts: 182
Joined: Sat Sep 29, 2007 8:04 am

Next

Return to Ahra Pahts

Who is online

Users browsing this forum: No registered users and 0 guests

cron