If that doesn't work then you are doing something wrong... I spent a few hours to understand how to make it run, but it works.
If that doesn't work then you are doing something wrong... I spent a few hours to understand how to make it run, but it works.
there are 3 ways, i think, you may wrong if the script doesn't work:
1) you have not downloaded-updated the pymongo drivers for the python shell. if this is the way you should see and error code long a mile and over like the one i posted in this 3d above some posts... id this is the reason update the pymongo drivers.
2) you have not created a second (fake) account with the robo3t program. once you have created the second account leave BOTH accounts and only THEN run the python script.
3) you may have created the second account but you have inserted in the python script an incorrect value for the "id" string. simply open the python script with the note program and set the same id value of the second account and ONLY THEN run the python script.
ps: i've found a very silly (don't ask me how or why it works dudes but it works for me!) workaround to "fix" sometimes the "server closed" iussue: even if you have done al the procedures good sometimes the error comes... to"fix" it do this:
1) return to the main screen with esc button. DON'T press any other button!
2) with the mouse click one time to settings. don't change any of yuor settings tough!
3) click once the apply button
4) click once the conferm button
5) click the start button and the client will open the page! O.o
6) if the page is still closed repeat the procedure from 1 to 5 again.
i don't know why but this "procedure" works to me! ^^
Hello,
im geting this error for some reason when i run the script. Any help?
>>> import pymongo>>> from pymongo import MongoClient>>> from pprint import pprint>>> from bson.int64 import Int64>>> import copy>>>>>> class Marketplace:... File "<stdin>", line 2 ^IndentationError: expected an indented block>>> item_data = { File "<stdin>", line 1 item_data = { ^IndentationError: unexpected indent>>> # weapons: index0 is used for price... "weapons" : [ File "<stdin>", line 2 "weapons" : [ ^IndentationError: unexpected indent>>> [ 200000, 10413, 10613, 13313, 11213, 11363, 10213, 10013, 13213, 14413 ], # Bares File "<stdin>", line 1 [ 200000, 10413, 10613, 13313, 11213, 11363, 10213, 10013, 13213, 14413 ], # Bares ^IndentationError: unexpected indent>>> [ 200000, 10403, 10603, 13303, 11203, 11353, 10203, 10003, 13203, 14403 ], # Elsh File "<stdin>", line 1 [ 200000, 10403, 10603, 13303, 11203, 11353, 10203, 10003, 13203, 14403 ], # Elsh ^IndentationError: unexpected indent>>> [ 120000, 10406, 10606, 13306, 11206, 11356, 10206, 10006, 13206, 14406 ], # Ain File "<stdin>", line 1 [ 120000, 10406, 10606, 13306, 11206, 11356, 10206, 10006, 13206, 14406 ], # Ain ^IndentationError: unexpected indent>>> [ 120000, 10405, 10605, 13305, 11205, 11355, 10205, 10005, 13205, 14405 ], # Azwell File "<stdin>", line 1 [ 120000, 10405, 10605, 13305, 11205, 11355, 10205, 10005, 13205, 14405 ], # Azwell ^IndentationError: unexpected indent>>> [ 140000, 10471, 10671, 13371, 11222, 11372, 10271, 10071, 13271, 14471 ], # Styd File "<stdin>", line 1 [ 140000, 10471, 10671, 13371, 11222, 11372, 10271, 10071, 13271, 14471 ], # Styd ^IndentationError: unexpected indent>>> [ 150000, 10414, 10614, 13314, 11214, 11364, 10214, 10014, 13214, 14414 ], # Yuria File "<stdin>", line 1 [ 150000, 10414, 10614, 13314, 11214, 11364, 10214, 10014, 13214, 14414 ], # Yuria ^IndentationError: unexpected indent>>> [ 150000, 10407, 10607, 13307, 11207, 11357, 10207, 10007, 13207, 14407 ], # Seleth File "<stdin>", line 1 [ 150000, 10407, 10607, 13307, 11207, 11357, 10207, 10007, 13207, 14407 ], # Seleth ^IndentationError: unexpected indent>>> [ 200000, 10412, 10612, 13312, 11212, 11362, 10212, 10012, 13212, 14412 ], # Kalis File "<stdin>", line 1 [ 200000, 10412, 10612, 13312, 11212, 11362, 10212, 10012, 13212, 14412 ], # Kalis ^IndentationError: unexpected indent>>> [ 250000, 10456, 10656, 13356, 11220, 11370, 10256, 10056, 13256, 14456 ], # Krea File "<stdin>", line 1 [ 250000, 10456, 10656, 13356, 11220, 11370, 10256, 10056, 13256, 14456 ], # Krea ^IndentationError: unexpected indent>>> [ 300000, 10457, 10657, 13357, 11221, 11371, 10257, 10057, 13257, 14457 ], # Rosar File "<stdin>", line 1 [ 300000, 10457, 10657, 13357, 11221, 11371, 10257, 10057, 13257, 14457 ], # Rosar ^IndentationError: unexpected indent>>> [ 9000000, 10409, 10609, 13309, 11209, 11359, 10209, 10009, 13209, 14409 ], # Liverto File "<stdin>", line 1 [ 9000000, 10409, 10609, 13309, 11209, 11359, 10209, 10009, 13209, 14409 ], # Liverto ^IndentationError: unexpected indent>>> [ 90000000, 10410, 10610, 13310, 11210, 11360, 10210, 10010, 13210, 14410 ], # Kzarka File "<stdin>", line 1 [ 90000000, 10410, 10610, 13310, 11210, 11360, 10210, 10010, 13210, 14410 ], # Kzarka ^IndentationError: unexpected indent>>> # Secondaries... #[ 10000, 10301, 13001, 10101, 10501, 10701, 13101, 14501, 14601, 11301 ], # t1... #[ 60000, 10302, 13002, 10104, 10502, 10702, 13102, 14502, 14602, 11302 ], # t2... [ 60000, 10303, 13003, 10102, 10503, 10705, 13104, 14503, 14603, 11303 ], # t3 File "<stdin>", line 4 [ 60000, 10303, 13003, 10102, 10503, 10705, 13104, 14503, 14603, 11303 ], # t3 ^IndentationError: unexpected indent>>> [ 200000, 10304, 13004, 10103, 10504, 10704, 13103, 14504, 14604, 11304 ], # t4 File "<stdin>", line 1 [ 200000, 10304, 13004, 10103, 10504, 10704, 13103, 14504, 14604, 11304 ], # t4 ^IndentationError: unexpected indent>>> [ 250000, 10305, 13005, 10105, 10505, 10703, 13105, 14505, 14605, 11305 ], # t5 File "<stdin>", line 1 [ 250000, 10305, 13005, 10105, 10505, 10703, 13105, 14505, 14605, 11305 ], # t5 ^IndentationError: unexpected indent>>> [ 350000, 10324, 13024, 10124, 10724, 10524, 13124, 14524, 14624, 11324 ], # t6 File "<stdin>", line 1 [ 350000, 10324, 13024, 10124, 10724, 10524, 13124, 14524, 14624, 11324 ], # t6 ^IndentationError: unexpected indent>>> [ 400000, 10325, 13025, 10125, 10525, 10725, 13125, 14525, 14625, 11325 ], # t7 File "<stdin>", line 1 [ 400000, 10325, 13025, 10125, 10525, 10725, 13125, 14525, 14625, 11325 ], # t7 ^IndentationError: unexpected indent>>> [ 80000000, 10340, 13140, 14540, 10740, 10140, 14640, 10540, 13040, 11340 ], # t8 kutum File "<stdin>", line 1 [ 80000000, 10340, 13140, 14540, 10740, 10140, 14640, 10540, 13040, 11340 ], # t8 kutum ^IndentationError: unexpected indent>>> [ 90000000, 13038, 10338, 13138, 14538, 10738, 10138, 10138, 14638, 10538, 11338 ], # t9 nouver File "<stdin>", line 1 [ 90000000, 13038, 10338, 13138, 14538, 10738, 10138, 10138, 14638, 10538, 11338 ], # t9 nouver ^IndentationError: unexpected indent>>>... # Awakened... [ 90000000, 14802, 14742, 14762, 14822, 14812, 14702, 14722, 14732, 14772, 14752, 14792, 14712, 14782, 14817 ], # dandelion File "<stdin>", line 3 [ 90000000, 14802, 14742, 14762, 14822, 14812, 14702, 14722, 14732, 14772, 14752, 14792, 14712, 14782, 14817 ], # dandelion ^IndentationError: unexpected indent>>>... # Misusing the weapon structure here for non-stacking misc items... # because they are processed in the same way.... # Magic Crystals:... [ 5000, 15034, 15035, 15036, 15037, 15038, 15039, 15040, 15041, 15042, 15043, 15044, 15045 ], # white File "<stdin>", line 5 [ 5000, 15034, 15035, 15036, 15037, 15038, 15039, 15040, 15041, 15042, 15043, 15044, 15045 ], # white ^IndentationError: unexpected indent>>> [ 5000, 15001, 15002, 15003, 15004, 15005, 15006, 15007, 15008, 15009, 15010, 15011, 15012, 15013, 15014, 15015, 15016, 15017, 15018, 15019, 15020, 15027, 15028, 15029, 15030, 15031, 15033 ], # green File "<stdin>", line 1 [ 5000, 15001, 15002, 15003, 15004, 15005, 15006, 15007, 15008, 15009, 15010, 15011, 15012, 15013, 15014, 15015, 15016, 15017, 15018, 15019, 15020, 15027, 15028, 15029, 15030, 15031, 15033 ], # green ^IndentationError: unexpected indent>>> [ 250000, 15101, 15102, 15103, 15104, 15105, 15106, 15107, 15108, 15109, 15110, 15111, 15112, 15113, 15114, 15115, 15116, 15117, 15118, 15119, 15120, 15121, 15122, 15123, 15124, 15125, 15126, 15127, 15128, 15129, 15130, 15131, 15132, 15133, 15134, 15135, 15136, 15137, 15138, 15139, 15146, 15147, 15148, 15149, 15150, 15151, 15152, 15153, 15154 ], # blue File "<stdin>", line 1 [ 250000, 15101, 15102, 15103, 15104, 15105, 15106, 15107, 15108, 15109, 15110, 15111, 15112, 15113, 15114, 15115, 15116, 15117, 15118, 15119, 15120, 15121, 15122, 15123, 15124, 15125, 15126, 15127, 15128, 15129, 15130, 15131, 15132, 15133, 15134, 15135, 15136, 15137, 15138, 15139, 15146, 15147, 15148, 15149, 15150, 15151, 15152, 15153, 15154 ], # blue ^IndentationError: unexpected indent>>> [ 1600000, 15021, 15022, 15023, 15024, 15025, 15026, 15032, 15201, 15202, 15203, 15204, 15205, 15206, 15207, 15208, 15209, 15210, 15211, 15212, 15213, 15214, 15215, 15216, 15217, 15218, 15219, 15220, 15221, 15222, 15223, 15224, 15606, 15607, 15608, 15609, 15610, 15611, 15612, 15613, 15614, 15615, 15616, 15617, 15618, 15619, 15620, 15621, 15622, 15623, 15624, 15625 ], # yellow File "<stdin>", line 1 [ 1600000, 15021, 15022, 15023, 15024, 15025, 15026, 15032, 15201, 15202, 15203, 15204, 15205, 15206, 15207, 15208, 15209, 15210, 15211, 15212, 15213, 15214, 15215, 15216, 15217, 15218, 15219, 15220, 15221, 15222, 15223, 15224, 15606, 15607, 15608, 15609, 15610, 15611, 15612, 15613, 15614, 15615, 15616, 15617, 15618, 15619, 15620, 15621, 15622, 15623, 15624, 15625 ], # yellow ^IndentationError: unexpected indent>>> [ 15000000, 15501, 15502, 15503, 15504, 15505, 15601, 15602, 15603, 15604, 15605, 15606, 15626, 15627, 15628, 15629, 15630, 15631, 15632, 15633, 15634, 15635, 15636, 15637, 15638, 15639, 15640, 15649, 15650, 15651 ], # orange File "<stdin>", line 1 [ 15000000, 15501, 15502, 15503, 15504, 15505, 15601, 15602, 15603, 15604, 15605, 15606, 15626, 15627, 15628, 15629, 15630, 15631, 15632, 15633, 15634, 15635, 15636, 15637, 15638, 15639, 15640, 15649, 15650, 15651 ], # orange ^IndentationError: unexpected indent>>>......... # Summon Items 15226,... [ 100000, 40220 ], # Forbidden Book File "<stdin>", line 5 [ 100000, 40220 ], # Forbidden Book ^IndentationError: unexpected indent>>> [ 200000, 40218 ], # Ancient Relic Crystal shard File "<stdin>", line 1 [ 200000, 40218 ], # Ancient Relic Crystal shard ^IndentationError: unexpected indent>>> [ 250000, 40228 ], # Scroll written in ancient language File "<stdin>", line 1 [ 250000, 40228 ], # Scroll written in ancient language ^IndentationError: unexpected indent>>>... ### Useful consumables ###... # Purified Water, Star Anise Tea... [ 1000, 6656, 9306 ], File "<stdin>", line 4 [ 1000, 6656, 9306 ], ^IndentationError: unexpected indent>>>>>> # Dim Tree Armor, Red Nose Armor, Giath Hat, Muskan Shoe, Bheg Glove... [ 100000000, 11017, 11014, 11013, 11016, 11015 ], File "<stdin>", line 2 [ 100000000, 11017, 11014, 11013, 11016, 11015 ], ^IndentationError: unexpected indent>>>... ## Crafting ##... [ 50000, 44195 ], # Memory Fragment File "<stdin>", line 3 [ 50000, 44195 ], # Memory Fragment ^IndentationError: unexpected indent>>> [ 100000, 4911, 4910 ], # grade 3 reform stones File "<stdin>", line 1 [ 100000, 4911, 4910 ], # grade 3 reform stones ^IndentationError: unexpected indent>>> [ 100000, 16001, 16002 ], # Black stones File "<stdin>", line 1 [ 100000, 16001, 16002 ], # Black stones ^IndentationError: unexpected indent>>> [ 10000000, 16004, 16005 ], # Concentrated Black stones File "<stdin>", line 1 [ 10000000, 16004, 16005 ], # Concentrated Black stones ^IndentationError: unexpected indent>>>>>> # Accessories...... # Riddell Earring... [ 900000, 11811 ], File "<stdin>", line 4 [ 900000, 11811 ], ^IndentationError: unexpected indent>>>... # Shrine Guardian Token, Outlaw's Ring... [ 1500000, 12008, 12012 ], File "<stdin>", line 3 [ 1500000, 12008, 12012 ], ^IndentationError: unexpected indent>>>... # Blue Coral Ring, Blue Coral Earring, Ancient Weapon Core, Red Coral Ring, Scarla Necklace... [ 4500000, 12017, 11816, 12220, 12018, 11610 ], File "<stdin>", line 3 [ 4500000, 12017, 11816, 12220, 12018, 11610 ], ^IndentationError: unexpected indent>>>... # Belt of Shultz... [ 7000000, 12211 ], File "<stdin>", line 3 [ 7000000, 12211 ], ^IndentationError: unexpected indent>>>... # Necklace of Shultz, Red Coral Earring, Witch's Earring, Fugitive Khalk's Earring, Mark of Shadow... [ 12000000, 11631, 11817, 11808, 11827, 12007 ], File "<stdin>", line 3 [ 12000000, 11631, 11817, 11808, 11827, 12007 ], ^IndentationError: unexpected indent>>>... # Ancient Guardian's Seal... [ 18000000, 11613 ], File "<stdin>", line 3 [ 18000000, 11613 ], ^IndentationError: unexpected indent>>>... # Tree Spirit Belt... [ 35000000, 12210 ], File "<stdin>", line 3 [ 35000000, 12210 ], ^IndentationError: unexpected indent>>>... # Blue Whale Molar Earring... [ 40000000, 11815 ], File "<stdin>", line 3 [ 40000000, 11815 ], ^IndentationError: unexpected indent>>>... # Ring of Cadry Guardian, Ring of Crescent Guardian, Serap's Necklace... [ 45000000, 12032, 12031, 11628 ], File "<stdin>", line 3 [ 45000000, 12032, 12031, 11628 ], ^IndentationError: unexpected indent>>>... # Sicil's Necklace... [ 55000000, 11625 ], File "<stdin>", line 3 [ 55000000, 11625 ], ^IndentationError: unexpected indent>>>... # Basilisk's Belt... [ 70000000, 12230 ], File "<stdin>", line 3 [ 70000000, 12230 ], ^IndentationError: unexpected indent>>>... # Tungrad Earring, Ogre Ring, Laytenn's Power Stone... [ 90000000, 11828, 11607, 11630 ], File "<stdin>", line 3 [ 90000000, 11828, 11607, 11630 ], ^IndentationError: unexpected indent>>>... # Tungrad Necklace... [ 120000000, 11629 ], File "<stdin>", line 3 [ 120000000, 11629 ], ^IndentationError: unexpected indent>>>... ], File "<stdin>", line 2 ], ^IndentationError: unexpected indent>>> # armor has a feature where chests are more expensive than other parts... "armor" : [ # price, hatID, chestID, gloveID, shoeID File "<stdin>", line 2 "armor" : [ # price, hatID, chestID, gloveID, shoeID ^IndentationError: unexpected indent>>> [ 100000, 10813, 10814, 10815, 10816 ], # Taritas File "<stdin>", line 1 [ 100000, 10813, 10814, 10815, 10816 ], # Taritas ^IndentationError: unexpected indent>>> [ 100000, 10821, 10822, 10823, 10824 ], # Talis File "<stdin>", line 1 [ 100000, 10821, 10822, 10823, 10824 ], # Talis ^IndentationError: unexpected indent>>> [ 250000, 10809, 10810, 10811, 10812 ], # Agerian File "<stdin>", line 1 [ 250000, 10809, 10810, 10811, 10812 ], # Agerian ^IndentationError: unexpected indent>>> [ 330000, 11005, 11006, 11007, 11008 ], # Strength of Heve File "<stdin>", line 1 [ 330000, 11005, 11006, 11007, 11008 ], # Strength of Heve ^IndentationError: unexpected indent>>> [ 320000, 11001, 11002, 11003, 11004 ], # Hercules Might File "<stdin>", line 1 [ 320000, 11001, 11002, 11003, 11004 ], # Hercules Might ^IndentationError: unexpected indent>>> [ 330000, 11009, 11010, 11011, 11012 ], # Luck Fortuna File "<stdin>", line 1 [ 330000, 11009, 11010, 11011, 11012 ], # Luck Fortuna ^IndentationError: unexpected indent>>> [ 340000, 10817, 10818, 10819, 10820 ], # Zereth File "<stdin>", line 1 [ 340000, 10817, 10818, 10819, 10820 ], # Zereth ^IndentationError: unexpected indent>>> [ 350000, 10933, 10934, 10935, 10936 ], # grunil File "<stdin>", line 1 [ 350000, 10933, 10934, 10935, 10936 ], # grunil ^IndentationError: unexpected indent>>> [ 200000, 10937, 10938, 10939, 10940 ], # Rocaba File "<stdin>", line 1 [ 200000, 10937, 10938, 10939, 10940 ], # Rocaba ^IndentationError: unexpected indent>>> ], File "<stdin>", line 1 ], ^IndentationError: unexpected indent>>>... # other have price as index0 and quantity as index 1... "other" : [ File "<stdin>", line 3 "other" : [ ^IndentationError: unexpected indent>>> [ 100000, 9999, 16001, 16002 ], # Black stones File "<stdin>", line 1 [ 100000, 9999, 16001, 16002 ], # Black stones ^IndentationError: unexpected indent>>> [ 10000000, 999, 16004, 16005 ], # Concentrated Black stones File "<stdin>", line 1 [ 10000000, 999, 16004, 16005 ], # Concentrated Black stones ^IndentationError: unexpected indent>>>... ] File "<stdin>", line 2 ] ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>>>>> base_item = { File "<stdin>", line 1 base_item = { ^IndentationError: unexpected indent>>> "_id":Int64(10000002000000002), File "<stdin>", line 1 "_id":Int64(10000002000000002), ^IndentationError: unexpected indent>>> "accountId": 2, File "<stdin>", line 1 "accountId": 2, ^IndentationError: unexpected indent>>> "marketRegistredDate": 1531821851, File "<stdin>", line 1 "marketRegistredDate": 1531821851, ^IndentationError: unexpected indent>>> "marketExpirationDate": 1832426651, File "<stdin>", line 1 "marketExpirationDate": 1832426651, ^IndentationError: unexpected indent>>> "revenue":0, File "<stdin>", line 1 "revenue":0, ^IndentationError: unexpected indent>>> "totalCount":9999999, File "<stdin>", line 1 "totalCount":9999999, ^IndentationError: unexpected indent>>> "price":33333, File "<stdin>", line 1 "price":33333, ^IndentationError: unexpected indent>>> "territoryKey":0, File "<stdin>", line 1 "territoryKey":0, ^IndentationError: unexpected indent>>> "item":{ File "<stdin>", line 1 "item":{ ^IndentationError: unexpected indent>>> "objectId": -1, File "<stdin>", line 1 "objectId": -1, ^IndentationError: unexpected indent>>> "itemId":10813, File "<stdin>", line 1 "itemId":10813, ^IndentationError: unexpected indent>>> "regionId":1, File "<stdin>", line 1 "regionId":1, ^IndentationError: unexpected indent>>> "enchantLevel":0, File "<stdin>", line 1 "enchantLevel":0, ^IndentationError: unexpected indent>>> "count":9999, File "<stdin>", line 1 "count":9999, ^IndentationError: unexpected indent>>> "endurance":100, File "<stdin>", line 1 "endurance":100, ^IndentationError: unexpected indent>>> "maxEndurance":100, File "<stdin>", line 1 "maxEndurance":100, ^IndentationError: unexpected indent>>> "expirationPeriod":-1, File "<stdin>", line 1 "expirationPeriod":-1, ^IndentationError: unexpected indent>>> "isVested":False, File "<stdin>", line 1 "isVested":False, ^IndentationError: unexpected indent>>> "price":33333, File "<stdin>", line 1 "price":33333, ^IndentationError: unexpected indent>>> "alchemyStoneExp":0, File "<stdin>", line 1 "alchemyStoneExp":0, ^IndentationError: unexpected indent>>> "colorPaletteType":0, File "<stdin>", line 1 "colorPaletteType":0, ^IndentationError: unexpected indent>>> "jewels":[], File "<stdin>", line 1 "jewels":[], ^IndentationError: unexpected indent>>> "colorPalettes":[] File "<stdin>", line 1 "colorPalettes":[] ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>>>>> base_master = { File "<stdin>", line 1 base_master = { ^IndentationError: unexpected indent>>> "_id":Int64(10000002000000002), File "<stdin>", line 1 "_id":Int64(10000002000000002), ^IndentationError: unexpected indent>>> "itemId":10813, File "<stdin>", line 1 "itemId":10813, ^IndentationError: unexpected indent>>> "itemEnchantLevel":0, File "<stdin>", line 1 "itemEnchantLevel":0, ^IndentationError: unexpected indent>>> "itemMinPrice":100, File "<stdin>", line 1 "itemMinPrice":100, ^IndentationError: unexpected indent>>> "itemMaxPrice":Int64(100000000000), File "<stdin>", line 1 "itemMaxPrice":Int64(100000000000), ^IndentationError: unexpected indent>>> "marketSoldCount":0, File "<stdin>", line 1 "marketSoldCount":0, ^IndentationError: unexpected indent>>> "marketMinPrice":100, File "<stdin>", line 1 "marketMinPrice":100, ^IndentationError: unexpected indent>>> "marketMaxPrice":Int64(100000000000), File "<stdin>", line 1 "marketMaxPrice":Int64(100000000000), ^IndentationError: unexpected indent>>> "marketPrice":33333 File "<stdin>", line 1 "marketPrice":33333 ^IndentationError: unexpected indent>>> } File "<stdin>", line 1 } ^IndentationError: unexpected indent>>>>>> def __init__(self): File "<stdin>", line 1 def __init__(self): ^IndentationError: unexpected indent>>> # Account ID in mongo account collection of the user who is... # "selling" everything that we are putting on the market. To create... # an account for this modify the Start64.bat to change the... # credentials and the change back to launch your main account.... self.account_id = 2 File "<stdin>", line 5 self.account_id = 2 ^IndentationError: unexpected indent>>>... self.current_key = 0 File "<stdin>", line 2 self.current_key = 0 ^IndentationError: unexpected indent>>> self.market_items = [] File "<stdin>", line 1 self.market_items = [] ^IndentationError: unexpected indent>>> self.master_items = [] File "<stdin>", line 1 self.master_items = [] ^IndentationError: unexpected indent>>>... def collectionsAreEmpty(self, db): File "<stdin>", line 2 def collectionsAreEmpty(self, db): ^IndentationError: unexpected indent>>> gs = db["gameserver"] File "<stdin>", line 1 gs = db["gameserver"] ^IndentationError: unexpected indent>>> if "itemMarket" in gs.collection_names(): File "<stdin>", line 1 if "itemMarket" in gs.collection_names(): ^IndentationError: unexpected indent>>> if gs["itemMarket"].count() > 0: File "<stdin>", line 1 if gs["itemMarket"].count() > 0: ^IndentationError: unexpected indent>>> gs["itemMarket"].drop() File "<stdin>", line 1 gs["itemMarket"].drop() ^IndentationError: unexpected indent>>> gs["itemMarket"].remove() File "<stdin>", line 1 gs["itemMarket"].remove() ^IndentationError: unexpected indent>>>... if gs["itemMarket"].count() > 0: File "<stdin>", line 2 if gs["itemMarket"].count() > 0: ^IndentationError: unexpected indent>>> raise EnvironmentError("Script was unable to create an empty collection. You need to manually delete itemMarket and itemMarketMaster collections to run this script.") File "<stdin>", line 1 raise EnvironmentError("Script was unable to create an empty collection. You need to manually delete itemMarket and itemMarketMaster collections to run this script.") ^IndentationError: unexpected indent>>>... if "itemMarketMaster" in gs.collection_names(): File "<stdin>", line 2 if "itemMarketMaster" in gs.collection_names(): ^IndentationError: unexpected indent>>> if gs["itemMarketMaster"].count() > 0: File "<stdin>", line 1 if gs["itemMarketMaster"].count() > 0: ^IndentationError: unexpected indent>>> gs["itemMarketMaster"].drop() File "<stdin>", line 1 gs["itemMarketMaster"].drop() ^IndentationError: unexpected indent>>> gs["itemMarketMaster"].remove() File "<stdin>", line 1 gs["itemMarketMaster"].remove() ^IndentationError: unexpected indent>>>...... def populate(self): File "<stdin>", line 3 def populate(self): ^IndentationError: unexpected indent>>> # if collections do not exist, create them... # if that fails, error out... # if collections exist and are empty, proceed... # if collections exist and are not empty, drop them... # if collections still exist and are not empty, error out...>>> try: File "<stdin>", line 1 try: ^IndentationError: unexpected indent>>> db = MongoClient("localhost", 27017) File "<stdin>", line 1 db = MongoClient("localhost", 27017) ^IndentationError: unexpected indent>>> gameserver = db["gameserver"] File "<stdin>", line 1 gameserver = db["gameserver"] ^IndentationError: unexpected indent>>>>>> self.collectionsAreEmpty(db) File "<stdin>", line 1 self.collectionsAreEmpty(db) ^IndentationError: unexpected indent>>>... self.col_item_market = gameserver.itemMarket File "<stdin>", line 2 self.col_item_market = gameserver.itemMarket ^IndentationError: unexpected indent>>> self.col_master_item_market = db["gameserver"].masterItemMarket File "<stdin>", line 1 self.col_master_item_market = db["gameserver"].masterItemMarket ^IndentationError: unexpected indent>>>>>> self.buildArmor() File "<stdin>", line 1 self.buildArmor() ^IndentationError: unexpected indent>>> self.buildWeapons() File "<stdin>", line 1 self.buildWeapons() ^IndentationError: unexpected indent>>> self.buildOther() File "<stdin>", line 1 self.buildOther() ^IndentationError: unexpected indent>>> self.send_item_market() File "<stdin>", line 1 self.send_item_market() ^IndentationError: unexpected indent>>> self.send_item_master() File "<stdin>", line 1 self.send_item_master() ^IndentationError: unexpected indent>>> print("If you don't see any error messages, it probably worked") File "<stdin>", line 1 print("If you don't see any error messages, it probably worked") ^IndentationError: unexpected indent>>>... except EnvironmentError as e: File "<stdin>", line 2 except EnvironmentError as e: ^IndentationError: unexpected indent>>> print (e.args) File "<stdin>", line 1 print (e.args) ^IndentationError: unexpected indent>>>... def getNewId(self): File "<stdin>", line 2 def getNewId(self): ^IndentationError: unexpected indent>>> self.current_key = self.current_key + 1 File "<stdin>", line 1 self.current_key = self.current_key + 1 ^IndentationError: unexpected indent>>> return Int64(1000000200000) + self.current_key File "<stdin>", line 1 return Int64(1000000200000) + self.current_key ^IndentationError: unexpected indent>>>>>> def addDupes(self, item_record, num_dupes): File "<stdin>", line 1 def addDupes(self, item_record, num_dupes): ^IndentationError: unexpected indent>>> for c in range(0, num_dupes): File "<stdin>", line 1 for c in range(0, num_dupes): ^IndentationError: unexpected indent>>> new_clone_item = copy.deepcopy(item_record) File "<stdin>", line 1 new_clone_item = copy.deepcopy(item_record) ^IndentationError: unexpected indent>>> new_clone_item["_id"] = self.getNewId() File "<stdin>", line 1 new_clone_item["_id"] = self.getNewId() ^IndentationError: unexpected indent>>> self.market_items.append(new_clone_item) File "<stdin>", line 1 self.market_items.append(new_clone_item) ^IndentationError: unexpected indent>>>>>> def buildArmor(self): File "<stdin>", line 1 def buildArmor(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.item_data["armor"])): File "<stdin>", line 1 for idx in range(len(self.item_data["armor"])): ^IndentationError: unexpected indent>>> armor_set = self.item_data["armor"][idx] File "<stdin>", line 1 armor_set = self.item_data["armor"][idx] ^IndentationError: unexpected indent>>> price = armor_set[0] File "<stdin>", line 1 price = armor_set[0] ^IndentationError: unexpected indent>>> armor_set.pop(0) File "<stdin>", line 1 armor_set.pop(0) ^IndentationError: unexpected indent>>>... for idx2 in range(len(armor_set)): File "<stdin>", line 2 for idx2 in range(len(armor_set)): ^IndentationError: unexpected indent>>> new_item = copy.deepcopy(self.base_item) File "<stdin>", line 1 new_item = copy.deepcopy(self.base_item) ^IndentationError: unexpected indent>>> new_item["_id"] = self.getNewId() File "<stdin>", line 1 new_item["_id"] = self.getNewId() ^IndentationError: unexpected indent>>> new_item["price"] = price File "<stdin>", line 1 new_item["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["price"] = price File "<stdin>", line 1 new_item["item"]["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["itemId"] = armor_set[idx2] File "<stdin>", line 1 new_item["item"]["itemId"] = armor_set[idx2] ^IndentationError: unexpected indent>>> self.market_items.append(new_item) File "<stdin>", line 1 self.market_items.append(new_item) ^IndentationError: unexpected indent>>> #self.addDupes(new_item, 10)...... new_master = copy.deepcopy(self.base_master) File "<stdin>", line 3 new_master = copy.deepcopy(self.base_master) ^IndentationError: unexpected indent>>> new_master["_id"] = new_item["_id"] File "<stdin>", line 1 new_master["_id"] = new_item["_id"] ^IndentationError: unexpected indent>>> new_master["itemId"] = armor_set[idx2] File "<stdin>", line 1 new_master["itemId"] = armor_set[idx2] ^IndentationError: unexpected indent>>> new_master["marketPrice"] = price File "<stdin>", line 1 new_master["marketPrice"] = price ^IndentationError: unexpected indent>>> self.master_items.append(new_master) File "<stdin>", line 1 self.master_items.append(new_master) ^IndentationError: unexpected indent>>>... def buildWeapons(self): File "<stdin>", line 2 def buildWeapons(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.item_data["weapons"])): File "<stdin>", line 1 for idx in range(len(self.item_data["weapons"])): ^IndentationError: unexpected indent>>> weapon_set = self.item_data["weapons"][idx] File "<stdin>", line 1 weapon_set = self.item_data["weapons"][idx] ^IndentationError: unexpected indent>>> price = weapon_set[0] File "<stdin>", line 1 price = weapon_set[0] ^IndentationError: unexpected indent>>> weapon_set.pop(0) File "<stdin>", line 1 weapon_set.pop(0) ^IndentationError: unexpected indent>>>... for idx2 in range(len(weapon_set)): File "<stdin>", line 2 for idx2 in range(len(weapon_set)): ^IndentationError: unexpected indent>>> new_item = copy.deepcopy(self.base_item) File "<stdin>", line 1 new_item = copy.deepcopy(self.base_item) ^IndentationError: unexpected indent>>> new_item["_id"] = self.getNewId() File "<stdin>", line 1 new_item["_id"] = self.getNewId() ^IndentationError: unexpected indent>>> new_item["price"] = price File "<stdin>", line 1 new_item["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["price"] = price File "<stdin>", line 1 new_item["item"]["price"] = price ^IndentationError: unexpected indent>>> new_item["item"]["itemId"] = weapon_set[idx2] File "<stdin>", line 1 new_item["item"]["itemId"] = weapon_set[idx2] ^IndentationError: unexpected indent>>> self.market_items.append(new_item) File "<stdin>", line 1 self.market_items.append(new_item) ^IndentationError: unexpected indent>>> #self.addDupes(new_item, 10)...... new_master = copy.deepcopy(self.base_master) File "<stdin>", line 3 new_master = copy.deepcopy(self.base_master) ^IndentationError: unexpected indent>>> new_master["_id"] = new_item["_id"] File "<stdin>", line 1 new_master["_id"] = new_item["_id"] ^IndentationError: unexpected indent>>> new_master["itemId"] = weapon_set[idx2] File "<stdin>", line 1 new_master["itemId"] = weapon_set[idx2] ^IndentationError: unexpected indent>>> new_master["marketPrice"] = price File "<stdin>", line 1 new_master["marketPrice"] = price ^IndentationError: unexpected indent>>> self.master_items.append(new_master) File "<stdin>", line 1 self.master_items.append(new_master) ^IndentationError: unexpected indent>>>... def buildOther(self): File "<stdin>", line 2 def buildOther(self): ^IndentationError: unexpected indent>>> pass File "<stdin>", line 1 pass ^IndentationError: unexpected indent>>>... def send_item_market(self): File "<stdin>", line 2 def send_item_market(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.market_items)): File "<stdin>", line 1 for idx in range(len(self.market_items)): ^IndentationError: unexpected indent>>> result = self.col_item_market.insert_one(self.market_items[idx]) File "<stdin>", line 1 result = self.col_item_market.insert_one(self.market_items[idx]) ^IndentationError: unexpected indent>>> if not result.acknowledged: File "<stdin>", line 1 if not result.acknowledged: ^IndentationError: unexpected indent>>> pprint(market_items[idx]) File "<stdin>", line 1 pprint(market_items[idx]) ^IndentationError: unexpected indent>>> raise ConnectionError("Insert failed") File "<stdin>", line 1 raise ConnectionError("Insert failed") ^IndentationError: unexpected indent>>>>>> def send_item_master(self): File "<stdin>", line 1 def send_item_master(self): ^IndentationError: unexpected indent>>> for idx in range(len(self.master_items)): File "<stdin>", line 1 for idx in range(len(self.master_items)): ^IndentationError: unexpected indent>>> result = self.col_master_item_market.insert_one(self.master_items[idx]) File "<stdin>", line 1 result = self.col_master_item_market.insert_one(self.master_items[idx]) ^IndentationError: unexpected indent>>> if not result.acknowledged: File "<stdin>", line 1 if not result.acknowledged: ^IndentationError: unexpected indent>>> pprint(master_items[idx]) File "<stdin>", line 1 pprint(master_items[idx]) ^IndentationError: unexpected indent>>> raise ConnectionError("Insert failed") File "<stdin>", line 1 raise ConnectionError("Insert failed") ^IndentationError: unexpected indent>>>>>> if __name__ == "__main__":... mrkt = Marketplace()... mrkt.populate()...Traceback (most recent call last): File "<stdin>", line 2, in <module>NameError: name 'Marketplace' is not defined>>>
You expect somebody here to understand wtf that garbled mess is?
good luck with that.
hi guys, i would like to ask some newbie question, how do this exactly? i install python, then run the server then create 1 account,then run the script but i have a error message.. "invalid syntax"
1) the error posted above should be related to the pymongo extensions of the python stuff... im not sure but in the page where you'll find the syntax to install it the devs suggested to install a newer version of the one linked in their post due to security vs attacs in your pcs and malware so try install the newer version instead of the linked one. may be an uncompatibility with older versions.
2) the "procedure" i wrote only runs (but i assure you it runs and ran very good!) only with oldest client v.491 and the oldest laucher patch (i don't remember the name of the autor sorry!) where you had to insert the old blackdesert32.bat and blackdesert64.bat files in the bin directory, and ONLY, sorry, for that release... any other release don't work with that procedure, so you'll have to regain the old client and old launcher and only then start the procedure at allif you want to populate your market. ill try to read again all the old post of version 491 and repost all necessary links to download the stuff whenill have some time. see you dudes!
Here's a more clear instruction set:
0. Make sure your server is up & running.
1. Download WinPython (it's a portable version of python so it's more easy to remove once you don't need it.) from:
https://github.com/winpython/winpython/releases
This one is enough:
https://github.com/winpython/winpython/releases/download/3.0.20200808/Winpython64-3.8.5.0.exe
It already includes pymongo, so you don't need to worry about it.
2. Go to where you extracted WinPython and then inside scripts folder.
3. Create a new file populateMarketplace.py with the following code:
4. To make it work an existing accountId must be set, default id is 2: (search for "accountId": 2, in the code). Usually it will be okay as when you setup your server there's already a "conan" account, so your own account is id 2. If that's not the case, just change the id to 1 or an existing one in your mongo users collection.Code:
- import pymongo
- from pymongo import MongoClient
- from pprint import pprint
- from bson.int64 import Int64
- import copy
- class Marketplace:
- item_data = {
- # weapons: index0 is used for price
- "weapons" : [
- [ 200000, 10413, 10613, 13313, 11213, 11363, 10213, 10013, 13213, 14413 ], # Bares
- [ 200000, 10403, 10603, 13303, 11203, 11353, 10203, 10003, 13203, 14403 ], # Elsh
- [ 120000, 10406, 10606, 13306, 11206, 11356, 10206, 10006, 13206, 14406 ], # Ain
- [ 120000, 10405, 10605, 13305, 11205, 11355, 10205, 10005, 13205, 14405 ], # Azwell
- [ 140000, 10471, 10671, 13371, 11222, 11372, 10271, 10071, 13271, 14471 ], # Styd
- [ 150000, 10414, 10614, 13314, 11214, 11364, 10214, 10014, 13214, 14414 ], # Yuria
- [ 150000, 10407, 10607, 13307, 11207, 11357, 10207, 10007, 13207, 14407 ], # Seleth
- [ 200000, 10412, 10612, 13312, 11212, 11362, 10212, 10012, 13212, 14412 ], # Kalis
- [ 250000, 10456, 10656, 13356, 11220, 11370, 10256, 10056, 13256, 14456 ], # Krea
- [ 300000, 10457, 10657, 13357, 11221, 11371, 10257, 10057, 13257, 14457 ], # Rosar
- [ 9000000, 10409, 10609, 13309, 11209, 11359, 10209, 10009, 13209, 14409 ], # Liverto
- [ 90000000, 10410, 10610, 13310, 11210, 11360, 10210, 10010, 13210, 14410 ], # Kzarka
- # Secondaries
- #[ 10000, 10301, 13001, 10101, 10501, 10701, 13101, 14501, 14601, 11301 ], # t1
- #[ 60000, 10302, 13002, 10104, 10502, 10702, 13102, 14502, 14602, 11302 ], # t2
- [ 60000, 10303, 13003, 10102, 10503, 10705, 13104, 14503, 14603, 11303 ], # t3
- [ 200000, 10304, 13004, 10103, 10504, 10704, 13103, 14504, 14604, 11304 ], # t4
- [ 250000, 10305, 13005, 10105, 10505, 10703, 13105, 14505, 14605, 11305 ], # t5
- [ 350000, 10324, 13024, 10124, 10724, 10524, 13124, 14524, 14624, 11324 ], # t6
- [ 400000, 10325, 13025, 10125, 10525, 10725, 13125, 14525, 14625, 11325 ], # t7
- [ 80000000, 10340, 13140, 14540, 10740, 10140, 14640, 10540, 13040, 11340 ], # t8 kutum
- [ 90000000, 13038, 10338, 13138, 14538, 10738, 10138, 10138, 14638, 10538, 11338 ], # t9 nouver
- # Awakened
- [ 90000000, 14802, 14742, 14762, 14822, 14812, 14702, 14722, 14732, 14772, 14752, 14792, 14712, 14782, 14817 ], # dandelion
- # Misusing the weapon structure here for non-stacking misc items
- # because they are processed in the same way.
- # Magic Crystals:
- [ 5000, 15034, 15035, 15036, 15037, 15038, 15039, 15040, 15041, 15042, 15043, 15044, 15045 ], # white
- [ 5000, 15001, 15002, 15003, 15004, 15005, 15006, 15007, 15008, 15009, 15010, 15011, 15012, 15013, 15014, 15015, 15016, 15017, 15018, 15019, 15020, 15027, 15028, 15029, 15030, 15031, 15033 ], # green
- [ 250000, 15101, 15102, 15103, 15104, 15105, 15106, 15107, 15108, 15109, 15110, 15111, 15112, 15113, 15114, 15115, 15116, 15117, 15118, 15119, 15120, 15121, 15122, 15123, 15124, 15125, 15126, 15127, 15128, 15129, 15130, 15131, 15132, 15133, 15134, 15135, 15136, 15137, 15138, 15139, 15146, 15147, 15148, 15149, 15150, 15151, 15152, 15153, 15154 ], # blue
- [ 1600000, 15021, 15022, 15023, 15024, 15025, 15026, 15032, 15201, 15202, 15203, 15204, 15205, 15206, 15207, 15208, 15209, 15210, 15211, 15212, 15213, 15214, 15215, 15216, 15217, 15218, 15219, 15220, 15221, 15222, 15223, 15224, 15606, 15607, 15608, 15609, 15610, 15611, 15612, 15613, 15614, 15615, 15616, 15617, 15618, 15619, 15620, 15621, 15622, 15623, 15624, 15625 ], # yellow
- [ 15000000, 15501, 15502, 15503, 15504, 15505, 15601, 15602, 15603, 15604, 15605, 15606, 15626, 15627, 15628, 15629, 15630, 15631, 15632, 15633, 15634, 15635, 15636, 15637, 15638, 15639, 15640, 15649, 15650, 15651 ], # orange
- # Summon Items 15226,
- [ 100000, 40220 ], # Forbidden Book
- [ 200000, 40218 ], # Ancient Relic Crystal shard
- [ 250000, 40228 ], # Scroll written in ancient language
- ### Useful consumables ###
- # Purified Water, Star Anise Tea
- [ 1000, 6656, 9306 ],
- # Dim Tree Armor, Red Nose Armor, Giath Hat, Muskan Shoe, Bheg Glove
- [ 100000000, 11017, 11014, 11013, 11016, 11015 ],
- ## Crafting ##
- [ 50000, 44195 ], # Memory Fragment
- [ 100000, 4911, 4910 ], # grade 3 reform stones
- [ 100000, 16001, 16002 ], # Black stones
- [ 10000000, 16004, 16005 ], # Concentrated Black stones
- # Accessories
- # Riddell Earring
- [ 900000, 11811 ],
- # Shrine Guardian Token, Outlaw's Ring
- [ 1500000, 12008, 12012 ],
- # Blue Coral Ring, Blue Coral Earring, Ancient Weapon Core, Red Coral Ring, Scarla Necklace
- [ 4500000, 12017, 11816, 12220, 12018, 11610 ],
- # Belt of Shultz
- [ 7000000, 12211 ],
- # Necklace of Shultz, Red Coral Earring, Witch's Earring, Fugitive Khalk's Earring, Mark of Shadow
- [ 12000000, 11631, 11817, 11808, 11827, 12007 ],
- # Ancient Guardian's Seal
- [ 18000000, 11613 ],
- # Tree Spirit Belt
- [ 35000000, 12210 ],
- # Blue Whale Molar Earring
- [ 40000000, 11815 ],
- # Ring of Cadry Guardian, Ring of Crescent Guardian, Serap's Necklace
- [ 45000000, 12032, 12031, 11628 ],
- # Sicil's Necklace
- [ 55000000, 11625 ],
- # Basilisk's Belt
- [ 70000000, 12230 ],
- # Tungrad Earring, Ogre Ring, Laytenn's Power Stone
- [ 90000000, 11828, 11607, 11630 ],
- # Tungrad Necklace
- [ 120000000, 11629 ],
- ],
- # armor has a feature where chests are more expensive than other parts
- "armor" : [ # price, hatID, chestID, gloveID, shoeID
- [ 100000, 10813, 10814, 10815, 10816 ], # Taritas
- [ 100000, 10821, 10822, 10823, 10824 ], # Talis
- [ 250000, 10809, 10810, 10811, 10812 ], # Agerian
- [ 330000, 11005, 11006, 11007, 11008 ], # Strength of Heve
- [ 320000, 11001, 11002, 11003, 11004 ], # Hercules Might
- [ 330000, 11009, 11010, 11011, 11012 ], # Luck Fortuna
- [ 340000, 10817, 10818, 10819, 10820 ], # Zereth
- [ 350000, 10933, 10934, 10935, 10936 ], # grunil
- [ 200000, 10937, 10938, 10939, 10940 ], # Rocaba
- ],
- # other have price as index0 and quantity as index 1
- "other" : [
- [ 100000, 9999, 16001, 16002 ], # Black stones
- [ 10000000, 999, 16004, 16005 ], # Concentrated Black stones
- ]
- }
- base_item = {
- "_id":Int64(10000002000000002),
- "accountId": 2,
- "marketRegistredDate": 1531821851,
- "marketExpirationDate": 1832426651,
- "revenue":0,
- "totalCount":9999999,
- "price":33333,
- "territoryKey":0,
- "item":{
- "objectId": -1,
- "itemId":10813,
- "regionId":1,
- "enchantLevel":0,
- "count":9999,
- "endurance":100,
- "maxEndurance":100,
- "expirationPeriod":-1,
- "isVested":False,
- "price":33333,
- "alchemyStoneExp":0,
- "colorPaletteType":0,
- "jewels":[],
- "colorPalettes":[]
- }
- }
- base_master = {
- "_id":Int64(10000002000000002),
- "itemId":10813,
- "itemEnchantLevel":0,
- "itemMinPrice":100,
- "itemMaxPrice":Int64(100000000000),
- "marketSoldCount":0,
- "marketMinPrice":100,
- "marketMaxPrice":Int64(100000000000),
- "marketPrice":33333
- }
- def __init__(self):
- # Account ID in mongo account collection of the user who is
- # "selling" everything that we are putting on the market. To create
- # an account for this modify the Start64.bat to change the
- # credentials and the change back to launch your main account.
- self.account_id = 2
- self.current_key = 0
- self.market_items = []
- self.master_items = []
- def collectionsAreEmpty(self, db):
- gs = db["gameserver"]
- if "itemMarket" in gs.collection_names():
- if gs["itemMarket"].count() > 0:
- gs["itemMarket"].drop()
- gs["itemMarket"].remove()
- if gs["itemMarket"].count() > 0:
- raise EnvironmentError("Script was unable to create an empty collection. You need to manually delete itemMarket and itemMarketMaster collections to run this script.")
- if "itemMarketMaster" in gs.collection_names():
- if gs["itemMarketMaster"].count() > 0:
- gs["itemMarketMaster"].drop()
- gs["itemMarketMaster"].remove()
- def populate(self):
- # if collections do not exist, create them
- # if that fails, error out
- # if collections exist and are empty, proceed
- # if collections exist and are not empty, drop them
- # if collections still exist and are not empty, error out
- try:
- db = MongoClient("localhost", 27017)
- gameserver = db["gameserver"]
- self.collectionsAreEmpty(db)
- self.col_item_market = gameserver.itemMarket
- self.col_master_item_market = db["gameserver"].masterItemMarket
- self.buildArmor()
- self.buildWeapons()
- self.buildOther()
- self.send_item_market()
- self.send_item_master()
- print("If you don't see any error messages, it probably worked")
- except EnvironmentError as e:
- print (e.args)
- def getNewId(self):
- self.current_key = self.current_key + 1
- return Int64(1000000200000) + self.current_key
- def addDupes(self, item_record, num_dupes):
- for c in range(0, num_dupes):
- new_clone_item = copy.deepcopy(item_record)
- new_clone_item["_id"] = self.getNewId()
- self.market_items.append(new_clone_item)
- def buildArmor(self):
- for idx in range(len(self.item_data["armor"])):
- armor_set = self.item_data["armor"][idx]
- price = armor_set[0]
- armor_set.pop(0)
- for idx2 in range(len(armor_set)):
- new_item = copy.deepcopy(self.base_item)
- new_item["_id"] = self.getNewId()
- new_item["price"] = price
- new_item["item"]["price"] = price
- new_item["item"]["itemId"] = armor_set[idx2]
- self.market_items.append(new_item)
- #self.addDupes(new_item, 10)
- new_master = copy.deepcopy(self.base_master)
- new_master["_id"] = new_item["_id"]
- new_master["itemId"] = armor_set[idx2]
- new_master["marketPrice"] = price
- self.master_items.append(new_master)
- def buildWeapons(self):
- for idx in range(len(self.item_data["weapons"])):
- weapon_set = self.item_data["weapons"][idx]
- price = weapon_set[0]
- weapon_set.pop(0)
- for idx2 in range(len(weapon_set)):
- new_item = copy.deepcopy(self.base_item)
- new_item["_id"] = self.getNewId()
- new_item["price"] = price
- new_item["item"]["price"] = price
- new_item["item"]["itemId"] = weapon_set[idx2]
- self.market_items.append(new_item)
- #self.addDupes(new_item, 10)
- new_master = copy.deepcopy(self.base_master)
- new_master["_id"] = new_item["_id"]
- new_master["itemId"] = weapon_set[idx2]
- new_master["marketPrice"] = price
- self.master_items.append(new_master)
- def buildOther(self):
- pass
- def send_item_market(self):
- for idx in range(len(self.market_items)):
- result = self.col_item_market.insert_one(self.market_items[idx])
- if not result.acknowledged:
- pprint(market_items[idx])
- raise ConnectionError("Insert failed")
- def send_item_master(self):
- for idx in range(len(self.master_items)):
- result = self.col_master_item_market.insert_one(self.master_items[idx])
- if not result.acknowledged:
- pprint(master_items[idx])
- raise ConnectionError("Insert failed")
- if __name__ == "__main__":
- mrkt = Marketplace()
- mrkt.populate()
5. Run "WinPython Command Prompt.exe" and once is open, execute the following command:
6. Restart your server and voilá!Code:python.bat populateMarketplace.py
Last edited by servia; 14-09-20 at 11:16 AM.
Happened to me as well,luckily i have the knowledge and skills to solve such problems.
The problem is an artificial memory limitation of the server to 4GB,
Considering that these database entries increase memory usage,it may prevent the GameServer from completing commands or take longer causing lags.
The solution is to increase the heap size of the server.
In the server folder \gameserver\bin
Edit the gameserver.bat file:
Replace:
With:Code:set DEFAULT_JVM_OPTS="-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector" "-server" "-XX:+DisableAttachMechanism" "-Xms1G" "-Xmx4096m"
Code:set DEFAULT_JVM_OPTS="-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector" "-server" "-XX:+DisableAttachMechanism" "-Xms1G" "-Xmx6096m"
This solution will increase RAM usage as well,so make sure you have enough installed in your system.
Last edited by Vishera; 12-10-20 at 06:41 PM.
@servia i'm able to populate the market in the bdo v491 but not in the remastered odore version 2100. the python deprecates this error: "D:\WPy32\python-3.8.5\python.exe: can't open file 'populateMarketplace.py': [Errno 2] No such file or directory", problem is i put the file in the scripts directory so i can't figure out what i'm doing wrong... any idea mate?
- - - Updated - - -
ok i managed to run the script but the python program deprecates an sintax error and now game don't load anymore... could you plz post a "populatemarketplace.py" file? fact is: when i open the datapad or txt viewer to build the file it destroyes the correct syntax of your script, don't know why...
i think to make work in odere need first create devilspeak's. and see what happen in studio3t , i dont know what but what i see this script probabili can be done manual.
And better done permanent creating a new server zip for everyone.
If anyone has any doubts about how to do it yet, here's a video, it helped me.
https://www.youtube.com/watch?v=NL_pJPBLV9g
any idea how to sell item to marketplace ? or only can sell to npc?