DEFBIND lump is being completely ignored

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
AshHouswares
Posts: 142
Joined: Fri Jun 03, 2022 11:31 am
Graphics Processor: Not Listed

DEFBIND lump is being completely ignored

Post by AshHouswares »

I am so sick of these problems at this point. This is my DEFBIND lump in my IPK3.

Code: Select all

bind ` "toggle cl_run"
bind tab "toggle cl_run"
bind f1 "menu_help"
bind f2 "menu_load"
bind f3 "menu_load"
bind f4 "menu_options"
bind f5 "menu_display"
bind f6 "menu_load"
bind f7 "menu_endgame"
bind f8 "togglemessages"
bind f9 "quickload"
bind f11 "bumpgamma"
bind f10 "menu_quit"
bind - "menu_load"
bind = "menu_load"
No matter what I do, these binds do absolutely nothing. They are STILL only using the default that GZDoom binds them too and it is really pissing me off. I've even gone into GZDOOM itself and disabled these and they STILL keep doing it. PLEASE can someone tell me why the hell this isn't working??
Jarewill
 
 
Posts: 1645
Joined: Sun Jul 21, 2019 8:54 am

Re: DEFBIND lump is being completely ignored

Post by Jarewill »

As I said in the other topic, you need to delete your .ini file for those to take effect again.
DEFBINDS only take effect the first time you run your project, so you need to delete your .ini file for your changes to work.

Also instead of rebinding those buttons to other functions, you can just do this: bind ` ""
User avatar
RKD
Posts: 143
Joined: Sat Mar 19, 2022 9:52 am
Location: Argentina

Re: DEFBIND lump is being completely ignored

Post by RKD »

Reading the DEFBINDS article, my only assumption is that your .INI file is overwriting your binds.

It says there:

The key binds from this lump are only set if their corresponding sections are absent from the configuration file, with the sections being: [<game>.Bindings], [<game>.DoubleBindings] and [<game>.AutomapBindings]. The engine will create and populate these sections with the defaults upon being run for the first time with each game.

edit: nvm, I didn't realize Jarewill replied while I was typing mine lol
User avatar
AshHouswares
Posts: 142
Joined: Fri Jun 03, 2022 11:31 am
Graphics Processor: Not Listed

Re: DEFBIND lump is being completely ignored

Post by AshHouswares »

Sorry about me keeping on about this but I cannot find the .ini file. When we were working with 3.3.0, it was in the GZDoom folder but now it's nowhere to be seen. We did check user locations too, APPDATA and Documents. Not there?
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm

Re: DEFBIND lump is being completely ignored

Post by randi »

AshHouswares wrote: Wed May 24, 2023 1:33 pm Sorry about me keeping on about this but I cannot find the .ini file.
whereisini in the console will tell you where it is.
User avatar
AshHouswares
Posts: 142
Joined: Fri Jun 03, 2022 11:31 am
Graphics Processor: Not Listed

Re: DEFBIND lump is being completely ignored

Post by AshHouswares »

randi wrote: Wed May 24, 2023 3:04 pm
AshHouswares wrote: Wed May 24, 2023 1:33 pm Sorry about me keeping on about this but I cannot find the .ini file.
whereisini in the console will tell you where it is.
Oh I never knew about this one. Thanks!

Return to “Scripting”