Jump to content
Fopeak

[Tutorial] 5.0 Dynamic Market

Recommended Posts

1 hour ago, Beauregard said:

I am not the best when it comes to GUI shit , but add a SizeEx to the List box. but I think this would work

        class listResources: RscListbox
        {
            idc = 1500;
            x = 5.5 * GUI_GRID_W + GUI_GRID_X;
            y = 2.5 * GUI_GRID_H + GUI_GRID_Y;
            w = 10.5 * GUI_GRID_W;
            h = 19.5 * GUI_GRID_H

             sizeEx = 0.04; //Change these to your liking Idk how this would look like in game just a guess
            onLBSelChanged = "[] spawn life_fnc_refreshMarketView";
        };

and experiment with sizes 

Thanks a lot, it worked and was exactly was I meant.

Share this post


Link to post
Share on other sites
20 minutes ago, Federick90 said:

How do I add new resources and set them up properly?
 

You add them in "fn_marketconfiguration.sqf". Look at the existing ones to see how to set it up.

Share this post


Link to post
Share on other sites
1 hour ago, redtraxx said:

Hey guys I have a problem My market system always goes down to 0. Can i do that so that he stays at a fixed price? Kind regards

You can't fix it, this script is broken. We had the same problem when we had a server a while back, nothing you do or change will stop it dropping to zero, best off using the other market system.

Share this post


Link to post
Share on other sites

Hey guys market works perfect for me, was just wondering if anyone could help with adding something to the market. For example all I want to add is turtles. How would I go about that? I tired to copy and paste gold buyers but change it to turtle_raw along with filling out the rest of the things in the market configuration sqf but couldn't get it to work. Any ideas?

Share this post


Link to post
Share on other sites
4 hours ago, kdaws5 said:

Hey guys market works perfect for me, was just wondering if anyone could help with adding something to the market. For example all I want to add is turtles. How would I go about that? I tired to copy and paste gold buyers but change it to turtle_raw along with filling out the rest of the things in the market configuration sqf but couldn't get it to work. Any ideas?

Pastebin your market config.

Share this post


Link to post
Share on other sites
6 hours ago, imthatguyhere said:

Pastebin your market config.

Never mind I actually sorted it out hahahah. Thanks anyway mate

Share this post


Link to post
Share on other sites
On 2/10/2019 at 8:09 AM, KaanE said:

 

The items don't appear. when the market closes, "dialog ist nicht please."he says. Thanks.. No error logs..

 

The original error message should be in English. What exactly does it say? Can you send a picture of it?

  • Like 1

Share this post


Link to post
Share on other sites

Here:

_display = findDisplay 39500;

if(isNull _display) exitWith {hint "Dialog not open!"; };

 

Edited by KaanE

Share this post


Link to post
Share on other sites
1 minute ago, KaanE said:

_display = findDisplay 39500;

if(isNull _display) exitWith {hint "Dialog not open!"; };

  

Weird, that shouldn't be possible. Your refreshMarketView should have a waitUntil with the same display as the condition, so that refresh wouldn't run until then. Pastebin your Client RPT from when you tried it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×