haroldo-ok / BlocklyVN8bit

This is a mashup between BlocklyVN32X and 8Bit-Unity. It allows you to make Visual Novels for classic 8bit computers and consoles, using a visual scripting language.
Apache License 2.0
12 stars 0 forks source link

Fix handling of non-alphanumeric characters on image file names. #28

Closed haroldo-ok closed 1 year ago

haroldo-ok commented 2 years ago

Using symbolic characters on an image's file name causes bugs when generating the code.

-----Original Message-----

hi yes i can see a scrolling list of pictures now thank you! I duplicated pics and renamed them hi, so its hi(2).jpg hi(3).jpgthen i exported and got error are () not allowed in name? it was working before i duplicated the pictures (for c64, the atari and lynx didnt even beforehand). Cant wait to see NES in the list! 

-----Original Message----- From: Haroldo de Oliveira Pinheiro @.> To: haroldo-ok/BlocklyVN8bit @.> Cc: zartan9 @.>; Mention @.> Sent: Wed, Jun 1, 2022 6:59 pm Subject: Re: [haroldo-ok/BlocklyVN8bit] Problem when selecting between a large amount of images (Issue #24)

Okay, I realeased a new version; it should fix the compilation bug.Version 0.2.4: https://github.com/haroldo-ok/BlocklyVN8bit/releases/download/v0.2.4/BlocklyVN8bit-0.2.4.7z— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Originally posted by @zartan9 in https://github.com/haroldo-ok/BlocklyVN8bit/issues/24#issuecomment-1145366562

zartan9 commented 2 years ago

hi i went back to reinstall blocklyvn8bit but i cant find that version/ says not found. where is the latest version i can install? I have a version but it doesnt open in win 10. thnks!

haroldo-ok commented 2 years ago

Hello; the versions would be on the "Releases" page: https://github.com/haroldo-ok/BlocklyVN8bit/releases

zartan9 commented 2 years ago

Awesome ! Thanks! If i start making the game with current engine, would it work with new version (that includes NES support?) . Also if possible to get back to a mAIN menu at any time is there a way to set that up with a key press? Like option "mainmenu" if ...? be well :)

haroldo-ok commented 2 years ago

Awesome ! Thanks!

You're very welcome. 😀

If i start making the game with current engine, would it work with new version (that includes NES support?) .

Unfortunately, not quite:

Also if possible to get back to a mAIN menu at any time is there a way to set that up with a key press? Like option "mainmenu" if ...? be well :)

It should be possible; I recorded it for later implementation on #32

zartan9 commented 2 years ago

got it! Thats ok i like c64 more than nes!! tes Ill use it for mostly c64 .. i have like 30 pictures in one label, but it gets stuck on the one in photo (I have original on right). it seems like its trnsparent also where the moon/sun is so I'm hoping this can be fixed somehow? Thank you :)

haroldo-ok commented 2 years ago

It seems to be using some non-C64 colors, which may be confusing 8bit-Unity's image converter. For this one, I would recommend asking on the 8bit-Unity's forums: https://8bit-unity.com/?post_type=forum

zartan9 commented 2 years ago

hi i changed colors/used another picture ... the other picture works if its the first picture, but when it gets to 18th picture it freezes on that picture/gets corrupt.. any idea for that? I can send files if need be...

haroldo-ok commented 2 years ago

Hello;

That's weird; I wonder if there's a memory leakage or a memory overflow somewhere? If you show the 18th picture before the others, does the error occur right away, or does it happen with the 18th picture regardless of order?

Attaching the project could help checking what's going wrong.

zartan9 commented 2 years ago

projects - Copy.zip hi i tried picture reordering, it always happens around 18th picture (the text changes but the pictures stay stuck!) Ive included example hit 1, then 1 then keep hitting 1 :) Also I tried to see if its the same in other platforms but I only could get atari opening (probably since I dont have the other emulators set up right yet) but I got a weird screen : tes2 not related? Hope you can see where the issue is Im making progress otherwise!!!

haroldo-ok commented 2 years ago

Hello;

hi i tried picture reordering, it always happens around 18th picture (the text changes but the pictures stay stuck!) Ive included example hit 1, then 1 then keep hitting 1 :)

Thanks for the clarification; I shall take a look at the issue later on.

I tried to see if its the same in other platforms but I only could get atari opening (probably since I dont have the other emulators set up right yet) but I got a weird screen :

Weird; maybe it failed to load the program?

zartan9 commented 2 years ago

yes please keep me posted i did another section by chosing #2 and it does the same thing with the other set of pics (around 18!)

zartan9 commented 1 year ago

yes that you that works! I took out all the symbols and it can scroll in c64 thank you.

-----Original Message----- From: Haroldo de Oliveira Pinheiro @.> To: haroldo-ok/BlocklyVN8bit @.> Cc: zartan9 @.>; Mention @.> Sent: Fri, Jun 3, 2022 6:59 am Subject: [haroldo-ok/BlocklyVN8bit] Fix handling of non-alphanumeric characters on image file names. (Issue #28)

Using symbolic characters on an image's file name causes bugs when generating the code.-----Original Message-----hi yes i can see a scrolling list of pictures now thank you! I duplicated pics and renamed them hi, so its hi(2).jpg hi(3).jpgthen i exported and got error are () not allowed in name? it was working before i duplicated the pictures (for c64, the atari and lynx didnt even beforehand). Cant wait to see NES in the list! -----Original Message----- From: Haroldo de Oliveira Pinheiro @.> To: haroldo-ok/BlocklyVN8bit @.> Cc: zartan9 @.>; Mention @.> Sent: Wed, Jun 1, 2022 6:59 pm Subject: Re: [haroldo-ok/BlocklyVN8bit] Problem when selecting between a large amount of images (Issue #24)Okay, I realeased a new version; it should fix the compilation bug.Version 0.2.4: https://github.com/haroldo-ok/BlocklyVN8bit/releases/download/v0.2.4/BlocklyVN8bit-0.2.4.7z— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>Originally posted by @zartan9 in #24 (comment)— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

haroldo-ok commented 1 year ago

Update: it seems to be an error on the naming of the generated image variable:

#include "script.h"

const char *vi_club (1) = "club1.img";

void *vn_start()
{

  vnScene(vi_club (1));
  vnText("Test");

  return vn_start;
}

The file itself was already being renamed correctly; it is the name of the variable that is being generated incorrectly; correction in progress.

haroldo-ok commented 1 year ago

Fixed on version https://github.com/haroldo-ok/BlocklyVN8bit/releases/tag/v0.2.7