Jump to content

Sandbird

Member
  • Posts

    1045
  • Joined

  • Last visited

  • Days Won

    16

Sandbird last won the day on December 17 2018

Sandbird had the most liked content!

1 Follower

About Sandbird

  • Birthday January 26

Contact Methods

  • Website URL
    http://www.grof.gr

Profile Information

  • Gender
    Male
  • Location
    Greece

Recent Profile Visitors

4593 profile views

Sandbird's Achievements

Newbie

Newbie (1/14)

260

Reputation

Single Status Update

See all updates by Sandbird

  1. Hey Sandbird,

    I have downloaded the 3D editor for Arma 2 Dayz Epoch and followed your steps. All seems to work good. I can create client side scripts and they work fine. I am trying to call a server side script which is using Arma2Net and MySQL to call a SQL statement. Maybe a noob question, but I don't know if the emulator is working correct for the dayz_server part. I am not abble to send a call to the function which is in the dayz_server map. I tried two different approaches. One with PublicVariable and one with the BIS_fnc_MP approach. This is my code:

    Server:

    "test" addPublicVariableEventHandler {(_this select 1) spawn on_test};
    on_test = {
    	_selectTest = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dz_cherno_test', 'SELECT * FROM player_data LIMIT 3']";			
    };

    Client:

    publicVariableServer "test";

     

    The BIS_fnc_MP construction:

    // Server side code in dayz_server folder.
    test = {
     	_selectTest = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dz_cherno_test', 'SELECT * FROM player_data LIMIT 3']";			
    };
    
    // Client side code (on action menu clicked)
    [[],"test",false] call BIS_fnc_MP;

    It seems that I cannot simulate the communication between the client and server code. Do I missed something? Or do I need to configure something else to make this work in the editor?

    Cheers,
    SKO

     

    1. Sandbird

      Sandbird

      Sorry for the sooooo late reply....I forgot i had no notifications on.

      I dont know if you solved this, but the trick with the 3d editor thing is to remember that server and client are both the running at the same machine...There is no real server anymore....So 'publicVariableServer' will not work.

      But....publicVariable will ....since it considered a client think.....So if you rename all your commands to publicVariable it should work....Just remember to rename them back to publicVariableServer when you try it on the real thing.

×
×
  • Create New...