Page 15 of 20

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Mon May 07, 2018 7:56 pm
by smeagol001
hipc1211 wrote:crash with control.lua:2448 string.sub funtiong, not have name prop.
that has top do with the fixes that were done in version 16.40

When will the error on armor grid be fixed?

Posted: Fri May 11, 2018 12:13 am
by MTFT-Games
The title.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Fri May 11, 2018 6:50 am
by CakeDog
Pretty much untested here, but this should get you going for now - find this block

Code: Select all

		-- manage opened traders
		for _, player in pairs(game.players) do
			if player.connected then
				local player_mem = global.player_mem[player.index]
				local opened = player.opened
				
				if opened then
Change the last line from

Code: Select all

if opened then
to

Code: Select all

if opened and player.opened_gui_type ~= 5 then

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sat May 12, 2018 11:37 am
by nets
Changing:

{code]if opened then[/code]

Into:

Code: Select all

if opened and player.opened_gui_type ~= 5 then
Fixed the issue for me. Thank you for the support.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sat May 12, 2018 12:43 pm
by binbinhfr
hi guys,

if one of you wants to post a working version here, i'll be glad to update it on the portal, so that it profits to other persons.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sun May 13, 2018 11:36 pm
by jokru
binbinhfr wrote:hi guys,

if one of you wants to post a working version here, i'll be glad to update it on the portal, so that it profits to other persons.
Here's a download link to a (seemingly) working file. Can't test it right now, all credit for the fix goes to CakeDog; this is just his fix in a (seemingly) working .zip file. Please test and upload to the portal to ease the lives of others!

Edit:
Oh, I also didn't touch any of the version numbers so you should update them when/if uploading the file to the portal.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Mon May 14, 2018 7:48 am
by binbinhfr
hi, thanks for the zip.
If you don't bother, I will wait that someone test the file and validate it before uploading it to the portal, where hundreth of person could download it... ;-)
I cannot test it myself, because I do not play anymore.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Tue May 15, 2018 7:51 pm
by jokru
I have now tested it for about 10+ hours (with mod installed and enabled) and it works just fine. Buying and selling things works fine, manually and automatically.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Wed May 16, 2018 7:21 am
by binbinhfr
I uploaded a 1.0.37 on the portal.
Thx to CakeDog.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sat May 19, 2018 4:29 pm
by ReasonX
Hello. Does this mod is right balanced?

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sat May 19, 2018 6:48 pm
by binbinhfr
ReasonX wrote:Hello. Does this mod is right balanced?
strange question.... As the creator of it, I would say yes ;-)
But just try it once, and you will see...

PS : The prices are automaticcaly calcultated and depends on the recipes of your installed mods...

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sun May 20, 2018 3:53 pm
by ReasonX
binbinhfr wrote: I would say yes ;-)
PS : The prices are automaticcaly calcultated and depends on the recipes of your installed mods...
Eh... with angelbob its not.
Sillicon nugget - 8ku, copper nugget - 30u.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sun May 20, 2018 4:08 pm
by binbinhfr
ReasonX wrote:
binbinhfr wrote: I would say yes ;-)
PS : The prices are automaticcaly calcultated and depends on the recipes of your installed mods...
Eh... with angelbob its not.
Sillicon nugget - 8ku, copper nugget - 30u.
with such complex mods, the problem is that you have often multiple recipes to obtain the same item. My mod does not explore all the ways.
It has also problems to determine the prices of "raw" items, i.e. items that are at the beginning of the crafting chain.
But you can customize some prices, using the config.lua file.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Thu May 24, 2018 9:12 pm
by gunmaker
download/file.php?mode=view&id=37733

BlackMarket_1.0.37 widescreen patch.zip

works just fine for me in stable 16 :)


can u update controls.lua search and replace left with top. tada :)

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sun May 27, 2018 2:53 pm
by binbinhfr
gunmaker wrote:download/file.php?mode=view&id=37733

BlackMarket_1.0.37 widescreen patch.zip

works just fine for me in stable 16 :)
can u update controls.lua search and replace left with top. tada :)
Hi,

I tested your patch on a "classic" HD screen 1920x1080 and it is not satisfactory.
The blackmarket selection menu appears in the top middle on the screen, under the inventory...

The problem is that you switch the BM interface from gui.left to gui.top

For people that have numerous mods using the top bar for "main button", it mess up this top bar.
The top bar is not used for temporary windows opening.

I'm afraid I cannot publish this patch which is not working under all circumstances... :-(

Could you make a screencopy of the problem that your are trying to solve ? (using the official BM mod)

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Sun Jul 22, 2018 12:52 am
by dodfunk
I love this mod, and I also love Bob's/Angels. I know it would be a great pain, but could you possibly look into doing a black market for bob's/Angels?

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Fri Aug 17, 2018 9:24 am
by aragnir
hi, i have "Error MainLoop.cpp:1035: Exception at tick 597008: Error while running event BlackMarket::on_tick (ID 0)
__BlackMarket__/control.lua:2522: attempt to perform arithmetic on field 'period' (a nil value)" when just put a sell chest on floor.

When i play with seablock pack + darkstar + blackmarket there was no errors.
Now i play default with alien loot + darkstar + BM. I change only config, add seafloor pumping price and increase default time to 24 hours.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Tue Aug 21, 2018 12:30 am
by Gaist
Would be thrilled if anyone has made any headway on making adjustments for Black Market's pricing to play nicely with AngelBob; out of the box, the prices are just wildly disparate unfortunately, allowing very easy trivializing of some of the most complex recipes.

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Tue Sep 04, 2018 12:52 am
by foodfactorio
hi, i used to play with this market mod on older saves, and it was cool.
but i added it to another newer game, but i think the new version of the game (or the mod) does not let me see all the items anymore.

im sure the item selection screen used to appear in the middle of the screen before, and we could move the main inventory around (saying "Character" and "Trading Chest Buy", but now the item list just sticks in the bottom left of the screen, and i cant move it up to see all the items inside.

here is a screenshot to show the issue:
how can we make the item selector screen movable again (so we can drag it around?), i tried but its not working.
buy_chest-not_movable-cant_see_items_anymore.png
buy_chest-not_movable-cant_see_items_anymore.png (1.61 MiB) Viewed 3188 times
can the top left window called "Trader (Buy)", be changed to appear somewhere else, or moveable? maybe that can let the main "items/fluids" window be seen fully?

Re: [MOD 0.13] Black Market (sell and buy on the market)

Posted: Wed Sep 05, 2018 1:04 am
by foodfactorio
actually, can the Tradebuy window (in the top left), have a small button that can minimise it to make it really small, and maybe that will fix it?
this way, we can minimise it, and the when we finish selecting the item from the big list of items, we can expand the top left window again and use it to set the quantity settings.