ffleader1 Posted February 11, 2017 Posted February 11, 2017 (edited) So I was trying to make a graphical enhancing mod to a Visual Novel (MYTH from MG). Anyway, everything works fine for the most part. However, all the small images that I can hover on has a little straight bar next to it. Pretty much these: So, if anybody who is familiar with Ren'py, can you help we to know what could be the cause of this. (I have multiplier every size and position proportional to the upscaled image, which is from 600x480 to 1440x1080, and still this happen, so I have no idea. This does not look like I have overcut something from the original image to begin with) Thank you in advance. Edited February 11, 2017 by ffleader1 Quote
Narcosis Posted February 11, 2017 Posted February 11, 2017 (edited) Seems like a classic texture artifacting caused by bad render. This can be preety much anything, from minor coding bugs to bad/misplaced art assets up to personal driver issues. What kind of "graphic enchancing" are you talking about? Edited February 11, 2017 by Narcosis Quote
ffleader1 Posted February 11, 2017 Author Posted February 11, 2017 38 minutes ago, Narcosis said: Seems like a classic texture artifacting caused by bad render. This can be preety much anything, from minor coding bugs to bad/misplaced art assets up to personal driver issues. What kind of "graphic enchancing" are you talking about? Just replacing all the assets with bigger ones, 2.25 times bigger. Like if the BG were 600x480 then it is now 1440x1080. That is all. I don't think it's my driver issue tbh. Bad/misplaced could be a thing, but when I tried to add/subtract a pixel of the crop command, it crashes and returns the error that image does not fit or something like that, so I guess the cropping part is fine. So I am out of idiea :< Quote
ffleader1 Posted February 11, 2017 Author Posted February 11, 2017 1 hour ago, Narcosis said: Seems like a classic texture artifacting caused by bad render. This can be preety much anything, from minor coding bugs to bad/misplaced art assets up to personal driver issues. What kind of "graphic enchancing" are you talking about? The good news is that I seem to have identified the problem. That is I need to add 1 more pixel to the crop area. I used this method to scale: x= int(2.25*401) Something like that so it kinda round down a pixel. However, when I try to add a SING pixel, x= int(2.25*401+1) I got this beautiful error: I'm sorry, but an uncaught exception occurred. While loading <'AlphaMask' <'Crop' <'Crop' <'Image' u'sys/btn/pop_log.png'> 532 0 266 63> 0 0 133 63> <'MatrixColor' <'Crop' <'Crop' <'Image' u'sys/btn/pop_log.png'> 532 0 266 63> 133 0 133 63> (-1, 0, 0, 0, 1, 0, -1, 0, 0, 1, 0, 0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1)>>: File "game/start.rpy", line 321, in script call File "game/script/flow.rpy", line 13, in script call File "game/script/R1_MYTH00.rpy", line 669, in script File "game/defines/image_filters.rpy", line 94, in render error: subsurface rectangle outside surface area. -- Full Traceback ------------------------------------------------------------ Full traceback: File "E:\MYTH\MYTH\renpy\bootstrap.py", line 290, in bootstrap renpy.main.main() File "E:\MYTH\MYTH\renpy\main.py", line 487, in main run(restart) File "E:\MYTH\MYTH\renpy\main.py", line 147, in run renpy.execution.run_context(True) File "E:\MYTH\MYTH\renpy\execution.py", line 761, in run_context context.run() File "game/start.rpy", line 321, in script call File "game/script/flow.rpy", line 13, in script call File "game/script/R1_MYTH00.rpy", line 669, in script File "E:\MYTH\MYTH\renpy\ast.py", line 1275, in execute renpy.exports.with_statement(trans, paired) File "E:\MYTH\MYTH\renpy\exports.py", line 1376, in with_statement return renpy.game.interface.do_with(trans, paired, clear=clear) File "E:\MYTH\MYTH\renpy\display\core.py", line 2062, in do_with clear=clear) File "E:\MYTH\MYTH\renpy\display\core.py", line 2492, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs) File "E:\MYTH\MYTH\renpy\display\core.py", line 2845, in interact_core self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn) File "E:\MYTH\MYTH\renpy\display\core.py", line 1921, in draw_screen renpy.config.screen_height, File "renpy/display/render.pyx", line 416, in renpy.display.render.render_screen (gen\renpy.display.render.c:6687) rv = render(root, width, height, 0, 0) File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\layout.py", line 685, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\transition.py", line 497, in render top = render(self.new_widget, width, height, st, at) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\layout.py", line 685, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\layout.py", line 685, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\screen.py", line 623, in render child = renpy.display.render.render(self.child, w, h, st, at) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\layout.py", line 685, in render surf = render(child, width, height, cst, cat) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "renpy/display/accelerator.pyx", line 108, in renpy.display.accelerator.transform_render (gen\renpy.display.accelerator.c:2027) cr = render(child, widtho, heighto, st - self.child_st_base, at) File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\behavior.py", line 707, in render rv = super(Button, self).render(width, height, st, at) File "E:\MYTH\MYTH\renpy\display\layout.py", line 1073, in render st, at) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\image.py", line 294, in render return wrap_render(self.target, width, height, st, at) File "E:\MYTH\MYTH\renpy\display\image.py", line 125, in wrap_render rend = render(child, w, h, st, at) File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "game/defines/image_filters.rpy", line 94, in render File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen\renpy.display.render.c:3321) cpdef render(d, object widtho, object heighto, double st, double at): File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen\renpy.display.render.c:2859) rv = d.render(widtho, heighto, st, at) File "E:\MYTH\MYTH\renpy\display\im.py", line 473, in render im = cache.get(self) File "E:\MYTH\MYTH\renpy\display\im.py", line 200, in get surf = image.load() File "E:\MYTH\MYTH\renpy\display\im.py", line 1516, in load basesurf = cache.get(self.base) File "E:\MYTH\MYTH\renpy\display\im.py", line 200, in get surf = image.load() File "E:\MYTH\MYTH\renpy\display\im.py", line 874, in load return cache.get(self.image).subsurface((self.x, self.y, File "E:\MYTH\MYTH\renpy\display\im.py", line 200, in get surf = image.load() File "E:\MYTH\MYTH\renpy\display\im.py", line 875, in load self.w, self.h)) File "src/pygame_sdl2/surface.pyx", line 616, in pygame_sdl2.surface.Surface.subsurface (gen\pygame_sdl2.surface.c:8615) error: subsurface rectangle outside surface area. Windows-8-6.2.9200 Ren'Py 6.99.12.2.2029 MYTH (All Ages) 1.0 I know it is long as hell, Can you just glance at it to tell me what should I do. Else I will just have to keep messing up random things until it get it right. Quote
ffleader1 Posted February 13, 2017 Author Posted February 13, 2017 Okay, so I figured out the problem. Apparently the images are not the same sizes and devs just crop them by code, from image to image. Anyway, I have to use paint to crop out 1-2 pixel of the images, and the are a handful of them. Just put this here in case anyone with a similar situation need this. Narcosis 1 Quote
Narcosis Posted February 13, 2017 Posted February 13, 2017 6 hours ago, ffleader1 said: Apparently the images are not the same sizes and devs just crop them by code, from image to image Jesus Christ. How lazy, lol. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.