Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Multiplayer behavior plugin

jaimezegpi
Registered User
Quote
2015-04-30 04:12:52

New Example
Ex. 1
https://brainxcode.cl/thegame/mu...

Ex. 2
https://jaime.zegpi.cl/lab/coppe...

🔎︎


Test:
open link in 2 tabs , one in incognito mode.

//----------------

Download Example.
Multiverso Multiplayer test.
https://github.com/jaimezegpi

TEST HERE
https://brainxcode.cl/thegame/mu...


theelk
Registered User
Quote
2015-04-30 06:34:54

@jaimezegpi

I try'ed it and nothing is happening can't move or do anything using Chrome : Version 42.0.2311.90 m


Also will not work on firefox.





niko
Moderator
Quote
2015-04-30 08:36:48

I guess those those gray models are the positions of the other players? Seems to work for me, although they don't seem to update and remain static (Chrome, WebGL)
Just an idea: Browsers are usually caching requests, so maybe this might be the reason. For working around this, do each request with a senseless, upcounting parameter.


edkeyte
Registered User
Quote
2015-04-30 11:41:36

Seemed to work for me fine.

Great looking plugin! Looking forward to this.

Great work jaimezegpi!

This is the kind of plugin I'd be willing to pay for.

Ed.


bob
Guest
Quote
2015-04-30 13:40:23

Wow looking great...


jaimezegpi
Registered User
Quote
2015-04-30 15:00:10

theelk, use the link in the post. this open in a new window and work fine, thank for your coment.

niko; yes the gray objects are other players. for prevent caching response i put a random value in request and response. like ?rand=747747. same i use for no caching a css. If you dont move in 30 seconds your player is eliminated from others players view.

edkeyte, thank , this is a basic integration, is for fun. ;) . the ideal is make a node.js or ape integration for support more than 30 players.

thaks bob.

Todo. avatar integration to model. and chat for webgl, window and macOS.


theelk
Registered User
Quote
2015-04-30 19:47:22

Yes it finally worked for me..did not see the link.....lol my bad


JMD Design
Guest
Quote
2015-05-07 17:18:01

very cool. I just tested this on a Samsung Galaxy Tab 4. Chrome for android (latest version). Ran very well.


JMD Design
Guest
Quote
2015-05-07 17:24:43

Hit enter too quick. All was good until I ran off the platform. A kill zone/respawn would be good for that area. I only think of "kill zone"
because I was mapper for my Unreal Tounamemt clan for a long time and map glitches were all over and a "kill zone" helped.


jaimezegpi
Registered User
Quote
2015-05-08 14:55:12

Thanks JDM, this is only a basic test, i study the most easy way to add a respawn zone.
But the first alpha only have

Actors:
obj_position, obj_rotation, obj_name, obj_conn_status and obj_msg_text

2do
obj_life
obj_model
obj_animation
obj_*

Scene (server controled)
obj_position, obj_rotation, obj_name, obj_destructible, obj_life, obj_animation

2do
obj_texture
obj_*

(i try to integrate to node.js to have a more speed in response)


jaimezegpi
Registered User
Quote
2015-05-25 03:46:18

OK.. now you can download original files to test in your system.

1.- Import scene and mod object , use same names and folders.
2.- you need install multiplayer plugin in cc
3.- If you like you can use the php files direc in your server. You need change links in multiplayer plugin.

ccbDoHTTPRequest("http://brainxcode.cl/develop/id_generator/unikey.php", finishedRequest);
(asign unique name to your client, can be replace for a facebookId, names, usernames etc...)

ccbDoHTTPRequest("http://brainxcode.cl/develop/comet/backend.php", finishedRequestData);
(this file make the magic. you can mod them. -after 30 seconds delete unactive clients-)

This is ultra beta but work.

DOWNLOAD
http://brainxcode.cl/develop/mul...


edkeyte
Registered User
Quote
2015-05-25 06:28:07

Works perfectly for me. I used your PHP files on my shared server space and worked fine.
Very impressive indeed! Looking forward to using this properly.

One question though. I couldn't understand what path to change this:

  ccbDoHTTPRequest("http://brainxcode.cl/develop/id_generator/", finishedRequest);
on my server.

Thanks.

Ed.


edkeyte
Registered User
Quote
2015-05-25 06:34:56

Sorry spoke too soon.
The plugin was still pointing to your server not mine.

Doesn't seem to work when pointing to the php files on my server.


jaimezegpi
Registered User
Quote
2015-05-25 14:04:12

Sorry edkeyte

http://brainxcode.cl/develop/id_generator/XXX.php
this generate a unique id,
is for generate a name for the objects.
You can use to asign names to your clients.

sorry i forgot include that file

only have one line

//--------------------------------xxx.php
echo md5(uniqid(rand(), true));
//-------------------------------

Fixed


edkeyte
Registered User
Quote
2015-05-26 00:44:00

Great thanks!
Works well on my server space.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact