Jump to content

[RELEASE] Custom GUI / Menu UPDATED for 1061


theduke

Recommended Posts

Hi Epoch community,
Have you ever wanted a way for players to be able to see your server rules while in-game?
Are you tired of repeating yourself with simple answers to simple questions?
Looking for a different way to deploy items or call certain scripts?

Our community uses mostly scripts from this awesome epoch community. Its our time to give back :)
I've decided to make a release version of my GUI for everyone to use.

https://github.com/theduke77/Custom-Menu

In the video, i have my community colors in the GUI, the release version I tried to match the zupa colors.

Video

  Reveal hidden contents

I've received tremendous help from SHIX. Most of the credit goes to him for explaining to me how to do this.
also, I've used the code he provided as a template and built this from that.
He kindly allowed me to share with all of you

Ok, now for the fun part.
This is NOT for someone new to the world of epoch server management. (probly because of my instructions lol)
This is NOT a plug-n-play addon. You must configure all the files and customize the menu
I would strongly suggest you have a test server to be able to test it as you create new pages.
Try one page to make sure it looks good, then go from there.
If you want to change the colors of stuff, check out the options section before creating pages.

I will do my best to explain to the best of my knowledge.
I'm far from being a coder lol

Tools required

Notepad ++
PBO Tool
patience...with my instructions ;)
TextView (optional)

Installation:

  Reveal hidden contents

How to create new pages

  Reveal hidden contents

OPTIONAL

  Reveal hidden contents

Known issues

  Reveal hidden contents

Many thanks to SHIX. Without him explaining this GUI stuff to me I wouldn't of made it lol
Thanks to Kill Zone kids blogs, they are amazing to learn from.

Thanks casual_jeff for the 1061 fix

Hope you guys enjoy it.
I will support this to the best of my knowledge :)

 

Added keyboard.sqf for less confusion.  Thanks @RC_Robio
Also added instructions on how to change button to open the menu

Now with a github link also. Thanks @salival

 

Link to comment
Share on other sites

  On 3/11/2017 at 1:42 AM, salival said:

You should put your releases on GitHub so they are easier to fix bugs, track bugs and update

Expand  

haha well tbh this is my only release that i made myself.  If i was a real scripter yeah i could make use of it. But as i just puts around i cant see it being worth it.

Link to comment
Share on other sites

Hi,

 

Firstly great work!

 

I have noticed in the keyboard.sqf there is this line of code: execVM "custom\eslk\eslkinit.sqf"; I assume this is mean to be: execVM "custom\menu_init.sqf";

Could you also confirm that the keybinding for the menu is TAB?  As I'm not actually getting the menu show up, might just be me being dumb here.

Link to comment
Share on other sites

  On 3/17/2017 at 11:56 AM, shayd said:

Hi,

 

Firstly great work!

 

I have noticed in the keyboard.sqf there is this line of code: execVM "custom\eslk\eslkinit.sqf"; I assume this is mean to be: execVM "custom\menu_init.sqf";

Could you also confirm that the keybinding for the menu is TAB?  As I'm not actually getting the menu show up, might just be me being dumb here.

Expand  

ah crap thats my path   smh  lol thx ill fix it

 

EDIT:

 yes tab is the button by default. Your path should be (if you put the menu folder in the custom folder)

custom/menu/menu_init.sqf;

maybe that is why its not populating also.

But I updated the OP and the git is up to date

Link to comment
Share on other sites

  • 3 weeks later...
  On 3/11/2017 at 1:39 AM, theduke said:

Open your custom compiles and look for

DZ_KeyDown_EH = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\keyboard.sqf";

Replace that line with

DZ_KeyDown_EH = compile preprocessFileLineNumbers "custom\menu\keyboard.sqf";

Save and close

Expand  
 

I can not find where to edit this? Whichever compiles I have found there are no such lines in it. 

Link to comment
Share on other sites

@heroesandbandits

custom compiles.sqf  (lines in red) (you will find it around line 685)

  Reveal hidden contents

change this line in red by:

DZ_KeyDown_EH = compile preprocessFileLineNumbers "custom\menu\keyboard.sqf";
Link to comment
Share on other sites

  • 2 weeks later...

the problem i was having  with this was the deploy_bike scripts :sad:

after i copy your deploy_bike.sqf 3 times and change the vehicles id to the ones i wanted :cool:  every time i open the menu and went to click on the vehicle i wanted to spawn in it was spawning in the wrong one 

i fixed this by using my old files and adding them into yours ... i did not make any of the .sqf

but this is what i done

in the menu folder i open up menu.HPP  went to line 300 , 348 and 413 and replace  onButtonClick = "call deployable1script;";  with this

  Reveal hidden contents

then i added the old SQF files in my new menu/scripts folder and for the people like me who dont no what you are doing i have marked the vehicle id and items what are needed to make the vehicles in bold

common.sqf 

  Reveal hidden contents

 

dpk.sqf

  Reveal hidden contents

pack.sqf

  Reveal hidden contents

the pack.sqf is not letting me pack the vehicles in game but just wanted to add it in this as well

and the last problem i was having was the vehicles exploding but Juandayz help me out with this and told me to add this to my variables under

call dayz_resetSelfActions;

  Reveal hidden contents

hope this helps out any one who was having problems with the deploy_bike script

 

Link to comment
Share on other sites

  • 2 months later...

I love the menu system. I have seen it on many servers. I would love to have the view distances, can you share yours or explain how to implement it please. Also, I don't see where I can put like Information at the top and then the different buttons at the bottom. Am I missing something, or can you share or explain how to do this. Thank you.

Link to comment
Share on other sites

So I have this up and Running. I can't get into the first menu option, which is rules_init.sqf. it just closes the menu out completely. I only added the text and changed nothing else about it. I have another menu option called Building, that works great.

Link to comment
Share on other sites

  On 7/28/2017 at 5:43 PM, DAKA said:

So I have everything working except the bike script, which I have one already that I would like to use. Also, how do I change how the menu opens, TAB is used for some other things for players.

Expand  

open keyboard.sqf supplied in the files.

look for

[[DIK_TAB], _informenu] call _addArray;

Change

DIK_TAB to your liking.

The dik codes can be found if you google dik codes bohemia

Link to comment
Share on other sites

  • 2 months later...

Hi Duke,

For the life of me i cant find how to add a button :)

I added the exception to infistar, i set its own id, defined the script etc

Button is shown with my text and when i press it nothing happens, its like infistar doesnt allow it (tried 2-3 codes btw lol) or exec doesnt point to correct sqf but it does..

Any help?

Link to comment
Share on other sites

  On 10/24/2017 at 1:46 PM, ReDBaroN said:

Great release @theduke thank you!

Can you tell me what I use to start a new line inside the text boxes? I have tried "<br />" but, that doesn't work...

Thanks

Expand  

If i understand correctly, you are talking about rules and such right?

If I did understand correctly lol, you dont need to add breaks. Its a structured box, so it does it on its own.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...