PDA

View Full Version : possible idea for a utility to change default skins in dgen campaigns



thefruitbat
03-16-2006, 08:25 AM
hi all,

Since the last dgen upgrade, i've been playing around with some of the new dgen campaigns, currently flying barbarrossa in an e4
in disasters on the frontier. Trouble is i dont really like some of the default skins, so i always end up working out which database file in the dgen folder i am flying, and then editing the skins that the available planes it the campaign will use;

for example in this campaigns, it is frontier41.db

Lvov:Frontiers41
[Towns]
10 Krosno
10 Uzhgorod
10 Mihalovtse
10 Lesko
5 Dobromil'
5 Pshemisl
10 Krukenichi
5 Hyirov
5 Nizhnie_Vorota
5 Rudki
5 Gorodok
5 Komarno
5 Turka
5 Pustomyty
10 Lvov
5 Davydov
5 Nikolaev
5 Dublyani
5 Volovets
5 Skole
5 Drogobych
5 Stryi
5 Bolehov
5 Dolina
[Schedule]
10622 55
10623 0
10624 0
10625 0
10626 0
10627 15
10628 15
10629 10
10630 10
[OOB]
=hu1-1hu=hu1-3hu=I_JG3=Stab_JG27=II_JG27=III_JG27=IV_JG27=Stab_ JG51=III_JG5_1=II_JG5_1=I_JG5_1=I_JG3=II_JG3=III_J G3=_3=Stab_JG53=I_KG26=II_KG26=III
_KG26=Stab_KG26=I_KG3=II_KG3=III_KG3=Stab_KG3=3_ZG 1_=ZG1_III=ZG1_II=ZG1_I=I_StG2=II_StG2=III_StG2=IV _StG2=Stab_StG2=3IAK=3GvIAP=
5GvIAP=6GvIAP=9GvIAP=11GvIAP=12GvIAP=16GvIAP=40GvI AP=88GvIAP=116IAP=120IAP=131IAP=148IAP=160IAP=161I AP=163IAP=165IAP=176IAP
=178IAP=183IAP=237IAP=239IAP=254IAP=270IAP=272IAP= 279IAP=296IAP=511IAP=530IAP=728IAP=7GvShAP=8GvShAP =94GvShAP=166GvShAP=
61ShAP=175ShAP=190ShAP=210ShAP=218ShAP=237ShAP=430 ShAP=431ShAP=614ShAP=617ShAP=672ShAP=688ShAP=810Sh AP=874ShAP=995ShAP=
34BAP=
[Squadrons]
hu1-1hu CR_42
skin:Hungary41.bmp
hu1-3hu CR_42
skin:Hungary41.bmp
Stab_JG27 BF_109E7
II_JG27 BF_109E4
III_JG27 BF_109E4B
IV_JG27 BF_109E7
Stab_JG51 BF_109F2
I_JG5_1 BF_109F2
II_JG5_1 BF_109F2
III_JG5_1 BF_109F2
Stab_JG53 BF_109E4
I_JG3 BF_109F2
II_JG3 BF_109F2
III_JG3 BF_109E4B
3_ZG1_ BF_110C4B
ZG1_III BF_110C4B
ZG1_II BF_110C4
ZG1_I BF_110C4
I_StG2 JU_87B2
II_StG2 JU_87B2
III_StG2 JU_87B2
Stab_StG2 JU_87B2
I_KG26 HE_111H2
II_KG26 HE_111H2
III_KG26 HE_111H2
Stab_KG26 HE_111H2
I_KG3 JU_88A4
II_KG3 JU_88A4
III_KG3 JU_88A4
Stab_KG3 JU_88A4
[Planes]
50 I_153_M62
40 I_153P
60 I_16TYPE18
10 I_16TYPE24
5 LI_2
10 MIG_3EARLY
30 U_2VS
10 R_10
20 SB_2M100A
20 SB_2M103
10 IL_4_DB3B
10 TB_3_4M_34R
70 BF_109F2 <span class="ev_code_RED">yellow 6 unmarked f2.bmp</span>
20 BF_109E4 <span class="ev_code_RED">MullerunmarkedE4.bmp</span>
30 BF_109E7 <span class="ev_code_RED">Hermann_Graf.bmp</span>
10 BF_109E4B <span class="ev_code_RED">Stab IIJG54 unmarked E4B.bmp</span>
10 BF_110C4
20 BF_110C4B
40 HE_111H2
20 JU_52_3MG4E
30 JU_88A4
50 JU_87B2
10 FI_156
5 FW_189A2
12 CR_42 Hungary41.bmp
[Skill]
Blue:A55,V40,N4
Red:A1,V3,N25
[Aces]
BF_109E7 BF_109E7 Stab_JG27 Graf von Kageneck
skin:Erbo_Graf_von_Kageneck.bmp
BF_109F2 BF_109F2 Stab_JG51 M├┬Âlders
skin:Werner_Moelders.bmp
BF_109F2 BF_109F2 III_JG5_1 Hoffmann
BF_109F2 BF_109F2 II_JG5_1 Strelow
BF_109F2 BF_109F2 I_JG3 L├╝tzow
skin:$Guenther_Luetzow.bmp
I_16TYPE24 I_16TYPE24 120IAP Shestakov
I_16TYPE24SAFONOV I_16TYPE24 120IAP Safonov
MIG_3POKRYSHKIN MIG_3EARLY 120IAP Pokryshkin
[Operations] <<opsFrontiers41-N.dat opsFrontiers41-E.dat opsFrontiers41-H.dat

The bits in red are what i have added. These have to corrospond with the names of skins in the appropriate plane folder in your paintschemes/skins folder. Now in the campaign above every 109 appears in thoss skins. Combinded with il2matmanager markings, i find this much better looking.

Now unfortunatly i dont know how to program at all, so i dont know if this would be hard/time consuming, but would it be possible to write a utility program, that when you entered the plane code, eg 'BF_109F2' and then the skin name that u want to use eg '109_skin.bmp' could search through the database files for all the campaigns in the dgen folder (extension .db, these are the only files with this extension in the dgen folder to my knowledge), look for the [planes] section in the file, and if there is BF_109F2 in that file, replace it with BF_109F2 109_skin.bmp.

This would mean that in ANY campaign u flew in, with f2's in it, would be using this skin. If u got bored of a skin, you could just rerun the utility and change to your new fav skin, and repeat for any plane types you want to change the skin of, be that enemy or friendly.

interested or not?

cheers fruitbat

thefruitbat
03-16-2006, 08:25 AM
hi all,

Since the last dgen upgrade, i've been playing around with some of the new dgen campaigns, currently flying barbarrossa in an e4
in disasters on the frontier. Trouble is i dont really like some of the default skins, so i always end up working out which database file in the dgen folder i am flying, and then editing the skins that the available planes it the campaign will use;

for example in this campaigns, it is frontier41.db

Lvov:Frontiers41
[Towns]
10 Krosno
10 Uzhgorod
10 Mihalovtse
10 Lesko
5 Dobromil'
5 Pshemisl
10 Krukenichi
5 Hyirov
5 Nizhnie_Vorota
5 Rudki
5 Gorodok
5 Komarno
5 Turka
5 Pustomyty
10 Lvov
5 Davydov
5 Nikolaev
5 Dublyani
5 Volovets
5 Skole
5 Drogobych
5 Stryi
5 Bolehov
5 Dolina
[Schedule]
10622 55
10623 0
10624 0
10625 0
10626 0
10627 15
10628 15
10629 10
10630 10
[OOB]
=hu1-1hu=hu1-3hu=I_JG3=Stab_JG27=II_JG27=III_JG27=IV_JG27=Stab_ JG51=III_JG5_1=II_JG5_1=I_JG5_1=I_JG3=II_JG3=III_J G3=_3=Stab_JG53=I_KG26=II_KG26=III
_KG26=Stab_KG26=I_KG3=II_KG3=III_KG3=Stab_KG3=3_ZG 1_=ZG1_III=ZG1_II=ZG1_I=I_StG2=II_StG2=III_StG2=IV _StG2=Stab_StG2=3IAK=3GvIAP=
5GvIAP=6GvIAP=9GvIAP=11GvIAP=12GvIAP=16GvIAP=40GvI AP=88GvIAP=116IAP=120IAP=131IAP=148IAP=160IAP=161I AP=163IAP=165IAP=176IAP
=178IAP=183IAP=237IAP=239IAP=254IAP=270IAP=272IAP= 279IAP=296IAP=511IAP=530IAP=728IAP=7GvShAP=8GvShAP =94GvShAP=166GvShAP=
61ShAP=175ShAP=190ShAP=210ShAP=218ShAP=237ShAP=430 ShAP=431ShAP=614ShAP=617ShAP=672ShAP=688ShAP=810Sh AP=874ShAP=995ShAP=
34BAP=
[Squadrons]
hu1-1hu CR_42
skin:Hungary41.bmp
hu1-3hu CR_42
skin:Hungary41.bmp
Stab_JG27 BF_109E7
II_JG27 BF_109E4
III_JG27 BF_109E4B
IV_JG27 BF_109E7
Stab_JG51 BF_109F2
I_JG5_1 BF_109F2
II_JG5_1 BF_109F2
III_JG5_1 BF_109F2
Stab_JG53 BF_109E4
I_JG3 BF_109F2
II_JG3 BF_109F2
III_JG3 BF_109E4B
3_ZG1_ BF_110C4B
ZG1_III BF_110C4B
ZG1_II BF_110C4
ZG1_I BF_110C4
I_StG2 JU_87B2
II_StG2 JU_87B2
III_StG2 JU_87B2
Stab_StG2 JU_87B2
I_KG26 HE_111H2
II_KG26 HE_111H2
III_KG26 HE_111H2
Stab_KG26 HE_111H2
I_KG3 JU_88A4
II_KG3 JU_88A4
III_KG3 JU_88A4
Stab_KG3 JU_88A4
[Planes]
50 I_153_M62
40 I_153P
60 I_16TYPE18
10 I_16TYPE24
5 LI_2
10 MIG_3EARLY
30 U_2VS
10 R_10
20 SB_2M100A
20 SB_2M103
10 IL_4_DB3B
10 TB_3_4M_34R
70 BF_109F2 <span class="ev_code_RED">yellow 6 unmarked f2.bmp</span>
20 BF_109E4 <span class="ev_code_RED">MullerunmarkedE4.bmp</span>
30 BF_109E7 <span class="ev_code_RED">Hermann_Graf.bmp</span>
10 BF_109E4B <span class="ev_code_RED">Stab IIJG54 unmarked E4B.bmp</span>
10 BF_110C4
20 BF_110C4B
40 HE_111H2
20 JU_52_3MG4E
30 JU_88A4
50 JU_87B2
10 FI_156
5 FW_189A2
12 CR_42 Hungary41.bmp
[Skill]
Blue:A55,V40,N4
Red:A1,V3,N25
[Aces]
BF_109E7 BF_109E7 Stab_JG27 Graf von Kageneck
skin:Erbo_Graf_von_Kageneck.bmp
BF_109F2 BF_109F2 Stab_JG51 M├┬Âlders
skin:Werner_Moelders.bmp
BF_109F2 BF_109F2 III_JG5_1 Hoffmann
BF_109F2 BF_109F2 II_JG5_1 Strelow
BF_109F2 BF_109F2 I_JG3 L├╝tzow
skin:$Guenther_Luetzow.bmp
I_16TYPE24 I_16TYPE24 120IAP Shestakov
I_16TYPE24SAFONOV I_16TYPE24 120IAP Safonov
MIG_3POKRYSHKIN MIG_3EARLY 120IAP Pokryshkin
[Operations] &lt;&lt;opsFrontiers41-N.dat opsFrontiers41-E.dat opsFrontiers41-H.dat

The bits in red are what i have added. These have to corrospond with the names of skins in the appropriate plane folder in your paintschemes/skins folder. Now in the campaign above every 109 appears in thoss skins. Combinded with il2matmanager markings, i find this much better looking.

Now unfortunatly i dont know how to program at all, so i dont know if this would be hard/time consuming, but would it be possible to write a utility program, that when you entered the plane code, eg 'BF_109F2' and then the skin name that u want to use eg '109_skin.bmp' could search through the database files for all the campaigns in the dgen folder (extension .db, these are the only files with this extension in the dgen folder to my knowledge), look for the [planes] section in the file, and if there is BF_109F2 in that file, replace it with BF_109F2 109_skin.bmp.

This would mean that in ANY campaign u flew in, with f2's in it, would be using this skin. If u got bored of a skin, you could just rerun the utility and change to your new fav skin, and repeat for any plane types you want to change the skin of, be that enemy or friendly.

interested or not?

cheers fruitbat

FlatSpinMan
03-16-2006, 08:36 AM
Sounds like a good idea to me.