egordorichev / neko8

Fantasy console inspired by pico8, tic80 and liko12, written in c++
https://egordorichev.itch.io/neko8
112 stars 11 forks source link

On iOS the terminal`s prompt(>) and red rect cursor disappeared, can not input anything #14

Closed FreeBlues closed 7 years ago

FreeBlues commented 7 years ago

On iOS the terminal`s prompt(>) and red rect cursor disappeared, can not input anything

the keyboard can display, but can not input anything.

egordorichev commented 7 years ago

What build are you using?

FreeBlues commented 7 years ago

The newest one, the release directory one is old, I build it myself

egordorichev commented 7 years ago

Does it happen every time, you run neko8?

FreeBlues commented 7 years ago

Yes ,every time, when I launch it from love2d, at the beginning, display the help info, then stop, without the prompt

egordorichev commented 7 years ago

Hm, could you record a gif somehow? Or make a screenshot. Please.

FreeBlues commented 7 years ago

It the screen record is a big one about 9M, need time to upload...

[Uploading iOS_Movie_2017-09-13_12-42-27.mov.zip…]()

Too slow, I stopped and upload the record video to here:

http://v.youku.com/v_show/id_XMzAyMDY3ODY1Mg==.html?spm=a2h3j.8428770.3416059.1

egordorichev commented 7 years ago

Oh, that's strange.. Does this happen on all devices?

FreeBlues commented 7 years ago

screenshots

img_1133 img_1132

On android, I am working on...

egordorichev commented 7 years ago

Really strange... Something with neko.n8, I guess.

FreeBlues commented 7 years ago

On android is very well!

FreeBlues commented 7 years ago

After tried I think I have found the reason, because of the neko.n8 the previous version saved, when you update a new neko8.love, but the neko.n8 on the iPad(the previous neko8.love saved) will not be deleted or updated, it still there, and the neko8.love will load it prefer....

egordorichev commented 7 years ago

Yup, those little bugs with two save directories 😆 Does it fix, if you delete the old one?

FreeBlues commented 7 years ago

I can not delete the old one, because on iOS, I can not enter the correct neko.n8, so cant delete it.

I have 2 love2d.app installed on my iPad, one has a bad old neko.n8, the other has a new and good one. The bug is still there because of the neko8`s loading mechanism, it means that when you launch neko8, and modify neko.n8, every time your change should be correct, otherwise the wrong change will saved in the neko.n8, if the mistake would make the input stop or make the neko8 can not boot, you can not change it back.

PibePlayer commented 7 years ago

You cannot delete neko.n8 from the app itself? rm neko.n8

FreeBlues commented 7 years ago

@PibePlayer thanks for the response. Although I can not enter in the terminal to execute the rm cmd, but your advice give me an idea of how to deal with the problem. :)

Add these lines into ./src/neko8.lua

      -- Be careful!!! Pls keep in comment
      -- Only use to remove old wrong neko.n8 in the system saved folder
      cmd = require "commands"
      cmd.rm({"neko.n8"})

      editors = require "editors"
      editors.init()

Because of these commands executed before the old neko.n8 was loaded, so the old one will be deleted and the neko8.love will have to load the new one. So the old wrong neko.n8 is avoid!

After removed the old wrong neko.n8, need to comment these lines.