The Mount & Blade games are designed to be very modder-friendly, and there are many great mods available for it. The answer is that TweakMB also supports these tweaks for numerous user mods as well as the original game. So your first question is probably why don't I just set up one big table with the records representing each unique tweak, and the columns representing each property of that tweak. If it matters, TweakMB is written in VB.NET using Visual Studio 2008.
My goal for the next major version of TweakMB is have the bulk of the tweak properties stored in a structured fashion in a database, at which point the program can pull the data from the database and handle it however it needs to. As you can imagine, this has become a pain to deal with. Each of the tweaks has about 10 "properties" associated with it in TweakMB, such as the name of the file that contains the tweak, the exact field number that contains the tweak value in the line, the name of the control within TweakMB, a detailed description of the tweak (in multiple languages), and so on and so forth.Ĭurrently all of this data is "hardcoded" into TweakMB itself, meaning there are tens of thousands of values scattered all over the place in the code. So getting to the purpose of the database.TweakMB can perform hundreds of these "tweaks". TweakMB knows exactly where each of these values is located, and can modify the text file automatically based on whatever value the user enters for a given tweak. There's also the risk of messing up your game if you make a bad modification. As you can imagine, your average player doesn't want to mess with trying to figure out which one of these thousands of values represents "renown gained from winning a tournament", or whatever the tweak may be. The purpose of TweakMB is to handle these tweaks automatically for the user. This could be anything from the number of troops you can have in your army, to the amount of gold you earn from completing tasks, to adding completely new functionality to the game. Because these values are stored and read from plain text files, users can easily modify, or "tweak", values that impact things that happen ingame, if you know where to look in the file.
How to use tweakmb code#
Much of the code for the Mount & Blade games runs off of values contained in certain text files, which are built from compiled python script.
How to use tweakmb Pc#
I develop and maintain a program called TweakMB for the Mount & Blade series of PC games. Don't worry, I'll get to the point of having the database eventually. This is what I was trying to avoid having to explain with the first few posts, but you asked for it. Some of this is probably not directly relevant to the original question, but I'll try to make sure and give too much rather than not enough information this time. So here is a much more specific explanation. You're also correct that I forgot to mention how the data is pulled from the database. I have to apologize, as I only rarely work with Access, and so I'm not familiar with what information is generally needed to answer these types of questions. If you need more specific information, please let me know what type of information you need, and I will do my best to provide it. That's probably about all I can tell you about it. If nothing else I can just maintain the data in Excel (which I know inside and out) and simply import into Access when finished, but I would prefer to do it directly in Access if it's feasible. Any modifications made to the data in the tables will be done manually by me from within Access - no other external application or database will ever modify any piece of it (with the possible exception explained below). As long as it can store the data and allows me to modify the data relatively painlessly, it will meet my requirements. The speed or performance of the database is not a primary concern. The main purpose of the database itself is to simply store data. The name and the type of the fields are the only things I have changed - any other settings or properties are whatever they are by default on a standard Office installation. The only fields any of the tables contain are number and text fields. In any case, I'll try to clarify as best I can: It could just be that I don't know the right terminology to explain it? I'm not trying to oversimplify it - I guess I'm just explaining it the only way I know how.
How to use tweakmb how to#
I'm probably just showing my ignorance here, but I'm not sure how to go about being more specific.