Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 12:13 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Tue May 15, 2012 9:20 am 
Veteran

Joined: Sat Feb 26, 2011 9:36 am
Posts: 264
Location: Κωνσταντινούπολη, Βασιλεύα των Ρωμαύων
Projects: Rzeczpospolita Polska 1647
I copy-pasted that exact code. When the game runs, it displays no number. Instead the game displays "Downcount: [counter.downCount]" verbatim.

Hmm... could this be a problem with Ren'Py 6.12?

_________________
One Province Minor - 120 class variables and still counting!

Because there is no such thing as too many variables.


Top
 Profile Send private message  
 
PostPosted: Tue May 15, 2012 9:22 am 
Regular

Joined: Tue Mar 22, 2011 2:36 pm
Posts: 72
Maybe yes, I use 6.13.12

_________________
Image
.Traditional Chinese Site.
~Illustrator+Graphic/Web Designer~


Top
 Profile Send private message  
 
PostPosted: Tue May 15, 2012 10:11 am 
Miko-Class Veteran
User avatar

Joined: Tue Jul 24, 2007 12:58 pm
Posts: 526
I think it might get fussy about having the dots within the %()d format. Maybe try something like:

Code:
$ variable = counter.downCount
"Downcount: %(variable)i"


to replace "Downcount: [counter.downCount]" ?

Haven't tested that, though.


Top
 Profile Send private message  
 
PostPosted: Tue May 15, 2012 3:49 pm 
Veteran

Joined: Sat Feb 26, 2011 9:36 am
Posts: 264
Location: Κωνσταντινούπολη, Βασιλεύα των Ρωμαύων
Projects: Rzeczpospolita Polska 1647
^ Yes, that is proven to work. Although since I have like a few hundred variables, and (IIRC) that method has to update the variable every time the class variable is changed, things can get clumsy really fast.

EDIT: Shuen's method works with 6.13+. I guess I can take over from here. Thanks guys!

_________________
One Province Minor - 120 class variables and still counting!

Because there is no such thing as too many variables.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: apricotorange, chewpower


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group