Yes we figured out why the Syntax error, it was the indent.
Now, I'm fixing to find out if I understand how to "fill in the blanks" so to speak and try out your templates.
(just wished I knew what I was doing,hehehe)
Dynamic Book Template
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Dynamic Book Template
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
Re: Dynamic Book Template
D'Lanor wrote:Sorry, I got into the discussion late. So it is solved now?
btw, in UltraEdit I also get the extra indentation when I use Select All. Can that forum function be changed so that it makes a correct copy?
The code itself just selects the contents of the box, so I'm not sure where the error is actually happening. To be sure though, I suggest manually selecting the code in the box before pasting.
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Dynamic Book Template
Well, just tried it.
Hot spot on the book, but click and nothing happens, meaning, nope. I still don't know what I'm doing.
Hot spot on the book, but click and nothing happens, meaning, nope. I still don't know what I'm doing.
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
Re: Dynamic Book Template
The Python.0.elf logfile should tell you what is wrong. As I said, I will try to make the template more "foolproof", probably sometime this week.
"It is in self-limitation that a master first shows himself." - Goethe
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Dynamic Book Template
It's more than likely ME that's wrong D'Lanor
I can make an Age look pretty good, make it sound pretty good........
But when it comes to scripting, while I 'd like to think I have a logical mind, I feel like a babe in the woods.

I can make an Age look pretty good, make it sound pretty good........
But when it comes to scripting, while I 'd like to think I have a logical mind, I feel like a babe in the woods.
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
Re: Dynamic Book Template
All I am saying is that the Python logfile is your friend. It can give you a clue about what you are doing wrong.
"It is in self-limitation that a master first shows himself." - Goethe
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Dynamic Book Template
You are right, I'm using the Elf viewer right now. Last night I was too tired, and this morning after my post I had to jump in the car and take my son to school........now then.....
Hmmmmmm......it's saying it can't find the script file!
Let me remember.......
Trylon said to look at his clickable in his FuncChk age, and I did with the Gate button. The object has the following logic properties:
name: clickfileX = FuncChk01Clickables
I noticed that the new plugin uses "clickfileX" now instead of just "clickfile"
I went and looked, and saw that Trylon had a FuncChk.pak file, which contains 2 compiled python files: FuncChk01.py and FuncChk01Clickables.py
So obviously he was telling his object, the button, and pointed it to the FuncChk01Clickables.py in his pak file....right?
He also has the button listed in his ALCscript file, and also points it to that python file:
So, I created my click region, clicked on my book and when to logic properties and told it:
Name:clickfileX = _Campbravo_BookGUI
I then went to my ALCScript and added this to it:
I of course went through your templates, changed the parts that you indicated (at least I think I did), and made my external journal contents. Compiled all 3 files in to my Campbravo.pak (got no errors).
Then I exported my Age, linked in, and it gave me a click hot spot, but nothing happens when you click. And the log says it can't find the python file.....
Sooooo.......what did I do wrong?
EDIT: Just a few minutes later........for the love of god.......why me? WHY?????
*sigh* I just noticed.....uhm.....typo.......hehehehe
In the above, you see me say _Campbravo_BookGUI.py .......... and in Blender, it says in Logic Props, and ALCscript, _Campbravo_BookGUI
Guess what it says in my pak file??
_Campbravo_bookGUI.py
shaking my head here......one of these days, I'm going to learn how to type.......the b, the lousy b.....
Let me try again.
Hmmmmmm......it's saying it can't find the script file!

(01/29 20:26:38) Python file _Campbravo_BookGUI.py was not found.
Let me remember.......
Trylon said to look at his clickable in his FuncChk age, and I did with the Gate button. The object has the following logic properties:
name: clickfileX = FuncChk01Clickables
I noticed that the new plugin uses "clickfileX" now instead of just "clickfile"
I went and looked, and saw that Trylon had a FuncChk.pak file, which contains 2 compiled python files: FuncChk01.py and FuncChk01Clickables.py
So obviously he was telling his object, the button, and pointed it to the FuncChk01Clickables.py in his pak file....right?
He also has the button listed in his ALCscript file, and also points it to that python file:
Code: Select all
GateButton:
quickscript:
simpleclick:
pythonfile: funcChk01Clickables
region: GateBtnRegion
So, I created my click region, clicked on my book and when to logic properties and told it:
Name:clickfileX = _Campbravo_BookGUI
I then went to my ALCScript and added this to it:
Code: Select all
welcomebk:
quickscript:
simpleclick:
pythonfile: _Campbravo_BookGUI
region: welcomebkregion
I of course went through your templates, changed the parts that you indicated (at least I think I did), and made my external journal contents. Compiled all 3 files in to my Campbravo.pak (got no errors).
Then I exported my Age, linked in, and it gave me a click hot spot, but nothing happens when you click. And the log says it can't find the python file.....
Sooooo.......what did I do wrong?
EDIT: Just a few minutes later........for the love of god.......why me? WHY?????
*sigh* I just noticed.....uhm.....typo.......hehehehe
In the above, you see me say _Campbravo_BookGUI.py .......... and in Blender, it says in Logic Props, and ALCscript, _Campbravo_BookGUI
Guess what it says in my pak file??
_Campbravo_bookGUI.py
shaking my head here......one of these days, I'm going to learn how to type.......the b, the lousy b.....
Let me try again.
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Dynamic Book Template
Okay, still no Joy. Can click but nothing happens. Went back and looked at the log, and I get these errors:
Why is it looking for a Campbravo.py? I don't have anything pointed.......to.......it.........
Oooookay. Hang on.
Oh of course........
If I look at Trylon's age. He has those two python files. One is the same name as his Age. So it's looking for the samething with my Age, a Campbravo.py.
Which defines several things of course. When I link in, and do something like Click on a object that I said clickfileX for, it's looking into my pak file and trying to find a python file that has my Age name like Campbravo.py first.
I shouldn't be surprised at having to learn scripting just to get an Age right. All the mapping I did for FPS games, you have to use scripts if you want Exploders, objects moving (like elevators), and all sorts of different things. It's the same here.
Except in those games you were just having to create INI files (whos contents seemed to make a lot more sense), and of course so many people were doing them, that we had all the tutorials in the world to tell exactly what to do, so you really didn't have to think about it, or figure it out for yourself. It was already done for you.
(01/30 08:42:26) Python file Campbravo.py was not found.
(01/30 08:42:31) Traceback (most recent call last):
(01/30 08:42:31) File ".\python\_Campbravo_BookGUI.py", line 10, in ?
(01/30 08:42:31) import __Campbravo__PageDefs
(01/30 08:42:31) ImportError: No module named __Campbravo__PageDefs
(01/30 08:42:31) Python file _Campbravo_BookGUI.py was not found.
Why is it looking for a Campbravo.py? I don't have anything pointed.......to.......it.........
Oooookay. Hang on.
Oh of course........
If I look at Trylon's age. He has those two python files. One is the same name as his Age. So it's looking for the samething with my Age, a Campbravo.py.
Which defines several things of course. When I link in, and do something like Click on a object that I said clickfileX for, it's looking into my pak file and trying to find a python file that has my Age name like Campbravo.py first.
I shouldn't be surprised at having to learn scripting just to get an Age right. All the mapping I did for FPS games, you have to use scripts if you want Exploders, objects moving (like elevators), and all sorts of different things. It's the same here.
Except in those games you were just having to create INI files (whos contents seemed to make a lot more sense), and of course so many people were doing them, that we had all the tutorials in the world to tell exactly what to do, so you really didn't have to think about it, or figure it out for yourself. It was already done for you.
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
Re: Dynamic Book Template
oh oh.
it is "clickfile", not "clickfileX" - I probably added the X after the name to invalidate the key, so I could test the AlcScript settings
And ofcourse, I forgot to remove the X after the test...
As to the error you see, it looks like a bug in the script....
it is "clickfile", not "clickfileX" - I probably added the X after the name to invalidate the key, so I could test the AlcScript settings
And ofcourse, I forgot to remove the X after the test...
As to the error you see, it looks like a bug in the script....
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Dynamic Book Template
Remove the X from Clickfile.......aye-aye!
Just tried it out again (uhm, with clickfileX still in place, but with a Campbravo.py added) I don't get the Campbravo.py missing error anymore, but I am getting this:
Not sure what's going on. Looking in my pak file, I have:
Campbravo.py
_Campbravo_BookGUI.py
_Campbravo_PageDefs.py
_Campbravo_Journals.py
I'll make a new pak file, and re-add the python files. see what happens.
Just tried it out again (uhm, with clickfileX still in place, but with a Campbravo.py added) I don't get the Campbravo.py missing error anymore, but I am getting this:
(01/30 09:13:42) Traceback (most recent call last):
(01/30 09:13:42) File ".\python\_Campbravo_BookGUI.py", line 10, in ?
(01/30 09:13:42) import __Campbravo__PageDefs
(01/30 09:13:42) ImportError: No module named __Campbravo__PageDefs
(01/30 09:13:42) Python file _Campbravo_BookGUI.py was not found.
Not sure what's going on. Looking in my pak file, I have:
Campbravo.py
_Campbravo_BookGUI.py
_Campbravo_PageDefs.py
_Campbravo_Journals.py
I'll make a new pak file, and re-add the python files. see what happens.
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials