• Problème échange info entre client et Serveur


    Bonjour/Bonsoir

    Ce n’est pas mon genre de demander de l’aide mais la j’ai passé un petit bout de temps à essayer de voir ou est le problème et comment le régler.

    Bref, j’ai un problème de transmission d’information du serveur vers le client:

    Voici le cheminement:

    D’abord, fn_contactQuery.sqf:

    #include "..\..\script_macros.hpp"  
    /*  
    	File: fn_contactQuery.sqf  
    	Author: J `Kira` D  
    
    	Description:  
    	flemme d'expliquer  
    */  
    private["_uid","_sender"];  
    _sender = player;  
    _uid = getPlayerUID _sender;  
    [_uid,_sender] remoteExecCall ["DB_fnc_checkContact",RSERV];  
    

    Puis fn_checkContact.sqf:

    #include "\life_server\script_macros.hpp"  
    /*  
    	File: fn_checkContact.sqf  
    	Author: J `Kira` D  
    
    	Description:  
    	flemme d'expliquer  
    */  
    private ["_uid","_ownerID","_query","_queryResult"];  
    _uid = [_this,0,"",[""]] call BIS_fnc_param;  
    _ownerID = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;  
    
    if(isNull _ownerID) exitWith {};  
    _ownerID = owner _ownerID;  
    diag_log format["_ownerID: %1",_ownerID];  
    _query = format["SELECT numero,contact FROM telephone WHERE playerid='%1'",_uid];  
    _queryResult = [_query,2] call DB_fnc_asyncCall;  
    diag_log format["_queryResult: %1",_queryResult];  
    _queryResult remoteExec ["SOCK_fnc_contactReceived",_ownerID];  
    

    pour finir, fn_contactReceived.sqf:

    #include "..\..\script_macros.hpp"  
    /*  
    
    	File: fn_contactReceived.sqf  
    	Author: J `Kira` D  
    
    	Description:  
    	flemme d'expliquer  
    */  
    _contact = _this select 0;  
    life_num = _contact select 0;  
    life_numcontact = _contact select 1;  
    diag_log format["life_num: %1, life_numcontact: %2",life_num,life_numcontact];  
    

    Voici les logs:

    Coté serveur:

    Initializing Steam server - Game Port: 2320, Steam Query Port: 2321  
    Steam AppId from steam_appid.txt: 107410  
    Connected to Steam servers  
    Unsupported language English in stringtable  
    Unsupported language English in stringtable  
    Mission Altis_Life2.Altis: Number of roles (99) is different from 'description.ext::Header::maxPlayer' (75)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Server error: Player without identity Kira (id 90862855)  
    Starting mission:  
     Mission file: Altis_Life2 (__cur_mp)  
     Mission world: Altis  
     Mission directory: mpmissions\__cur_mp.Altis\  
    Unknown hit sound type in A3\data_f\Penetration\tyre.bisurf.soundHit  
    Strange convex component145 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView  
    Strange convex component149 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView  
    Attempt to override final function - bis_functions_list  
    Attempt to override final function - bis_functions_listpreinit  
    Attempt to override final function - bis_functions_listpostinit  
    Attempt to override final function - bis_functions_listrecompile  
    Attempt to override final function - bis_fnc_missiontaskslocal  
    Attempt to override final function - bis_fnc_missionconversationslocal  
    Attempt to override final function - bis_fnc_missionflow  
    Loading movesType CfgGesturesMale  
    MovesType CfgGesturesMale load time 50 ms  
    Loading movesType CfgMovesMaleSdr  
    Animation a3\cargoposes_f\anim\passenger_flatground_leanleft_kia.rtm not found or empty  
    Animation a3\cargoposes_f\anim\passenger_flatground_leanright_kia.rtm not found or empty  
    MovesType CfgMovesMaleSdr load time 4010 ms  
    No speaker given for Teshi Azikiwe  
    No speaker given for Katungi Sesse-Seko  
    No speaker given for Katungi Azikiwe  
    No speaker given for Gillis Griffiths  
    No speaker given for Kwame Awolowo  
    No speaker given for Lin Wu  
    soldier[B_diver_F]:Some of magazines weren't stored in soldier Vest or Uniform?  
    No speaker given for Ian Lee  
    No speaker given for Max Robertson  
    No speaker given for Jack Jones  
    No speaker given for Alfie Young  
    No speaker given for Kofi Ibori  
    No speaker given for George Bennett  
    No speaker given for Shawn Martinez  
    No speaker given for Joseph Smith  
    No speaker given for Pan Ng  
    No speaker given for Kong Il  
    No speaker given for Oliver Taylor  
    No speaker given for Thomas Morgan  
    No speaker given for Harry Faulkner  
    No speaker given for Kuang Lee  
    No speaker given for Luke Halliwell  
    No speaker given for Sean Abbey  
    No speaker given for Conor Stewart  
    soldier[B_diver_F]:Some of magazines weren't stored in soldier Vest or Uniform?  
    No speaker given for Tyler Moore  
    No speaker given for Davu Tinibu  
    No speaker given for Keith MacDonald  
    No speaker given for Geoff Faulkner  
    No speaker given for Toby Lewis  
    No speaker given for Charlie Wood  
    No speaker given for Jack Campbell  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 1c not found  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 2c not found  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 3c not found  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 4c not found  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 5c not found  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 6c not found  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 7c not found  
    Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 8c not found  
    Wrong geometry convex component mapping  for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Convex component number 3\. not found  
    No speaker given for Anthis Verga  
    No speaker given for Achilleas Vidales  
    No speaker given for Evripidis Mastori  
    No speaker given for Kostis Kanelloupou  
    No speaker given for Achilleas Haikias  
    No speaker given for Dimitiros Savalas  
    No speaker given for Dimitiros Petridis  
    No speaker given for Gekas Dimitriadis  
    No speaker given for Janos Mylonaki  
    No speaker given for Vangelis Haikias  
    No speaker given for Giorgos Savalas  
    No speaker given for Rosi Melidoni  
    No speaker given for Kostas Kanelloupou  
    No speaker given for Arion Manetta  
    No speaker given for Sotiris Baros  
    No speaker given for Achilleas Xenakis  
    No speaker given for Lafteris Petridis  
    No speaker given for Angelos Lagos  
    No speaker given for Kostas Vidales  
    No speaker given for Janos Stanis  
    No speaker given for Kyriakos Isofidou  
    No speaker given for Vasilis Oikonomopulu  
    No speaker given for Evripidis Strambopoulos  
    Strange convex component322 in a3\structures_f\research\dome_big_f.p3d:geometryFire  
    Strange convex component327 in a3\structures_f\research\dome_big_f.p3d:geometryFire  
    Error: Object(2 : 3) not found  
    Error: Object(2 : 5) not found  
    Error: Object(2 : 96) not found  
    c:\w\stable\futura\lib\network\networkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing!  
    "extDB2: Connected to Database"  
    "_ownerID: 3"  
    "_queryResult: ["452584",[["Police",911]]]"  
     Mission id: 2d6584c26e750e05f9a2c573902f48fdefd171df  
    Error: Object(3 : 3) not found  
    
    

    Coté Client:

    23:43:07 Starting mission:  
    23:43:07  Mission file: Altis_Life2 (__CUR_MP)  
    23:43:07  Mission world: Altis  
    23:43:07  Mission directory: mpmissions\__CUR_MP.Altis\  
    23:43:10 Unknown hit sound type in A3\data_f\Penetration\tyre.bisurf.soundHit  
    23:43:10 Strange convex component145 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView  
    23:43:10 Strange convex component149 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView  
    23:43:13 Attempt to override final function - bis_functions_list  
    23:43:13 Attempt to override final function - bis_functions_listpreinit  
    23:43:13 Attempt to override final function - bis_functions_listpostinit  
    23:43:13 Attempt to override final function - bis_functions_listrecompile  
    23:43:13 Attempt to override final function - bis_fnc_missiontaskslocal  
    23:43:13 Attempt to override final function - bis_fnc_missionconversationslocal  
    23:43:13 Attempt to override final function - bis_fnc_missionflow  
    23:43:13 Loading movesType CfgGesturesMale  
    23:43:13 MovesType CfgGesturesMale load time 30 ms  
    23:43:13 Loading movesType CfgMovesMaleSdr  
    23:43:17 Animation a3\cargoposes_f\anim\passenger_flatground_leanleft_kia.rtm not found or empty  
    23:43:17 Animation a3\cargoposes_f\anim\passenger_flatground_leanright_kia.rtm not found or empty  
    23:43:17 MovesType CfgMovesMaleSdr load time 3898 ms  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 1c not found  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 2c not found  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 3c not found  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 4c not found  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 5c not found  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 6c not found  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 7c not found  
    23:43:17 Wrong vertex mapping for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Selection 8c not found  
    23:43:17 Wrong geometry convex component mapping  for person collision geometry found in a3\characters_f_epc\civil\c_nikos_aged.p3d. Convex component number 3\. not found  
    23:43:18 Strange convex component322 in a3\structures_f\research\dome_big_f.p3d:geometryFire  
    23:43:18 Strange convex component327 in a3\structures_f\research\dome_big_f.p3d:geometryFire  
    23:43:18 Attempt to override final function - bis_fnc_endmission  
    23:43:18 "–----------------------------------------------------------------------------------------------------"  
    23:43:18 "--------------------------------- Starting Altis Life Client Init ----------------------------------"  
    23:43:18 "------------------------------------------------------------------------------------------------------"  
    23:43:18 "::Life Client:: Initialization Variables"  
    23:43:18 "::Life Client:: Variables initialized"  
    23:43:18 "::Life Client:: Setting up Eventhandlers"  
    23:43:18 "::Life Client:: Eventhandlers completed"  
    23:43:18 "::Life Client:: Setting up user actions"  
    23:43:18 "::Life Client:: User actions completed"  
    23:43:18 "::Life Client:: Waiting for server functions to transfer.."  
    23:43:18 "::Life Client:: Received server functions."  
    23:43:18 "::Life Client:: Waiting for the server to be ready.."  
    23:43:19 Error in expression <t = _this select 0;  
    life_num = _contact select 0;  
    life_numcontact = _contact sel>  
    23:43:19   Error position: <select 0;  
    life_numcontact = _contact sel>  
    23:43:19   Error Erreur générique dans une expression  
    23:43:19 File mpmissions\__CUR_MP.Altis\core\session\fn_contactReceived.sqf, line 10  
    23:43:23  Mission id: b64923b4e888c3febdeb714d89da68a1a3f6fc7d  
    23:43:23 Fresnel k must be >0, given n=2.51,k=0  
    23:43:23 Loading movesType CfgMovesSnakes_F  
    23:43:23 Loading movesType CfgMovesButterfly  
    23:43:23 MovesType CfgMovesButterfly load time 20 ms  
    23:43:23 Loading movesType CfgMovesBird  
    23:43:23 MovesType CfgMovesBird load time 18 ms  
    23:43:23 Warning Message: No entry 'mpmissions\__CUR_MP.Altis\description.ext/life_spawn_selection/controlsBackground/MapView.LineMarker'.  
    23:43:23 Warning Message: No entry '.lineWidthThin'.  
    23:43:23 Warning Message: '/' is not a value  
    23:43:23 Warning Message: No entry '.lineWidthThick'.  
    23:43:23 Warning Message: '/' is not a value  
    23:43:23 Warning Message: No entry '.lineDistanceMin'.  
    23:43:23 Warning Message: '/' is not a value  
    23:43:23 Warning Message: No entry '.lineLengthMin'.  
    23:43:23 Warning Message: '/' is not a value  
    23:43:28 Loading movesType CfgMovesRabbit_F  
    23:43:28 MovesType CfgMovesRabbit_F load time 32 ms  
    23:43:28 "Past Settings Init"  
    23:43:28 "Executing client.fsm"  
    23:43:28 "Display 46 Found"  
    23:43:28 "------------------------------------------------------------------------------------------------------"  
    23:43:28 "                End of Altis Life Client Init :: Total Execution Time 10.25 seconds "  
    23:43:28 "------------------------------------------------------------------------------------------------------"  
    23:43:34 "cellphone, _contact: any, _num: any"  
    23:43:34 "cellphone 2, _contact: any, _num: any"  
    23:43:34 Error in expression <mat["cellphone, _contact: %1, _num: %2",life_numcontact,life_num];  
    _contact = li>  
    23:43:34   Error position: <life_numcontact,life_num];  
    _contact = li>  
    23:43:34   Error Variable indéfinie dans une expression: life_numcontact  
    23:43:34 File mpmissions\__CUR_MP.Altis\core\pmenu\fn_cellphone.sqf, line 10  
    
    

    Donc normalement le serveur est censé récupérer un numéro et une liste pour l’envoyer au client,

    comme on peut le voir ici:

    "extDB2: Connected to Database"  
    "_ownerID: 3"  
    "_queryResult: ["452584",[["Police",911]]]"  
     Mission id: 2d6584c26e750e05f9a2c573902f48fdefd171df  
    Error: Object(3 : 3) not found  
    

    Le serveur a bien récupérer les info dont j’ai besoin, pour le _ownerID, c’était juste pour m’aider a comprendre le RemoteExec :)

    Le client lui n’arrive pas à récupérer les informations comme on peut le voir a partir d’ici:

    23:43:19 Error in expression <t = _this select 0;  
    life_num = _contact select 0;  
    life_numcontact = _contact sel>  
    23:43:19   Error position: <select 0;  
    life_numcontact = _contact sel>  
    23:43:19   Error Erreur générique dans une expression  
    

    Voila Voila :)

    Merci d’avance !

  • réglé

Messages 2Vues 627