Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Error Message for when the Mod is not loaded on the Server #405

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions addons/main/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,25 @@ if (isServer) then {
0 spawn {
waitUntil {time > 0};
if (!isNil QGVAR(versionLoadedOnServer) && {GVAR(versionLoadedOnServer) isEqualTo QUOTE(VERSION_STR)}) exitWith {};
"LAMBS DANGER VERSION MISMATCH ERROR!!!!" hintC parseText format [
"Lambs Danger Version mismatch Error.<br/>Client Version: %1<br/>Server Version: %2",
QUOTE(VERSION_STR),
GVAR(versionLoadedOnServer)
];
private _error = format [
"Lambs Danger Version mismatch Error. Client Version: %1 Server Version: %2",
QUOTE(VERSION_STR),
GVAR(versionLoadedOnServer)
];

private _error = if (isNil QGVAR(versionloadedonServer)) then {
"LAMBS DANGER NOT LOADED ON SERVER!" hintC parsetext format [
"Lambs Danger is not loaded on server but on Client!"
];
"Lambs Danger is not loaded on server but on Client!"
} else {
"LAMBS DANGER VERSION MISMATCH ERROR!!!!" hintC parsetext format [
"Lambs Danger Version mismatch Error.<br/>Client Version: %1<br/>Server Version: %2",
QUOTE(VERSION_str),
GVAR(versionloadedonServer)
];
format [
"Lambs Danger Version mismatch Error. Client Version: %1 Server Version: %2",
QUOTE(VERSION_str),
GVAR(versionloadedonServer)
];
};

while {true} do {
hintSilent _error;
systemChat _error;
Expand Down
Loading