Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[RELEASED] MultiOnline : multiplayer online kit - V3 now available

Discussion in 'Assets and Asset Store' started by VirtuElle, Aug 16, 2013.

  1. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi,
    Not yet, but anyway the current version is compatible with unity 5, so that's not a big deal.
     
  2. RandAlThor

    RandAlThor

    Joined:
    Dec 2, 2007
    Posts:
    1,291
    For me it is and i hope for the new version with the new ui and new network system to be compatible also after 5.x do not support the old network system anymore.
    I also hope for your assets to be compatible because i think they are the best for what i need with all the features.
     
  3. Hydrophantom

    Hydrophantom

    Joined:
    Sep 2, 2015
    Posts:
    1
    Hi friend i followed you tutorial on youtube the multionline v3 installation and i have a problem when i login in my database in install.php and when i press create database this comes up:
    Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/hydrophantom/www/multionline/functions/MODb.class.php on line 31

    Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known' in /home/hydrophantom/www/multionline/functions/MODb.class.php:31 Stack trace: #0 /home/hydrophantom/www/multionline/functions/MODb.class.php(31): PDO->__construct('mysql:host=mysq...', '111763', 'better5') #1 /home/hydrophantom/www/multionline/install.php(23): MODb->__construct('111763', 'better5', 'mysql-hydrophan...', 'hydrophantom_1') #2 {main} thrown in /home/hydrophantom/www/multionline/functions/MODb.class.php on line 31
     
  4. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi, I have answered to your private message.
     
  5. sam851

    sam851

    Joined:
    Oct 19, 2014
    Posts:
    2
    hi i have the problem too same as hydrophantom msg me please
     
  6. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    I have sent you a message
     
  7. applebus

    applebus

    Joined:
    Sep 12, 2015
    Posts:
    2
    Register failed : no other message, where is error log?
     
  8. applebus

    applebus

    Joined:
    Sep 12, 2015
    Posts:
    2
    crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash.
     
  9. salad__fingers

    salad__fingers

    Joined:
    Aug 11, 2012
    Posts:
    42
    Hey, will this be updated to use UGUI? Or just any updates/patches planned?
     
  10. RandAlThor

    RandAlThor

    Joined:
    Dec 2, 2007
    Posts:
    1,291
    There was an update for this summer announced with ugui and unet and i hope to see it soon.
    Because unity 5.x will not support the old network solution at some time but i need other things that will be updated then so have to use unet and also hoping to use ugui with it and this asset with all its features.
     
  11. GerardMe

    GerardMe

    Joined:
    Nov 29, 2013
    Posts:
    5
    Hello VirtuElle,

    I have purchased your MultiOnline Toolkit, but I have a couple of questions.
    - The "Register" says Regsiter, where can I change the name on the button?
    - Also the project I work on needs a character selection screen and is team-based which means that the spawner needs to not randomly use the spawnpoints but spawn teammates on their own side.

    Further I want to tell that the software is very easy to use and very helpfull for a beginner like me.

    Greetings,

    Gerard Meindersma
     
  12. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi, thanks for your message, so here are my answers:
    That's on the object MText, it's all explain on the documention, part 4.4 (page 48).
    Drop MText on you scene (it's on Resource folder), open the panel "Show MO menu text", and after "Login/Register menu text", that's on the field "Btn. menu register".
    Ok, so you could, for example, store the team of each player on MPlayerData (it is used for register all the data about the current player).
    You create two spawn prefabs, with two different names (Spwans1 / Spwans2), on these prefabs, you put the spwans points of each team, on the good side of the map (you just have to copy the Spwan prefab which already exits, you keep the same script, just rename it with the goods names).
    Now, in MNetwork, line 241, you add a line which check the team of the player (you can use the variable playerDataSrc which is an access to the current player MPlayerData object), and depending the result, you change the line by MSpawn1 spawnSrc = GameObject.Find("Spawns1").GetComponent<MSpawn1>(); / MSpawn2 spawnSrc = GameObject.Find("Spawns2").GetComponent<MSpawn1>();
    It must work.

    Thanks your very much, that was the goal of my asset, and I am really happy if it's successful ;)
     
  13. MWMDragon

    MWMDragon

    Joined:
    Aug 14, 2014
    Posts:
    3
    Hello,

    I have been using your netcode "MultiOnline" in a project for a while and the other day it just stopped working.

    As far as I can see a game is being deleted from the Database's "Game" table when the host enters the waiting room.. so no one else can see the game. Because my game has gone retail this is a huge issue.

    I have not changed anything in the game, nor have I messed with the PHP files. Do you have any suggestions as to what may have caused this and how I can fix it?

    Thanks,
    MWMDragon
     
  14. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Ok, but can you see the game on the database when you create it ?
     
  15. yumianhuli1

    yumianhuli1

    Joined:
    Mar 14, 2015
    Posts:
    92
    HI,VirtuElle
    Unity NetworkView can create random room like PUN?Thanks!
     
  16. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    I don't think so, with MO it's the host who have to create the game.
     
  17. yumianhuli1

    yumianhuli1

    Joined:
    Mar 14, 2015
    Posts:
    92
    Thank U!
     
  18. GerardMe

    GerardMe

    Joined:
    Nov 29, 2013
    Posts:
    5
    Hello VirtuElle,

    Thank you for your answer, everything is fixed now.
    But I have another question:
    How can I add a CharacterSelectionScene between logging in and looking for a server.

    Greetings,

    Gerard Meindersma

    PS: Can you also give me some tips on how to start making a "fastest-time-based highscore" system and how to use PlayerPrefs for saving experience points on the database? :);)
     
    Last edited: Sep 24, 2015
  19. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi, why don't you put this on the Profil menu ?

    I made a tutorial to add a field on the database, tell me your email address and I'll send it to you.
     
  20. GerardMe

    GerardMe

    Joined:
    Nov 29, 2013
    Posts:
    5
    I only find two files with profil, I really want to add a scene to the menu, also I have send you a pm with my email-adres.

    Greetings,

    Gerard Meindersma
     
  21. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Ok, so if you want to add a new menu from the main menu, you just have to add your button from the script MMenu, on DisplayMainMenu() function.
     
  22. Nedzio

    Nedzio

    Joined:
    Oct 2, 2015
    Posts:
    2
    Hi. I'm having a problem with synchronising player. When I'm connected to the online server, the players are able to send messages to eachother in a chat. In option ''Players'' I can see that they're connected to the game but they can't see one another inside the game. Is there a possiblity of fixing this problem. By the way the MO is an awesome program! Great job on that, thank you.
     
  23. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi,

    Thanks for your message, my question is, do you use the default players prefab of MO (the "cubes"), you did you add your own players prefab ? And do you use the "dedicated server", or juste the default hosting system (a player creates a game, and the others join it) ?
     
  24. FOGT

    FOGT

    Joined:
    Oct 12, 2015
    Posts:
    2
    Thank you for your response. I use my players prefab And default hosting system.
     
  25. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi, do you have the same problem as Nedzio ?
    Did you build correctly the scenes ? Do you see your own player prefab when you start the game ? And are you sure that the other player is not just on the opposite side of the map ? Can the players are still able to send message to each other in the chat once the map is loaded ?
     
  26. Nedzio

    Nedzio

    Joined:
    Oct 2, 2015
    Posts:
    2
    Yes, I can see my players name during the game on the "Players" option. When the game starts and players spawn,
    they can't see one another, I checked the whole map and ain't working. Yes the players can send messages on a chat to each other during the game.
    Btw Nedzio and Fogt is the same person. i don't know why it's two different username.
    Thank You
     
  27. FOGT

    FOGT

    Joined:
    Oct 12, 2015
    Posts:
    2
    Yes I can see my players name during the game on the "Player" option. When the game starts and the players spawn, they can't see one another, I checked the whole map and it ain't working. Yes the players can send messages on a chat to each other during the game. Btw Nedzio and Fogt is the same person, I don't know why it's two different usernames.
     
  28. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    I have just made a full install of MO, to try to understand what it the source of your issue, but honestly, I don't understand !
    The installation is really easy, just put the good url on MOServer and build the scenes correctly, and after that, everything worked for me !
    Did you moved the spanw points ??
    Do you have any error message ?
    I would like to know if you have the two prefabs on the map or not, for that, just create a game from the run of the editor, join this game with the build, and once the map is loaded, tell me if you can see the two Players on the Hierarchy, like that:


    Which version of Unity do you use ?
     
    FOGT likes this.
  29. Albireo87

    Albireo87

    Joined:
    Oct 24, 2015
    Posts:
    2
    Hi, i followed your tutorial on youtube, the multionline v3 installation, and it seems i have a problem. When I login into my database to install.php and then I press create database, this error comes up:
    Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/allbireo/www/MultiOnline/functions/MODb.class.php on line 31

    Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known' in /home/allbireo/www/MultiOnline/functions/MODb.class.php:31 Stack trace: #0 /home/allbireo/www/MultiOnline/functions/MODb.class.php(31): PDO->__construct('mysql:host=mysq...', 'allbireo', 'password') #1 /home/allbireo/www/MultiOnline/install.php(23): MODb->__construct('allbireo', 'password', 'mysql-allbireo....', 'allbireo_01') #2 {main} thrown in /home/allbireo/www/MultiOnline/functions/MODb.class.php on line 31
     
    Last edited: Oct 25, 2015
  30. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Which webhosting do you use ? It seems you don't have the PDO extension (and it is required for the php scripts)
     
  31. Albireo87

    Albireo87

    Joined:
    Oct 24, 2015
    Posts:
    2
  32. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Ok, are you sure you have put the good information on the fields ? Especially for the mysql host
     
  33. GerardMe

    GerardMe

    Joined:
    Nov 29, 2013
    Posts:
    5
    Hello,

    Sometimes, players can't find servers.
    Have I missed something?

    Thank you,

    GerardM
     
  34. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    It's strange if its happen only sometimes. Do you have any idea about something which is always similar when it's happen ?
    Are you sure that the game are not just no available (player in the blacklist of the host, maximum player achieved...) ?
     
  35. Superjayjay

    Superjayjay

    Joined:
    Mar 28, 2013
    Posts:
    65
    This looks great, but are there any plans to integrate this with uGUI, and more importantly with another network library other than Unity's legacy network class ?
     
    Carrotpie likes this.
  36. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi,
    I am currently not sure about this, since the new network system of Unity offers a lot of functionalities which make MO not as useful as in the beginning.
     
  37. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    The error message say "Access denied for user", so, are you sure that your username and password are correct ? Did you checked it (try to connect directly on your phpMyAdmin) ?
     
  38. nibek1000

    nibek1000

    Joined:
    Jan 13, 2016
    Posts:
    8
    Hi,
    I made on MultiOnline FPS game and when I kill player2 and he was respawned I dont see him and he cant kill me. Some help?

    Problem 2:
    How to add new map? When I in waitroom I can add but after end testing it desapere


    (Sorry for bad ENG, Im from Poland)
     
  39. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    What do you do when you kill the player2 ? Which function do you call to make him disapear ?

    The documentation explain everthing about that, page 54.
     
  40. SuperiorMold

    SuperiorMold

    Joined:
    Jan 29, 2016
    Posts:
    1
    Hello,
    I love the asset! I was looking to use the Dedicated Server option, however you can't actually run this on a dedicated server as Unity complains when you try launch as there is no graphics.

    Also, my friend cannot join over Hamachi? Clicks join with no action, is this because hamachi doesn't work? Is portforwarding a must?

    Thanks!
     
  41. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    That's right, in fact, I wanted make a batch mode version, but, it was only available with Unity Pro, that's why I didn't.
    There is a batchmode option named "nographics" which allow to run without GPU, but the code must be made to also work only with keyboards inputs. (And since I wasn't able to test it, I didn't made it, but it's not difficule to make it).
    You can read this and this for more informations about that.
    There isn't any message, as "Impossible to joint the host" ? I don't know Hamachi, I have never work with, but some user used this without problem. Are you sure Hamachi works correctly on your system ?
     
  42. Vortex00

    Vortex00

    Joined:
    Jun 12, 2014
    Posts:
    3
    Amazing asset thanks for creating it~

    I wanted to be able to have the host of the game always join as a certain prefab character, and everyone else join as a random section of other prefabs. I think modifying the MSpawn file to select randomly from prefabs before doing the Network instantiate will work for the randomization, but not sure on the host part.

    do you have any idea how I might identify the host prior to network instantiate to have that person spawn as a specific prefab?

    Thanks in advance!
     
  43. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi,

    I think your idea is good and it will work, MSpawn is to best place to do that.
    But about your question, I don't really understand what does it mean (I don't speak english very well). You want choose the prefab for a specific person, or should it be random ?
     
  44. Vortex00

    Vortex00

    Joined:
    Jun 12, 2014
    Posts:
    3
    Thanks for the reply. I wanted to choose specific prefab for the first person to join the game.
    Then random prefabs for other players.

    for example, I have 3 player prefabs A, B and C.
    I have a room with 0/5 players in it.
    the first player (1) in the room will always be prefab A when loaded into the game.
    any other players (2-5) that join after that will be either B or C randomly chosen.

    also is there a way to alternate between B and C?
    for example, if you are a even number array position on the player list you spawn as B and if you are odd you spawn as C. I wasn't sure how the MSpawn script can identify what array position a player is in.

    ____________

    also I am trying to increase the amount characters that are allowed and shown in the chat box when in game.

    based on the code in MGameChat , it looks like I can just increase chatPanelSizeX, which should increase chat box size, and increase the maxChar. But increasing chatPanelSizeX doesn't see to do anything at all when I test it in game.The chat box remains the same size.

    _____________

    also is there version tracking ? where if users have a old version of the build and are trying to connect to the sever they can't connect. It will tell them to get a updated version of the build.

    if not how would I add this?

    Thanks, sorry for the long post.
     
    Last edited: Feb 4, 2016
  45. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    If you alternate B and C, it's no more random prefab !
    If it must be random, you could do a very simple system, as a random number, if the number is pair, you use prefab B, else, prefab C.
    Else, of you don't want a random system, but once prefab B, once prefab C (...), you can save somewhere the last prefab used, on send it to the new player (with an RPC function), so that you know which prefab instantiate.

    In fact, it's correct, it's the good way to do, but, the in-game menu is managed by a prefab: MGameMenu, which is on Resource folder. So, if you make any change on MGameChat, you have to "rebuild" this prefab: drag it on any scene, remove the script MGameChat from the prefab, and re-add it, and then, drop it back on Resource folder.

    No, because according to me, it make no sense with my asset. If you make a game using MO, the game will run with your current version of MO, and so, every player will have the same version. How some user could have an old version, and some other a new one ???
     
  46. Vortex00

    Vortex00

    Joined:
    Jun 12, 2014
    Posts:
    3
    Many thanks for answering the first two.

    For the last one sorry for the confusion, I'm not talking about the version of the plugin itself. I'm talking about the scenes being different in the build of a game between two or more clients.

    For example if I release a game client. then later I find a bug and need to edit the code, or add new content to it and release a new version of the client.

    some people may not realize there is a new version. so some will have the new version and some won't. but both will be able to host and join games from each others version. doing that they will cause several problems with the game not working properly.

    I wanted to know if you had some ideas where it can check a version variable or something to make sure the client's scene is identical to the host before joining the game.

    Thanks
     
  47. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Ok, I understand better now.
    Honestly, I had never thought about that !
    I don't think make something especially for that, since it's out of the subject of MO, but, I have some ideas for you.
    If you make a new version, you could put a code somewhere which, when the player is logging, save something on the database to know that he uses the new version (I made a tutorial to add a field on the database if you need it). So that, you will be able to know if a player use your new version or not, and act according to that.
    May it help you ?
     
  48. Hamesh81

    Hamesh81

    Joined:
    Mar 9, 2012
    Posts:
    405
    This seems like a really promising asset and there are few on the asset store with all of these great features. Are there any plans to update this to work with UNet and UGui?
     
  49. VirtuElle

    VirtuElle

    Joined:
    Jan 27, 2013
    Posts:
    458
    Hi, it's currently not plan, I hope that I'll have time for making an update this year, but unfortunately I cannot certify it.
     
  50. MirmoZibang

    MirmoZibang

    Joined:
    May 30, 2015
    Posts:
    2
    I did make an account and followed your steps, but on the part when you install the MySQL the installion.php when I click it, it shows just codes.
    I'm from window 7 of 64 bit and google chrome.
    When I test if:
    ftp://ftp-
    I say this:
    not Found
    The requested URL was not found /MultiOnline3/install.php on this server.
     
    Last edited: May 16, 2016