FireStorm
Member-
Content count
24 -
Donations
0.00 EUR -
Joined
-
Last visited
Content Type
Profiles
Forums
Wiki
Servers
Devblog
Everything posted by FireStorm
-
It works ! The only small defect is that in addition to entering the UID and name it enters another line (before) like this:
-
Hi, I would like to make sure that when a player enters a zone it changes a value in a column ("testlevel") in the "player" table. So I started by adding the column in question in the database with this: ALTER TABLE account ADD testlevel int(11) DEFAULT '0' I think it worked. But I am stuck at this step. Some help ? Thx
-
I'll try that.
-
I add the part of the corresponding rpt file: "ExileServer - Starting session for 'FireStorm' with ID 'ovezkzso'..." "ExileServer - Dispatching hasPlayerRequest for session 'ovezkzso'..." Error in expression <] call BIS_fnc_param; _publicMessage = [ExileClientSessionId, _messageName, _mes> Error position: <ExileClientSessionId, _messageName, _mes> Error Undefined variable in expression: exileclientsessionid File exile_client\code\ExileClient_system_network_send.sqf, line 15 Error in expression <] call BIS_fnc_param; _publicMessage = [ExileClientSessionId, _messageName, _mes> Error position: <ExileClientSessionId, _messageName, _mes> Error Undefined variable in expression: exileclientsessionid File exile_client\code\ExileClient_system_network_send.sqf, line 15
-
I've made some progress in solving my problem. Here's what I did: Now when I execute the trigger that contains that code: _ProfileName = profileName; _UidPlayer = getPlayerUID player; ["createQuestAccount", [_ProfileName,_UidPlayer]] call ExileClient_system_network_send; I have two entries in my database, that's what it looks like:
-
I put exactly what you send to me: _ProfileName = profileName; // name player; _UidPlayer = getPlayerUID player; ["createAccount", [_ProfileName,_UidPlayer]] call ExileClient_system_network_send;
-
Then I just realized my mistake. It was in the file "description.ext" that I had to put the code. On the other hand I have another concern here is my RPT: "ExileServer - Player FireStorm (UID 76561198131767766) connected!" "ExileServer - Starting session for 'FireStorm' with ID 'gpqzurop'..." "ExileServer - Dispatching hasPlayerRequest for session 'gpqzurop'..." Error in expression <_ProfileName = profileName; // name player;> Error position: <// name player;> Error Invalid number in expression Error in expression <] call BIS_fnc_param; _publicMessage = [ExileClientSessionId, _messageName, _mes> Error position: <ExileClientSessionId, _messageName, _mes> Error Undefined variable in expression: exileclientsessionid File exile_client\code\ExileClient_system_network_send.sqf, line 15 "ExileServer - Network message dispatch failed: Parameter count mismatch! Payload: [any,""createAccount"",[""Exile"",""""]]" "ExileServer - Network message dispatch failed: Parameter count mismatch! Payload: [""gpqzurop"",""createAccount"",[""FireStorm"",""76561198131767766""]]" EPE manager release (0|31|0) Deinitialized shape [Class: "C_Soldier_VR_F"; Shape: "a3\characters_f_bootcamp\common\vr_soldier_f.p3d";] I'm looking at what might be a problem.
-
OK, so I understood that I must put this code in the file "config.cpp" in the folder "Exile.malden". Unfortunately since I added: class CfgNetworkMessages { class createAccount { module = "system_createaccount"; parameters = {"STRING", "STRING"}; }; }; I can no longer connect to the server, I am stuck in an infinite load. Namely that in my "config.cpp" file there was no "class CfgNetworkMessages".
-
I didn't quite understand where I should put this: class CfgNetworkMessages { class createAccount { module = "system_createaccount"; parameters = {"STRING", "STRING"}; }; }; Thank you for taking the time to help me.
-
Any ideas? It's very important to me:/
-
Hi! So I think I'm close. Here's what I put on: sqf file executed by trigger in game: _ProfileName = profileName; _UidPlayer = getPlayerUID player; _IdInfos = [_ProfileName, _UidPlayer]; _IdInfos call ExileServer_system_test_Init; In the "ExileServer_system_test_Init.sqf": private["_ProfileName", "_UidPlayer"]; _string = _this select 0; _id = _this select 1; format ["createAccountTests:%1:%2",_id, _string] call ExileServer_system_database_query_fireAndForget; And at the bottom of "exile.ini" file: [createAccountTests] SQL1_1 = INSERT INTO tests SET account_uid = ?, name = ? Number Of Inputs = 2 SQL1_INPUTS = 1,2 It's almost working. it's just that it doesn't get the variables "uid and playername" correctly because in the "test" table in the "account_uid" column it's an empty box and in the "name" column it's "Exile" which is inserted there. I don't know why when i transfert "_ProfileName" and "_UidPlayer" it's replaced by: "Exile" and "" Any leads ?
-
x) Wow I must have been very tired ! No no, my "exile.ini" looks more like this: [createAccountTests] SQL1_1 = INSERT INTO tests SET account_uid = ?, name = ? Number Of Inputs = 2 SQL1_INPUTS = 1,2
-
I've made a little progress. I created a new table in the database with this: CREATE TABLE `tests` ( `account_uid` varchar(32) NOT NULL, `name` varchar(64) NOT NULL, `test` varchar(8) NOT NULL, `alpha` varchar(8) NOT NULL, `bravo` varchar(8) NOT NULL, `charlie` varchar(8) NOT NULL, PRIMARY KEY (`account_uid`), KEY `player_uid` (`account_uid`), ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Now I would like to make sure that when the player enters the zone, the "account_uid" and "name" columns fill up as well as the "Alpha" column increments by 1. So i tried this: _playeruid = getPlayerUID player; _playerID = format["createAccountTests:%1", _playeruid ] call ExileServer_system_database_query_insertSingle; Oh and I also added this to "exile.ini": [createAccountTests] SQL1_1 = INSERT INTO account SET uid = ?, name = ? Number Of Inputs = 2 SQL1_INPUTS = 1,2 Any leads ? pls
-
I'm having a little trouble. That's what I tried: Put: ['ExileServer_system_test', 'exile_server\code\ExileServer_system_test.sqf', false] into "fn_preInit.sqf" Then into "ExileServer_system_test.sqf": testlevel = "testlevel1" call ExileServer_system_database_query_selectFull; publicVariable "testlevel"; And finally: this into my sqf file triggered by a player in game: hint format["%1", testlevel]; But without succes... Any leads?
-
Thanks, I'll get right on it
-
Could you give me an example? I get the idea, but I'm not sure how to apply it.
-
I found ! If i put this: _hunger = round (ExileClientPlayerAttributes select 2); hint format["%1", _hunger]; it shows me the level of hunger. But my column is in "account" and I do not know how to go there. I tried this: _hunger = round (ExileClientAccountAttributes select 2); hint format["%1", _hunger]; but without succes... In game it shows me "Scalar NaN". Any ideas ? <3
-
Ho...hard
-
Thx a lot When I enter the area here is what appears: "Zone has been entered 'any' so far".
-
Thx but how can I recover the value in the "testlevel" column and display it in game?
-
Thx <3 It works ! And how could I do the opposite? For example when the player enters the area the script will get the value in the table and display it on the screen via "hint" for example? I tried to replace: call ExileServer_system_database_query_fireAndForget; with something else like: call ExileServer_system_database_query_selectSingle; But without succes... Thx for help
-
No idea ?
-
Oh, it's not for a specific reason I just want to interact with a column of the database from the mission. Now that you say it I think of a system of "easter egg" for example. The player discovers an area or picks up something and boom this is added to the database.
-
Hello ! I want to be able to put a Safe without create a territory. How ? Thanks for your help