Support #76765

Problems server after Obfuscate mission.pbo with pboProject.

Added by FlipM0d3 5 months ago. Updated 4 months ago.

Status:New Start date:02/07/2017
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Tools
Target version:-
Close Reason: NGUrl:
BIForumURL: WIKIurl:

Description

Hi,

I'm setting up a Exile server and finally managed to Obfuscate my mission.pbo without any errors.
Now the server runs smooth and every thing works great, except for 3 things.

Problem 1
The loadout script I added was working until I Obfuscated the pbo.
Please see file: Loadout script.txt

Problem 2
"xm8_server_info.html" is not loading in my XM8 anymore?

Problem 3
I'm getting weird lines in my server info part what i never had before? (I removed all the normal text)
Please see file: Server info and rules.avi

Any help would be appreciated!

Loadout script.txt (1.6 kB) FlipM0d3, 02/07/2017 17:00

Server info and rules.avi (17.6 MB) FlipM0d3, 02/07/2017 17:00

xm8_server_info.html (518 Bytes) aussie, 02/09/2017 03:49

Info Menu Works woohoo!!.avi (18.7 MB) FlipM0d3, 02/10/2017 20:00

History

Updated by aussie 5 months ago

Hi FilpMod3

1. Have you tested a backup file? I dont think packing the file with Mikero's tools would change things. Maybe paste in a backup file & replace you loadout.sqf

2. You are missing a file in your root directory of you missions file.

+ Make an html file called xm8_server_info.html
+ Edit it with Notepad++ and paste in this code:

<html>
<head>
<title>Exile: Cherno Edition</title>
</head>
<body>
<h1>RULES:</h1>

&lt;p&gt;No Sniping/Camping trader areas&lt;/p&gt;
&lt;p&gt;No Griefing, Trolling, or Flaming!&lt;/p&gt;
&lt;p&gt;No Advertising or Spamming!&lt;/p&gt;
&lt;p&gt;Respect all Players!&lt;/p&gt;
&lt;p&gt;No Racism or Sexism!&lt;/p&gt;
&lt;p&gt;Listen to the Admins!&lt;/p&gt;
&lt;br&gt;
&lt;h1&gt;Join our Discord server&lt;/h1&gt;
&lt;p&gt;blaa blaa blaa&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Full set of rules in the XM8 apps section&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

3. For you XM8 you need to call it without adding the direct path. I couldn't call mine with the direct path "mpmissions\_crMP.Chernarus\

You have called the path (in config.cpp under cfgXM8)

"mpmissions\_crMP.Chernarus\custom\ExAdClient\XM8\Info\HtdHeaXl.sqf"

it should read

"custom\ExAdClient\XM8\Info\HtdHeaXl.sqf"

Here a script from my ExAd:

class BRAmaRecipes 
{
controlID = 107000;
title = "Recipies";
logo = "ExAdClient\XM8\Apps\BRAmaRecipes\BRAma.paa";
config = "ExAdClient\XM8\Apps\BRAmaRecipes\config.sqf";
onLoad = "ExAdClient\XM8\Apps\BRAmaRecipes\onLoad.sqf";
onOpen = "ExAdClient\XM8\Apps\BRAmaRecipes\onOpen.sqf";
};

To get around it create a file XM8.cpp and copy all the "class CfgXM8" to it.

Now call it from the bottom of your config.cpp file:

#include "Configs\actions.cpp"

cheers
aussie

FlipM0d3 wrote:

Hi,

I'm setting up a Exile server and finally managed to Obfuscate my mission.pbo without any errors.
Now the server runs smooth and every thing works great, except for 3 things.

Problem 1
The loadout script I added was working until I Obfuscated the pbo.
Please see file: Loadout script.txt

Problem 2
"xm8_server_info.html" is not loading in my XM8 anymore?

Problem 3
I'm getting weird lines in my server info part what i never had before? (I removed all the normal text)
Please see file: Server info and rules.avi

Any help would be appreciated!

Updated by aussie 5 months ago

here is the XM8 file you need to put in your mission root directory. change the rules with Notepad++

Updated by FlipM0d3 5 months ago

Hi Aussi,

Thanks for your response!
First of all i'm a big idiot, i have started the a server from zero knowledge and i'm now 3 months bissy to get the server up.
Because i'm almost finished i'm trying to rush things and read things half or don't read readme files at all (Kinda Handy :S).
I found out i had more stuff that wasn't working like AVS and Enigma Revive.
When i was getting more frustrated to find a answer, i stumbled over this part in pboProject readme file:

files that are #included or called in any init*.sqf cannot be compressed.
Since this varies from user to user, you have to manually tell pbo project which ones to exclude.
Failure to do so inevitable causes the mission not to work as you expected.

So after i banged my head against the wall a few times and calling me self a tit head. I cooled of with a beer, i had a moment of brightness.
I remembered i had read somewhere to execute a script through init to make it work.
So after i added some exclusions in pboProject under "-Z Exclude From Compress", i changed LoadOut.sqf in initLoadOut.sqf and added
(with more luck than wisdom) "if (!isDedicated) then {[] execVM "custom\Fix\LoadOut\initLoadOut.sqf";};" to ExileClient_object_player_bambiStateBegin.sqf.
Started the server back up and after a couple of days of frustration, AVS, Enigma and my loadout script was working fine again.

Still had the server info and ExAd info not working wel. I already had xm8_server_info.html you mentioned installed and
it was working propperly before i obfuscated the mission file. Even after excluding *.html from compression it still didn't seem to work?
I noticed when i was bissy on the info i didn't had enough space for all the information i wanted to add any way.
So i removed ExAd info and installed scarCODE Advanced Server Info Menu.
What i finally got working 2 day after excluding initLocal.sqf and handleContent.sqf in pboProject.
I still have to do more testing and change/add allot of info, but on the moment i'm as happy as Larry xD
Hopefully me server is up soon!
Anyway thank allot for your help m8 and quick response!

Cheers!!

Updated by aussie 5 months ago

Thanks for the heads up. How long does it take to receive the password to gain full access?

here is a good tip about the config.cpp file in Exile: http://www.exilemod.com/topic/20117-obfuscate/

cheers
aussie

Updated by FlipM0d3 5 months ago

aussie wrote:

Thanks for the heads up. How long does it take to receive the password to gain full access?

here is a good tip about the config.cpp file in Exile: http://www.exilemod.com/topic/20117-obfuscate/

cheers
aussie

For Mikero subscribers access is an expected processing delay of 48 hours.
I had mine within 24 hours.
it was giving me headaches when i start using it, but it's definitely worth the money!
Exile has a lot of scripting errors.

Updated by aussie 4 months ago

Hey FlipM0d3

After many beers I am nearly at the end of this journey. My Exile PBO has no errors, however when the server starts it cant find my config.cpp (renamed to server.cpp)

I excluded description.ext & server.cpp from compression.

Just wondering how you called things in your description.ext?

I have this, but the server wont start...

#include "server.cpp"
#include "CfgRemoteExec.hpp"
#include "infiSTAR_AdminMenu.hpp"

Did you change it to something like this?

"if (!isDedicated) then {#include "server.cpp"}; //as you can tell I'm shit at coding

or

#include "mpmissions\Exile.Chernarus\server.cpp"

cheers

Updated by aussie 4 months ago

never mind...I had a space between each excluded file

You got me onto the idea of having cold beers while doing this & it didn't really work out for me.

Thanks for the heads up with "if (!isDedicated) then {[] execVM "

Looking at my server errors, I will defiantly need it.

cheers

Updated by FlipM0d3 4 months ago

Hi Aussie,

I renamed my config.cpp to Exile.cpp and didn't use (!isDedicated), i don´t think you have to.
I got this at the bottom of my description.ext:
-----------------------------------------------------------------
// Config
#include "Exile.cpp"
// InfiSTAR
#include "custom\InfiSTAR\CfgRemoteExec.hpp"
#include "custom\InfiSTAR\infiSTAR_AdminMenu.hpp"
// ExAd
#include "custom\ExAdClient\ExAd.cpp"
#include "custom\ExAdClient\RscTitles.cpp"
#include "custom\ExAdClient\CfgNetworkMessages.cpp"
#include "custom\ExAdClient\CfgFunctions.cpp"
#include "custom\ExAdClient\CfgHints.cpp"
// ScarCODE Server Info Menu
#include "custom\ServerInfoMenu\CfgServerInfoMenu.hpp"
#include "custom\ServerInfoMenu\RscDisplayServerInfoMenu.hpp"
-----------------------------------------------------------------

You don't have to excluded description.ext & server.cpp from compression, only init.sqf and
add the files you have in init.sqf from exclusion.

Note
files that are #included or called in any init*.sqf cannot be compressed.
Since this varies from user to user, you have to manually tell pbo project which ones to exclude.
Failure to do so inevitable causes the mission not to work as you expected.

This is how my init.sqf looks like:
---------------------------------------------------------------------
ExileClientXM8IsPowerOn = true;

[] ExecVM "custom\Fix\ColorCorrection\effect.sqf";
[] ExecVM "custom\ServerInfoMenu\initLocal.sqf";
[] ExecVM "custom\Fix\Vip\ReservedSlots.sqf";
[] ExecVM "custom\EnigmaRevive\init.sqf";
[] ExecVM "custom\AVS\AVS_fnc_init.sqf";
[] ExecVM "custom\Music\Intro.sqf";
---------------------------------------------------------------------
(I already excluded "init.sqf" so i don't need to exclude it again for EngimaRevive!)

If you have something not working in game, like say AVS.
Try to exclude file by file to see which one you have to add to make it work.
Always first try a "init" files, for me to make AVS work i had to add "AVS_fnc_init.sqf".
With ScarCODE Server Info Menu i had to exclude "initLocal.sqf" and "handleContent.sqf" from compression.

If you add a new script and you want to be sure every thing works ok before compressing, you can add *.sqf, but that excludes
all sgf files from compression and people still can see your scripting in plain txt with a Hex editor what i read somewhere, so it's not safe!
But at least you can test if everything works ok and after testing exclude file by file to make it work under compression.

Good luck m8!

p.s.

I'm not good at coding either and the beers don't always work for me.
Most of the time i get to drunk and want to throw my screen outside the window if stuffs not working xD
What the best thing for me and helps if i can't get any further.
Turn off my pc and watch some tellie and get me head clear.
If something pops up, i try it a day later with a fresh start!

Updated by aussie 4 months ago

hey FlipMod

You are a legend, thanks so much for your help.

Were there any scripts that you are after?

I have some cool scripts like:

+ Vector Building
+ cut grass in front of you (so you can snipe)
+ custom billboards
+ full moon nights
+ secure safe zones (prevents stealing in safe zone)

:) cheers

aussie

Updated by FlipM0d3 4 months ago

You are welcome m8 xD

Can i ask where did you got the Vector Building from?
I have been looking for Vector from the start but never was able to get it, it's a private script right?

Cheers!

Updated by aussie 4 months ago

yes private script. took me a bit to get it, searched high & low. Eventually I found one server that put part of the code client side & another server that had the overwrites for the menu.

Thanks so much for the help, I will email you the script.

like the video you made for the menu, that music has turned it into Arma Porn.

:)

Updated by aussie 4 months ago

Cheers for your help, got it working!!

Let me know if you need help installing vectors & I will write you up some instructions. I posted to the email you supplied in this forum.

Catch you on your server when you get it up.

:) aussie

Updated by FlipM0d3 4 months ago

Hi Aussi,

Brilliant!
You don't know how long i was looking for this.
Had some trouble with me pc, but just installed it and works perfectly.
I work most of the time with some good music on, it works so much better.
Funny you say porn because if you know the clip you are like half wtf and
the other half you can't stop laughing hahaha.
You have some sick peopel in this world.
https://vimeo.com/147527929
Anyway thanks alot m8, if you need any help to, let me know! xD

Cheers!

Updated by aussie 4 months ago

Haha I didn't realise the song was from Peaches. I saw her live a few years back, crazy fun.

Updated by FlipM0d3 4 months ago

Servers online! "Mad Hoarders"
Still tweaking it a bit, but runs smooth.

Cheers!

Updated by aussie 4 months ago

Cool I'll check it out. I should have my server up in a week.

Just wondering how you got the server info on xm8_server_info.html to show up (mine is blank)? I cant find any info on where it is called from.

I am already using Scarcode's server info in my XM8 apps and would like to direct them to it from xm8_server_info.html.

I tried excluding it from compression, didn't work.

thanks

Updated by FlipM0d3 4 months ago

Hi,

Have same trouble don't know why it's not working?
Using ScarCODE and have a InfiSTAR message on server start up, redirecting to the server info.
Didn't even bother any more to make it work.

Cheers!

Updated by aussie 4 months ago

I agree, more trouble than its worth. Catch you on Mad Horders :)

Also available in: Atom PDF