Page 7 of 10
Re: Lost with Python
Posted: Thu May 15, 2008 4:43 pm
by D'Lanor
That is a link in my post.
Re: Lost with Python
Posted: Thu May 15, 2008 6:12 pm
by Valdez
Here is my Python log file (attatched). Looking through it I noticed that it can't find a .py file. If it makes a difference my Python Pak file is called TINA_Testing (The name of my age). My GUI file is named: TINA_TestingBookGUI My PageDefs file is named: TINA_TestingPageDefs And my Journals file is named: TINA_Testing_Journals
I have also attatched my AlcScript if you need it.
Tell me if you have any suggestions.
Re: Lost with Python
Posted: Sun May 18, 2008 7:21 pm
by D'Lanor
Code: Select all
(05/15 17:04:59) Python file TINA_Testing.py was not found.
(05/15 17:05:02) Traceback (most recent call last):
(05/15 17:05:02) File "E:/Program Files/Blender Foundation/Blender/.blender/Blender Scripts/TINA_Testing/TINA_TestingBookGUI.py", line 38, in ?
(05/15 17:05:02) modPageDefs = __import__('TINA_TestingPageDefs')
(05/15 17:05:02) File "E:/Program Files/Blender Foundation/Blender/.blender/Blender Scripts/TINA_Testing/TINA_TestingPageDefs.py", line 8, in ?
(05/15 17:05:02) from TINA_Testing_Journals import *
(05/15 17:05:02) ImportError: No module named TINA_Testing_Journals
(05/15 17:05:02) Python file TINA_TestingBookGUI.py was not found.
Maybe you made a typo somewhere in the Python file references.
Re: Lost with Python
Posted: Sun May 18, 2008 7:48 pm
by Valdez
What puzzles me is the TINA_Testing.py file it tries to look for. That file is not need so therefore does not exist. There is a TINA_Testing.pak but that is it. What is that file it tries to look for?
And there were no mispellings in it, I triple checked.
Re: Lost with Python
Posted: Mon May 19, 2008 1:42 am
by D'Lanor
Can you zip up your Python files and post them?
And you also need to create the main age Python file TINA_Testing.py. Not sure if that is related to this problem though.
Re: Lost with Python
Posted: Mon May 19, 2008 2:55 pm
by Valdez
Here are my Python files. And I must have to create this TINA_Testing.py file I am guessing? If this is the case I need to know how and what to put into it.
There you go, tell me if you find anything.
Thanks,
Valdez

Re: Lost with Python
Posted: Mon May 19, 2008 3:31 pm
by D'Lanor
You have to remove the .py extensions from these:
Code: Select all
modPageDefs = __import__('TINA_TestingPageDefs.py')
from TINA_TestingJournals.py import *
Then add the following file to your pak:
TINA_Testing.zip
That will take care of the error: "Python file TINA_Testing.py was not found". It is just an empty placeholder file like most of the Cyan ages have.
Re: Lost with Python
Posted: Mon May 19, 2008 4:39 pm
by Valdez
YAY! My journals work. But with a problem, it doesn't register my journal cover. I pointed it to the right file, but I don't know how it finds it. What are some common problems and how do you fix them?
Re: Lost with Python
Posted: Mon May 19, 2008 9:50 pm
by Grogyan
The image needs to be in your Age somewhere, at least thats the motto i'm following.
If the image is the exact same image used on your book model, then you should be ok
Re: Lost with Python
Posted: Tue May 20, 2008 4:08 pm
by Valdez
Wait, does that mean the image
HAS to be the same as the one you used for the book model? Because I hope not

.