RuschGaming

TUTS Briefing for ExileMod

39 posts in this topic

This is just a little example for you guys how to work with briefing and make it work with ExileMod.

What you will be needing in this small Tuts

  • Text Editor (Atom or Notepad ++ )
  • Coffee

Right Where do these files belong?

  • MPMissions
    • Exile.altis or other maps (ex. Exile.Bornholm)
      • briefing.sqf
      • init.sqf

Screenshot:

A6BhBZ9.png

Briefing Code:

if (!hasInterface) exitWith {};

waitUntil {!isNil "ExileClientLoadedIn"};
 // Waits for Exile to finish up

player createDiarySubject ["Main","Rules"];
player createDiarySubject ["Info","Website"];


// Main Section
	player createDiaryRecord ["Main",
		[
			"Menu 1",
				"
				<br/>
				Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur non nulla sit amet nisl tempus convallis quis ac lectus.
				Cras ultricies ligula sed magna dictum porta. Lorem ipsum dolor
				sit amet, consectetur adipiscing elit. Nulla quis lorem ut libero
				malesuada feugiat. Donec sollicitudin molestie malesuada.
				Vestibulum ante ipsum primis in faucibus orci luctus et
				ultrices posuere cubilia Curae; Donec velit neque,
				auctor sit amet aliquam vel, ullamcorper sit amet ligula.
				"
		]
	];

	player createDiaryRecord ["Main",
		[
			"Menu 2",
				"
				<br/>
				Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur non nulla sit amet nisl tempus convallis quis ac lectus.
				Cras ultricies ligula sed magna dictum porta. Lorem ipsum dolor
				sit amet, consectetur adipiscing elit. Nulla quis lorem ut libero
				malesuada feugiat. Donec sollicitudin molestie malesuada.
				Vestibulum ante ipsum primis in faucibus orci luctus et
				ultrices posuere cubilia Curae; Donec velit neque,
				auctor sit amet aliquam vel, ullamcorper sit amet ligula.
				"
		]
	];

	player createDiaryRecord ["Main",
		[
			"Menu 3",
				"
				<br/>
				Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur non nulla sit amet nisl tempus convallis quis ac lectus.
				Cras ultricies ligula sed magna dictum porta. Lorem ipsum dolor
				sit amet, consectetur adipiscing elit. Nulla quis lorem ut libero
				malesuada feugiat. Donec sollicitudin molestie malesuada.
				Vestibulum ante ipsum primis in faucibus orci luctus et
				ultrices posuere cubilia Curae; Donec velit neque,
				auctor sit amet aliquam vel, ullamcorper sit amet ligula.
				"
		]
	];

// Info
	player createDiaryRecord ["Info",
		[
			"Info 1",
				"
				<br/>
				Nulla porttitor accumsan tincidunt. Donec sollicitudin molestie malesuada.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.
				Curabitur non nulla sit amet nisl tempus convallis quis ac lectus.
				Cras ultricies ligula sed magna dictum porta. Lorem ipsum dolor
				sit amet, consectetur adipiscing elit. Nulla quis lorem ut libero
				malesuada feugiat. Donec sollicitudin molestie malesuada.
				Vestibulum ante ipsum primis in faucibus orci luctus et
				ultrices posuere cubilia Curae; Donec velit neque,
				auctor sit amet aliquam vel, ullamcorper sit amet ligula.
				"
		]
	];

Init.sqf (note if you already have init.sqf then just open that file and add the code into it and save)

null =[] execVM "briefing.sqf"; // Briefing and Rules

Extra Info:

  • Use <br/> to add a breakline (its just like hitting enter on your word document but then in code). When I am making list of rules i mostly add 2 breaklines ex. <br/><br/>  so it would show up nicely with a new line. ( yes i have ocd lol )
  • player createDiarySubject ["Main","Rules"]; 
    • "Main" this is your group, you can change this to anything you want to be called just make sure when you add your menu (player createDiaryRecord ["Main",) make sure its the same name as well.
    • You can add as many as you like, just keep in mind that you keep the groups together if you want them in the same tab.
  • It works fine with exile but if you are using Infistar see this link: http://exile.majormittens.co.uk/topic/752-briefing/?do=findComment&comment=4761

Screenshot:

EeDSW1I.png

If there are other ways or things that need to be added that I forgot, then feel free to add in this post :D

Hope this helps you guys get started on your briefing and if you have any issues feel free to ask me!

 

 

  • Like 14

Share this post


Link to post
Share on other sites
Advertisement

@RuschGaming 

 

How do you get it neat and tidy I have implemented your breifing script but its messy.....

 

what I mean is that when you got to a new line instead of a new line in the briefing is spaces it and places on the same line :/

Share this post


Link to post
Share on other sites

if you want share your briefing code here or through pastebin or pm and ill show you what has gone wrong. it could have been just a simple word that got in the way. keep in mind the boxes arent big at all. its a fixed size so sometimes you need to add a <br/> so make it look all nice and neat.

Share this post


Link to post
Share on other sites

@RuschGaming 

 

How do you get it neat and tidy I have implemented your breifing script but its messy.....

 

what I mean is that when you got to a new line instead of a new line in the briefing is spaces it and places on the same line :/

test it with these

["Menu1or_so","<br/>

Homepage: www.blabla<br/>
Teamspeak: ...<br/><br/>

Serverrules<br/><br/>
1. Rule<br/><br/>
2. Rule<br/><br/>
3. Rule<br/><br/>
4. Rule<br/><br/>
5. Rule<br/><br/>
6. Rule<br/><br/>
7. Rule<br/><br/>
8. Rule<br/><br/>
9. Rule<br/><br/>
"]];

 

 the output is

1.Rule

[empty Line]

2.Rule ....

 

the problem on briefing is, if the statistic tab come, your briefing is away

Edited by Kugane
  • Like 1

Share this post


Link to post
Share on other sites

OK Since I had to translate the inifstar trick in your link. I cannot seem to find that line in the code. Any suggestions when using infistar? I have the latest version 09262015. 

To prevent flicker, easy to _AH.sqf in line 1949 (the latest version), the

_lsize>  6

Change, then listen to the flicker.

For each "create diary subject" that it uses, the value must be increased by one. ;)

If it is not generally shown, tries times at the beginning of a briefing.sqf

 

 

 Adjust value if necessary, halt depends on the charging time of the clients.

Error when players on in the game and click on that menu:

Map Sub-Menu [4] size has been changed to 3. Found: ["Rules","Website","TeamSpeak"]

 

UPDATE: OK Latest version (09/26/2015) Line 1968. Change it from 2 to 6. Working perfectly.  

issues when Infistar is used

Edited by Falcon911

Share this post


Link to post
Share on other sites

Line 1964 in your EXILE_AH.sqf

if(_lsize > 12)then  (where 12 is input the number of lines that you have in your Briefing)

Here is a copy of our code, feel free to use it how you see fit:

uiSleep 10;
if (!hasInterface) exitWith {};

waitUntil {!isNil "ExileClientLoadedIn"};
 // Waits for Exile to finish up

player createDiarySubject ["rules", "Server Rules"];
player createDiarySubject ["ts3", "Website"];
player createDiarySubject ["officers", "Server Admins"];
player createDiarySubject ["credits", "Credits"];
player createDiarySubject ["infos", "Useful Info"];
player createDiarySubject ["infos2", "Exile Faq"];
player createDiarySubject ["infos3", "More Info"];

    player createDiaryRecord ["officers",
            [
                "Server Admins",
                                "
                                <br/>XXXXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXxx
                                <br/>XXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXXXXXXX
                                <br/>XXXXXXXXXXXXXXXXXXXXXXXXXXXX
                                "
            ]

];

    player createDiaryRecord ["rules",
            [
                "Server Rules",
                                "
                                <br/>**All of the following rules are punishable offences.**
                                <br/>
                                <br/>NO Building AT ALL within 500m of all Military Outposts</p>
                                <br/>No Crying in Chat, No Racism, No Harrassment</p>
                                <br/>No Building within 1000 Meters of ANY Traders</p>
                                <br/>No Trolling,Stealing Directly From Players,Griefing in SafeZones</p>
                                <br/>Vehicles Left in SafeZones Spawn Unlocked and are Free to Take</p>
                                <br/>No Camping or Shooting into SafeZones</p>
                                <br/>No Base Kamikaze w Aircraft or Sling Stealing in Safe Zones</p>
                                <br/>Report any glitches or greifing on TS or post proof to Forums</p>
                                <br/>Glitching, Exploiting, and Hacking will get you Banned!</p>
                                <br/>View Full Rules On Our Website</p>

                                "
            ]

];

    player createDiaryRecord ["ts3",
            [
                "Our Website",
                                "
                                <br/>Visit our website at the following address!
                                <br/>
                                <br/>www.LegionGamingHQ.com
                                <br/>
                                <br/>We've have our own TS3 server!
                                <br/>
                                <br/>You can join the teamspeak server at the following addresses!
                                <br/>
                                <br/>TS.LegionGamingHQ.NET OR 167.114.116.197
                                "
            ]

];

    player createDiaryRecord ["infos",
            [
                "Server Keybinds",
                                "
                                <br/>
                                <br/>This server has keys setup to do different things.
                                <br/>
                                <br/>5 - For Earplugs
                                <br/>
                                <br/>6 - Bring up XM8 Communication Portal, Hit X to turn on.
                                <br/>
                                <br/>N - NVG's if you have them
                                <br/>
                                <br/>V - While sprinting allows jumping.
                                <br/>
                                <br/>Need A bike - Open your Inventory and Double click your Radio, one will spawn around you.
                                <br/>
                                <br/>Build or Consume - Open your inventory and double click on the item
                                "
            ]

];

    player createDiaryRecord ["credits",
    [
                "Credits",
                                "
                                <br/>Enhancements by Legion:
                                <br/>Other Contributors:
                                <br/>* Vishpala - thank you for answering our retarded questions!
                                <br/>* Rod Sterling
                                <br/>* Eraser 1
                                <br/>* Cen
                                <br/>* Grim
                                <br/>Anyone one else that has help us during our adventure.
                                <br/>
                                <br/>Thanks A LOT to everyone involved for the help and inspiration!
                                "
    ]

];

    player createDiaryRecord ["infos2",
    [
                "Hints and Tips",
                                "
                                <br/>
                                <br/><font size='18'>A3Exile</font>
                                
                                <br/>* At the start of the game, spread out and find supplies before worrying about where to establish a meeting place or a base, supplies are important and very valuable.
                                
                                <br/>* When picking a base location, it is best advised to pick a place that is out of the way and not so obvious.
                                
                                <br/>* If you spawn in an area with no vehicles or supplies in the immediate area, DO NOT just click respawn from the escape menu, chances are if you search an area of a few hundred meters, you will find something.
                                
                                <br/>* Always be on the lookout for nightvision. they are located in the ammo crates, and there are pairs scattered throughout Altis. You can also purchase them from Safe Traders. Nighttime without them SUCKS, and if you have them, you can conduct stealth raids on enemy bases under the cover of complete darkness.
                                
                                <br/>* When you set up a base, never leave your supplies unguarded, one guard will suffice, but it is recommended you have at least 2, maybe 3 guards at base at all times.
                                
                                <br/>* There are very aggressive AI characters that spawn with most missions and will protect the mission objectives with deadly force, be aware of them.
                                "
    ]
    
];

    player createDiaryRecord ["infos3",
    [
                "About Exile",
                                "
                                <br/>
                                <br/>Exile is a Player versus Player sandbox survival experience. The objective of this mission is to rally team members, scavenge supplies, weapons, and vehicles, and destroy the other players. It is survival at its best! Keep in mind this is a work in progress, please direct your reports to http://exile.majormittens.co.uk
                                
                                <br/>FAQ:
                                
                                <br/>Q. What am I supposed to do here?
                                <br/>A. See the above description
                                <br/>
                                <br/>Q. Where can I get a gun?
                                <br/>A. Weapons are found in one of three places, first in ammo crates that come as rewards from missions, inside of buildings, and second, Traders thru out the map, Safe Traders and Blackmarket. The last place to find a gun would be on the dead of players whose bodies have not yet been looted.
                                <br/>
                                <br/>Q. What are the blue circles on the map?
                                <br/>A. The circles represent town limits. If friendly soldiers are in a town, you can spawn there from the re-spawn menu; however if there is an enemy presence, you will not be able to spawn there.
                                <br/>
                                <br/>Q. Why is it so dark, I cant see.
                                <br/>A. The server has a day/night cycle just like in the real world, and as such, night time is a factor in your survival. It is recommended that you find sources of light or use your Nightvision Goggles as the darkness sets in.
                                <br/>
                                <br/>Q. Where can I find Food?
                                <br/>A. This game has a food and water system that you must stay on top of if you hope to survive. You can collect food and water from building within towns.
                                <br/>
                                <br/>Q. I saw someone breaking a rule, what do I do?
                                <br/>A. Simply go into global chat and get the attention of one of the admins or visit our forums, and make a report if the offense is serious.
                                "
    ]
    
];

 

 

 

  • Like 2

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.