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

7. Go into your "init.sqf" at the main directory and add this code.

 

i dont have that init.sqf in main directory i have version 5.0

im main have: initPlayerLocal.sqf; initPlayerServer.sqf; initServer.sqf

Share this post


Link to post
Share on other sites
On 5/7/2017 at 1:15 AM, Robbo said:

You need to edit the init.sqf in the main directory, not the one in the Altis_Life.Altis\core. I made the same mistake as he says to edit it after "player enableFatigue false;". Ignore it and edit the other init.sqf file just adding the string in it.

main mission or life_server because i dont have init.sqf in main mission

Share this post


Link to post
Share on other sites
5 hours ago, Puma Power.PT said:

main mission or life_server because i dont have init.sqf in main mission

Correct, as it was removed in a 5.0 cleanup. You were informed via Discord, but server sided goes in initPlayerServer and client sided code goes in initPlayerLocal.

Share this post


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

Correct, as it was removed in a 5.0 cleanup. You were informed via Discord, but server sided goes in initPlayerServer and client sided code goes in initPlayerLocal.

Yeah thanks for the big support

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...