Page 1 of 2

Quick journals question

PostPosted: Tue Oct 11, 2011 1:30 pm
by Doobes
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?

Re: Quick journals question

PostPosted: Tue Oct 11, 2011 3:12 pm
by tachzusamm
Hmm...
does the font you used actually have an apostrophe defined?
Which font did you use?

Re: Quick journals question

PostPosted: Tue Oct 11, 2011 3:37 pm
by Doobes
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?

Re: Quick journals question

PostPosted: Tue Oct 11, 2011 3:51 pm
by tachzusamm
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.)

Re: Quick journals question

PostPosted: Tue Oct 11, 2011 4:45 pm
by D'Lanor
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.

Re: Quick journals question

PostPosted: Tue Oct 11, 2011 6:41 pm
by Doobes
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 )?

Re: Quick journals question

PostPosted: Wed Oct 12, 2011 2:09 am
by tachzusamm
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 9184 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.

Re: Quick journals question

PostPosted: Wed Oct 12, 2011 3:07 am
by D'Lanor
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.

Re: Quick journals question

PostPosted: Wed Oct 12, 2011 5:13 am
by tachzusamm
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 9169 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?

Re: Quick journals question

PostPosted: Wed Oct 12, 2011 12:14 pm
by Doobes
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?