Character not clothed

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Character not clothed

#1 Post by Tessiellation »

Hello Ren'py users :)
So my character looks like this
https://puu.sh/BfmxK/97667586c4.png

And I defined the image tags like this

Code: Select all

me scared casual
So the facial expression is working, but not the clothes.

My outfit are defined like this

Code: Select all

layeredimage outfits:

    group clothes:

        attribute maid:
            "outfit_2"

        attribute causal:
            "outfit_1"
have I missed something? I am getting no errors.

User avatar
dGameBoy101b
Regular
Posts: 31
Joined: Sun Aug 12, 2018 8:32 am
itch: dgameboy101b
Contact:

Re: Character not clothed

#2 Post by dGameBoy101b »

Could you provide the character definition?

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character not clothed

#3 Post by Tessiellation »

Hello again, your help is much appreciated :D Of course.

Code: Select all

image side august = LayeredImageProxy("doll", Transform(crop=(0, 0, 497, 400), zoom=0.7, xoffset=-50))
#end sideimage

#begin sideimage_name
define me = Character("[name]", image="august", color="#FFFFFF")
I kept the image tag August, because if I edit it, my sprite disappears :S

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Character not clothed

#4 Post by trooper6 »

Well...the image you have defined for the main character is "august"...the layeredimage you've named "outfits"...so...the outfits aren't showing up because they are different images. You want to include the outfits in your august layered image.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character not clothed

#5 Post by Tessiellation »

Ok, but I don't have a layered image called "august," but it's called "doll", so do I just include the outfits to the doll layer?

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Character not clothed

#6 Post by trooper6 »

Well, if your want your doll to have clothes, then you do need to have the clothes included in the doll layered image.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character not clothed

#7 Post by Tessiellation »

Alright, well, I tried adding it in, but I get this error now

Code: Select all

[code]
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 16, in script
    call screen dressup_example
  File "renpy/common/000statements.rpy", line 519, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "game/definitions.rpy", line 95, in <module>
    if outfits == 1:
NameError: name 'outfits' is not defined

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

Full traceback:
  File "game/script.rpy", line 16, in script
    call screen dressup_example
  File "D:\renpy-7.0.0-sdk\renpy\ast.py", line 1828, in execute
    self.call("execute")
  File "D:\renpy-7.0.0-sdk\renpy\ast.py", line 1816, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "D:\renpy-7.0.0-sdk\renpy\statements.py", line 177, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 519, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "D:\renpy-7.0.0-sdk\renpy\exports.py", line 2710, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "D:\renpy-7.0.0-sdk\renpy\ui.py", line 287, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "D:\renpy-7.0.0-sdk\renpy\display\core.py", line 2649, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "D:\renpy-7.0.0-sdk\renpy\display\core.py", line 3132, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "D:\renpy-7.0.0-sdk\renpy\display\core.py", line 2055, in draw_screen
    renpy.config.screen_height,
  File "render.pyx", line 485, in renpy.display.render.render_screen
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 717, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 717, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 717, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\screen.py", line 669, in render
    child = renpy.display.render.render(self.child, w, h, st, at)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 717, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 1117, in render
    st, at)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 717, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "accelerator.pyx", line 108, in renpy.display.accelerator.transform_render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\image.py", line 495, in render
    return wrap_render(self.target, width, height, st, at)
  File "D:\renpy-7.0.0-sdk\renpy\display\image.py", line 306, in wrap_render
    rend = render(child, w, h, st, at)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 717, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 331, in render
    surf = render(self.child, width, height, st, at)
  File "render.pyx", line 145, in renpy.display.render.render
  File "render.pyx", line 233, in renpy.display.render.render
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 1258, in render
    self.update(st, at)
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 1245, in update
    child, redraw = self.function(st, at, *self.args, **self.kwargs)
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 1316, in condition_switch_show
    return condition_switch_pick(switch), None
  File "D:\renpy-7.0.0-sdk\renpy\display\layout.py", line 1309, in condition_switch_pick
    if renpy.python.py_eval_bytecode(code):
  File "D:\renpy-7.0.0-sdk\renpy\python.py", line 1936, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/definitions.rpy", line 95, in <module>
    if outfits == 1:
NameError: name 'outfits' is not defined

Windows-8-6.2.9200
Ren'Py 7.0.0.196
Almost 1.0
Sat Aug 18 21:17:17 2018
[/code]

This is no matter if i call it outfit or outfits....

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character not clothed

#8 Post by Tessiellation »

Wait, I'm being stupid I got it to work.. Thank you so much!

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character not clothed

#9 Post by Tessiellation »

I really appreciate the help :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]