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:33 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  [ 49 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Enerccio has questions
PostPosted: Sun Nov 19, 2006 3:45 pm 
Miko-Class Veteran
User avatar

Joined: Thu Oct 26, 2006 4:23 pm
Posts: 605
Location: Slovakia, Kosice
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
I am working with basic dse tutrial and please how to make a something like when day=7 special event takes place and event table even not appeard. Arigato. :D


Last edited by Enerccio on Mon Nov 20, 2006 5:17 pm, edited 1 time in total.

Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 3:50 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
in main.rpy, after label day, you can add a check that sees what day it is, does something special, and then jumps back to day.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 3:59 pm 
Miko-Class Veteran
User avatar

Joined: Thu Oct 26, 2006 4:23 pm
Posts: 605
Location: Slovakia, Kosice
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
PyTom wrote:
in main.rpy, after label day, you can add a check that sees what day it is, does something special, and then jumps back to day.

Thanks. :D
And if i want to make like each 7 day there will be no school?


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 4:15 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
You need to change the contents of dp_period_names, dp_period_vars, and dp_period_acts each day so that it reflects the activities that are available each day.

(I suspect this will be easier when I write the new tokimeki-style DSE, which focus more on action selection rather then day planning.)

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 4:56 pm 
Eileen-Class Veteran
User avatar

Joined: Mon Sep 19, 2005 2:15 am
Posts: 1284
Location: Florida
PyTom wrote:
(I suspect this will be easier when I write the new tokimeki-style DSE, which focus more on action selection rather then day planning.)


Yay. Does that mean it'll be easier to read and comprehend?

I always loved the DSE engine, but I couldn't think my way through all the programming required.

_________________
Obviously, this post has way too much text.

Love is my weapon and trust is my armor!


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 5:03 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
BCS wrote:
Yay. Does that mean it'll be easier to read and comprehend?


The goal is to make it easier and less magical. But that doesn't mean it will be totally easy... Dating sims are complicated, compared to visual novels, and at least some fraction of that complexity will need to be exposed to the developer.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 5:55 pm 
Lemma-Class Veteran
User avatar

Joined: Sat Oct 08, 2005 7:57 am
Posts: 4100
Location: France
BCS wrote:
I always loved the DSE engine, but I couldn't think my way through all the programming required.


If you have a thorough project behind this, remember there are coders to hire ;). At least that's one thing I'm sure to succeed in compared to graphics and story :)


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 6:41 pm 
Miko-Class Veteran
User avatar

Joined: Thu Oct 26, 2006 4:23 pm
Posts: 605
Location: Slovakia, Kosice
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
PyTom wrote:
in main.rpy, after label day, you can add a check that sees what day it is, does something special, and then jumps back to day.

in main.rpy and events.rpy you can use all things like in script.rpy (ie showing backgrounds, playing music, moving characters...)


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 7:06 pm 
Miko-Class Veteran
User avatar

Joined: Thu Oct 26, 2006 4:23 pm
Posts: 605
Location: Slovakia, Kosice
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
I got this problem:
when i compile script all is right but when i play it and click on new game:
Code:
I'm sorry, but an exception occured while executing your Ren'Py
script.

TypeError: 'tuple' object is not callable

While executing game script on line 49 of c:\Documents and Settings\Enerccio\Desktop\renpy\Shikigami Academy/game/day_planner.rpy.
While executing python code on line 76 of c:\Documents and Settings\Enerccio\Desktop\renpy\Shikigami Academy/game/day_planner.rpy.

-- Full Traceback ------------------------------------------------------------

  File "c:\Documents and Settings\Enerccio\Desktop\renpy\renpy\bootstrap.py", line 164, in bootstrap
  File "c:\Documents and Settings\Enerccio\Desktop\renpy\renpy\main.py", line 231, in main
  File "c:\Documents and Settings\Enerccio\Desktop\renpy\renpy\execution.py", line 97, in run
  File "c:\Documents and Settings\Enerccio\Desktop\renpy\renpy\ast.py", line 379, in execute
  File "c:\Documents and Settings\Enerccio\Desktop\renpy\renpy\python.py", line 837, in py_exec_bytecode
  File "c:\Documents and Settings\Enerccio\Desktop\renpy\Shikigami Academy/game/day_planner.rpy", line 76, in <module>
TypeError: 'tuple' object is not callable

While executing game script on line 49 of c:\Documents and Settings\Enerccio\Desktop\renpy\Shikigami Academy/game/day_planner.rpy.
While executing python code on line 76 of c:\Documents and Settings\Enerccio\Desktop\renpy\Shikigami Academy/game/day_planner.rpy.

Ren'Py Version: Ren'Py 5.6.3a


Code:
day_planner
# This contains code for the new day planner. You probably
# don't want to change this file, but it might make sense to
# change many of the variables or styles defined here from
# other files.

init -100:

    python:

        # A window placed behind the day planner (empty).
        style.create('dp_window', 'window')
        style.dp_window.ypos = 300
        style.dp_window.yanchor = 'top'

        # The grid containing the three choices in the day planner.
        style.create('dp_grid', 'default')
        style.dp_grid.xfill = True
       
        # Windows containing the groups of choices in the day planner.
        style.create('dp_choice', 'default')
        style.dp_choice.xpos = 0.5
        style.dp_choice.xanchor = 'center'

        # Action buttons.
        style.create('dp_button', 'button')
        style.create('dp_button_text', 'button_text')

        style.create('dp_done_button', 'button')
        style.create('dp_done_button_text', 'button_text')

        style.dp_done_button.ypos = 0.95
        style.dp_done_button.yanchor = 'bottom'
       
        # Labels.
        style.create('dp_label', 'default')
        style.dp_label.xpos = 0.5
        style.dp_label.xanchor = 'center'

        # The amount of padding between the label and the action
        # in a choice.
        dp_padding = 12

        # The amount of padding between the choices and done.
        dp_done_padding = 32

        # The title of the done button.
        dp_done_title = "Done Planning Day"

[b]    python:[/b]

        # A list of the periods of the day that are present in the
        # day planner. This can be changed at runtime.
        dp_period_names = [ "Morning", "Afternoon", "Evening" ]

        # A list of variables that will take the selected choices
        # for each of the periods named above.
        dp_period_vars = [ "morning_act",
                           "afternoon_act",
                           "evening_act", ]

        # A map from the period names to a list of the activities
        # available for that period. This may be conputed before
        # each call to day_planner. Each entry is a tuple, where
        # the first element is the name shown to the user, and the
        # second is the name assigned to the variable for that
        # period.
        dp_period_acts = {       
            'Morning': [
            ( 'School', "class" ),
            ( 'Train', "train"),
            ( 'Cut Class', "cut"),
            ],
           
            'Afternoon': [
            ( 'Study', "study" ),
[b]            ( 'Train', "trainev" ),[/b]
            ( 'Fight Hollows', "hollow" ),
            ( 'Hang Out', "hang" ),
            ],
           
            'Evening' : [
            ( 'Study', "cut"),
            ( 'Guard job', "work"),
            ( 'Train Magic', "magic" ),
            ( 'Play Games', "play" ),
            ],
            }

       

# We assume that the various period variables have been assigned
# default values by this point.
label day_planner:

    call dp_callback from _call_dp_callback_1

    python hide:

        renpy.choice_for_skipping()

        ui.window(style='dp_window')
        ui.vbox(dp_done_padding)

        ui.grid(len(dp_period_names), 1, xfill=True, style='dp_grid')

        # True iff every period has a valid value.
        can_continue = True

        for period, var in zip(dp_period_names, dp_period_vars):

            ui.window(style='dp_choice')
            ui.vbox()

            _label_factory(period, "dp")
            ui.null(height=dp_padding)

            valid_value = False

            for label, value in dp_period_acts[period]:

                def clicked(var=var, value=value):
                    setattr(store, var, value)
                    return True

                valid_value |= getattr(store, var) == value

                _button_factory(label, "dp",
                                selected = getattr(store, var) == value,
                                clicked=clicked)

            can_continue &= valid_value

            ui.close()

        ui.close()

        if can_continue:
            clicked = lambda : False
        else:
            clicked = None
           
        _button_factory(dp_done_title, "dp_done",
                        clicked = clicked )

        ui.close()

       
    if ui.interact():
        jump day_planner

    return


black text is the where the error is.
Can anyone help please :(


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 10:57 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Are you sure the comma is there on lines 75 and 76? This error is almost always caused by a missing comma.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 8:51 am 
Miko-Class Veteran
User avatar

Joined: Thu Oct 26, 2006 4:23 pm
Posts: 605
Location: Slovakia, Kosice
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
In renpy is fun that each time you amke dsomething wrong the error is tottaly wrong - like when i do not have one word error wos actualy talking about something very other.... very funny :lol: :lol: :lol:


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 8:57 am 
Lemma-Class Veteran

Joined: Sat Jan 10, 2004 6:03 am
Posts: 3175
I'm not sure about what you want (to say), but I'm around quite often, you can formulate the request in Slovak and I'll translate it so that you can fix the problem quicker if you need to. Less of a hassle, probably.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 9:46 am 
Miko-Class Veteran
User avatar

Joined: Thu Oct 26, 2006 4:23 pm
Posts: 605
Location: Slovakia, Kosice
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
mikey wrote:
I'm not sure about what you want (to say), but I'm around quite often, you can formulate the request in Slovak and I'll translate it so that you can fix the problem quicker if you need to. Less of a hassle, probably.

Takze napriklad ked nieco zle napisem:
priklad:
$ zanjutsu = Stat('Zanjutsu', 5, 200) som napisal
$ zanjutsu = ('Zanjutsu', 5, 200)

a hra mi vyhodila v uplne inom riadku kde bol tento kod ze
$ shown_stats = [ zanjutsu, hakuda, hohou, kidou, shikai, bankai, relax ]
ze neexistuje premennna Hodou ktoru som len raz pouzil aj to som ju potom zmazal (lebo spravne je hohou)
cize chyba uplne odveci ktora vobec nesuvisela....

druhy priklad:
pridal som
$ event("cut3", "act == 'cut' and relax >= 50", event.choose_one('cut'), priority=200)

a

label cut3:

"I cut class, and spend the morning drinking in the bar. Unfortunately you got sick..."
$ hohou.value -= 15
$ kidou.value -= 15
$ shikai.value -= 10
$ relax.value -= 30

return

a mne to vypisovalo chybu ze nie je definovana premenna intelligence cize dalsia chyba uplne odveci... :lol: :lol: :lol:
(a v tom druhom dokonca ani neviem kde je chyba...)


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 10:08 am 
Lemma-Class Veteran

Joined: Sat Jan 10, 2004 6:03 am
Posts: 3175
So, the translation:

----------------------------------
So when I write something wrong, for instance:
Code:
    $ zanjutsu = Stat('Zanjutsu', 5, 200)

I wrote as
Code:
    $ zanjutsu = ('Zanjutsu', 5, 200)


And the game reported an error in a different line number:
Code:
   $ shown_stats = [ zanjutsu, hakuda, hohou, kidou, shikai, bankai, relax ]

that there doesn't exist the variable Hodou, which I have used only once, and deleted it afterwards (because correctly it's hohou)
So a completely unrelated error [message].


---

Another example:
I added

Code:
$ event("cut3", "act == 'cut' and relax >= 50", event.choose_one('cut'), priority=200)

and
Code:
   label cut3:
 "I cut class, and spend the morning drinking in the bar. Unfortunately you got sick..."
$ hohou.value -= 15
$ kidou.value -= 15
$ shikai.value -= 10
$ relax.value -= 30

return

and it kept reporting the error that the intelligence variable is not defined., so another competely unrelated error :lol:
In the second [example], I don't even know where the actual error is.

----------------------------------

Hope this helps. From my limited experience, sometimes it helps to delete the .rpyc files when you made changes that don't seem to show.

Also, I have noticed that you can get a lot of errors when your files are in capitals, SCRIPT.RPY isn't the same as script.rpy.

But these are just my general obvservations, better to wait for proper help. Good luck. :P


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 10:15 am 
Miko-Class Veteran
User avatar

Joined: Thu Oct 26, 2006 4:23 pm
Posts: 605
Location: Slovakia, Kosice
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
I do that and no effect. In first erro when i corrected with word Stat error dissapeard, but in second one i dont know what is wrong...
Thx Mikey for translation :) I hope to see you in manga.sk forums :D


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: apricotorange, briannavon


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