jhice's Forum Posts

  • It doesn't change...

    It seems that the protocol is ok for the server because I manage to connect to it via the HTML page.

    Looking in the SgtConti plug-in, I see there is the include for the socket.io client files (the same inclusion that in my HTML page, ie the socket.io sample).

    So I wonder if the C2 WS plug-in "base", can connect to any server with no client files inclusion ?

    I try to update a copy of the C2 plug-in (what SgtConti did) with just including the client src, and come back.

    Thanks again

  • Hi lennaert,

    It works Thanks.

    (It is the HTML version + JS client loaded from the socket.io server).

    But now the problem is, adding the URL in the C2 WS plug-in, Connect to "http://localhost:1337" (and no protocol), got the message "Unable to create a Websocket with the given address and protocol".

    I trace the "Websocket is supported" and it is to true.

    Tried some things with no success, like adding some transports :

    io.set('transports', [
    	'websocket'
    	, 'flashsocket'
    	, 'htmlfile'
    	, 'xhr-polling'
    	, 'jsonp-polling'
    	]);[/code:ngyg45va]
    
    I think the problem is before that but...
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Not at home yet but will try this ASAP

    Thanks

  • PS : to avoid confusion, Turbulenz is a game engine written in Javascript, with a heavy SDK much like Unreal Engine SDK (but with no graphic editor), nothing comparable to Stencyl or C2

    Concerning the costs of each solution, I dont think it's a barrier in the case you want to monetize your game and try to do it. It is a false problem, but for others it could be important I agree with that. Like a craftsman, you've got to buy the tools you need and if this tools are a bit expensive, one day you can get them anyway

  • Hi Colludium,

    The launch of Stencyl V3 was the reason of my post here, in fact <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I don't know if we could think of "everyone has a mobile" and so on because there are multiple ways to play : browser, desktop, mobile, consoles. Steam/Kong/AG/NG etc. and the mobile stores reflects all these. Up to you to target each, and for sure HTML5 is not (yet) ready for all these platform (especialy mobile I agree with you).

    In the other hand, there are projects based on HTML5 for the desktop and the future, do you know this : https://turbulenz.com/ ? I played Polycraft and Denki Words, this is a nice platform to play + community.

    If C2 could target the Flash platform via Haxe/OpenFL like Stencyl do it would be great but that means rewrite all in Haxe ^^

  • <div class="post-censorship-notice">jhice can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?</div>

    UPDATE : finally did not use socket.io (see Ashley's post), but use the "ws" module for node, see the post #10 below / PS Apache not needed too

    Hi,

    I'm running totally crazy with the Websocket and server configuration, in preview mode.

    I explain :

    1. Ajax plug-in

    I did a test with this plug-in, just had to put the directive Header set Access-Control-Allow-Origin "http://localhost:50000" and it ran well. Put it where the ajax.php file resides. NO PROBLEM, half an hour to test it from scratch.

    2. Websocket plug-in

    I did want to try it from scratch with no knowledge of node.js. I installed node.js and socket.io, no problem at this point. After that I wanted to try the official C2 WS plug-in in the same way I did with the Ajax one. It doesnt worked at first try, the server was not tracing any connection from the client (C2 preview). "Anyway" I thought, it is rare that it works at first try !

    So I took a look at the examples on the socket.io page. First, they didn't tell that we must include the js src from the socket server port (1337 here ^^), ie : <script src="http://localhost:1337/socket.io/socket.io.js"></script>. This was solved anyway.

    The nightmare started here, I couldnt get rid of the following error after 2 hours (if not 3) :

    XMLHttpRequest cannot load localhost/socket.io/1 No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

    The directive in the .htaccess, even wth the wildcard "*", didn't seemed to do the trick this time (because now there are 2 servers and not only 1, as in the Ajax example). I went on stackoverflow and to the site about "CORS" : enable-cors.org/server_apache.html but didnt manage to solve the problem.

    In my app.js I've got something like this, but the "origins" key doesnt do the trick either :

    var io = require("socket.io").listen(1337);

    io.set('origins', '*');

    To say, the socket.io documentation is not very clear...

    So, I dont get where to put the Header directive, in Apache .htaccess, that serve the client socket (.html or C2 preview), or in the app.js server run by node/socket.io. I didn't try to use only the built-in server of node (Express) and not Apache, because I dont want to, and I think the localhost:50000 of C2 will run in the same issue than Apache.

    If someone could help on this, I would be grateful !

    Thanks

    PS : I wanted to try by myself from scratch with the C2 Websocket plug-in before going in rexrainbow plug-in or in the tutorial by SgtConti.

  • Hi,

    I dig up this topic just to say, I hesitate a lot between Stencyl and C2.

    For sure C2 is easier to use, while Stencyl is a bit more complex. Stencyl uses Haxe and can compile natively on several platforms.

    The fact is that to go on mobile, or in FGL or on Armor Games, Flash still the best option in this start of 2014.

    I have a few apps done with AS3 or Haxe on my old iPhone 3GS than run smoothly than HTML5 games actually.

    In the browser on PC, HTML5 could be better (becoz of WebGL better support).

    Anyway, I'm not sure it is worth trying to tell wich one do better, as it's a matter of choice and personnal preference. And quality of work When you go to big projects, it could be a big mess anyway.

    Look at games like "Papers please" coded in Haxe (OpenFL ex-NME) or CoinOp story coded with C2, the two are very well done.

    For now, the ease of C2 and the nice preview in browser make it a very good start, at least for beginners.

  • Thanks for the job Tom, the website and the forum respond quicker than before.

    Did you upgrade the server too ?

  • Im getting the idea a certain ajax call times out as soon as your internet connection is gving the scirra site's ajax call even the slightest delay.

    I get this most frequently when dowloading a lot.So it links to the same problem, Scirra's server availabilty (ajax call to prevent losing text probably patched by tom because users report the session lost, like above ?).

    Let's await an answer from the webmaster :)

  • I even get timeouts if I cant write at the speed of light.Then refresh then page and all is lost.ust got an error "Authentication failed" or a JavaScript alert "Session expired", and had to repost (2 times). This problem has been reported I think.

  • Concerning the forum itself, I think it's probably a custom one, to add reputation system linked to to whole website (at least just a bit customed).

    Chrome is great at memorizing form fields when thne is errors, so perhaps try to use it.

    I think the server is a bit overloaded, and the solution would be probably to upgrade it. If it's a matter of cost, why not ask the (happy :)) users to donate for it (for year costs).

    In France we have great servers starting at 30 euros monthly (Online.net).

  • I find the performance of this website extremely bad.he shortest way to say what I was thinking ^^

    Perhaps Tom could tell us more about the website infrastructure ?

  • Hi there,

    Just wondering if the forum (and perhaps the whole website) could be a little bit "nervous" (between 1s and 4s for a page to load).

    I know it's a matter of monthly cost, so just asking (dedicated servers are now very affordable).

    Anyway, it doesn't prevent me for working with C2 and finding ressources I want, the manual is great, and the atmosphere here is very nice ;)

  • Hi there,

    French developper searching for easy tool to make/prototype games. Used to Flash but wanted to try a fully integrated IDE. Stencyl seems a bit complex, Game Maker looks great but more complex/expensive than C2.

    I work in my own webagency in Tours/La Rochelle (France) with my associate mate and we want to give a try to make games.

    So here I am I hope to have something to show you sometime :)

    PS : C2 community looks amazing !

  • Update : it seems like bugs in Chrome and Firefox, because it works on IE (wich is more laggy but it's another topic).

    Is seems a bug due to music in Chrome : https: // code . google . com/p/chromium/issues/detail?id=324652

    Not sure for Firefox.