chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.54k stars 470 forks source link

New version breaks dialogue plugin #608

Open animasodo opened 4 years ago

animasodo commented 4 years ago

Describe the bug The latest update (beta4) breaks um3k's Display Dialogue Enhanced event and engine modifications (actor and top down files).

Expected behavior They should work like in previous versions. According to @pau-tomas , this is because of an extra validation. um3k's Display Dialogue Enhanced event should display more than 3 lines (4 for me), yet it only displays 3. The engine modifications should make the player move on a 16x16 grid, but I can't move the player. I attached a .zip with the modified files: engine.zip.

Platform (please complete the following information):

pau-tomas commented 4 years ago

To clarify, there's two issues here:

animasodo commented 4 years ago

Does the new version have changes in the actor and top-down files?

pau-tomas commented 4 years ago

Actor_a.s was changed for the vertical camera movement.

A list of changed files should be appearing in the log when you build the rom.

chrismaltby commented 4 years ago

On the enhanced dialogue plugin I can probably update the extra validation to allow some of the things this plugin is introducing, potentially even bring a lot of that functionality into the core dialogue event so the plugin isn't needed.

animasodo commented 4 years ago

Oh, that would be great, but I want to overflow the text, I'll use four lines, two of them for Japanese syllabic diacritics, like Pokemon, unless you supported those natively. Maybe you could just find a way?

There are only two syllabic diacritic characters, dakuten (゛) and handakuten (゜). I made this ascii file for multi-line Japanese, the dakuten is ø and the handakuten is ù. Btw, here's the converter for it. ascii_jp_multiline

Multi-line Japanese would only use 18*2+2=38 characters.

animasodo commented 4 years ago

Also, now that I got to test the modified engine, I added all the beta4 features to the modified files and deleted the older unmodified files, and it won't work. My player can't move. This modification worked fine in beta3.

chrismaltby commented 4 years ago

Hi @Animacreep I'm working on #609 which should allow four lines with up to 52 characters total before you overflow into the background tiles. Do you think that would work for you?

As for the character being unable to move, by any chance do you have scripts attached to the dpad buttons? Beta4 included an update that made dpad scripts override the default movement behaviour (which matched how GB Studio 1.2.0 worked)

If you've scripts attached and still need the character to move we may need an optional flag to keep the default behaviour on the "Attach Script To Button" event (which I was hoping to avoid if possible)

If you don't have any input scripts attached to the dpad it may be something wrong with your modified engine, have you tried deleting your engine folder (keeping a backup first obviously!!) and rebuilding, that will use the inbuilt engine again and you can see if that version works it's something wrong with your changes.

animasodo commented 4 years ago

Hello, yes, that would work for me. I've tried disabling the attached joypad scripts and it seems to work now!

Thank you so much!

maxoakland commented 3 years ago

If you've scripts attached and still need the character to move we may need an optional flag to keep the default behaviour on the "Attach Script To Button" event (which I was hoping to avoid if possible)

I think you really do need that flag. It could solve a lot of problems. I’ve seen another person have one and myself for different situations. I could submit a request or report if you’d like