• Godot Help
  • Godot is removing entries from Input Map

As in title - when I add entry in InputMap ... It isn't saved/gets deleted/I don't know what

I added multiple entries in InputMap before. I never added/removed any actions from code... I tried restarting everything, using different action name, saving/reopening project... It is just never saved it vanishes the moment I close "project properties" window. Heck I even checked if I have free space on disk, if Godot runs on correct privileges ,EVERYTHING. I'm losing my mind with this absurd. For some random reason InputMap entry just dissapears in this specific project. Is there limit to how many actions you can have? Is that limit only 12? I do have 12 actions right now. I for love of God can't add 13th, no matter what I try.. Ah, I even tried adding it in text editor by editining .project file. It vanished from file when I opened project... I tried duplicating project into different directory and trying everything above in new directory, nothing works.

I don't even know what else can I try... It's nonsense. I'm blind-folded. I'm literally getting 0 new ideas. I spent last 2 hours trying to fix this weird issue.

Vid :
(when I circle mouse around "h" action, I'm actually pressing H on keyboard, but there's no way to see, because nothing happens. Event seems to never be even saved, even if it shows on list of events until project reload)

*removed parts containg my desktop.

Video still processing. Never seen what you describe happening so I don't even know what could possibly be causing it but it doesn't sound right. Might be a bug of some kind. I see no mention of version you are using.

    Megalomaniak Right, I forgot to mention version. It happens on v3.4.2.stable.official [45eaa2daf]

    I must be missing something obvious, or there's some bug.

    Video finally finished processing (it took it way more time, than usually)

    I will be downloading 3.5.1 right now, to see if it fixes anything.

    Edit : Problem persists on 3.5.1 I'll look through all project settings carefully...

      Rafiz It happens on v3.4.2.stable.official [45eaa2daf]

      Have you tried 3.5.1? It might be a bug that has already been fixed.

      edit: I see you mention you did in an edit.

      In the video when you are creating the if condition to use the 'h' key, rather than use queue_free() it might be better to use a print statement instead. As the name implies queue_free() queues a free() for some point later whereas a print statement should immediately print to the editor console.

      But the action disappearing between editor sessions definitely looks like a bug to me.

      After a quick search of the Open tickets I didn't see anything on the tracker so you might want to report it to the tracker on github. But it might not be a bad idea to maybe also search among the closed tickets before you open a new issue.

      a year later

      When I had this problem initially I just created new project and avoided this problem for long time. But today it struck me again. I found my old post to find how to fix it but it turns out I had no solution simpler than copying all nodes and settings into completely new project...

      So - today I decided to fix it without creating new project. I tried to add new input "manually" in "project.godot" file and program detected it, because I got prompt. I've choosenn "reload project from file", the input remained not-deleted for a while, but after 4-5 seconds it got deleted. I was astonished as to how does it recognized that THIS is new input and deletes only that... I tried placing new inputs in different places (so it's before older input codes) but program always knew what's new and kept deleting it!!

      I figured it must have some values cached so I decided to delete "project.binary" or something named like that.... That action fixed the over-writing of my changes... Apparently it is another file that stores project data? And apparently it works weirdly... Also I was not able to create project.binary to further study this bug. I tried saving project, changing some stuff and saving project, running project, running project in html, exporting project closing and re-opening editor... Project.binary was not created again despite me wanting to check it's behavior. I'm not even absolutely sure I remembered exact name of file, but I'm 90% sure it was "project.binary"... I deleted it with shift, so I can't even check in trash... Probably shift-deleting file I have no idea about is not the safest way to try and alter something in project, but I got lucky this time.

      Can you make a minimum reproduction project and post a bug report on the issue tracker?

      I can not, I have no idea what causes this bug. I try to track it down since over hour, because what I did was actually not a solution - now I'm unable to save data from inspector... When I click "output" in bottom-bar I see it detects changes to title of dialog window, I then press ctrl+s to save scene including dialog window and it thinks it saved it, but when I close and open scene nothing is saved.......

      I made sure I have disk space, I am logged as user "a" , run program and own project files with same user "a", so it's not system permissions issue... I'm starting to lose my mind. But deleting project.binary removed one problem and caused another problem instead. Now I can add/remove input actions freely, but object inspector just doesn't save anything.

      I also ran godot from console and saw no interesting prompts that could hint anything.

      I now deleted all user data and editor data - so I'm having like clear godot installation, I deleted every file in project that does not contain information written by me (.import s mostly, but some other files too) - and problem still persists, so ... I'm kind of sure the problem is somewhere in project folder... I tried again running it from console with --verbose and --debug flags, but still it didn't print anything worrisome... But it doesn't work.

        Rafiz can not, I have no idea what causes this bug.

        That doesn't matter.

        Can you submit a minimal project and a step-by-step procedure that other people can use to reproduce the bug?

        bug.zip
        1MB

        To reproduce bug I just unpacked this minimalistic project and edited title of popup window. It won't save... Changing other properties of dialog causes title to be saved correctly - along with that changed property, but it's unacceptable anyway, because I wouldn't want to rely on luck for my edit to be saved.

        a month later

        I don't know if you solved it, but maybe is from holding CTRL + Y. It dosen't only revert changes in your scenes but also into your Project Settings ( including Input Maps ). If you see that the inputs are gone, check the output maybe you removed them accidentally