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

Topics and discussion about specific mods
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

Infos
  • Type: Mod
  • Name: Black Market
  • Description: Sell and buy items on the universal black market using trading chests, choosing the frequency of exchanges and related fees. You can now sell your overproduction and buy items that you don't want to craft by yourself. You can also use these chests as a paying shipment system.
  • Tested-With-Factorio-Version: 0.13.17
  • Locale: english
  • Multiplayer compatible: tested on a headless server.
  • Tags: Trade, Commerce, Market, Stock exchange, sell, buy,
  • License: You are free to use and distribute this mod and also to modify it for personal use, but not to release a modified version without permission (unless visibly not maintained anymore).
  • Portal download : https://mods.factorio.com/mods/binbinhfr/BlackMarket
  • Youtube tutorial for german speaking player : https://www.youtube.com/watch?v=RTDxspjBNfo
logo2.jpg
logo2.jpg (39.03 KiB) Viewed 40794 times
INTRODUCTION
DESCRIPTION
Download
For Factorio 0.13.X :
Please use the portal for downloads (see link above or use ingame mod install/update).
Last edited by binbinhfr on Thu Oct 04, 2018 4:21 pm, edited 10 times in total.
My mods on the Factorio Mod Portal :geek:
JudgeArcher
Burner Inserter
Burner Inserter
Posts: 15
Joined: Mon Jun 27, 2016 2:35 pm
Contact:

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

Post by JudgeArcher »

this looks nice and ill download it now but is there a way making trader lvls? when you earned your first 100k you can purchuse better items, after 1 mio even more and so on. thisway you need to trade if you want to buy high class item like red or blue chips. in trading you are holding back your best pieces for your best customer.
JudgeArcher
Burner Inserter
Burner Inserter
Posts: 15
Joined: Mon Jun 27, 2016 2:35 pm
Contact:

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

Post by JudgeArcher »

i have a bug, i can buy all items for 100u instead of their price. the price for selling was ok .
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

JudgeArcher wrote:i have a bug, i can buy all items for 100u instead of their price. the price for selling was ok .
thx for report, corrected, please update
My mods on the Factorio Mod Portal :geek:
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

JudgeArcher wrote:this looks nice and ill download it now but is there a way making trader lvls? when you earned your first 100k you can purchuse better items, after 1 mio even more and so on. thisway you need to trade if you want to buy high class item like red or blue chips. in trading you are holding back your best pieces for your best customer.
These levels does not seem realistic to me. On a market, if you have the money you can buy anything. Nobody asks you for a licence, espcially on a black market ;-)

But infact, if you think about it, there is some kind of inner level limitation : look at the prices of items. There are quite exponential. So if you want to buy for example an armor MK2, it's 15Mu (without taxes). If you are just beginning the game, you'll have to sell a lot of low level items to buy this one... So, like in real life, you are limited by your own bank account. :-D
My mods on the Factorio Mod Portal :geek:
Doskan
Burner Inserter
Burner Inserter
Posts: 16
Joined: Wed Apr 16, 2014 3:52 pm
Contact:

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

Post by Doskan »

I have an issue with this mod (probably a conflict with another mod, but...) dependencies "freetools" are missing, and whenever i start a game or load, got an error , on_init: __Blackmarket__control.lua:166: attempt to perform arithmethic on field 'amount' (a nil value)
depeter
Inserter
Inserter
Posts: 26
Joined: Sun Jul 03, 2016 4:59 am
Contact:

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

Post by depeter »

This looks like another very nice mod that I'll be trying out soon!

Aside from the primary elements (mini-game of wealth collection, and the utility of being able to get some items without actually crafting them yourself, or maybe even researching the prerequisites), it also has many secondary elements :
Slightly more intricate way of destroying items (similar to Flare Stack, Void Chest, ...) in the sense that it is probably a bit more work to set up (but in return you get coins)
Similarly, it can sort-of substitute for the various recycling mods
And even, to a degree, Compression Chests and various other storage-related mods
It also potentially obsoletes most transportation/logistics concerns, and possibly even most resource collection

It's so multi-functional and powerful that it's probably pretty difficult to really enforce balance without impacting non-cheaty ways of using it. In the end it's going to be up to the players to use it in a way that seems fun to them...
That said, depending on what your plans are, some possible enhancements might be :
*A kind of supply-and-demand mechanic that slowly reduces profit margins to almost zero unless you evolve your business once in a while. Note that this has the added side-effect (or benefit, depending on your point of view) of automatically (if slowly) compensating for the use of modules
*A way to directly buy/sell power (to complete the multi-functionality :))
*Long-term business deals that essentially function as a sort of additional quest / mini-game. Similar to the Challenges mod, or certain end-game mods, or Versepelles Outpost mod, albeit without the physical transportation aspect. Can just be random, but could potentially also be (partially) story-based
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

Doskan wrote:I have an issue with this mod (probably a conflict with another mod, but...) dependencies "freetools" are missing, and whenever i start a game or load, got an error , on_init: __Blackmarket__control.lua:166: attempt to perform arithmethic on field 'amount' (a nil value)
Hi,

freetools is not a problem : it's an optional dependencies, just for my testings.

can you please post your mod-list.json file so that I can see what other mods you have.
there must be somewhere a recipe with products but no amount. very strange.

can you test this version and tell me if it's better :


you should have a debug info, saying "no amount ...", please tell me the complete message, it will help finding the problematic recipe.
Last edited by binbinhfr on Sun Aug 21, 2016 1:55 pm, edited 1 time in total.
My mods on the Factorio Mod Portal :geek:
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

Slightly more intricate way of destroying items (similar to Flare Stack, Void Chest, ...) in the sense that it is probably a bit more work to set up (but in return you get coins)
It's easy to setup : selling chests do not need any configuration. Juts put one on the ground, put things in it and they will dissapear, giving coins in return :-)
Similarly, it can sort-of substitute for the various recycling mods
And even, to a degree, Compression Chests and various other storage-related mods
It also potentially obsoletes most transportation/logistics concerns, and possibly even most resource collection
Yes, you can use this mod for a lot of things, that's why I put taxes, because this "power" should not be totally free...
A kind of supply-and-demand mechanic that slowly reduces profit margins to almost zero unless you evolve your business once in a while.


I do not really understand what you mean by "evolve your business".
But what I had already in mind is a progressively diminishing selling price if you sell too much of one item : it would mimic the law of supply and demand. And if you stop selling this kind of item, the demand will slowly increase back and the price will return to its optimal value. But well, it's not really in the "spirit" of factorio, where everything should be automatic and stable : if you let your factory run 1 night, the balance should stay the same (unless a resource is depleted)
A way to directly buy/sell power (to complete the multi-functionality :))
I like it : I put this one in the todo list, that already contains the Trading Tank to directly sell/buy fluids.
Using accumulators, we should be able to sell amount of electricty and buy some. But with solar-panels, it will be a free money income... So elcetricity price will have to be low...
Long-term business deals that essentially function as a sort of additional quest / mini-game.


what would be the benefit/motivation for the player to do these quests ?
My mods on the Factorio Mod Portal :geek:
depeter
Inserter
Inserter
Posts: 26
Joined: Sun Jul 03, 2016 4:59 am
Contact:

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

Post by depeter »

binbinhfr wrote:I do not really understand what you mean by "evolve your business".
But what I had already in mind is a progressively diminishing selling price if you sell too much of one item : it would mimic the law of supply and demand. And if you stop selling this kind of item, the demand will slowly increase back and the price will return to its optimal value. But well, it's not really in the "spirit" of factorio, where everything should be automatic and stable : if you let your factory run 1 night, the balance should stay the same (unless a resource is depleted)
You could run the buy-iron-ore - smelt - sell-iron-plate thing all the time, but the longer you do it, the lower your profit margin would become, for example from 10% at first to only 1% after a few real-life hours. But if you switched to something else (say, green circuits), you would be getting big profits again (at least initially). Then a few hours later you could again switch to something else (or, now that the iron market has stabilized again, back to iron).
As for having to be automatic and stable, I agree on the first, but not entirely on the second. Predictable yes, but stable, not necessarily. After all, ore patches run out, and oil wells deplete until they reach their minimum yield. Obviously, with default settings, it should probably always remain worth it even in a set-up-and-forget style, but the more actively managed style could allow those who like that to earn a little bit more.
Heck, you could even have some kind of additional (not entirely predictable) price fluctuations (supposedly due to the influence of other buyers and sellers) to allow people to identify "hot" markets and jump on them.
binbinhfr wrote:
Long-term business deals that essentially function as a sort of additional quest / mini-game.

what would be the benefit/motivation for the player to do these quests ?
The main benefit would be having fun, an additional thing to do for players who like that kind of thing :) Having small intermediate goals to (optionally) work towards, providing reason to tweak/expand the factory a bit can be nice. Especially if it's the sort of thing you could do (or at least set up) in a single game session, as it gives you something to focus on in the short term (which can be nice for players for whom the rocket launch or the entire sandbox-concept is a bit too long-term / open-ended).
This kind of long-term deal might offer higher (and/or more stable) profit. With the trade-off that you might be tied to specific products that your partner(s) want to buy, at every stage.
If you go for the story-based route, seeing the story unfold would be an additional motivation. A new colony on in a nearby star-system needing supplies to expand their settlement, with a few lines of back-story about the evolution of the colony every time you reach a next stage.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

the longer you do it, the lower your profit margin would become
In marketing, the profit margin is something that you choose to fix by yourself. I prefer to let this value fixed and to implement the law of "supply and demand", making prices vary. depending on how much you sell or buy. I could introduce other players in this overall price fluctuations.
Heck, you could even have some kind of additional (not entirely predictable) price fluctuations (supposedly due to the influence of other buyers and sellers) to allow people to identify "hot" markets and jump on them.
I already thought about that with cyclics variations, but if you want to play with these fluctuations, you have to identify them, and like for the stock exchange, it means having some graphical tools that are not available for modders. So I gave up this feature. And once again, I want these chests to be automatic, like the rest of factorio. And here, you want a human choice to sell/buy at the good moment. Of course I could introduce automatic detection tools, but then everything will become transparent and all this huge developement would be useless.
The main benefit would be having fun
I can understand this, but by experience, most players need some kind of a reward. :-)
This kind of long-term deal might offer higher (and/or more stable) profit.


Yes, I coud integrate a diminishing bonus depending of the time you take to deliver the order.
Quite a lot of work to implement this one anyway...
Last edited by binbinhfr on Sat Aug 13, 2016 2:56 pm, edited 1 time in total.
My mods on the Factorio Mod Portal :geek:
depeter
Inserter
Inserter
Posts: 26
Joined: Sun Jul 03, 2016 4:59 am
Contact:

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

Post by depeter »

Fair enough, both would indeed probably take quite a bit of work, while being a bit of a leap from the base concept of the mod :)

I just loaded it up, and I noticed it doesn't quite cover all recipes. Are any things intentionally excluded?
I'm still trying to figure out a pattern, but one thing I've noticed is that the gems from Bob's (as well as everything depending on them, like advanced Laser Turrets etc) are not in the list. Roboports and robots (even the vanilla ones, although due to mods their recipies are no longer vanilla obviously) also seem to be missing, although some of their components are in.
Obviously even the current partial coverage that I have is nice, as all the basic stuff seems to be in.
EDIT: after uninstalling a few mods (including some recycling and replication mods that probably contained a lot of recipies) I now have a bunch more things to buy in a new game, including robots, but still no gem-related stuff.

I also don't know how easy it would be to implement, but a search feature, similar to the one in the tech tree or crafting UI, could also be useful.
Last edited by depeter on Sat Aug 13, 2016 2:54 pm, edited 1 time in total.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

Fair enough, both would indeed probably take quite a bit of work, while being a bit of a leap from the base concept of the mod
the prices fluctuation is doable.
I just loaded it up, and I noticed it doesn't quite cover all recipes. Are any things intentionally excluded?
not at all.
only hidden recipes are excluded.
all item recipes that appears in the classical crafting menu should be here.
even fluids are evaluated, even if you cannot buy or sell them for the moment (but their value is used in other "solid" items recipes)
Personaly, I have the roboport, price 260.000 in the first subgroup.
I also have both robots.

Can you send me your mod-list.json and also the CSV file obtained by clicking on "export" ?
My mods on the Factorio Mod Portal :geek:
depeter
Inserter
Inserter
Posts: 26
Joined: Sun Jul 03, 2016 4:59 am
Contact:

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

Post by depeter »

I'll repeat the edit from my last post here, since you had already posted while I was editing : after uninstalling a few mods (including some recycling and replication mods that probably contained a lot of recipies) I now have a bunch more things to buy in a new game, including robots, but still no gem-related stuff.
Zip from after that mod removal, let me know if you also want me to reinstall the mods I originally had and try again. Contains mod json, price export, and your debug log (I uncommented some debug prints in your main lua file) : https://wsi.li/gkL4pnCksYU6
Sorry for the tons of mods again :)
Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

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

Post by Airat9000 »

:D good! who is mod cooled in galactic trade?
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

I had problems with recycling and replicator mods (even if I thought these problems were solved...).

The problem is that these mods are introducing loops in recipes.
My mod trys to find out which is the "original" recipe to craft an item, in order to compute its price from its logical/original ingredients.
Example :
a recycler mod will introduce a recipe that crafts iron-plate from a green circuit. But this is not the good recipe to use for computing price of iron-plate. I need the original iron-ore to iron-plate recipe. And there is no way to identify it in factorio data...
Same thing with replicator than can craft anything from a special ingredient. I must avoid these recipes.
So I implemented a way to detect this looped recipes and to avoid them, but it seems that it does not always work and that I deleted too many recipes...

PS: you sent me a list of your mods when there is no problem, because I see the roboport recipe in the CSV.
You have so many mods...
Could you progressively one by one reinstall these special recycling/replicators mods and tell me when the robots disappears from the prices menu ? And send me the CSV file at this moment ? I probably did not test alls these special mods... (i tested boxing, dark matter and omnibarrels)
My mods on the Factorio Mod Portal :geek:
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

Airat9000 wrote::D good! who is mod cooled in galactic trade?
Ooops, could you please rephrase your question, because I did not get what you mean (I'm french...) ;-)
My mods on the Factorio Mod Portal :geek:
Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

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

Post by Airat9000 »

binbinhfr wrote:
Airat9000 wrote::D good! who is mod cooled in galactic trade?
Ooops, could you please rephrase your question, because I did not get what you mean (I'm french...) ;-)
example
link
viewtopic.php?f=120&t=19850&p=192141&hi ... de#p192141

fix in
viewtopic.php?f=25&t=30791
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

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

Post by binbinhfr »

ha ha, I missed this update ! :-)
Anyway, the item interface of GT was very simple and a lot of work to rebuild, and there was some features that I found illogical like "upgrading for less taxes", so I prefered developing my own mod, with the possibility to extend features to trading tanks, power-trading, etc... So now you have the choice ! :-D
My mods on the Factorio Mod Portal :geek:
Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

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

Post by Airat9000 »

binbinhfr wrote:ha ha, I missed this update ! :-)
Anyway, the item interface of GT was very simple and a lot of work to rebuild, and there was some features that I found illogical like "upgrading for less taxes", so I prefered developing my own mod, with the possibility to extend features to trading tanks, power-trading, etc... So now you have the choice ! :-D
oooo very nice idea! wait update

It would be nice to make a user-friendly interface, so that would be more convenient to buy) all the products from all the mods.
And by the way there is an idea that I have to buy could be just what is already learned or discovered in technologies for realism and less cheating.
and buying resources could also be.

Хорошо бы сделать удобный интерфейс, для того что бы удобнее покупать ) все товары от всех модов.

И кстати есть идея у меня что бы покупать можно было только то что уже изучено или открыто в технологиях для реализма и меньше читерства.

и покупать ресурсы тоже можно было бы.
Post Reply

Return to “Mods”