Tutorial: simple journals and Linking Books

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

Re: Tutorial: simple journals and Linking Books

Postby Sirius » Fri Jan 31, 2014 2:16 pm

I had a quick look in the files, it looks like the *0#0.hsm thing you specified is wrong. In the texture PRP, the name for the texture is python*10#0.hsm. Which means the image tag in your journal should be:
<img src="python*10#0.hsm" opacity=1.0 align=center blend=alpha>
Try this, normally this should work.
User avatar
Sirius
 
Posts: 1506
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: Tutorial: simple journals and Linking Books

Postby Karkadann » Fri Jan 31, 2014 3:11 pm

still no luck on the image in the journal, the movies work good though as long as the bink file has alpha layers

Deledrius wrote:Yeah, we cleaned up the Python to be less of a mess (and we're still working on making it even better ;) ). That plugin bug was fixed a long time ago.


perhaps I'll wait till the next update on the plugins for Max, for now I guess I'll leave the pythons to the coders.

thanks for the help I guess it just wasn't meant to be
The Optimist see's the glass half full, The Pessimist see's the glass half empty.
Its the Realist who see's the glass is half full with air, half full with water
User avatar
Karkadann
 
Posts: 1223
Joined: Sun Aug 02, 2009 10:04 am
Location: Earth

Re: Tutorial: simple journals and Linking Books

Postby Karkadann » Thu Jul 03, 2014 3:37 pm

I got the Linking book and the Bahro stone pythons to show up in the Components/python drop-down menu of Max but only after I deleted a few lines out of curiosity :?

127 ## Offline KI
128 import xLinkMgr
129 import booksDustGlobal

Unfortunately I seem to have solved one problem and caused another, :shock: I get a nice book and a stone but no links or images. :(

Im half way thier, but almost only counts in horse shoes :D
The Optimist see's the glass half full, The Pessimist see's the glass half empty.
Its the Realist who see's the glass is half full with air, half full with water
User avatar
Karkadann
 
Posts: 1223
Joined: Sun Aug 02, 2009 10:04 am
Location: Earth

Re: Tutorial: simple journals and Linking Books

Postby Sirius » Thu Jul 03, 2014 5:02 pm

Yeah, obviously, removing the two import lines means it breaks the linking system, which is contained in the Offline-KI.

It's good to know these two lines are the cause of the error, this means the Max plugin can't find the Offline-KI scripts because they only exist in the OKI's PAK file. Adding these scripts to Max might solve it, but I think they both import half a dozen more scripts, which might get a bit messy.
Does anyone know if Max always updates the Python scripts as well when exporting ? Disabling it would be waayyy easier. Otherwise, I'll have a look at all the files you need to add to Max.
User avatar
Sirius
 
Posts: 1506
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: Tutorial: simple journals and Linking Books

Postby Karkadann » Thu Jul 03, 2014 8:43 pm

OMG IT WORKED IT WORKED, images, links, the GUI

With Max you just hafta add xSimpleJournal.py the booksDustGlobal.py and xLinkMgr.py in with the xSimpleBahroStone.py and the xSimpleLinkingBook.py all of which can be found at

https://gitorious.org/offline-ki/offlin ... e3a587a257:
they can also get a copy from the offline-ki,pak and misc.pak in your Uru cc python folder


The best part off all, you just hafta fill in the "Clickable book" and the "age link to"

Thanks for the inspiration and patience
Last edited by Karkadann on Sun Apr 02, 2017 2:59 pm, edited 3 times in total.
The Optimist see's the glass half full, The Pessimist see's the glass half empty.
Its the Realist who see's the glass is half full with air, half full with water
User avatar
Karkadann
 
Posts: 1223
Joined: Sun Aug 02, 2009 10:04 am
Location: Earth

Re: Tutorial: simple journals and Linking Books

Postby Sirius » Fri Jul 04, 2014 2:04 am

Glad it works fine now ! :)

It's weird though, because the Max plugin imports booksDustGlobal and xLinkMgr to make sure they exist, but xLinkMgr also imports xxConfig and xUserKI, which you didn't add. And yet Max doesn't complain. Oh well...

Karkadann wrote:The best part off all, you just hafta fill in the "Clickable book" and the "age link to"
Yeah, I wanted it to be as simple as possible 8-)

However, Max probably created a new PAK file when exporting your Age. In case you're wondering, it isn't necessary to include it when releasing your Age, which is better to reduce the number of scripts already cluttering Uru's install.

I'll update the first post soon with this info, since it seems the "edit" button didn't vanish :)
User avatar
Sirius
 
Posts: 1506
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: Tutorial: simple journals and Linking Books

Postby Karkadann » Sun Jul 06, 2014 11:08 am

You know what might be a cool idea?! A linking stone in front of the imager in Relto. Set the python to the age your working on, set the spawn point to exactly where you need to be for inspection,
the linking panel can be a black void with the words "Under construction", you can leave notes or KI pics on the imager of what your working on, and you can set it all up as a prp file.

In theory,
The Optimist see's the glass half full, The Pessimist see's the glass half empty.
Its the Realist who see's the glass is half full with air, half full with water
User avatar
Karkadann
 
Posts: 1223
Joined: Sun Aug 02, 2009 10:04 am
Location: Earth

Re: Tutorial: simple journals and Linking Books

Postby Karkadann » Sat Aug 30, 2014 9:15 am

One thing I have been meaning to mention, I combine the Linking book python with a Responder/ LinkOut OneShot AV animation, when the book GUI pops up the cursor is no where to be found, however clicking the mouse still links you out.
The Optimist see's the glass half full, The Pessimist see's the glass half empty.
Its the Realist who see's the glass is half full with air, half full with water
User avatar
Karkadann
 
Posts: 1223
Joined: Sun Aug 02, 2009 10:04 am
Location: Earth

Re: Tutorial: simple journals and Linking Books

Postby Sirius » Sun Aug 31, 2014 2:10 am

Is that working ? The script doesn't support avatar animation, so forcing it to run when clicking the book in your scene could result in the avatar being frozen until you link out (which means being frozen completely if you put the book aside...)
User avatar
Sirius
 
Posts: 1506
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: Tutorial: simple journals and Linking Books

Postby diafero » Thu Sep 04, 2014 1:10 pm

Karkadann wrote:With Max you just hafta add booksDustGlobal.py and xLinkMgr.py in with the xSimpleBahroStone.py and the xSimpleLinkingBook.py all of which can be found at

https://gitorious.org/offline-ki/offlin ... e3a587a257:


A more permanent link to the latest version is: https://gitorious.org/offline-ki/offline-ki/source/HEAD:
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2966
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Previous

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests