TheRealNin / Siege-Collection

The collection of Siege++ mods that make the NS2 Siege++ project
MIT License
2 stars 1 forks source link

Move All Convars To a Single File #12

Closed jonsextra closed 7 years ago

jonsextra commented 7 years ago

Something trigger did on Super Siege, was have every convar in the code be on a single 'convars.lua' doc, and have the convars in the code reference this doc. It made it easier to find and tweak values.

TheRealNin commented 7 years ago

console variables? such as?

DalinSeivewright commented 7 years ago

I believe he means all of the global k-prefixed variables. Not sure it's of value here as the coders will presumably be working in an IDE where they can grep the code.

jonsextra commented 7 years ago

I believe this was it. Just a single file with all the values that we might have to tweak for balance reasons in the same place.

TheRealNin commented 7 years ago

That's horrible. Please can we just override the values we want to tweak like here? https://github.com/TheRealNin/SiegeBalance/blob/master/source/lua/SiegeBalance/Balance.lua

jonsextra commented 7 years ago

If that's easier than do that. To me this just seemed like the easiest way to keep track of everything and to make values easy to find in the future.

TheRealNin commented 7 years ago

Wouldn't it be easier to just check if a value has been modified by looking at the lua, and see if it's there? We aren't going to be changing dozens of variables, are we?

jonsextra commented 7 years ago

I hope not, but you never know. You do what you think is the best option, this affects the coders not the game. I had just suggested it because it seemed like it would make things easier.

TheRealNin commented 7 years ago

We are going to keep the balance changes in a small project, and only overwrite the variables we need. If someone wants to check to see what is being changed, it's pretty quick to just open the files and check instead of having to audit an entire 3000 line file and compare it to NS2.