Jump to content

Recommended Posts

On 8/27/2020 at 7:39 AM, hoverguy said:

Hi everyone,

 

I released an update that includes a units shop.

https://github.com/Ppgtjmad/SimpleShops/commit/1af64c6870a4e555d9a1bb1071edcdf4c629bed7

 

I'll work on a "garage system" to store/retrieve units as well for persistency (database saving only). 

 

 

Also spawning a thread that monitors the state of a vehicle and updates the database accordingly.

 

Thank you dear @hoverguy

 

First, congrats on your new release! Your tool is a must have for any persistent mission!

 

May I ask that you check out the possibility of using the newly OLD MAN introduced inventory physical money as a more natural way to expose money, having the ability to stash it, move it and all the other added benefits.

 

The use case I will particularly use this for is that when you kill someone and they have money on them (instead of the bank) then they will drop they money physically on the floor.

 

 

Share this post


Link to post
Share on other sites

@bong oh

 

22 hours ago, bong oh said:

When I tested this awesome module,  screen freezes every 2 seconds. Why does this happen?

All Computer resource is normal. 

https://youtu.be/F9gfSOuycRo

 

Hi, try this -> https://github.com/Ppgtjmad/SimpleShops/commit/e3dd1219ef8bd249e6895aeface30cc3515e343e and let me know if it worked.

 

@LSValmont

 

On 9/4/2020 at 5:03 PM, LSValmont said:

 

Thank you dear @hoverguy

 

First, congrats on your new release! Your tool is a must have for any persistent mission!

 

No, thank you for using it.

 

On 9/4/2020 at 5:03 PM, LSValmont said:

May I ask that you check out the possibility of using the newly OLD MAN introduced inventory physical money as a more natural way to expose money, having the ability to stash it, move it and all the other added benefits.

 

The use case I will particularly use this for is that when you kill someone and they have money on them (instead of the bank) then they will drop they money physically on the floor.

 

I'll have a look into this OLD MAN stuff tomorrow afternoon.

  • Thanks 1

Share this post


Link to post
Share on other sites
15 hours ago, hoverguy said:

@bong oh

 

 

Hi, try this -> https://github.com/Ppgtjmad/SimpleShops/commit/e3dd1219ef8bd249e6895aeface30cc3515e343e and let me know if it worked.

 

@LSValmont

 

 

No, thank you for using it.

 

 

I'll have a look into this OLD MAN stuff tomorrow afternoon.

Sorry to reply late

Nice, no more lag now ! Thanks to make this mod

I haven't seen the code in detail yet, but can I make different sales items for different teams? Or should I make another file name and apply it separately?

Share this post


Link to post
Share on other sites
22 hours ago, hoverguy said:

I'll have a look into this OLD MAN stuff tomorrow afternoon.

 

It is amazing that you keep this tool up to date with the new patches being released by BI, really makes a difference when choosing the most "up to date" store solution for our missions.

 

Besides all the goodies that came with OLD MAN the "almost here" patch 2.0 will bring some very cool commands.

 

I can pick 3 of them that might be very useful for your tool:

 

https://community.bohemia.net/wiki/lockInventory

https://community.bohemia.net/wiki/lockedInventory

And

https://community.bohemia.net/wiki/localNamespace

Share this post


Link to post
Share on other sites

Can I ask how modify initial costume and weapon?

 

Basically it starts with nato's outfit, can this be changed according to the faction?

 

and another problem is when I buy and spawn vehicle, I can't get in.

Share this post


Link to post
Share on other sites

1.HG_GaragesCfg.h

 

Tell me, what am I doing wrong?
The problem is that each faction sees someone else's equipment, the opposite side !?

debug console->(playerSide in [west]) AND ((rank player) isEqualTo 'PRIVATE') -> true

 

Spoiler

class HG_BLUFOR_Garage // HG_DefaultGarage is just a placeholder for testing purposes, you can delete it completely and make your own
{
    conditionToAccess = "(playerSide in [west]) AND ((rank player) isEqualTo 'PRIVATE')"; // Example: "(playerSide in [west,independent]) AND ((rank player) isEqualTo 'PRIVATE')"
    allowedTypes[] = {"Car","Truck","Tank","Air"};
    spawnPoints[] = 
    {
        {"Spawn 1",{"garage_spawn_blu-1"}},
        {"Spawn 2",{"garage_spawn_blu-2","garage_spawn_blu-3"}}
    };
    storePoint = "garage_store_blu";
};

class HG_OPFOR_Garage // HG_DefaultGarage is just a placeholder for testing purposes, you can delete it completely and make your own
{
    conditionToAccess = "(playerSide in [east])"; // Example: "(playerSide in [east,independent]) AND ((rank player) isEqualTo 'COLONEL')"
    allowedTypes[] = {"Car","Truck","Tank","Air"};
    spawnPoints[] = 
    {
        {"Spawn 1",{"garage_spawn_opf-1"}},
        {"Spawn 2",{"garage_spawn_opf-2","garage_spawn_opf-3"}}
    };
    storePoint = "garage_store_opf";
};

 

2. When you select equipment, a cargo box appears.
    What is it for and what to do with it?

3.When I choose clothes, my back is not visible)))
   I cannot rotate the character.
   How to fix it?

Share this post


Link to post
Share on other sites

 

Hi @VitalyTurboVaz

 

1) There's one step that you're missing, when making more garage classes you have to modify the addAction call (https://github.com/Ppgtjmad/SimpleShops/wiki/Usage#virtual-garage)

this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE")+"</t>",{_this call HG_fnc_dialogOnLoadGarage},"HG_DefaultGarage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3']; 
this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE_PARK")+"</t>",{_this call HG_fnc_storeVehicleClient},"HG_DefaultGarage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

Notice the "HG_DefaultGarage" passed as a parameter to the function.

 

Let's use your new class -> HG_BLUFOR_Garage

this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE")+"</t>",{_this call HG_fnc_dialogOnLoadGarage},"HG_BLUFOR_Garage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3']; 
this addAction["<img image='HG\UI\Icons\garage.paa' size='1.5'/><t color='#FF0000'>"+(localize "STR_HG_GARAGE_PARK")+"</t>",{_this call HG_fnc_storeVehicleClient},"HG_BLUFOR_Garage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

2) A crate is spawned at your feet when you open the gear shop dialog. Whenever you buy something, let's say a uniform, and you already have a uniform equipped, your old one will be stored into the crate (along with its content). Note that only you can see the box, it's local.

The main purpose is if that if you buy a uniform that's of less capacity than you previous one that was full then you have a way to get your stuff back.

 

3) I can't reproduce this issue, do you have a screenshot or even better a video?

Share this post


Link to post
Share on other sites

Thanks for the answer!
I'll figure it out!

I checked my parameters, they are identical to yours.

 

 

PS

Check in file HG_HUD.h

Or change the file name.

 

    class KillCountBack: KillCountBack 
        {
            text = "HG\UI\Textures\back_alt1.paa";
        };

 

3. Body rotation works)) I apologize. Was not attentive!

 

Add Russian stringtable.xml

Edited by VitalyTurboVaz
add information
  • Like 1

Share this post


Link to post
Share on other sites

 

Is there still a bug in loadout save/load function?

My equipment does not load after  dies and returns to the initial loadout.(I used 11/7 version)

Share this post


Link to post
Share on other sites
On 10/6/2020 at 10:26 PM, VitalyTurboVaz said:

1.HG_GaragesCfg.h

 

Tell me, what am I doing wrong?
The problem is that each faction sees someone else's equipment, the opposite side !?

debug console->(playerSide in [west]) AND ((rank player) isEqualTo 'PRIVATE') -> true

.........................

 

In PVP or TVT, the player who bought the car sees their car in the garage when crossing to the other side. I have not checked the items, but I think it will be the same.
I cannot say that this is a mistake, but if it can be fixed, then tell me how to fix it?

Share this post


Link to post
Share on other sites

Tried installing this unfortunually my server runs a very strange cfg, some files don't match with the files within the rar.

This resulted in getting some error messages  :

 

 6:29:27 Warning Message: File mpmissions\__CUR_MP.altis\HG\UI\Dialogs\HG_HUD.h, line 13: /RscTitles/HG_HUD/ControlsBackground.XPBack: Undefined base class 'HG_RscPicture'


So I figured out where the RscTitles hangs out however I'm not sure how to add the #include "HG"\UI\Dialogs\HG_Hud.H to that specific file.


Hope somebody on here can help me out.

 

 

FnsCabF.png

 

I can't imagine that this is the right way.

RSCTitles is also hiding out in dialogs.hpp, i don't know if this can be relocated without too much hassle or not.

 

Basic server cfg is the community antistasi edition. If more details / fileuploads are necessary for the fix i'll upload.

Share this post


Link to post
Share on other sites
10 minutes ago, hoverguy said:

Hi @ZappsZ

 

Just put it right under 


class RscTitles {

Don't forget to add 


#include "HG\UI\HG_DialogsMaster.h"

Somewhere before RscTitles class.

 

Check this out -> https://github.com/Ppgtjmad/SimpleShops/wiki/Implementation

 

Managed to figure it out about an hour ago, now working on adding all the extra stuff to the stores. It's a nice system once you get used to it :).

Just need to get some hands on experience with creating missions and this can be a lot of fun in combination  with the money / store system and antistasi.

 

Appreciate the fast response though 🙂, I do have another issue running in this forum in case you're well versed in the a3 scripting / modding world but I won't bring that up in this topic.

Share this post


Link to post
Share on other sites

@hoverguy

 

 

Question when defining who has access to the garage, it runs in to an issue, can you tell me what I did wrong with this line?

 

conditionToAccess = "playerSide isEqualTo west","playerSide isEqualTo civilian","playerSide isEqualTo resistance";


Also tried to enable whitelist for 3 factions : West, Civilian and resistiance. [ The reason for this is because of playing antistasi, sometimes you're a civ, sometimes you're west and sometimes your i guess resistance?)

 

whitelistSides[] = {"west"};{"civilian"};{"resistance"}; 

 

I'm sure the fix is simple, however It's been a long time since I properly scripted within A3.

 

Regards,


Zapps.

Share this post


Link to post
Share on other sites

@ZappsZ

 

conditionToAccess = "playerSide in [west,civilian,resistance]";
whitelistSides[] = {"west","civilian","resistance"}; 

 

Share this post


Link to post
Share on other sites

First of all: Awesome shop system you got! Second: I want to change the uniform that the player is wearing. He's wearing a CSAT uniform and I want to change it. 

Lastly: I want the hud to show only the cash i have on me and show my bank account. If this is possible then i would be so grateful. 

Share this post


Link to post
Share on other sites

Hi @Jerris

 

3 hours ago, Jerris said:

Lastly: I want the hud to show only the cash i have on me and show my bank account. If this is possible then i would be so grateful. 

 

There's actually no way to easily control what's displayed on the HUD except for the XP and kills count, to make them not appear you have to disable them completely (enableXPenableKillCount in HG_Config.h).

To display your bank account balance you'd have to modify the HUD dialog file along with the function that controls it.

 

Also, I recommend using the alternative HUD that looks best. (hudType set to 1 in HG_Config.h).

 

3 hours ago, Jerris said:

Second: I want to change the uniform that the player is wearing. He's wearing a CSAT uniform and I want to change it

 

What player are you talking about, the one provided with the mission is Blufor, please be more precise in your request.

 

3 hours ago, Jerris said:

First of all: Awesome shop system you got!

 

Thanks for using it!

Share this post


Link to post
Share on other sites
22 hours ago, hoverguy said:

Hi @Jerris

 

 

There's actually no way to easily control what's displayed on the HUD except for the XP and kills count, to make them not appear you have to disable them completely (enableXPenableKillCount in HG_Config.h).

To display your bank account balance you'd have to modify the HUD dialog file along with the function that controls it.

 

Also, I recommend using the alternative HUD that looks best. (hudType set to 1 in HG_Config.h).

 

 

What player are you talking about, the one provided with the mission is Blufor, please be more precise in your request.

 

 

Thanks for using it!

You're welcome and i'm using a civilian character and it just forces me to wear the CSAT uniform. I really want to change the appearance of my civilian. Any way to do so?

By that i mean: When I play as a civ in the editor, I spawn in looking like CSAT.

Share this post


Link to post
Share on other sites
On 1/23/2021 at 10:41 AM, Jerris said:

You're welcome and i'm using a civilian character and it just forces me to wear the CSAT uniform. I really want to change the appearance of my civilian. Any way to do so?

By that i mean: When I play as a civ in the editor, I spawn in looking like CSAT.

I really need to not make my character look like CSAT. Please help.

Share this post


Link to post
Share on other sites
On 10/5/2020 at 1:01 PM, hoverguy said:

 

Hello dear @hoverguy!

 

Hope you are doing good and 2020 wasn't too hard on you.

 

Any update on the physical money you were working on?

Share this post


Link to post
Share on other sites

Incredible these scripts!

 

It helped a lot in the creation of scenarios.

I have only one doubt, when I start the scenario, the character starts with the "random" equipment ... any idea of what I may be missing or how to fix this?

Share this post


Link to post
Share on other sites

Hello guys , i need to know if is possibel to loot money object and add money in the player ?

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×