Jump to content
FG_Trap

[RELEASE] Traps server menu

Recommended Posts

not sure what i'm missing, but i get this sometimes, any ideas?

ErrorMessage: File mpmissions\__cur_mp.Chernarus\scripts\tmenu\Defines.hpp, line 80: /tmenu/Controls.TMListbox1: Undefined base class 'RscListbox'

Share this post


Link to post
Share on other sites

Define the baseclass then this should work!

class RscListBox
{
    access = 0;
    type = 5;
    w = 0.4;
    h = 0.4;
    rowHeight = 0;
    colorText[] = {0.8784,0.8471,0.651,1};
    colorScrollbar[] = {0.95,0.95,0.95,1};
    colorSelect[] = {0.95,0.95,0.95,1};
    colorSelect2[] = {0.95,0.95,0.95,1};
    colorSelectBackground[] = {0,0,0,1};
    colorSelectBackground2[] = {0.8784,0.8471,0.651,1};
    colorBackground[] = {0,0,0,1};
    soundSelect[] = {"",0.1,1};
    arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
    arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
    class ScrollBar
    {
        color[] = {1,1,1,0.6};
        colorActive[] = {1,1,1,1};
        colorDisabled[] = {1,1,1,0.3};
        shadow = 0;
        thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
        arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
        arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
        border = "\ca\ui\data\ui_border_scroll_ca.paa";
    };
    style = 16;
    font = "Zeppelin32";
    shadow = 2;
    sizeEx = 0.03921;
    color[] = {1,1,1,1};
    period = 1.2;
    maxHistoryDelay = 1;
    autoScrollSpeed = -1;
    autoScrollDelay = 5;
    autoScrollRewind = 0;
};

Share this post


Link to post
Share on other sites

No @GodZilla  place this in description.hpp

 class RscListBox 
{
    type = 5;
    w = 0.4;
    h = 0.4;
    rowHeight = 0;
    colorText[] = {1,1,1,1};
    colorScrollbar[] = {1,1,1,1};
    colorSelect[] = {1,1,1,1};
    colorSelect2[] = {1,1,1,1};
    colorSelectBackground[] = {1,1,1,1};
    colorSelectBackground2[] = {1,1,1,1};
    colorBackground[] = {1,1,1,1};
    soundSelect[] = {"",0.1,1};
    arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
    arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
    class ScrollBar
    {
        color[] = {1,1,1,1};
        colorActive[] = {1,1,1,1};
        colorDisabled[] = {1,1,1,0.3};
        shadow = 0;
        thumb = "dayz_code\gui\thumb_ca.paa";                                                    Change path
        arrowFull = "dayz_code\gui\arrowfull_ca.paa";                                        Change path
        arrowEmpty = "dayz_code\gui\arrowempty_ca.paa";                                Change path
        border = "dayz_code\gui\border_ca.paa";                                                  Change path
    };
    style = 16;
    font = "Zeppelin32";
    shadow = 2;
    sizeEx = 0.03921;
    color[] = {1,1,1,1};
    period = 1.2;
    maxHistoryDelay = 1;
    autoScrollSpeed = -1;
    autoScrollDelay = 5;
    autoScrollRewind = 0;
};

Share this post


Link to post
Share on other sites
21 hours ago, Doggyman said:

Hello all, works fine on Server but is there a Chance to build a Helipad with deploy anything?
With the Toolbox works but not with Menu.
No RPT issue btw.
Hope anyone can help me.

you can use this menu to deploy objects

 

 

Share this post


Link to post
Share on other sites

Hello, how would I disable the no grass option in menu?

Nice script BTW.

Thanks.

Edit: Ok, I figured it out. I just commented out the grass section in the dialog.hpp file.

Edited by Hux
Solved

Share this post


Link to post
Share on other sites
On 3/10/2020 at 7:08 PM, ShyVicZ said:

Hello,

so i get this error,

ErrorMessage: File mpmissions\DayZ_Epoch_24.Napf\NLZ\tmenu\dialog.hpp, line 90: /tmenu/Controls.TMButton2: Undefined base class 'RscButton'

anyknow why?

 

Spent the last 7 hours trying to fix exactly this error right here, the instructions must be missing something critical here. Because i have went over it a thousand times. And verified EVERY single file location

Share this post


Link to post
Share on other sites
On 10/20/2020 at 11:33 AM, Th3-Hunter333 said:

Spent the last 7 hours trying to fix exactly this error right here, the instructions must be missing something critical here. Because i have went over it a thousand times. And verified EVERY single file location

Ok for anyone having any issues im going to paste this here for people to have.

Open up dialog.hpp and edit line 122 to this here, he forgot the execvm portion of this.
onButtonClick = "execVM 'custom\tmenu\color.sqf';";

Open up your description.ext and add this line near the bottom directly above this line

#include "dayz_code\gui\description.hpp"
#include "dayz_code\Configs\CfgLoot\CfgLoot.hpp"
#include "dayz_code\Configs\CfgServerTrader.hpp"

 

Here is the line your adding

class RscButton {
    access = 0;
    type = 1;
    text = "";
    colorText[] = {0.8784,0.8471,0.651,1};
    colorDisabled[] = {0.4,0.4,0.4,1};
    colorBackground[] = {1,0.537,0,0.5};
    colorBackgroundDisabled[] = {0.95,0.95,0.95,1};
    colorBackgroundActive[] = {1,0.537,0,1};
    colorFocused[] = {1,0.537,0,1};
    colorShadow[] = {0.023529,0,0.0313725,1};
    colorBorder[] = {0.023529,0,0.0313725,1};
    soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
    soundPush[] = {"\ca\ui\data\sound\new1",0,0};
    soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
    soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
    style = 2;
    x = 0;
    y = 0;
    w = 0.095589;
    h = 0.039216;
    shadow = 2;
    font = "Zeppelin32";
    sizeEx = 0.03921;
    offsetX = 0.003;
    offsetY = 0.003;
    offsetPressedX = 0.002;
    offsetPressedY = 0.002;
    borderSize = 0;
};
 

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.

Loading...

  • Similar Content

    • By kuibi1234
      Hey im not sure if im in the right forum, but i've been struggling with this problem for about 3 days now and google searches haven't gotten anything out for me, since my problem isnt really described other than that my server crashes after i join and start loading in.
      im running 1.0.7 Epoch with a few scripts/mods (DZSM, WAI, Lift&Tow, clickActions, remoteVehicle, marker_Manager, custom safezones script) + infistar.
      it was working all fine until i made a change to dynamic_vehicle.sqf in the dayz_server, after that the server kept crashing and i even made a backup and moved the old file back, but it kept crashing after that too, so i dont know what the problem is, i do have an rpt. but its basically no use since it doesnt show any errors.

       
      I left last few lines out, because its infistar stuff that is keys and other things im not supposed to show. After that it just cuts off from there because it crashes.


      Edited dynamic_vehicle.sqf (only AllowedVehiclesList changed):
       
    • By Arturius1967
      Hey guys,
      I never liked, the unfinished west end of the coast road on the Tschernarus map.
      Now I spent some time to make it look better with a mod script , which I basically created in the 3D editor.
      Still have some things to fix, but than i could uplod it, if anyone is interested.
      BEFORE:
      AFTER:
       
    • By Restplay
      Hello i created my server from this thread:
      . How to fix it?      
    • By mudzereli
      Outdated, does not work with Epoch 1.0.7
      DEPLOYABLE BIKE 2.8.2
      all of this information is available in an easier-to-read format on github pages>>
      version 2.8.2 updates the code to work with Epoch Mod 1.0.6. Thanks @ebaydayz!
      version 2.8.1 should hopefully fix the long-standing non-moving-bike problem! Thanks @SchwEde!
      FYI: 2.8.0 adds the _condition and _ammo parameters to the config array so you will need to add a value for these parameter in each record of the DZE_DEPLOYABLES_CONFIG array in the appropriate spot if you are upgrading from 2.6
       
      Out of the box, it adds a deployable bike with a right click action on a toolbox and a couple other neat deployables.
      Really, it can be used to deploy just about anything. See the configuration section below.
      For some samples of what it can do, check out this gallery on imgur
       
      Installation
      download the files extract the addons and overwrites folder from the downloaded zip file into your mission file root find this line in your mission file init.sqf (warning: if you have a custom compiles file, find that line instead of the one below!) call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; place this line directly after the line you found call compile preprocessFileLineNumbers "addons\bike\init.sqf"; edit addons\bike\config.sqf to change some options or add different deployables (see configuration section for more info) Warning:
      due to the way the way arma handles numbers and the way addon is coded, using the save-to-database option may not allow you to re-pack some objects if you have Character ID's over 500,000 (which I don't think will be an issue for 99.99% of people).  
      Adding Your Own Custom Actions
      If you use another right click method like extra_rc.hpp and want to switch to my method, see my click actions configuration github page.
      The click actions script is included in the deploy script as part of the core, so you don't need to download anything, just follow the instructions for adding your own actions.
      * note: before attempting to troubleshoot issues with adding your own actions, make sure you are using the most recent version of the addon.
       
      Configuration
      This addon is highly configurable, you can deploy just about anything, not just bikes.
      open addons\bike\config.sqf and edit the array to add your own deployables.
       
      DZE_DEPLOYABLES_CONFIG format -- (note no comma after last array entry)
      DZE_DEPLOYABLES_CONFIG = [ [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_hive,_plot,_simulation,_deployables,_near,_parts], [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_hive,_plot,_simulation,_deployables,_near,_parts], [...more stuff here...] ]; DZE_DEPLOYABLES_CONFIG array values (view on github to read easier):
      parameter | description | type | example --------------|---------------------------------------------------------------------|--------|-------- _clickItem | class name of the item to click on | string | "ItemToolbox" _deployOffset | [_side,_front,_up] array to offset the deployable when buiding | array | [0,2,1] _packDistance | how close does the packer need to be to pack the object? | number | 5 _damageLimit | item can't be repacked if damage is > this. (-1 = no re-packing) | number | 0.1 _packAny | can anyone repack the deployable? | bool | false _cargo | clear the cargo of the deployable? | bool | false _ammo | should vehicle ammo be cleared? (does not persist through restart) | bool | true _hive | write deployable to database? | bool | false _plot | require a plot from the owner to build the deployable? | bool | false _simulation | enable simulation (movement/damage) for the object? (true for cars) | bool | true _road | enable road building for this object? | bool | true _deployables | array of class names that can be deployed with this method | array | ["MMT_Civ"] _near | array of items required nearby to build (workshop/fire/fueltank) | array | [] _parts | array of parts required to build (will be taken from player) | array | ["ItemToolbox"] _condition | string of code to evaluate to determine whether action is shown | string | "!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}" DZE_DEPLOYABLE_NAME_MAP array -- allows you to rename the deployable (on the right click/messages)
      format (note no comma after last array entry)
      DZE_DEPLOYABLE_NAME_MAP = [ [_class,_name], [_class,_name], [... more ...] ];  array parameters
      parameter    | description                                                         |  type  | example --------------|---------------------------------------------------------------------|--------|-------- _class        | class name of the item you want to replace the name of              | string | "Notebook" _name         | new name to display when right clicking                             | string | "Macbook Pro" Change Log
      version | change --------|------- 2.8.2 | updates for 1.0.6! Thanks @ebaydayz! 2.8.1 | fix from SchwEde that should fix bike not moving. Thanks @SchwEde! 2.8.0 | option to clear vehicle ammo 2.7.1 | better exit reasons 2.7.0 | option to add condition for showing action in config 2.6.1 | fix for unrideable bikes 2.6.0 | road building options, deployable name mapping 2.5.1  | fix a bug where preview items would sometimes disappear  2.5.0  | now uses a modified epoch building system to deploy the objects  2.4.3  | better click actions build conflict detection  2.4.2  | updated for new click actions handler build  2.4.1  | fixed deployables spawning in locked after restart  2.4.0  | multi-part deployables. yay!  2.3.1  | big fix on packing temp objects  2.3.0  | optional saving to database with post-restart memory of deployed items (see warning below about this) | configurable damage limits on re-packing | admin list for packing/deploying instantly & being able to remove all deployables  2.2.1  | positioning fix for deployed items  2.2.0  | option for clearing cargo of spawned items  2.1.0  | change way dependency call is made, only one line needed in init.sqf now for setup  2.0.0  | major update, allow multiple deployables, pretty much any class  1.1.0  | configuration options / code optimization  1.0.0  | release Issues/FAQ
      1) people are getting kicked for createvehicle restriction when building a stone wall
      open your battleye filter createvehicle.txt and change this line
      5 "Fort_" !="Fort_RazorWire" !="Fort_RazorWirePreview" to this:
      5 "Fort_" !="Fort_RazorWire" !="Fort_RazorWirePreview" != "Fort_StoneWall_EP1" 2) I am using "A Plot For Life" and this is not working!
    • By salival
      Hi,
      Here's my version of  @OtterNas3 vehicle key changer.  It was subsequently modified by @Grahame for epoch 1.0.6. Updated for 1.0.7.
      This adds support for briefcases, gems and coins as well as using the epoch vehicle upgrade system to do the key changing/claiming.
      * original discussion url: https://epochmod.com/forum/topic/5972-release-vehicle-key-changer-for-making-masterkey-v-14-updated-06152014/
      * updated discussion url: https://epochmod.com/forum/topic/43048-release-vehicle-key-changer-for-making-masterkey-v-141-updated-for-epoch-106/
      Github link with install directions: https://github.com/oiad/vkc
      **EDIT* Link to a working locate Vehicle script that is able to find multiple vehicles per key: 
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/vkc/tree/vkc-Epoch-1.0.6.2
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...