Page 1 of 1
Changing data of locations
Posted: Sun Dec 17, 2023 3:09 pm
by zorroot
Hello,
I am currently working on a Visual Basic program to help me edit a copy of the gc41 campaign. While doing so, I wanted to change the manpower production of the city Neustadt, id 128. My program changed he field 'f num 14' of table 'city' from 2 to 20 and saved the changes. The csv files were successfully imported to WITE2. I checked the map but manpower production was still 2. In the editor, I checked the entry of Neustadt and it still showed 2 as production value for manpower. That was weird.
So I ran a more simple test. In the editor, I changed the production value for manpower of Neustadt from 2 to 20. I checked the map and the change was displayed correctly. I saved my campaign file and exported the CSV file. The changes have been applied correctly to the CSV files. When reloading my campaign file with the editor, the changes were gone. Importing the CSV files did not change anything. Manpower production was still 2.
So my questions are:
1. Has anybody else experienced the same ?
2. How can I change any data in locations with the editor when the editor is just faking these changes ?
Kind regards,
Oliver
Re: Changing data of locations
Posted: Sun Dec 17, 2023 3:34 pm
by Denniss
all production data is part of the factory file
Re: Changing data of locations
Posted: Thu Dec 28, 2023 2:21 am
by zorroot
During the last days, I had enough spare time to figure out what the problem is and how to fix it.
1. Forget about what Denniss said, it's just wrong.
2. Production values like manpower, oil, armaments, heavy industry, etc. is stored in the table 'city'. By changing the field 'depot' you are even able to create a new NSS ! The fields 'factory 0' to 'factory 19' are determining what is produced, the fields 'f num 0' to 'f num 19' are determining the quantity. This way you can change the number of every item that is manufactured, hence every vehicle and every plane. Please note that every vehicle and every plane has a field 'buildLimit' in it's according data table. If you want to raise the production numbers, you may want to check or edit these fields, too.
3. If you save your work, the editor will reject your changes without any notice !!!
4. To enable the editor to accept your changes, you have to change the field 'Lock Generic Data' to yes. Afterwards, check all dat files, e.g. Devices, Aircraft and so on. Click on 'Dump Dat Files', wait some seconds and save your scenario data.
Now you are able to export the csv file of the table 'city', edit it, and import it again. When you save the scenario file, it will be saved properly (WITH your changes).
Re: Changing data of locations
Posted: Thu Dec 28, 2023 6:40 am
by Denniss
No its not wrong. All production data is part of generic data and factory data is stored in the factory file. I must know it because I had worked with it a lot. City data still contains factory data but it's not used anymore due to separation to the factory file.
Locking generic data for a scenario basically makes it a separate container holding all data. In this container I believe production data is stored in the scenario's city data so basically using the old data setup.
Re: Changing data of locations
Posted: Thu Apr 25, 2024 5:18 pm
by Habfan24
Have we decided on a way to fix this? I have the same problems.
Tanks
Re: Changing data of locations
Posted: Thu Apr 25, 2024 5:18 pm
by Habfan24
Have we decided on a way to fix this? I have the same problems.
Tanks
Re: Changing data of locations
Posted: Fri Sep 19, 2025 4:28 am
by zorroot
Denniss wrote: Thu Dec 28, 2023 6:40 am
... City data still contains factory data but it's not used anymore due to separation to the factory file...
I am sorry, but this info is fully wrong. Did you try to create another NSS by editing the cvs file ? No ? That's bad. So let's proof my statement. Here are the necessary steps:
WITE2 Version 1.04.05
Editor (old Version)
Load scenario '1941 Campaign'
Rename scenario, e.g. 'NSS_test'
Save scenario
Export to CSV
Edit file 'NSS_test_city.csv'
- id 17, koenigsberg. Change field 'depot' from 3 to 4, Change field 'freight' from 30000 to 500000.
- save changes
Import from CSV
Save scenario
Close editor
Close WITE2
Start WITE2
Open Editor
Load sceanrio 'NSS_test'
Press 'n' to view Depots.
What do you see at Koenigsberg ?
Every other member of the forum can do the same simple test. Follow the steps described above and tell us what you see at koenigsberg. Thx.
Re: Changing data of locations
Posted: Fri Sep 19, 2025 4:32 am
by zorroot
Habfan24 wrote: Thu Apr 25, 2024 5:18 pm
Have we decided on a way to fix this? I have the same problems.
Maybe you have overlooked it, but this was the solution:
4. To enable the editor to accept your changes, you have to change the field 'Lock Generic Data' to yes.
Re: Changing data of locations
Posted: Fri Sep 19, 2025 7:22 pm
by Denniss
depot is part of location data in scenarios, factory not anymore