BIG problems

All Union Platform questions, comments, feature requests, and bug reports.

BIG problems

Postby paala » Thu 04 Apr 2013 02:58

Hello,
I am trying to migrate my multiplayer game from PlayerIO to union platform.
I have major problems.
1. Union Platform is still active? each webpage from the website load in about 45 sec -1 min..
2..Is there anyone here at forum to provide support?
I try to migrate the Fridge magnets first .
issues:
3. How can I have properties per player on server . A class that extends Client.
In player io i have:
Code: Select all
public class Player : BasePlayer {
      public int X;
      public int Y;
      public Player() {
         X = 0; //Player mouseX
         Y = 0; //Player mouseY
      }
   }


here i try:
Code: Select all
package net.user1.union.example.roommodule;
import net.user1.union.api.*;
public abstract class Player implements Client    {
   int x=0;
   int y =0;

}

But:
Code: Select all
player= (Player) evt.getClient();

throws an error in log::
Code: Select all
Caused by: java.lang.ClassCastException: net.user1.union.core.LocalClient cannot be cast to net.user1.union.example.roommodule.Player


4. How can I have a Array, Set or what ever of players connected . in player io there was a default Array Players
here i found:
Code: Select all
m_ctx.getRoom().getClients();
this to do same thing but I must resolve problem 3 first.

5. how can I write something to the console (log)?
in player io i had:
Code: Select all
Console.WriteLine("time diference" + timedifference);
;
here it should be
Code: Select all
System.out.println("aici am scris eu");
but this doesn;t appears in log.txt and not elsewhere.
I am using Eclipse to create the jar.
paala
 
Posts: 13
Joined: Mon 01 Apr 2013 03:40

Return to Union Platform

Online

Users browsing this forum: No registered users and 6 guests