Menu

#415 /pak0.pak/default.cfg overrides ezquake default variables

2.0
closed-fixed
AAS
Scripting (19)
6
2009-08-27
2008-11-29
AAS
No

See sshot.

Plain example:
Our mouse sensitivity variable is 12 (default in ezQuake) and /cfg_save_unchanged var is 0. As "/describe cfg_save_unchanged" said, sensitivity variable has not been written into config when /cfg_save executed, but when I load this config (through /cfg_load) "sensitivity" variable sets to 3, not 12.

i.e. somehow standard /id1/pak0.pak/default.cfg overrides ezquake built-in default values. May be it's time to not use default.cfg anymore or just write own default config?

ezquake 1.9.2/win32

Discussion

  • AAS

    AAS - 2008-11-29

    bug reproduction screenshot

     
  • biomass

    biomass - 2008-12-21

    Confirmed. Possible solutions.

    1. Remove default.cfg execution support which might break mods.
    2. Create an ezquake default.cfg, even an empty file will prohibit the one in id1 to be executed which also might break mods.
    3. Always save the variables that are in default.cfg even if they are set to default value in ezquake
    4. Suggestions ?

     
  • biomass

    biomass - 2008-12-21
    • status: open --> open-accepted
     
  • AAS

    AAS - 2008-12-21

    First solution is to add variable to control wheter to exec default.cfg from id1 dir or not.
    Second is to modify /cfg_legacy_exec variable.

    Need to be very careful with all calls for default.cfg in cfg_load/cfg_reset/etc.

     
  • JohnNy_cz

    JohnNy_cz - 2009-04-06
    • assigned_to: nobody --> johnnycz
    • priority: 5 --> 6
     
  • JohnNy_cz

    JohnNy_cz - 2009-04-07
    • labels: --> Scripting
     
  • JohnNy_cz

    JohnNy_cz - 2009-08-25
    • milestone: 426615 --> 2.0
     
  • JohnNy_cz

    JohnNy_cz - 2009-08-26

    im not able to reproduce this

     
  • JohnNy_cz

    JohnNy_cz - 2009-08-26
    • assigned_to: johnnycz --> aas_at_sf_net
     
  • AAS

    AAS - 2009-08-27

    It's still occurs on 2.1/linux

     
  • AAS

    AAS - 2009-08-27

    default.cfg moved out of the game since r4177.

     
  • AAS

    AAS - 2009-08-27
    • status: open-accepted --> open-fixed
     
  • AAS

    AAS - 2009-08-27
    • status: open-fixed --> closed-fixed
     
MongoDB Logo MongoDB