Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[Released 2.4.4] MNF : Mobile & Network & Framework

Discussion in 'Assets and Asset Store' started by MNF_Devloper, Feb 11, 2016.

  1. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello, Skatola.

    Thank you for your interest in MNF.
    MNF can create P2P chat without server in the same WI-Fi.
    You can also automatically find clients that are in the same Wi-Fi and import them into a list.

    Chat seems to be simple to implement. I will share the example after implementing it.

    Have a good day :D
     
  2. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    hi, heroes1.

    If you tell me more details about the features you want to implement, I can help you.
    And if you can use skype or teamviewer, I will help you work on time.
    I think this method will help you more.
    What do you think?

    Have a good day :D
     
  3. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hi, I completed p2p chatting example.

    [MNF Android APK]

    [Video]


    I implemented the functionality you talked about.
    If you have any additional questions, please feel free to ask.
     
    Skatola likes this.
  4. Skatola

    Skatola

    Joined:
    Jan 17, 2013
    Posts:
    45
    Thank you so much for that : )
    another question please: there's a chance to allow the clients to see each other in a direct wi-fi connect without enter in a common wifi access point? we're looking for a way to have a client to client direct connection without intermediary (web server, wifi hotspot), maybe this is a stupid question just we don't know exactly which technical limits this feature have : )
    thanks again : )
     
    MNF_Devloper likes this.
  5. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello, Skatola.

    You need to make sure that your question is as below.

    Is it possible to communicate with a connected terminal using the Wi-Fi Direct function of an Android device instead of communicating via a common Wi-Fi router?

    If so, MNF can communicate via Wi-Fi Direct.
    However, it has been confirmed that the server / client works based on TCP, and P2P still needs to work more.

    Have a good day :D
     
  6. heroes1

    heroes1

    Joined:
    Nov 16, 2015
    Posts:
    17
    Hi thanks for helping.
    I don't have Skype and TeamViewer. How about fb messenger?
    My project is simple. Every devices need to connect to mysql. Simple update, insert, select and delete functions for each connected devices to communicate with mysql.

    Thanks.
     
  7. heroes1

    heroes1

    Joined:
    Nov 16, 2015
    Posts:
    17
    Actually your example for login, there is a input text for query is good enough for my project. However, if I try to insert new row into my mysql table, it will stop working . I believe your function is waiting for mysql to return something. Please help.
     
  8. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    hi, heroes1.

    I am creating an example of a very simple function that you are talking about right now.
    I will update it soon. Sorry I'm late.

    My facebook id is songoh0402@gmail.com.

    I will wait your contact.
     
    Last edited: Feb 10, 2019
  9. kingsleyfs

    kingsleyfs

    Joined:
    Jul 5, 2012
    Posts:
    9
  10. knuppel

    knuppel

    Joined:
    Oct 30, 2016
    Posts:
    90
    Hello,
    can i read and write values from an external MySQL Database via Android? Is there an example for this? Will the server run on Debian?
     
    MNF_Devloper likes this.
  11. edufurlaneto

    edufurlaneto

    Joined:
    Sep 18, 2017
    Posts:
    7
    Hi.
    I am looking for a simple solution where I can have one server sending the same command to several connected clients.
    Something like that:
    a) Server button to load a video ( all clients load a video)
    b) Server Button to play (all clients Play)
    c) etc...

    1) Can this plugin do that?
    2) What is the best protocol (TCP, UDP)?
    3) Do you have one or more examples of a server or client sending data/commands to multiple clients? (I am not a coder as I use Playmaker to do almost everything, but usually, I can understand and adapt C# for my needs).

    Thanks
     
    MNF_Devloper likes this.
  12. knuppel

    knuppel

    Joined:
    Oct 30, 2016
    Posts:
    90
    It seems there is no more support for this asset.
     
  13. Software-Manager

    Software-Manager

    Joined:
    Mar 10, 2014
    Posts:
    3
    How i send two variable ? LookAround.Instance.SendMessage
     
    MNF_Devloper likes this.
  14. Ancient_Slime

    Ancient_Slime

    Joined:
    Jun 8, 2018
    Posts:
    1
    Hello,

    I am having trouble with Binary Chat example.
    Every thing works fine except closing the app.
    First I tried on Windows, I opened two exe build of Binary Chat Starter,
    and chose one as a server and the other as a client.
    Only thing I added was a button that just do Application.Quit().
    Both server and client closed just fine before making any connection.
    But after they make connection when I tried to close either one of them
    (tried both by just clicking Windows close button and by Application.Quit),
    the application crashed. So I had to forcefully finish process.

    [Windows app output_log]
    Application ending after 5.870213 seconds
    LOG_TYPE_EXCEPTION : Failed to recv data
    **[Exception]**System.NullReferenceException: Object reference not set to an instance of an object
    at MNF.LookAround.ReceiveCallback (IAsyncResult ar) [0x00000] in <filename unknown>:0

    I also tried this on Mac OS. On the mac, app didn't crash,
    but OnDisconnect was never called.
    When I close the server(app) I got this log on client(editor).


    when I close the client(app) I got this on server(editor)


    Well... Mac is not really a problem for me because at least it didn't crash,
    but on Windows I had to force-close every time.

    Sorry for this long long comment...
    Am I closing the app in a wrong way?
    Would you give me some idea what's happening?
     
    MNF_Devloper likes this.
  15. qqderek

    qqderek

    Joined:
    Mar 14, 2017
    Posts:
    3
    Hello:

    I want to make use of NMF to develop a Application with following requirement, would you advise can support :

    1/ Support Win10
    2/ Support Andriod Phone
    3/ Support Unity Developoment platform
    4/ Support Visual Studio Development platform
    3/ As Wifi Direct Server ( Soft AP ) on Win10/Andriod to connect other self develop hardware devices support Wifi Direct
    4/ Client/Server communication by TCP/IP
    5/ Client/Server communication by UTP
    5/ Send custom format data/bytes via between Client/Server
    6/ Detection/Acknowledge of Server/Client connection/disconnection

    Would you provide executive samples on Window/Android so that I can try it?
     
    MNF_Devloper likes this.
  16. qqderek

    qqderek

    Joined:
    Mar 14, 2017
    Posts:
    3
    Hello:

    One more question about the WiFi Direct Services ( SoftAP ). Does NMF support create SoftAP? And can assign SSID , Password to the hotspot to be create?

    thanks,
    Derek
     
    MNF_Devloper likes this.
  17. knuppel

    knuppel

    Joined:
    Oct 30, 2016
    Posts:
    90
    you will n
    You will not get an answer. I posted a question in april and up to now i didn't get any response.
     
  18. qqderek

    qqderek

    Joined:
    Mar 14, 2017
    Posts:
    3
    Thanks for your kindly remind. Have you use this asset, would you tell me if it can support SoftAP SSID and Password setting?
     
  19. knuppel

    knuppel

    Joined:
    Oct 30, 2016
    Posts:
    90
    I'd like to buy it, but as you can see there seems to be no support.
     
  20. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    No, I'm sorry to answer now.
    MNF video streaming is made for example.
    Performance optimization is required. Maybe it's hard to get the results you want.
     
    Last edited: Aug 7, 2018
    Appokalopps likes this.
  21. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello, I'm sorry I'm late.
    MNF can be read / write directly from Android to Mysql (including examples).
    MNF can also be run on a Mac or Windows server and access to mysql (I have not tested it on debian, so it's hard to be sure)
     
    Appokalopps likes this.
  22. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Code (CSharp):
    1. public void OnSendMessage()    
    2. {
    3.     var jsonEcho = new JsonMessageDefine.PACK_CS_JSON_ECHO();
    4.     jsonEcho.sandwiches = Sandwich.CreateSandwichList(1);
    5.     LookAround.Instance.SendMessage(100, jsonEcho);    
    6. }
    7.  
    I'm sorry for late reply.

    Sending two variables is simple.
    Put the variable you want to send to the class shown in the above function.
     
    Appokalopps likes this.
  23. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    151
    @MNF_Devloper Hello, I have a server and 5 clients. The server controls all client video playback, pause, stop. One problem is that we need to synchronize the playback of all clients. (Play the same video at the same time, and the playback progress is the same). I need Your help. If compare the server play time, but I don't know how to synchronize the time. Can you provide an example? thank you very much.
     
    Appokalopps and MNF_Devloper like this.
  24. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello, I'm sorry, I'm late.

    1) Yes, it is possible.
    2) If you want server / client model, we recommend tcp. If you use it in the same Wi-Fi environment, MNF's LookAround can be easily implemented.
    3) Yes. Echo, Chat, LookAround.
     
    Appokalopps likes this.
  25. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello,. I'm sorry for late reply.
    Application.Quit () is a function that Unity calls when the app exits.
    So calling it directly is not recommended.
    I hope this helped you solve the problem.
     
    Appokalopps likes this.
  26. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello,. I'm sorry for late reply.

    1 / Win10 support
    -> Yes. Mac is also available.
    2 / Andriod phone support
    -> Yes. iOS is also available.
    3 / Support Unity development platform
    -> Yes. MNF is developed based on the Unity platform.
    4 / Visual Studio Development Platform Support
    -> Both Visual Studio and Mono are possible.
    5 / Wifi Direct Server (Soft AP) supports Wifi Direct to connect other hardware devices in Win10 / Andriod.
    -> It operates in server / client (tcp) environment in WiFi Direct environment, but it is difficult to control the IP of the server.
    4 / Client / server communication by TCP / IP
    -> Yes. Echo, Chat, File Trans, Video example is tcp.
    5 / Client / server communication by UTP
    -> Yes. The P2P, LookAround example is udp.
    5 / Send custom format data / bytes between client / server
    -> Yes. Both binary and json are possible.
    If you are not an expert, I recommend json.
    6 / Server / Client Connect / Disconnect Detect / Check
    -> Yes. See the tcp example.
    Can you provide an executive sample for Windows / Android?
    -> There are a total of 10 examples including tcp and udp.
     
    Appokalopps likes this.
  27. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    The inquiry function is difficult to implement.
    I'm sorry I can not help you.
     
    Appokalopps likes this.
  28. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hi, I'm sorry I'm late.

    The functionality you want is expected to be easy to make.
    However, I do not have an example to play video, so it will take a while.
     
    Last edited: Aug 11, 2018
    Appokalopps and LostPanda like this.
  29. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    151
    @MNF_Devloper thanks,good man.I know some unet, but I really don't know MNF very well, if I can see the example, it will be very good for me. I've seen other people with similar problems. Thanks again. And I want to say that you are the best developer I've ever seen, and the support is fantastic, not one of them!
     
  30. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    151
  31. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hi, Sorry I'm late working.
    Now working + testing.
    I will share it as soon as the results come out.

    ca.jpg
     
    Appokalopps and LostPanda like this.
  32. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    151
    MNF_Devloper likes this.
  33. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hi, LostPanda.

    I've finished playing the video you talked about.

    See example 10 for a scene.

    I did not upload it to the Unity Asset Store.
    Tell me if you have any shortages.
    If there is no problem, I will upload it to the Asset Store immediately.

    [MNF Link]
     
  34. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    151
  35. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    151
    this great and all is ok ,please upload to asset store.thanks again.@MNF_Devloper
     
    MNF_Devloper likes this.
  36. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    I am so happy to help you.
    I applied for Unity Asset update.
    It will go up soon.
    Thank you for giving me a good idea.
     
    LostPanda likes this.
  37. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    The asset store update is slower than expected.
    (I requested an update but was denied)

    I think it is not courtesy to keep you waiting long.

    Let me know your email.
    Then I will send the MNF package and voucher via e-mail.
     
    Last edited: Sep 5, 2018
  38. LostPanda

    LostPanda

    Joined:
    Apr 5, 2013
    Posts:
    151
    my email is fingerx@foxmail.com,thanks
     
    MNF_Devloper likes this.
  39. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    MNF was finally updated.
    Sorry I was late for the update.
     
  40. AverageJooe

    AverageJooe

    Joined:
    Jul 30, 2018
    Posts:
    1
    Hey @MNF_Devloper

    I see you are maintaining this library quite well. I am looking forward for buying this, but I have a few questions.

    I would like to use this library on Android and I have tried to use the official Android Wifi p2p guides in Java which did not look like reliable to me at all.

    https://developer.android.com/guide/topics/connectivity/wifip2p

    1) Just to make things clear - your library has NOTHING to do with any Java code, but you implemented this natively?

    2) How easy it is to make a P2P matchmaking in it? Are there callbacks / events for player joining match / player leaving match / new match found / match no longer available / new match available?

    3) When matchmaking, does one user has to set it's device as host / client, or does your library solve that automatically? Is there any example where both users just need to start matchmaking without knowing anything about host / client? (What happens if both of them are joining each other's match at the same time?)

    4) During gameplay, is there an easy way to get notified (again, in some form of callback / event) if the other player has left the game, or shall I find this out by some timeouts?

    5) I don't need any SQL or Database, only the messaging. How difficult is it to remove the Database part from the networking code? From your (3 + n) thread explanaition it looks like that feature is tightly coupled with the rest.

    Thank you for your time for answering. I think most of these might be implemented from what I see, but I hope you understand I need to know these before buying this.
     
    MNF_Devloper likes this.
  41. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hi, Thank you for your interest in MNF.

    1) P2P provided by MNF is a P2P module based on the network library provided by Unity3d, and P2P is possible only within the same Wi-Fi.

    2) So far, P2P is not provided through matching.
    However, it is possible to search and P2P between devices in the same Wi-Fi.
    It is possible to P2P even if you do not set up the host, but it is good to do it from the managerial level.

    3) Since the matching function is not provided, accurate answer is difficult.

    4) If another player leaves the game, it receives the event through UNet library.
    You need to implement Ping / Pong to get a more authentic event, but it is not difficult.

    5) MNF is basic messaging processing, and DB processing is an option, so there is no need to work on DB function removal.

    I will give you MNF voucher if you tell me your email.
    If it can help you, please make a payment at that time.
     
    Last edited: Sep 18, 2018
  42. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    201
    Some connections are not working on my Android device for some reason. LookAround and TCP won't connect at all from Android, UDP works sometimes, but is often broken as well.
     
    MNF_Devloper likes this.
  43. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello, edwon.

    Thank you for your interest in MNF.

    I need your help to solve your problem.

    1. I wonder what device you have tested.
    2. You need the log file of the device you have tested.
    3. I wonder how the network environment is configured.

    It may be cumbersome, but ask for confirmation.
     
  44. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    201
    I'm using a Google Pixel 2, a Samsung S8, and an iPhoneX.
    I don't know the network config or how to get the log from each phone.
    I would prefer to only use wifi-direct to connect between android and iphone, is it possible? including sending an audio file back and forth?
     
    MNF_Devloper likes this.
  45. seymur277

    seymur277

    Joined:
    May 24, 2017
    Posts:
    1
    Hi

    I cant compile on Android platform. Please assist. Each time I get the message as given below:

    ArgumentException: The Assembly System.Configuration is referenced by System.Data ('Assets/MNF/Plugins/System.Data.dll'). But the dll is not allowed to be included or could not be found.
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:155)
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:161)
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:161)
    UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:195)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Thx in advance

     
    MNF_Devloper likes this.
  46. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello,seymur277.

    Please refer to the link below for the build.

    https://bitbucket.org/mnf_developer/mnf_example/wiki/MNF Build Option for Android & iOS
     
  47. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Well .. I need your test environment and log file information.
    That should be the correct help.
    In the MNF example, you can also send image file transfers and real-time screenshot information.
    If you refer to it, it will be possible to send an audio file.
     
  48. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hi, seymur277.

    Have you fixed the problem that I was not able to build through the link?

    If it does not help, talk to me immediately.

    Have a good day :D
     
  49. MNF_Devloper

    MNF_Devloper

    Joined:
    Dec 22, 2015
    Posts:
    145
    Hello edwon,

    If you have not done so yet, please refer to the link below.

    [LogCat for Android]
    1. https://logmatic.io/blog/a-how-to-guide-to-debugging-with-android-logcat/
    2. https://android.stackexchange.com/questions/14430/how-can-i-view-and-examine-the-android-log

    Have a good day :D
     
  50. johaswe

    johaswe

    Joined:
    Sep 13, 2018
    Posts:
    26
    Hi!
    A pre-sale Q :
    Would your component be able to run as server on uwp/xbox and trigger Android procedures with given parameters. Many android devices at the same time. (Looking at making a local multiplayer quiz game)
    Thanks!
     
    MNF_Devloper likes this.
unityunity