Creating and Mastering CSV Modifications: Advanced Guide
Creating CSV 6 MODs, or Castlesim 6 Modifications, allows you to customize and expand your gaming experience by altering various aspects of the game. Whether you're tweaking castle parameters, adjusting economic models, or introducing new units and technologies, MODding CSV 6 can be a captivating and rewarding process. This guide walks you through the essential steps to make your own CSV 6 MOD, ensuring you keep your game exciting and fresh.
Before we dive into the MOD creation process, let's clarify that this guide assumes you have a basic understanding of CSV files and MODding in general. If you're new to MODding, consider starting with simpler games or following beginner-friendly guides to grasp the fundamentals.
Setting Up Your MODding Environment
To begin your CSV 6 MODding journey, you'll need to establish a suitable workspace. This involves setting up your MOD folder structure and familiarizing yourself with the game files.
The first step is to create a backup of your game data. Navigate to your CSV 6 installation folder and copy the "data" subfolder. This backup ensures that you can always revert to the original game if needed. Next, create a new folder for your MOD, following this structure:
```markdown > CSV 6 MODs > MyNewMOD > data ```Understanding the Game Files
Within the "data" folder, you'll find several subfolders containing CSV files that control different aspects of the game. Familiarize yourself with these files as they are the core components you'll be editing to create your MOD.
Some of the key files include:
- castle.csv: Contains castle parameters like hit points, build time, and upgrade costs.
- unit.csv: Houses unit data such as movement speed, damage, and cost.
- technology.csv: Defines technological advancements, their prerequisites, and effects.
- economic.csv: Regulates economic aspects like resource gathering and income.
Preparing to Edit CSV Files
To modify these CSV files, you'll need a reliable text editor or spreadsheet software that can handle CSV data, such as Microsoft Excel, LibreOffice Calc, or even a simple text editor like Notepad++.
When editing CSV files, be cautious not to alter the data format. Each field should be enclosed in double quotes (") and separated by commas (,). Adhere to this format to maintain the integrity of your MOD.
Creating Your MOD's Unique Features
Now that you have your MODing environment set up and understand the game files, it's time to design and implement your MOD's unique features. This section guides you through adding new units, adjusting castle parameters, and tweaking economic models.
For illustration purposes, let's create a simple MOD that introduces a new unit, adjusts castle hit points, and modifies villager gathering rates.
Adding a New Unit
To introduce a new unit, you'll need to edit the "unit.csv" file. Find an open row at the end of the file and add your new unit's data. Let's create a basic spearman unit as an example:
In this example, the spearman has the following properties:
- Name: Spearman
- Icon: Spear
- Category: Infantry
- Build from: Peasant
- Cost: 20 wood and 0.5 gold
- Hit points: 10
- Movement speed: 1 (default value)
- Damage: 1 (default value)
- Range: 0 (melee unit)
- First target preference: 0 (no preference)
- Formation: 0 (default value)
- veureMaxPips: 0 (no maximum pips)
- visionRange: 0.8 (default value)
- Doodad: Spearman's attack!
Once you've added your new unit, save the file and close it.
Adjusting Castle Parameters
To modify castle parameters, such as hit points, build time, or upgrade costs, open the "castle.csv" file. Navigate to the appropriate row for the castle you want to adjust, and modify the desired parameters.
For example, let's increase the hit points of the Castle Age tower by 50:
```csv "Tower","Castle","Tower",4500,500,100,150,0,0,0,0,0,0,120,0,0,120,0,0,0,0; ```In this case, the Tower's hit points have been increased from the default 120 to 170.
Modifying Economic Models
To modify economic models, you'll need to edit the "economic.csv" file. Open the file and look for the relevant section, such as "VillagerGatherRate" for adjusting villager gathering rates:
```csv "VillagerGatherRate","Wood_Villager","Food_Villager","Gold_Villager","Stone_Villager","DarkAge","FeudalAge","CastleAge","ImperialAge",10,15,20,25,5,8,11,14,17; ```In this example, the villager gathering rates have been increased by 5 in each age:
- Dark Age: 5 wood, 8 food, 11 gold, 14 stone
- Feudal Age: 8 wood, 11 food, 14 gold, 17 stone
- Castle Age: 11 wood, 14 food, 17 gold, 20 stone
- Imperial Age: 14 wood, 17 food, 20 gold, 25 stone
These changes will make villagers gather resources faster throughout the game.
Testing and Refining Your MOD
Once you've added your unique features and made the necessary adjustments, it's time to test your MOD. To do this, copy the "data" folder containing your MOD into your CSV 6 installation directory, replacing the original "data" folder. Launch the game, and you should now be playing with your custom MOD.
During testing, pay close attention to your MOD's impact on gameplay. Ensure that your changes are well-balanced and that the MOD remains enjoyable. Make any necessary adjustments based on your testing feedback.
MODding CSV 6 can be an ongoing process, with continuous testing and tweaking to perfect your creations. Embrace this iterative approach, and don't be afraid to experiment with new ideas or take inspiration from other MODs.
In the vast world of MODding, the possibilities are endless. By creating your unique CSV 6 MOD, you'll not only enhance your own gaming experience but also potentially share your creations with fellow players, fostering a creative community. Happy MODding!