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 Thu May 23, 2013 9:15 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  [ 3 posts ] 
Author Message
PostPosted: Sat Jun 23, 2012 1:25 am 
Regular
User avatar

Joined: Fri Apr 27, 2012 4:49 pm
Posts: 113
Location: Canada
Projects: The Silent Column
I'm working on my game "The Silent Column" again, and I've come across this error:
While running game code: File "game/part1.rpy", line 149, in script
Exception: Sayer gip is not a function or string.

I looked at the code, line 149 in part1.rpy. This is it:
Code:
gip"Hello."
(lol)
I went to script.rpy, and I have this, which is where the problem is:
Code:
#in the init block
    $GipName="Girl in the park"
    $gip=DynamicCharacter("GipName", color="#6ea73c", ctc_position="fixed", what_color="#6ea73c", what_prefix='"', what_suffix='"', ctc=anim.Blink("continue.png", xpos = 325, ypos =564))


I don't understand the problem. I followed this example perfectly, as far as I can tell:
Code:
init:
    $ povname = ""
    $ pov = DynamicCharacter("povname", color=(192, 64, 64, 255))

How do I solve this problem?

And also, I have another question. It's not so much a problem, but, I have
ctc_position="fixed", what_prefix='"', what_suffix='"', ctc=anim.Blink("continue.png", xpos = 325, ypos =564)
Tacked on at the end of every character (asside from my narrator character, who doesn't speak in quotes, obviously.) just so I have the continue animation and quotes around their text. Is there a better way of doing this? That feels like a lot of wasted space, especially since I have a lot of characters.

Thanks for your help, all of you :)

_________________
The Silent Column WIP thread.
I also support Image
I'd like to be a tree tree tree tree, woohoowoohoo woohoo, to be a tree -you're such a loud mouth. I'm the world champion, I bet you can't beat me. *squee* *squee* *squee* She's not a tree right? Not a tree, Dashie. Aa~! a~! a~! ah~! (loop)


Top
 Profile Send private message  
 
PostPosted: Sat Jun 23, 2012 2:39 am 
Veteran

Joined: Tue Jun 05, 2012 2:01 am
Posts: 375
Not sure about the error... copy-pasting your code into a new project appears to work just fine. Are you sure you actually put it into an init block?

As for the repetition... try something like this:

Code:
init python:
    def MyCharacter(name_expr, **properties):
        return Character(name_expr, dynamic=True, ctc_position="fixed", what_prefix='"', what_suffix='"', ctc=anim.Blink("continue.png", xpos = 325, ypos =564), **properties)


You can now use MyCharacter the same way you would use Character, but without the extra typing.


Top
 Profile Send private message  
 
PostPosted: Sat Jun 23, 2012 6:48 pm 
Regular
User avatar

Joined: Fri Apr 27, 2012 4:49 pm
Posts: 113
Location: Canada
Projects: The Silent Column
I am sure.
Thank you for the help with my other problem :) but...
... wait-
oh well herp derp, when I was creating flags later, I named one of them gip, not even a case difference.
some could choose to be annoyed at this but...
I'm glad it was an easy fix! :D yay! So now both of my problems are solved, thank you very much.

So to use your function, would it be like this?:
Code:
init python:
    def MyCharacter(name_expr, **properties):
        return Character(name_expr, dynamic=True, ctc_position="fixed", what_prefix='"', what_suffix='"', ctc=anim.Blink("continue.png", xpos = 325, ypos =564), **properties)
init:
    $GipName="Girl in the park"
    $gip=MyCharacter("GipName", color="#6ea73c", what_color="#6ea73c")


edit: it works! Thank you, good sir! :)

_________________
The Silent Column WIP thread.
I also support Image
I'd like to be a tree tree tree tree, woohoowoohoo woohoo, to be a tree -you're such a loud mouth. I'm the world champion, I bet you can't beat me. *squee* *squee* *squee* She's not a tree right? Not a tree, Dashie. Aa~! a~! a~! ah~! (loop)


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Zet


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