Lost with Python

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Re: Lost with Python

Postby D'Lanor » Thu May 15, 2008 4:43 pm

That is a link in my post.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Lost with Python

Postby Valdez » Thu May 15, 2008 6:12 pm

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. ;)

Log Files with AlcScript.zip
The Python log file with alcscript.
(7.83 KiB) Downloaded 323 times


Tell me if you have any suggestions.
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Lost with Python

Postby D'Lanor » Sun May 18, 2008 7:21 pm

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.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Lost with Python

Postby Valdez » Sun May 18, 2008 7:48 pm

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.
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Lost with Python

Postby D'Lanor » Mon May 19, 2008 1:42 am

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.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Lost with Python

Postby Valdez » Mon May 19, 2008 2:55 pm

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.

TINA_Testing Python.zip
The zipped and updated Python files.
(6.62 KiB) Downloaded 315 times


There you go, tell me if you find anything.

Thanks,
Valdez :geek:
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Lost with Python

Postby D'Lanor » Mon May 19, 2008 3:31 pm

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.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Lost with Python

Postby Valdez » Mon May 19, 2008 4:39 pm

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?
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Lost with Python

Postby Grogyan » Mon May 19, 2008 9:50 pm

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
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Lost with Python

Postby Valdez » Tue May 20, 2008 4:08 pm

Wait, does that mean the image HAS to be the same as the one you used for the book model? Because I hope not :( .
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

PreviousNext

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron