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

AppWarp not working!?!

Discussion in 'Multiplayer' started by markzareal, Dec 31, 2014.

  1. markzareal

    markzareal

    Joined:
    Jun 11, 2014
    Posts:
    40
    I have imported the AppWarpUnity.dll file to my project. I have got this script with AppWarp and it gives me an error saying :
    The name `WarpClient' does not exist in the current context. The script I've got seems perfectly normal. Heres my script:
    Code (CSharp):
    1.  
    2.     string roomid = "***********"; //private
    3.     string apiKey = "************"; //private
    4.     string secretKey = "************"; //private
    5.  
    6.     void Start () {
    7.         WarpClient.initialize(apiKey, secretKey);
    8.     }
     
  2. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
    I don't have the AppWarpUnity.dll in a my plugins folder. I have it in the Assets/AppWarp/AppWarpUnity.dll
    Try that
     
  3. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
  4. SeasiaInfotechind

    SeasiaInfotechind

    Joined:
    Nov 17, 2014
    Posts:
    32
    Hello markzareal,

    In order to access the appwrap classes, you need the add the following libraries in your script:

    usingcom.shephertz.app42.gaming.multiplayer.client;
    usingcom.shephertz.app42.gaming.multiplayer.client.events;
    usingcom.shephertz.app42.gaming.multiplayer.client.listener;
    usingcom.shephertz.app42.gaming.multiplayer.client.command;
    usingcom.shephertz.app42.gaming.multiplayer.client.message;
    usingcom.shephertz.app42.gaming.multiplayer.client.transformer;

    This will surely solve your problem.

    Thanks
    Ankush Taneja
     
  5. gameadu_sid

    gameadu_sid

    Joined:
    Dec 15, 2015
    Posts:
    1
    Hello @SeasiaInfotechind ,
    I was trying out Appwarp SDK. I found few samples related to unity. They all are real time based. Even there is an example that has a Turn Based Real-time multiplayer example on github.

    So my query is with regarding as to whether AppWrap supports "Asynchrous Turn Based" multiplayer or not?
    If yes, can you point out some references where I can start out?

    Thanks,
     
  6. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
    The multiplayer part of my game is turn-based as it is a board game like chess, checkers, Othello. But it isn't async in the sense that you can't make your move, leave the game and come back later. You have to stay online and in the game while playing (so I guess you could say it is turn-based real-time. If you do leave the game and there are still at least two players left, your turn will just be skipped and the game will continue.

    That said, Shephertz and their AppWarp and App42 services are excellent with the best customer service of any service provider I have dealt with...EVER! Their services cover any aspect that any game developer could ever want. They are top-class and you will not be sorry if you use them.

    The web version of my game (Unity Player) does have multi-player functionality but it is disabled so people who want to play online MP will buy the OSX or iPad versions. But sales are about 1 unit every few months so if you want to give it a try to see how the online multiplayer works I can give you a few promo codes so you and whoever will play it with you can test it. Send me a direct message, tell me if you want OSX or iPad versions, how many, and I'll email the codes to you. (It can handle 2 to 4 players in one game.)
     
  7. TokyoDan

    TokyoDan

    Joined:
    Jun 16, 2012
    Posts:
    1,080
    Also if you want turn-based async, AppWarp may be overkill, as you really only need message passing and push notification (That's all that is really needed for my game too, but this service wasn't ready when I coded my game.) So look at they App42 service instead of the AppWarp service:

    Look at User, Storage, Push Notification, Message services:
    http://api.shephertz.com/app42-dev/unity3d-backend-apis.php
    http://api.shephertz.com/app42-dev/ebook-turn-based-games.php
     
    Last edited: Dec 18, 2015