Jump to content
Fopeak

[Tutorial] 5.0 Dynamic Market

Recommended Posts

On 1/4/2560 at 5:01 PM, Fopeak said:

if(isDedicated && isNil("life_market_prices")) then { [] call life_fnc_marketconfiguration; diag_log "Market prices generated!"; "life_market_prices" addPublicVariableEventHandler { diag_log format["Market prices updated! %1", _this select 1]; }; //Start server fsm [] execFSM "core\fsm\server.fsm"; diag_log "Server FSM executed"; };

how to add this ??
add in core>init.sqf
or Mission...>init. if add in this add under false start progress or true startprogress

 

Share this post


Link to post
Share on other sites
2 hours ago, krittinzaza2543 said:

how to add this ??
add in core>init.sqf
or Mission...>init. if add in this add under false start progress or true startprogress

 

Main, mission>init, it says main directory....

Share this post


Link to post
Share on other sites

I have a questions..  changes in action, [Sales multiplied by 1, Purchase multiplied by -1].. what does it mean changes in action ? and [Sales multiplied by 1, Purchase multiplied by -1] ? thank you so much

Share this post


Link to post
Share on other sites

Hey, the Script is working fine, but when I sell something i get the amound defined in Config_vItems.hpp ... how to fix?

Edit: No Errors in Logs or ingame!

Edit: I'm using 5.0

Edited by MrFrost

Share this post


Link to post
Share on other sites

Is there a Fix for the Price dropping to 0, even if a minimum Price is defined ? Running on 5.0, no Errors ion the Config, Works fine, except of this Bug.

Share this post


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

Working perfectly but i would like to ask how am i able to make the font bigger from the names of all vItems

in the dialog i assume its a listbox, try increasing the text size

Share this post


Link to post
Share on other sites

yea, i know that but where do i add the text size? 

		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;
			onLBSelChanged = "[] spawn life_fnc_refreshMarketView";

 

Share this post


Link to post
Share on other sites
19 hours ago, uptoinsanity said:

yea, i know that but where do i add the text size? 

		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;
			onLBSelChanged = "[] spawn life_fnc_refreshMarketView";

 

This is using the vanilla list box class. Look up the Listbox on the Bohemia wiki for the generic attributes and whatnot, otherwise look in common.hpp for the arma life Listbox attributes

Share this post


Link to post
Share on other sites

Hi,

I have a Problem...
I copy the code an extract the files inside the Mission.
BUT 

http://prntscr.com/icg72i

every time and I get also kicked after some time with nearly the same Message only #1 behind.

http://prntscr.com/icgjd5
But then ...

http://prntscr.com/icgjp4
I dont know whats going on, I also get no scripterror.

Same with my Mates.

Edit: Problem sould solved BUT NOT, Battleye is a badass

I correct the following files but the is no change.
publicvariable.log

09.02.2018 18:12:56: Enisto (IP) GUID - #0 "life_market_prices" = [["oil_processed",5508,8,8],["diamond_cut",4546,16,16],["copper_refined",2484,-16,-16],["iron_refined",3533,33,8],["salt_refined",4850,0,0],["glass",3489,39,8],["cement",3384,34,8],["goldbar",55000,0,0],["marijuana",5750,0,0],["cocaine_processed",6300,0,0],["heroin_processed",6500,0,0]]
09.02.2018 18:12:56: Enisto (IP) GUID - #1 "life_market_prices" = [["oil_processed",5508,8,8],["diamond_cut",4546,16,16],["copper_refined",2484,-16,-16],["iron_refined",3533,33,8],["salt_refined",4850,0,0],["glass",3489,39,8],["cement",3384,34,8],["goldbar",55000,0,0],["marijuana",5750,0,0],["cocaine_processed",6300,0,0],["heroin_processed",6500,0,0]]
12.02.2018 01:08:36: Gartenzwerg (IP) GUID - #0 "life_fnc_RequestClientId" = civ_1
12.02.2018 01:17:07: Gartenzwerg (IP) GUID - #0 "life_fnc_RequestClientId" = civ_1
12.02.2018 01:25:19: Enisto (IP) GUID - #0 "life_fnc_RequestClientId" = civ_2
12.02.2018 01:32:41: Enisto (IP) GUID - #0 "life_fnc_RequestClientId" = civ_1
12.02.2018 02:08:34: Enisto (IP) GUID - #0 "life_fnc_RequestClientId" = civ_1
12.02.2018 02:18:23: Enisto (IP) GUID - #0 "life_fnc_RequestClientId" = civ_1
12.02.2018 02:33:47: Enisto (IP) GUID - #0 "life_fnc_RequestClientId" = civ_1
13.02.2018 00:23:26: Olaf Auster (IP) GUID - #0 "life_fnc_RequestClientId" = civ_2

 

publicvariable.txt (with try to fix but dont work)

//new
1 ""
5 "" !=life_fnc_RequestClientId !=money_log !=advanced_log !=(cop|civ)_[\d]{1,3} !=medic_[1-6]
5 "" !life_fnc_RequestClientId !life_market_prices

why it dont work 

http://steamcommunity.com/sharedfiles/filedetails/?id=1299949395

I hope someone can help me. (sorry for my english it's not the yellow from the egg ;) )

Enisto

 

arma3server_2018-02-13_00-19-08.rpt

Edited by Enisto
First useless fix

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...

Important Information

By using this site, you agree to our Terms of Use.