script for setting the stock amount
This commit is contained in:
parent
1fbad00caf
commit
51eea12a70
@ -1,35 +1,35 @@
|
||||
{
|
||||
"m_Version": 5,
|
||||
"m_ZoneName": "BalotaAircrafts",
|
||||
"m_DisplayName": "Balota Aircrafts Trading Zone",
|
||||
"Position": [
|
||||
4971.0,
|
||||
10.5,
|
||||
2436.360107421875
|
||||
],
|
||||
"Radius": 100.0,
|
||||
"BuyPricePercent": 100.0,
|
||||
"SellPricePercent": -1.0,
|
||||
"Stock": {
|
||||
"expansion_mh6_door_1_1": 100,
|
||||
"expansiongyrocopter": 10,
|
||||
"expansion_mh6_door_1_2": 100,
|
||||
"expansionuh1hdoor_1_1": 100,
|
||||
"expansionhydraulichoses": 100,
|
||||
"expansion_mh6_door_2_1": 100,
|
||||
"tirerepairkit": 100,
|
||||
"sparkplug": 100,
|
||||
"canistergasoline": 100,
|
||||
"expansionigniterplug": 100,
|
||||
"expansionmh6": 10,
|
||||
"expansionmerlin": 10,
|
||||
"expansionmerlinbackwheel": 100,
|
||||
"expansionuh1h": 10,
|
||||
"expansioncarkey": 100,
|
||||
"headlighth7_box": 100,
|
||||
"expansionuh1hdoor_1_2": 100,
|
||||
"expansion_mh6_door_2_2": 100,
|
||||
"expansionmerlinfrontwheel": 100,
|
||||
"expansionhelicopterbattery": 100
|
||||
}
|
||||
"m_Version": 5,
|
||||
"m_ZoneName": "BalotaAircrafts",
|
||||
"m_DisplayName": "Balota Aircrafts Trading Zone",
|
||||
"Position": [
|
||||
4971.0,
|
||||
10.5,
|
||||
2436.360107421875
|
||||
],
|
||||
"Radius": 100.0,
|
||||
"BuyPricePercent": 100.0,
|
||||
"SellPricePercent": -1.0,
|
||||
"Stock": {
|
||||
"expansion_mh6_door_1_1": -2,
|
||||
"expansiongyrocopter": -2,
|
||||
"expansion_mh6_door_1_2": -2,
|
||||
"expansionuh1hdoor_1_1": -2,
|
||||
"expansionhydraulichoses": -2,
|
||||
"expansion_mh6_door_2_1": -2,
|
||||
"tirerepairkit": -2,
|
||||
"sparkplug": -2,
|
||||
"canistergasoline": -2,
|
||||
"expansionigniterplug": -2,
|
||||
"expansionmh6": -2,
|
||||
"expansionmerlin": -2,
|
||||
"expansionmerlinbackwheel": -2,
|
||||
"expansionuh1h": -2,
|
||||
"expansioncarkey": -2,
|
||||
"headlighth7_box": -2,
|
||||
"expansionuh1hdoor_1_2": -2,
|
||||
"expansion_mh6_door_2_2": -2,
|
||||
"expansionmerlinfrontwheel": -2,
|
||||
"expansionhelicopterbattery": -2
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,23 +1,23 @@
|
||||
{
|
||||
"m_Version": 5,
|
||||
"m_ZoneName": "KamenkaBoats",
|
||||
"m_DisplayName": "Kamenka Boats Trading Zone",
|
||||
"Position": [
|
||||
1756.0999755859376,
|
||||
2.200000047683716,
|
||||
2025.469970703125
|
||||
],
|
||||
"Radius": 100.0,
|
||||
"BuyPricePercent": 100.0,
|
||||
"SellPricePercent": -1.0,
|
||||
"Stock": {
|
||||
"truckbattery": 100,
|
||||
"expansionzodiacboat": 10,
|
||||
"expansionutilityboat": 10,
|
||||
"glowplug": 100,
|
||||
"expansioncarkey": 100,
|
||||
"headlighth7_box": 100,
|
||||
"expansionlhd": 1,
|
||||
"canistergasoline": 100
|
||||
}
|
||||
"m_Version": 5,
|
||||
"m_ZoneName": "KamenkaBoats",
|
||||
"m_DisplayName": "Kamenka Boats Trading Zone",
|
||||
"Position": [
|
||||
1756.0999755859375,
|
||||
2.200000047683716,
|
||||
2025.469970703125
|
||||
],
|
||||
"Radius": 100.0,
|
||||
"BuyPricePercent": 100.0,
|
||||
"SellPricePercent": -1.0,
|
||||
"Stock": {
|
||||
"truckbattery": -2,
|
||||
"expansionzodiacboat": -2,
|
||||
"expansionutilityboat": -2,
|
||||
"glowplug": -2,
|
||||
"expansioncarkey": -2,
|
||||
"headlighth7_box": -2,
|
||||
"expansionlhd": -2,
|
||||
"canistergasoline": -2
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,30 +1,30 @@
|
||||
{
|
||||
"m_Version": 5,
|
||||
"m_ZoneName": "Svetloyarsk",
|
||||
"m_DisplayName": "Svetloyarsk Trading Zone",
|
||||
"Position": [
|
||||
14377.099609375,
|
||||
4.099999904632568,
|
||||
13272.900390625
|
||||
],
|
||||
"Radius": 500.0,
|
||||
"BuyPricePercent": 100.0,
|
||||
"SellPricePercent": -1.0,
|
||||
"Stock": {
|
||||
"hook": 100,
|
||||
"mackerel": 100,
|
||||
"expansionlhd": 1,
|
||||
"fishingrod": 100,
|
||||
"expansionutilityboat": 10,
|
||||
"worm": 100,
|
||||
"sardines": 100,
|
||||
"canistergasoline": 100,
|
||||
"truckbattery": 100,
|
||||
"expansionzodiacboat": 10,
|
||||
"bonehook": 100,
|
||||
"glowplug": 100,
|
||||
"expansioncarkey": 100,
|
||||
"headlighth7_box": 100,
|
||||
"carp": 100
|
||||
}
|
||||
"m_Version": 5,
|
||||
"m_ZoneName": "Svetloyarsk",
|
||||
"m_DisplayName": "Svetloyarsk Trading Zone",
|
||||
"Position": [
|
||||
14377.099609375,
|
||||
4.099999904632568,
|
||||
13272.900390625
|
||||
],
|
||||
"Radius": 500.0,
|
||||
"BuyPricePercent": 100.0,
|
||||
"SellPricePercent": -1.0,
|
||||
"Stock": {
|
||||
"hook": -2,
|
||||
"mackerel": -2,
|
||||
"expansionlhd": -2,
|
||||
"fishingrod": -2,
|
||||
"expansionutilityboat": -2,
|
||||
"worm": -2,
|
||||
"sardines": -2,
|
||||
"canistergasoline": -2,
|
||||
"truckbattery": -2,
|
||||
"expansionzodiacboat": -2,
|
||||
"bonehook": -2,
|
||||
"glowplug": -2,
|
||||
"expansioncarkey": -2,
|
||||
"headlighth7_box": -2,
|
||||
"carp": -2
|
||||
}
|
||||
}
|
||||
22
ExpansionMod(settings)/TraderZones/infinite_supply.py
Normal file
22
ExpansionMod(settings)/TraderZones/infinite_supply.py
Normal file
@ -0,0 +1,22 @@
|
||||
import os
|
||||
import json
|
||||
import re
|
||||
|
||||
|
||||
val = int(input("Welcher wert soll gesetzt werden?: "))
|
||||
pattern = re.compile("([a-zA-Z])+(.json)")
|
||||
for filename in os.listdir():
|
||||
print(filename)
|
||||
if pattern.match(filename):
|
||||
|
||||
file = open(filename, 'br')
|
||||
data = json.load(file)
|
||||
file.close()
|
||||
for key, value in data["Stock"].items():
|
||||
data["Stock"][key] = val
|
||||
file = open(filename, 'w')
|
||||
fancy = json.dumps(data, indent=2)
|
||||
print(fancy)
|
||||
file.write(fancy)
|
||||
#json.dump(data, file)
|
||||
file.close()
|
||||
Loading…
Reference in New Issue
Block a user