Proxymity's Recent Forum Activity

  • There is an issue with my router or wifi preventing me from previewing.

    Is there a way to preview by plugging my phone into my laptop?

    What mobile OS do you have? iOS, Android, WP, ... - and what OS is on your laptop?

    Depending on which constellation of OSs you got, normally theres always a way to build a tethered connection between your phone and your laptop/computer (not sure about Samsung, Sony, ... devices - they don't even know what they are doing on mobile market - so that feature may be disabled without rooting it).

    If you got your tethered connection built up via micro-USB/Lightning/whatever-cable, run 'ipconfig'/'ifconfig'/whatever-command-outputs-your-computers-IP on your desktop/laptop and write down the IP dedicated to the tethered network (not likely the 192.168.x.x- address which is normally your home-network). Enter that IP on your mobiles browser while its beeing tethered and see what happens.

    This will be a direct-access onto your device. Maybe you also have to adjust the selected port on your desktops/laptops firewall (if any is configured). Keep in mind that this is _not_ comparable to a WAN-remote-connection - some things might not work - or will work but later not.

    Best practice for you could be possible resetting your home-router and reconfiguring it properly.

    Have a great day,

    Proxy

    # Edit: if you are running Windows 10 on your laptop: go to Settings (the metro-app-ish one) and enter "Hotspot" in the search bar. There you got the menu "Change mobile hotspot settings" - just hit the on/off switch to activate an ad-hoc network from your laptop (if your WIFI-card supports this!). SSID and its password are displayed in the middle of the page (to change those you have to disable the hotspot and re-enable it after doing changes). This is possibly the easiest way.

    You might want to take a look into this PlugIn:

    https://readymag.com/valerypopoff/valerypopoff-js-plugin/

    Using the PlugIn will make your life easier when it comes to pre-provisioned *.JS files.

    Depending on what kind of 'app' - or let's say: on what platform & architecture the final 'app' should run, I can recommend you using NodeJS for that project. Take a look at the CLI 'zeit/pkg' (https://github.com/zeit/pkg) which puts your website into a chromium-engine powered 'container' and creates an executable out of it.

    The easier and friendlier way would be 'Electron': https://electronjs.org - also check this one out.

    Have a great day,

    Proxy

  • Hi risto,

    you possibly could mix NWjs in ( https://www.scirra.com/manual/162/nwjs ) which is capable of writing data to a local (or remote-connected) storage medium. Using NWjs would force you to get away from AJAX write operations since it only reads data in this constellation.

    Otherwise you could setup a local dev-environment, using your local Node/PHP/whatever back-end for debugging purposes (depending on "what" you want to achieve in your prod-environment). There are some toolkits which feature out-of-the-box configurations (depending on your OS).

    Haven't worked for quite some time with C2, but I think just throwing out a *.JSON (or of course *.CSV or *.TXT or [...]) would be the easiest option since vanilla HTML is capable of saving files (in other words: ready up the content to be saved and trigger a file-download).

    Have a great day,

    Proxy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cheers RiddleQs,

    check this post:

    Have a great day

    Proxy

    #edit: also this one could come in handy:

  • Hi!

    Hmm if I understand it right, you could possibly:

    Create a "default" sprite for your player (the dot) and an additional sprite "spike". On collision with an another object, you could "pin" (behavior) the sprite "spike" on your "dot"s position, using its imagepoint and setting up an angle. Should work fine.

    Have a great day

    Proxy

  • Brilliant, thanks for the detailed and informative reply!

    No prob, helping out, whenever I can <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    For the backoffice probably ill use a separate grails based system + mysql as you can develop an enitre backoffice in half a day, and mysql is a better option for finanical transactions due to its referential integrety.

    You can also make usage of multiple databases (and even use SQL and NoSQL together); there are many plugins for that.

    The only issue I have found, without a solution yet, is now to have a clustered multiplayer object on a single server. I.e. if you use the node cluster feature, it creates multuple node child processes using fork. If I have a player connected with a socket in one child process, he cant access the mulitplayer game instance running on another child process.

    Thanks for explaining me a problem, I never encountered before (never needed to pass handshakes before). A quick research at the plugin of my trusts docs:

    1. Get pm2 asap (a great process manager for node), if not already done: http://pm2.keymetrics.io

    2. Learn its usage (done in 5 minutes): http://pm2.keymetrics.io/docs/usage/quick-start/#usage

    3. Just start your node server again clustered, with using pm2

    Some reported, that it works (when they got problems without using pm2, like you had), some still have issues (https://github.com/Unitech/pm2/issues/389).

    Since I'll encounter this problem too, at some point, I'll investigate it later. Since my current project has at least 2 different backends, I possibly could (if no solution fits) make a 3th one, which is exclusively used for communication between clients and servers and simply forwards over data between backends.

    However, Ill checkout colyseus first - nice one!

    It's a great product, but lacks on documentation somewhat. By downloading it, there arent really things like broadcasts (to all clients) included on its node side (you have to implement those by yourself) - if you need help or have questions about it, feel free to ask.

    Have a great day,

    Proxy

  • Hi nutmix,

    tl;dr: use NodeJS - never ever even think about some other way (incl. services like Photon, etc.; Java, PHP, neighbors cat or whatever comes into mind) to realize a real-time-multiplayer backend! Just don't (speaking of the "state-of-the-art" in 2017)! If you ignore my suggest and do, you'll regret it some day as bad as possible.

    if you have the knowledge and ressources to eigther get a hosting service or host a server yourself (a virtual one, because a dedicated one would be an overkill for this) (think about security, etc.!), then I'ld suggest you in any case the usage of NodeJS.

    Not only, that you can literally do anything with node; its powerful, super fast (heres a comparison with Apache, for example) and scalable untill you go nuts.

    You need a database for your project/Node backend? Download MongoDB (its free), and create a RESTful api (commonly "express" (routing/http middleware) or a CRUD interface will let your backend instantly turn into something dynamic, accepting requests from the outside (clients, ...). Combined with, e.g. "mongoos" (ORM mapped gateway/interface for MongoDB, which makes easy stuff even more easyier - like creating schemes for your tables, etc.), you then will have everything you need, nearly out of the box.

    Great thing about node is, that there are many tutorials... Ild suggest you to start with "best practices" for node in general; this will show you how node works and where you have to pay attention in your code (especially regarding performance and stuff). With some little tweeks, a node server can be a powerfull backend for everything, regardeless if you communicate over http/https or with sockets, etc.

    Colyseus is, for example, a great open source framework (not only for games): http://gamestd.io/colyseus/ (git: https://github.com/gamestdio/colyseus). Theres also a plugin for Construct 2 and a documentation for it (the dev also got a channel on slack, if there are any problems/questions). Btw: I'm also using Colyseus for my current project - its one of the best frameworks (when it comes to real time communication (its based on/using socket.io - https://socket.io/) I've discovered so far.

    Colyseus only offers websocket communications - if you, for example, also need a http-support (or web-frontend in general), you could implement your own middleware or use an another framework (like: total.js (https://docs.totaljs.com/latest/en.html ... %20started) - its also great, fast, open and supports websockets, as well as ajax, etc.)... important (at least I'm really suggesting it): use a socket-based communication for your clients. With the help of a REST api (AJAX), a real-time multiplayer game is also possible, but sockets are mind-blowing fast and easy to use.

    Within the past years Ive nearly forgotten the existence of any other language beside JS, because node is the only thing I'm using - because it covers literally anything (I need).

    2. node.js

    c) very basic DB support?

    NodeJS itself has no DB support, correct. But with a middleware/driver (

    Starting from local plain data files like csv or binary NoSQL (serversided - and clientsided, if you got an api server or something) up to SQL (MSSQL, MySQL,...) and NoSQL (MongoDB, Postgre,...) - or your very own developed database type/server, anything can be connected and used in your NodeJS application/project.

    For example: searching MSSQL interface? Click here: https://www.npmjs.com/search?q=mssql&pa ... ng=optimal

    2. node.js

    d) no backoffice UI support.

    Same as above: NodeJS only got its console by stock, where you can console.log('I am a white line of printed text').

    Depending on what kind of UI you want to have:

    • WebUI: use "express" as middleware for the web; create a login routine for admins/supporter, create your HTML files for admin UI, route them with express (taking care of auth-token or similar within routing) and you got your admin WebUI
    • Want to write your UI in any other language? Then do the same as above, without HTML files, create an api (RESTful, or a CRUD support, etc.) and let anything speak with your backend, anytime, anywhere (need cors? Also no problem, express features it out of the box)
    • Even if you need some other communication between backend (or db, or whatever) and backoffic - I'm sure that there is at least one (simple) way of doing so

    Also, same as above, take a look here: https://www.npmjs.com/search?q=backoffi ... ng=optimal

    2. node.js

    e) researching this, it seems node is single threaded. Thus critical game timers would wait on the same event queue as incomming messages. Nodes "solution" to this is to cluster addtional forked worker processes. Inter-process communication between these forked processes goes through the parent "master" in the form of messages, which is not scalable. The general solution is to have another layer of servers with the game logic, and use RPC or sockets to connect the "front end" node processes with backend game logic servers. Checkout pomelo for an example of this https://github.com/NetEase/pomelo/wiki/ ... k-overview

    Again, same as above (what suprise <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">):

    Vanilla NodeJS is always single threaded. But... (I think you know what follows), there are (more than one) solutions.

    NodeJS already has a built in cluster-feature (docs: https://nodejs.org/api/cluster.html#clu ... w_it_works) with which you can, e.g., create a highly scalable webserver (Tutorial: https://www.sitepoint.com/how-to-create ... your-apps/).

    You could also use development/cli plugins, for, e.g. running multiple instances paralell, which load-balances themselves, etc... there are than enough ways.

    Even the ablity to make JavaScript asynchronious is possible...

    With the depency "pug" you can use the HTML-template engine Jade (do I have to say "out of the box" again?) for your whole Web-frontend (or parts - or just single site or a single url), ...

    How I said earlier: for me, NodeJS covers anything I need - and is the "type of server" I recommended everyone who asked in the past years.

    Hope that I helped you out a bit - if I wrote bullshit on some part (not readable/understandable/unclear) or if you got more questions which I possibly could answer, just answer back here or write me a pm - I'll try my best! <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    Have a great day,

    Proxy

    Edit: for my current project I created two backend servers, "logic" and "storage", which are communicating together. If a client requests for example something out of the database, the request is routed:

    Client -------request-------> backend(logic) -------request-------> backend(storage) -------request-------> MongoDB

    and the according response is delivered:

    MongoDB ------response-----> backend(storage) ------response-----> Client

    backend(storage) has the chance to talk directly with the client, when backend(logic) also transfered its ID to the backend(storage) - so there is no impact on backend(logic) for DB-related requests - as long as there is no data-processing needed (motion sync, calculating "damage done" after attacks, etc. is routed over the backend(logic) - otherwise there would be no "cheat/inject protection", etc..

    Just for giving you a small example - hopefully its understandable what I wrote (my english isnt the best <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">).

  • Hi again ;D

    1. If we open "C2" JSON can we call the contents between {"c2array":true,"size":[2,2,2],"data": and } a "real" JSON?

    [[["1","Hello"],["3","Array"]],[["2","World"],["4","Editor"]]][/code:pzgkwhjj]
    

    Well, as I said, I havent worked with C2 for a few months now - maybe I'm wrong - Ill check that out if I find time for that

    2. Well, can you use Android version or do you need exactly HTML5 version?

    Even worse: iOS (company devices - I'm also using them) .

    Cheers,

    Proxy

  • Cheers PaulPoy!

    This was one of those "awfull" moments, for me, when you realize, that something, you worked on for hours, and still do, basically already exists.

    Search functions in forums are a great feature......

    Thanks!,

    have a great day,

    Proxy

  • Cheers!

    Great tool, editing an array is, compared to existing ones found in forums, something fun!

    Some questions:

      I think, that "save" saves the array in a C2 compatible format - its not really that hard to convert it to a "real" JSON (maybe I'm wrong, havent worked with C2 for quite a while - but the syntax of a "C2 JSON" differs on some points, compared to a "real JSON"), but it could be possible to also give the user that option?
      Could it be possible to provide a web based app (as a html project)? Maybe as a separat purchase/article in store or with your credits in the splash and on the bottom line or something.. since I'm working on mobile devices from time to time, having such would be nice. The app could be published by anyone for anything, that might be the deal breaker, but.. well.. maybe theres some way ;D

    Have a great day,

    Proxy

  • Hi!

    Im seeking a dev for, let me shorten it up: a character "barebone". Means: I need a universal "character-template" which can be costumized by the player by given tags, such as: if attackrange=X, then the final character needs to be X pixels away from the target to attack. Or things like costumizable attributes (if character buys skill XY in shop, then highen its attack/lower cooldown, etc.).

    I roughly know how to achieve this, but it would be great to get a "well coded" template for that (regarding performance and stuff).

    All characters, which are created out of this template every round, are beeing controlled by players (sidescroller, versus game) - so no AI (or basic elements to enable it) is needed.

    Does someone can PM me with details - or got a simple tutorial for this? This seems the best way (for me) to achieve a character selection with less code (to name some gamed: Leagues of Legends, World of Warcraft or any other game where a character meets different classes... dont want to write the whole code for every possible character... taking a "template system"would be a better deal ;D).

    Best regards,

    Proxy

  • Try:

    NWjs | Run "start" for a CMD and

    NWjs | Run "start pathToBatFile" for a batch-file

    for example:

    NWjs | Run "start c:\mybat\batch.bat"

    You, sir, are a hero! <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    Thanks! Works totally fine.

    [quote:1xceka4q]Run file

    Run the file at an existing file path. This is analogous to double-clicking the file in the OS file explorer. For executable programs, it will attempt to run the program; for other file types, it will open the default associated program, such as the system default image editor if an image file is given.

    https://www.scirra.com/manual/search?q=nwjs

    Would be worth mentioning there Ashley ;D

    Have a great weekend

    Proxy

Proxymity's avatar

Proxymity

Member since 24 Oct, 2014

None one is following Proxymity yet!

Connect with Proxymity