|
Darkvater
|
r5141:e61bae029532
|
18 years ago
|
|
(svn r7231) -Codechange: rename ini_get_variable to GetVariableAddress for use both in settings.c and saveload.c
|
|
Darkvater
|
r4600:94a25824a375
|
18 years ago
|
|
(svn r6450) -Feature: Make the 'patch' console command available for offline use and for online use for player-based settings.
|
|
rubidium
|
r4431:2ce198d6cba8
|
18 years ago
|
|
(svn r6186) -Fix [FS #309]: add an override system to the dynamically determined size of steps for numeric patch settings in the 'Configure patches' GUI. The size of these steps normally about (max - min) / 50, which results in steps of 100 000 years for the start year, end year, network restart year and the year of introduction of coloured newspapers.
|
|
rubidium
|
r4344:bff007ae1fd1
|
18 years ago
|
|
|
|
Darkvater
|
r4278:60a9f710b44f
|
18 years ago
|
|
|
|
rubidium
|
r3888:aa900cebaacd
|
18 years ago
|
|
|
|
KUDr
|
r3584:c30c36fc2a35
|
18 years ago
|
|
(svn r4470) -Fix: FS #97 — Possible bug in Win64 versions (by michi_cc) Doesn't fix any known bug, but the code is now bit cleaner. The proper result of subtraction of two pointers is ptrdiff_t.
|
|
Darkvater
|
r3247:bb019798ee23
|
19 years ago
|
|
|
|
Darkvater
|
r3118:5a3c18a19d9f
|
19 years ago
|
|
(svn r3722) - [4/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. The last part finishes the transition with the merging of the settings_gui table(s). - Because patches are (will be in a few commits) saved, you cannot specify the order of the GUI-items in the SettingDesc tables themselves. Doing so would mean messing around with the savegame-version, or doing expensive lookups. So the GUI-tables are now just simple indeces into the original table. No more is needed since that table contains all information - The only change in functionality is that the stepsize has been automated. It is calculated from the minimum and maximum values such that within 50 clicks you will have gone from one end to the other if scrolling. - The GUI has kept its flags intact. These are: SGF_0ISDISABLED: the variable might have a domain higher than zero, but a special value of nul is used as telling that feature is disabled. SGF_NOCOMMA: represent the number without any thousand-seperators SGF_MULTISTRING: internally the variable is a number, but its representation is a string based on a simple offset. SGF_NETWORK_ONLY: this setting can only be changed during network games SGF_CURRENCY: the variable represents money and will be shown in the local currency - - NOTE! The game is not compilable after this commit (because console hooks have not been updated)
|
|
Darkvater
|
r3116:d87f48f9dc12
|
19 years ago
|
|
(svn r3720) - [2/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. This second part gets rid of the old SettingDesc structures and updates them with the unified types. These new settings are heavily macro'd, which should make it easy to add/edit entries within sections. - This unified structure merges the settings in settings.c (concerned with the ini file) and the ones in setting_gui., having to do with the GUI. I tried to give sensible min and maximum values to _patches that were not present in the GUI I hope they work out all right. - All patch settings miss their callback function which have been temporarily reset to NULL - Fixed a really small typo in a Doxygen comment in settings.h - NOTE! When for example _patches are saved to the savegame (as are _gameopt_settings now), you cannot just blindly edit the struct. The same rules apply as to all the other SaveLoad structs. Eg correct CONDVAR's and only adding new entries at the end. - NOTE! The game is not compilable after this commit.
|
|
Darkvater
|
r3115:f1eba3dacb95
|
19 years ago
|
|
(svn r3719) - [1/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. This first part rewrites the configuration section to use the SaveLoad VarType in general. - This unified structure consists of a SaveLoad type which stores all data relevant about the variable internals such as type, mem/filesize, address, version-control. The SettingDesc type is concerned more about the representation. Things like default value, string-name, minimum/maximum values, gui-behaviour etc. - The SaveLoad type has received a few flags controlling saving/loading. These are: SLF_SAVE_NO: the setting is not saved with the savegame, effectively making this setting player-based. Eg. it will NOT be overwritten when joining a network-game SLF_CONFIG_NO: the setting is not saved to the configuration file so you cannot overwrite it ingame. SLF_NETWORK_NO: the setting is not synchronised with the local settings when the game is loaded during network-play. Note that when SLF_SAVE_NO is set, SLF_NETWORK_NO is also set (which is logical), at least if the proper macros are used (in [2/4]). - NOTE! The game is not compilable after this commit.
|
|
truelight
|
r3020:e001ed9f33ba
|
19 years ago
|
|
|
|
Darkvater
|
r2972:274147e2ba45
|
19 years ago
|
|
|
|
tron
|
r2307:c00be2ee9101
|
19 years ago
|
|
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
Darkvater
|
r1739:7cb77e0b4dd1
|
19 years ago
|
|
(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'. - Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
|
|
dominik
|
r759:e05ead977366
|
20 years ago
|
|
|
|
dominik
|
r705:96c068ae5357
|
20 years ago
|
|
|
|
truelight
|
r543:efdb197f91ad
|
20 years ago
|
|
|