Breldur, my new age

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!
User avatar
Chacal
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
MOULa KI#: 0
Location: Quebec, Canada

Re: Breldur, my new age

Post by Chacal »

Maybe the error is just with some of the objects. Start removing palms until the error goes away.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Jonnee
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Breldur, my new age

Post by Jonnee »

ddb174 wrote:It might also be possible to avoid the problem by putting some of the things on a separate page. (And if you don't change some objects often, you can also save a lot of time when exporting, by not exporting that page each time.)


Do we have a guide somewhere how to do this ?
I'm pretty sure that the memory error is caused by the amount of the palms.
User avatar
Marcello
Posts: 374
Joined: Sun Nov 04, 2007 8:59 am
MOULa KI#: 64309
Location: Haarlem, The Netherlands

Re: Breldur, my new age

Post by Marcello »

The whole page thing would be interested to document (the why's and how's). If it isn't already. I never really grasped that.
User avatar
Jonnee
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Breldur, my new age

Post by Jonnee »

I found a very good guide about creating pages, written by GPNMilano here: http://forum.guildofwriters.com/viewtopic.php?f=59&t=2641&st=0&sk=t&sd=a&hilit=export+page

I will prepare the age for this now.
Someone please can tell me how I do export only that page with changes including, by keeping unchanged, earlier exported pages? Do I have to join all single exported pages to an age afterthat? So that the age will work finally... How does it work?

Alot of questions... :D
If I don't need to export old, unchanged pages again it would really save alot of time and memory. 8-)
User avatar
GPNMilano
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am
MOULa KI#: 24104

Re: Breldur, my new age

Post by GPNMilano »

Jonnee, By default, all objects have a page number of 0 which in the Book.txt file where your age sequence goes, is listed as mainroom. So when you export that page is called, (In this case)

Code: Select all

Breldur_District_mainroom.prp


So, in your case, for objects that you suspect are causing your problem, add a page number to their properties in blender. With the object selected press f4. This will bring up the properties panel. Click the button that says "add property" in that panel. and you'll see a couple of new fields that should look like:

Code: Select all

Del|Float|Name:            |0.0


Change the flat to a string (its a menu) and where it says Name put "page_num" and in the final box put a number (anything from 1-100 should suffice.

As long as you don't add another page in your book.txt file. The plugin won't know where to put any object with a page num greater than 0, so it won't export them. You'll have to do this by trial and error till you find your suspected problem though.
You can't stop the truth. IC Blog
User avatar
Jonnee
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Breldur, my new age

Post by Jonnee »

I've done this already.
I put the palms to page_num 3, because they overrun the memory while exporting the age. I also changed the book.txt and added the pages from 1 to 3.
I'm able to export the age from page 0 to page 2 without any problems. But when blender comes to the point when to export the palms in page 3 it stops. Memory error. (always at a different palm with a different reason)

My idea, or my question was: Can I export the pages separately? Maybe page 0, 1, and 2 together - and afterthat page 3 for itself. This would not overload my memory. Is it possible to join all pages to an complete age at the end?

I tried it by try and error, but I could not get the age running.
When I exportet page 0 separately I could enter the age. Sure, because page 0 includes the beach and the linkinpoint...
Afterthat I exportet the other pages too, without page 0 (because I already did export it). But if I entered the age I could only see the fog of the .fni, because there was not beach to put my feets on and no linkinpoint to appear. That means for me the pages haven't been joined to a whole age. All objects of page 0 have been overwritten or something...

It doesn't make sense to continue age creation. First we have to solve this problem. :cry:
User avatar
GPNMilano
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am
MOULa KI#: 24104

Re: Breldur, my new age

Post by GPNMilano »

Jonnee wrote:I've done this already.
I put the palms to page_num 3, because they overrun the memory while exporting the age. I also changed the book.txt and added the pages from 1 to 3.
I'm able to export the age from page 0 to page 2 without any problems. But when blender comes to the point when to export the palms in page 3 it stops. Memory error. (always at a different palm with a different reason)

My idea, or my question was: Can I export the pages separately? Maybe page 0, 1, and 2 together - and afterthat page 3 for itself. This would not overload my memory. Is it possible to join all pages to an complete age at the end?

I tried it by try and error, but I could not get the age running.
When I exportet page 0 separately I could enter the age. Sure, because page 0 includes the beach and the linkinpoint...
Afterthat I exportet the other pages too, without page 0 (because I already did export it). But if I entered the age I could only see the fog of the .fni, because there was not beach to put my feets on and no linkinpoint to appear. That means for me the pages haven't been joined to a whole age. All objects of page 0 have been overwritten or something...

It doesn't make sense to continue age creation. First we have to solve this problem. :cry:


Remove just the reference for the palm trees (Page 3) from the Book.Txt this will stop the memory error as the palms will no longer export but the rest of the pages will. Second question: How large is your texture for the palm trees? Its obvious tht something in those is what's throwing up the memory error, and the size of the texture is important. (You should never use anything bigger than 1024x1024 or smaller than 64x64.
You can't stop the truth. IC Blog
User avatar
Jonnee
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Breldur, my new age

Post by Jonnee »

Doesn't make sense, because I want to export them. I want to see the palms in the age... 8-)
If I got them exported altogether I can walk through Breldur without any problems. I was able to eliminate the lags. The game engine can handle the amount of the palms. Only Blender makes trouble...

The texture is small (128x256). There are ca 80 trees, that's the problem! Less trees don't look well in the age, I tried it. But 80 palm tops have 50.000 faces altogether. And this is the less that I could use...
My computer has 2GB RAM and an old AMD Athlon XP25000+ 1,83GHz prozessor. It's a bit old...
Christian Walther
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
MOULa KI#: 0
Location: Switzerland

Re: Breldur, my new age

Post by Christian Walther »

Are you saying that you tried my modified prp_Stream.py and it didn't help?

There must be something else wrong in PyPRP, 2 GB should be plenty to export anything that Plasma can handle, when done right. Unfortunately memory problems are hard to debug, and even more so when you can't examine them on your own system, so I don't really feel like debugging this. :?
User avatar
Jonnee
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Breldur, my new age

Post by Jonnee »

Oh, sorry Christian. I did forget to tell you that I changed the prp_Stream.py. But it did not help. Afterthat the memory error was in another .py file. It's always another file. And it always happens while exporting a different object when the export progress is close to the end.
Post Reply

Return to “Building”