Bazaar

If you've downloaded the FAF sourcecode, and have question, please leave them here.
Post Reply
Mr President
Advanced Member
Posts: 33
Joined: Tue Dec 18, 2007 1:11 am

Post by Mr President »

In my game we call the bazaar the Black Market.

I just realized that the bazaar is only for your state (warband). I thought it was a global market. The more you use it the less you can sell back to it.

I was wondering if there is an easy way to make this a global market. Still have higher prices, but make it so everyone can sell to it for quick cash. There are times when it's nice to have this feature, ie during war times or when you are first starting out and need quick cash.

We don't use the nations private market feature.

With the bazaar it makes it so the Public Market is used more. Which is good, but again
there are times when things need to be sold quickly.

Just wondering if there is a simple way to make this global instead of individual state usage?
User avatar
Shadow I
Addict
Posts: 1163
Joined: Fri Nov 16, 2007 12:45 am
Location: New Brunswick

Post by Shadow I »

If you do that you eliminate the public market; not neccessarily a bad thing, since we are trying to move away from market storage, but still not something we want to do as far as I know.

How could the bazaar be a global market though? The whole idea is selling for instant cash, but if it is global, where does the instant cash come from?
Phillip says:
Tell me more about your Undefined
Mr President
Advanced Member
Posts: 33
Joined: Tue Dec 18, 2007 1:11 am

Post by Mr President »

never mind i figured out the problem.

Before it seemed no matter what i put the sell % at, you could only sell a much smaller percentage then set to.

I had it set so they could sell 100% but all it was allowing them to sell was like 5% if that.

I started looking through the code and found and error:

in the /lib/pvtmarketsell.php line 9 it says

$umktmt = (($config["bmperc"] - $users[bmper][$num]) / 10000) * users[troop][$num];

when it should say:

$umktmt = (($config["bmperc"] - $users[bmperc][$num]) / 10000) * $users[troop][$num];

the second [bmper] is missing the c Once i put that in, they can sell 100% of there goods.

This is going to need to be changed in the main file your sending out. Unless i messed up, but as soon as i changed it, everything worked the way it should.

Our game is small which makes the PM almost useless anyway. So this is why we allow 100% goods sold on the BM. When member count increases then we may change it so they can only sell a smaller amount.

User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Ooh, Mr. President, I think you just found our elusive private market bug! Thanks and congratulations! I will ad your change and zip it up tomorrow, and put it on sourceforge too in a few days.
:wq
User avatar
carbz
Sorta like a Captain
Posts: 126
Joined: Fri Nov 02, 2007 2:19 pm

Post by carbz »

claiming its all your own work I hope!!!!!!!

I would.

Seriously, I would.
Image
User avatar
Freenhult
13th Division Captain
Posts: 3380
Joined: Mon Jan 02, 2006 2:30 am
Location: Valparaiso
Contact:

Post by Freenhult »

... Awesomesauce.
Nami kotogotoku, waga tate to nare. Ikazuchi kotogotoku, waga yaiba to nare. Sōgyo no Kotowari!

波悉く我が盾となれ雷悉く我が刃となれ,双魚の理 !

Every wave be my shield, every lightning become my blade!
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members