Quick journals question

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

Quick journals question

Postby Doobes » Tue Oct 11, 2011 1:30 pm

So I've finally put a journal into my Age. After much troubleshooting, everything comes up perfectly, cover and all...

...except where apostrophes and quotations are in the text, I have large spaces between the letters. So instead of don't, I get don____t.

I used the three apostrophe method DLanor mentioned in Andy's tutorial thread over at the GoMa forums. Like this:

DefEdRaJournal = '''Text goes here.'''


According to the aforementioned thread, I should be able to type normally as long as it's within two sets of three apostrophes. I also have tried the regular, all-on-one-line method, with the \' ,and I STILL get large gaps where the ' is, only with a \ before it. Example: don't now looks like don\_____t.

Thoughts?
KI #s: MOULa - 6302, Minkata - 35287, Gehn - 14291,
TOC - 82340, DI - 44387
Image
User avatar
Doobes
 
Posts: 216
Joined: Thu Aug 07, 2008 6:08 pm
Location: Savannah, GA, USA

Re: Quick journals question

Postby tachzusamm » Tue Oct 11, 2011 3:12 pm

Hmm...
does the font you used actually have an apostrophe defined?
Which font did you use?
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: Quick journals question

Postby Doobes » Tue Oct 11, 2011 3:37 pm

The "Tricia" font. I take it it doesn't have one then?

EDIT: I switched to the "Michelle" font and the problem still exists. Do only a select few have the apostrophe defined?
KI #s: MOULa - 6302, Minkata - 35287, Gehn - 14291,
TOC - 82340, DI - 44387
Image
User avatar
Doobes
 
Posts: 216
Joined: Thu Aug 07, 2008 6:08 pm
Location: Savannah, GA, USA

Re: Quick journals question

Postby tachzusamm » Tue Oct 11, 2011 3:51 pm

The Tricia font does have an apostrophe as far as I can see with PlasmaShop.
*shrug*

Maybe you could try to use double quotes (") <== this is *not* two single quotes like ('')
instead of the triple single quotes?

Like:
DefEdRaJournal = "Text with the word D'ni goes here."

(Not sure if this is accepted Journal syntax though.)
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: Quick journals question

Postby D'Lanor » Tue Oct 11, 2011 4:45 pm

What program (and version) are you using to compile your Python files? It looks to me like the program is trying to do some clever pre-processing and fails miserably.
"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: Quick journals question

Postby Doobes » Tue Oct 11, 2011 6:41 pm

I'm using PlasmaShop. Not sure what version it is (can't find an "About" option). Any recommendations for an upgrade (ie something that WORKS :P )?
KI #s: MOULa - 6302, Minkata - 35287, Gehn - 14291,
TOC - 82340, DI - 44387
Image
User avatar
Doobes
 
Posts: 216
Joined: Thu Aug 07, 2008 6:08 pm
Location: Savannah, GA, USA

Re: Quick journals question

Postby tachzusamm » Wed Oct 12, 2011 2:09 am

When you show the properties (right-click) of the PlasmaShop.exe (not the link to it, in case you made one), you should see something like this in version tab:
PS_226.png
PS_226.png (7.72 KiB) Viewed 8985 times

which means, you have the 2.26 version (um, yeah).

Get the latest "PlasmaShop 2.x (stable)" version here:
viewtopic.php?f=86&t=2639

PlasmaShop 3.0 Beta does not support compiling Python files, so take the 2.x one.


To check if it does some bad things with your text, you could decompyle your .PAK (better don't save the decompyled files to the same directory where your sources are, or it will OVERWRITE you original code), and compare then if the decompyled versions look different to your code.
To be safe, make a backup of your Python source files first.
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: Quick journals question

Postby D'Lanor » Wed Oct 12, 2011 3:07 am

tachzusamm wrote:PlasmaShop 3.0 Beta does not support compiling Python files, so take the 2.x one.

Actually that functionality has been recently added to PlasmaShop 3. And since this is new it may still have bugs.

Personally I prefer UruPython. Simple and always reliable.
"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: Quick journals question

Postby tachzusamm » Wed Oct 12, 2011 5:13 am

Because I wanted to know if PlasmaShop could be the problem, I made a test (with Tricia font).

Here's the belonging line in ageJournals.py:
Code: Select all
DefBuchSeite = "<font size=24 face=Tricia color=221166><p align=left>Shorah %s,\nwelcome to D'ni. Don't link out."

(I used double quotes here ("). Using triple single quotes (''') worked too.)

Compiled with PlasmaShop 2.2.6, it looked like this in the Age:
booktest.jpg
booktest.jpg (46 KiB) Viewed 8970 times


Seems there must be an additional problem, Doobes (assumed you still have the issue with PlasmaShop 2.2.6).
Could you show the full code you used?
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: Quick journals question

Postby Doobes » Wed Oct 12, 2011 12:14 pm

I just checked the version of PlasmaShop I have, and it's 2.2.4.350. I'll try upgrading and see what happens. Thank you both for all your help so far. :)

EDIT: Tried recompiling with both the newer version of PlasmaShop and with URUPython. Same results. Big spaces. I've used every valid format for the Journals.py file I've seen in tutorials and in other examples.

Could it be something wrong with one of the other files? PageDef maybe? Should the .py files be redone completely perhaps? Maybe reinstall Python 2.2 and 2.5?
KI #s: MOULa - 6302, Minkata - 35287, Gehn - 14291,
TOC - 82340, DI - 44387
Image
User avatar
Doobes
 
Posts: 216
Joined: Thu Aug 07, 2008 6:08 pm
Location: Savannah, GA, USA

Next

Return to Scripting

Who is online

Users browsing this forum: No registered users and 7 guests