forked from dawaga/ErectusExperimental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathErectusIni.cpp
2025 lines (1891 loc) · 98.4 KB
/
ErectusIni.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "ErectusInclude.h"
mINI::INIFile file("Erectus.ini");
mINI::INIStructure ini;
OverlaySettingsA DefaultPlayerSettings
{
true, //Enabled
1500, //EnabledDistance
true, //DrawAlive
{ 0.0f, 1.0f, 0.0f }, //AliveColor
true, //DrawDowned
{ 1.0f, 1.0f, 0.0f }, //DownedColor
false, //DrawDead
{ 1.0f, 0.0f, 0.0f }, //DeadColor
false, //DrawUnknown
{ 1.0f, 0.5f, 0.0f }, //UnknownColor
true, //DrawEnabled;
1.0f, //EnabledAlpha;
false, //DrawDisabled;
0.5f, //DisabledAlpha;
true, //DrawNamed;
false, //DrawUnnamed;
true, //ShowName;
true, //ShowDistance;
true, //ShowHealth
false, //ShowDeadHealth
true, //TextShadowed;
true, //TextCentered;
};
OverlaySettingsA DefaultNpcSettings
{
true, //Enabled
1500, //EnabledDistance
true, //DrawAlive
{ 0.5f, 1.0f, 1.0f }, //AliveColor
false, //DrawDowned
{ 0.7f, 0.7f, 1.0f }, //DownedColor
false, //DrawDead
{ 1.0f, 0.5f, 0.5f }, //DeadColor
false, //DrawUnknown
{ 1.0f, 0.5f, 1.0f }, //UnknownColor
true, //DrawEnabled;
1.0f, //EnabledAlpha;
false, //DrawDisabled;
0.5f, //DisabledAlpha;
true, //DrawNamed;
false, //DrawUnnamed;
true, //ShowName;
true, //ShowDistance;
true, //ShowHealth
false, //ShowDeadHealth
true, //TextShadowed;
true, //TextCentered;
};
OverlaySettingsB DefaultOverlaySettingsB
{
false, //Enabled
1500, //EnabledDistance
{ 1.0f, 1.0f, 1.0f }, //Color
true, //DrawEnabled
1.0f, //EnabledAlpha
false, //DrawDisabled
0.5f, //DisabledAlpha
true, //DrawNamed
false, //DrawUnnamed
true, //ShowName
true, //ShowDistance
true, //TextCentered
true, //TextShadowed
{ //Whitelisted
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
},
{ //Whitelist
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
};
ScrapLooterSettings DefaultScrapLooterSettings
{
false,
false,
false,
false,
30,
60,
3000,
{
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
},
{
0x00017DE8,//Black Titanium
0x00017DE9,//Ultracite
0x0001FA8C,//Acid
0x0001FA91,//Aluminum
0x0001FA94,//Ballistic Fiber
0x0001FA96,//Antiseptic
0x0001FA97,//Asbestos
0x0001FA98,//Bone
0x0001FA9A,//Ceramic
0x0001FA9B,//Circuitry
0x0001FA9C,//Copper
0x0001FA9D,//Cork
0x0001FA9F,//Crystal
0x0001FAA0,//Fiber Optics
0x0001FAA1,//Fiberglass
0x0001FAA4,//Glass
0x0001FAA5,//Adhesive
0x0001FAA6,//Gold
0x0001FAAD,//Lead
0x0001FAAE,//Leather
0x0001FAB0,//Gear
0x0001FAB3,//Nuclear Material
0x0001FAB4,//Oil
0x0001FAB7,//Plastic
0x0001FAB9,//Rubber
0x0001FABB,//Silver
0x0001FABC,//Spring
0x0001FABD,//Steel
0x0001FAC2,//Wood
0x0003D294,//Screw
0x0005A0C4,//Concrete
0x0005A0C7,//Fertilizer
0x001223C7,//Cloth
0x002B9178,//Pure Cobalt Flux
0x002B917A,//Pure Fluorescent Flux
0x002B917C,//Pure Violet Flux
0x002B917E,//Pure Crimson Flux
0x002B9180,//Pure Yellowcake Flux
0x0031C09A,//Coal
0x0054E4FA,//Vault 94 Steel
},
{
"Black Titanium",//0x00017DE8
"Ultracite",//0x00017DE9
"Acid",//0x0001FA8C
"Aluminum",//0x0001FA91
"Ballistic Fiber",//0x0001FA94
"Antiseptic",//0x0001FA96
"Asbestos",//0x0001FA97
"Bone",//0x0001FA98
"Ceramic",//0x0001FA9A
"Circuitry",//0x0001FA9B
"Copper",//0x0001FA9C
"Cork",//0x0001FA9D
"Crystal",//0x0001FA9F
"Fiber Optics",//0x0001FAA0
"Fiberglass",//0x0001FAA1
"Glass",//0x0001FAA4
"Adhesive",//0x0001FAA5
"Gold",//0x0001FAA6
"Lead",//0x0001FAAD
"Leather",//0x0001FAAE
"Gear",//0x0001FAB0
"Nuclear Material",//0x0001FAB3
"Oil",//0x0001FAB4
"Plastic",//0x0001FAB7
"Rubber",//0x0001FAB9
"Silver",//0x0001FABB
"Spring",//0x0001FABC
"Steel",//0x0001FABD
"Wood",//0x0001FAC2
"Screw",//0x0003D294
"Concrete",//0x0005A0C4
"Fertilizer",//0x0005A0C7
"Cloth",//0x001223C7
"Pure Cobalt Flux",//0x002B9178
"Pure Fluorescent Flux",//0x002B917A
"Pure Violet Flux",//0x002B917C
"Pure Crimson Flux",//0x002B917E
"Pure Yellowcake Flux",//0x002B9180
"Coal",//0x0031C09A
"Vault 94 Steel",//0x0054E4FA
},
};
ItemLooterSettings DefaultItemLooterSettings
{
false,
false,
false,
30,
60,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
3000,
false,
{
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
},
{
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
{
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
},
{
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
};
WeaponSettings DefaultWeaponSettings
{
false,
false,
false,
false,
false,
false,
false,
250,
false,
2.0f,
false,
500.0f,
};
TargetSettings DefaultTargetSettings
{
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
20.0f,
false,
{ 1.0f, 0.0f, 1.0f },
false,
0,
1,
1,
12,
};
LocalPlayerSettings DefaultLocalPlayerSettings
{
false,
false,
524287,
false,
0.1f,
false,
false,
false,
false,
90001,
false,
9001,
false,
9001,
false,
9001,
false,
9001,
false,
9001,
false,
9001,
false,
9001,
};
OpkSettings DefaultOpkSettings
{
false,
false,
};
UtilitySettings DefaultUtilitySettings
{
false,
false,
0x00000000,
0x00000000,
};
SwapperSettings DefaultSwapperSettings
{
0x00000000,
0x00000000,
};
TransferSettings DefaultTransferSettings
{
0x00000000,
0x00000000,
true,
true,
{
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
},
{
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
{
true, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
},
{
0x00021B3B, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
};
TeleportSettings DefaultTeleportSettings
{
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
0.0f, 0.0f, 0.0f, 0.0f, 0x00000000, false,
};
NukeCodeSettings DefaultNukeCodeSettings
{
false,
false,
false,
false,
};
LegendarySettings DefaultLegendarySettings
{
true,
{ 0.7f, 1.0f, 0.7f },
true,
{ 1.0f, 0.5f, 0.5f },
true,
{ 0.7f, 1.0f, 0.7f },
true,
{ 1.0f, 0.5f, 0.5f },
true,
{ 0.7f, 1.0f, 0.7f },
true,
{ 1.0f, 0.5f, 0.5f },
};
FluxSettings DefaultFluxSettings
{
false,
false,
false,
false,
false,
};
EntityLooterSettings DefaultEntityLooterSettings
{
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
{
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false, false,
},
{
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
{
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
},
{
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
};
HarvesterSettings DefaultHarvesterSettings
{
false,
false,
false,
{
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
},
{
0x002DDD45,//Raw Crimson Flux
0x002DDD46,//Raw Cobalt Flux
0x002DDD49,//Raw Yellowcake Flux
0x002DDD4B,//Raw Fluorescent Flux
0x002DDD4D,//Raw Violet Flux
0x00017F81,//Black Titanium Ore
0x00019D29,//Aluminum Ore
0x00019E36,//Gold Ore
0x00019E51,//Copper Ore
0x00065304,//Iron Ore
0x00065324,//Lead Ore
0x00065328,//Silver Ore
0x00065338,//Uranium Ore
0x00139013,//Ultracite Ore
0x00058AA8,//Coal
0x0016FAD8,//Unrefined Coal
0x0056AAD2,//Irradiated Ore
0x0000BAEF,//Wild Blackberry
0x000F742E,//Carrot
0x000330F8,//Corn
0x000EF24D,//Gourd
0x000FAFEB,//Melon
0x00033102,//Mutfruit
0x000E0043,//Razorgrain
0x0009DCC4,//Tato
0x000183C6,//Junk Pile
0x000731A3,//Wood Scraps
0x00106D99,//Concrete Scrap
0x001BF732,//Waste Oil
0x001BF72D,//Waste Acid
0x00015C61,//Raw Crystal
0x001BF730,//Raw Fertilizer
0x0010D90E,//Cranberries
0x001FABC2,//Diseased Cranberries
0x000D981D,//Tarberry
0x0012C48E,//Firecracker Berry
0x001F24B6,//Melon Blossom
0x001C400D,//Tato Flower
0x001C4013,//Carrot Flower
0x001C4011,//Gourd Blossom
0x001C0FC2,//Brain Fungus
0x001C0FC3,//Glowing Fungus
0x001C25EE,//Bloodleaf
0x001BE2AB,//Silt Bean
0x001C3FDC,//Soot Flower
0x003C51E0,//Toxic Soot Flower
0x0009F24B,//Thistle
0x00525644,//Rhododendron Flower
0x00064AF0,//Firecap
0x003C51DF,//Snaptail Reed
0x00384D8C,//Starlight Berries
0x000E34E9,//Mutated Fern Flower
0x00111346,//Lure Weed
0x00110A12,//Aster
0x00111345,//Blight
0x00113106,//Fever Blossom
0x003FFADB,//Kaleidopore Flower
0x0011C0C2,//Ash Rose
0x00412186,//Gut Shroom
0x00088C3C,//Pumpkin
0x004EE5D2,//Ginseng Root
0x003B90A2,//Digested Goo
0x00081FDB,//Strangler Bloom
0x00050DC9,//Strangler Pod
0x003D7496,//Swamp Plant
0x003D202D,//Bleach Dogwood
0x00142950,//Megasloth Mushroom
0x000933EA,//Glowing Resin
0x0008E922,//Mothman Egg
},
{
"Raw Crimson Flux",
"Raw Cobalt Flux",
"Raw Yellowcake Flux",
"Raw Fluorescent Flux",
"Raw Violet Flux",
"Black Titanium Ore",
"Aluminum Ore",
"Gold Ore",
"Copper Ore",
"Iron Ore",
"Lead Ore",
"Silver Ore",
"Uranium Ore",
"Ultracite Ore",
"Coal",
"Unrefined Coal",
"Irradiated Ore",
"Wild Blackberry",
"Carrot",
"Corn",
"Gourd",
"Melon",
"Mutfruit",
"Razorgrain",
"Tato",
"Junk Pile",
"Wood Scraps",
"Concrete Scrap",
"Waste Oil",
"Waste Acid",
"Raw Crystal",
"Raw Fertilizer",
"Cranberries",
"Diseased Cranberries",
"Tarberry",
"Firecracker Berry",
"Melon Blossom",
"Tato Flower",
"Carrot Flower",
"Gourd Blossom",
"Brain Fungus",
"Glowing Fungus",
"Bloodleaf",
"Silt Bean",
"Soot Flower",
"Toxic Soot Flower",
"Thistle",
"Rhododendron Flower",
"Firecap",
"Snaptail Reed",
"Starlight Berries",
"Mutated Fern Flower",
"Lure Weed",
"Aster",
"Blight",
"Fever Blossom",
"Kaleidopore Flower",
"Ash Rose",
"Gut Shroom",
"Pumpkin",
"Ginseng Root",
"Digested Goo",
"Strangler Bloom",
"Strangler Pod",
"Swamp Plant",
"Bleach Dogwood",
"Megasloth Mushroom",
"Glowing Resin",
"Mothman Egg",
},
};
KnownRecipeSettings DefaultKnownRecipeSettings
{
true,
true,
};
MeleeSettings DefaultMeleeSettings
{
false,
10,
20,
};
ChargenSettings DefaultChargenSettings
{
false,
0.33f,
0.33f,
0.33f,
};
ExtraNPCSettings DefaultExtraNPCSettings
{
false,
false,
false,
false,
false,
{
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
},
{
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
};
OverlaySettingsA PlayerSettings = DefaultPlayerSettings;
OverlaySettingsA NpcSettings = DefaultNpcSettings;
OverlaySettingsB ContainerSettings = DefaultOverlaySettingsB;
OverlaySettingsB JunkSettings = DefaultOverlaySettingsB;
OverlaySettingsB PlanSettings = DefaultOverlaySettingsB;
OverlaySettingsB MagazineSettings = DefaultOverlaySettingsB;
OverlaySettingsB BobbleheadSettings = DefaultOverlaySettingsB;
OverlaySettingsB ItemSettings = DefaultOverlaySettingsB;
OverlaySettingsB FloraSettings = DefaultOverlaySettingsB;
OverlaySettingsB EntitySettings = DefaultOverlaySettingsB;
ScrapLooterSettings CustomScrapLooterSettings = DefaultScrapLooterSettings;
ItemLooterSettings CustomItemLooterSettings = DefaultItemLooterSettings;
WeaponSettings CustomWeaponSettings = DefaultWeaponSettings;
TargetSettings CustomTargetSettings = DefaultTargetSettings;
LocalPlayerSettings CustomLocalPlayerSettings = DefaultLocalPlayerSettings;
OpkSettings CustomOpkSettings = DefaultOpkSettings;
UtilitySettings CustomUtilitySettings = DefaultUtilitySettings;
SwapperSettings CustomSwapperSettings = DefaultSwapperSettings;
TransferSettings CustomTransferSettings = DefaultTransferSettings;
TeleportSettings CustomTeleportSettings = DefaultTeleportSettings;
NukeCodeSettings CustomNukeCodeSettings = DefaultNukeCodeSettings;
LegendarySettings CustomLegendarySettings = DefaultLegendarySettings;
FluxSettings CustomFluxSettings = DefaultFluxSettings;
EntityLooterSettings NPCLooterSettings = DefaultEntityLooterSettings;
EntityLooterSettings ContainerLooterSettings = DefaultEntityLooterSettings;
HarvesterSettings CustomHarvesterSettings = DefaultHarvesterSettings;
KnownRecipeSettings CustomKnownRecipeSettings = DefaultKnownRecipeSettings;
MeleeSettings CustomMeleeSettings = DefaultMeleeSettings;
ChargenSettings CustomChargenSettings = DefaultChargenSettings;
ExtraNPCSettings CustomExtraNPCSettings = DefaultExtraNPCSettings;
void GetDWORD(const char *Section, const char *Key, DWORD *Value, DWORD *Default)
{
if (!ini.has(Section))
{
ini[Section];
}
if (!ini[Section].has(Key))
{
char DefaultText[sizeof("00000000")];
sprintf_s(DefaultText, "%08lX", *Default);
ini[Section][Key] = DefaultText;
}
try
{
*Value = stoul(ini[Section][Key], nullptr, 16);
}
catch (...)
{
*Value = *Default;
}
}
void SetDWORD(const char *Section, const char *Key, DWORD *Value, DWORD *Default)
{
if (!ini.has(Section))
{
ini[Section];
}
if (!ini[Section].has(Key))
{
char DefaultText[sizeof("00000000")];
sprintf_s(DefaultText, "%08lX", *Default);
ini[Section][Key] = DefaultText;
}
char ValueText[sizeof("00000000")];
sprintf_s(ValueText, "%08lX", *Value);
ini[Section][Key] = ValueText;
}
void GetInt(const char *Section, const char *Key, int *Value, int *Default)
{
if (!ini.has(Section))
{
ini[Section];
}
if (!ini[Section].has(Key))
{
ini[Section][Key] = std::to_string(*Default);
}
try
{
*Value = stoi(ini[Section][Key]);
}
catch (...)
{
*Value = *Default;
}
}
void SetInt(const char *Section, const char *Key, int *Value, int *Default)
{
if (!ini.has(Section))
{
ini[Section];
}
if (!ini[Section].has(Key))
{
ini[Section][Key] = std::to_string(*Default);
}
ini[Section][Key] = std::to_string(*Value);
}
void GetSliderInt(const char *Section, const char *Key, int *Value, int *Default, int Min, int Max)
{
ValidateInt(Default, Min, Max);
GetInt(Section, Key, Value, Default);
ValidateInt(Value, Min, Max);
SetInt(Section, Key, Value, Default);
}
void SetSliderInt(const char *Section, const char *Key, int *Value, int *Default, int Min, int Max)
{
ValidateInt(Value, Min, Max);
ValidateInt(Default, Min, Max);
SetInt(Section, Key, Value, Default);
}
void GetFloat(const char *Section, const char *Key, float *Value, float *Default)
{
if (!ini.has(Section))
{
ini[Section];
}
if (!ini[Section].has(Key))
{
ini[Section][Key] = std::to_string(*Default);
}
try
{
*Value = stof(ini[Section][Key]);
}
catch (...)
{
*Value = *Default;
}
}
void SetFloat(const char *Section, const char *Key, float *Value, float *Default)
{
if (!ini.has(Section))
{
ini[Section];
}
if (!ini[Section].has(Key))
{
ini[Section][Key] = std::to_string(*Default);
}
ini[Section][Key] = std::to_string(*Value);
}
void GetSliderFloat(const char *Section, const char *Key, float *Value, float *Default, float Min, float Max)
{
ValidateFloat(Default, Min, Max);
GetFloat(Section, Key, Value, Default);
ValidateFloat(Value, Min, Max);
SetFloat(Section, Key, Value, Default);
}
void SetSliderFloat(const char *Section, const char *Key, float *Value, float *Default, float Min, float Max)
{
ValidateFloat(Value, Min, Max);
ValidateFloat(Default, Min, Max);
SetFloat(Section, Key, Value, Default);
}
void GetRGB(const char *Section, const char *Key, float *Value, float *Default)
{
int KeyLength = GetTextLength(Key);
int KeySize = KeyLength + sizeof("x");
char *KeyR = new char[KeySize];
sprintf_s(KeyR, KeySize, "%sR", Key);
char *KeyG = new char[KeySize];