rho's Forum Posts

  • if the data is being saved as a textfile to the server, why don't you have your clients access the textfiles directly via ajax.. just make sure that they are saved in an accessible location

  • ggibson1, interesting that it suggests 58%... so let me return the below link which states 25% usage

    http://gs.statcounter.com/#desktop-brow ... 307-201407

    Don't you love these different analysts. Either way.. I think we're making the same point... being incompatible with IE will reduce your available market on the desktop which can never be a good thing.

  • I'm working on an MMO-RTS, and I'm just using C2 for the client. server is all custom. C2 is well suited for client development. not sure if this is more than a proof of concept, but it's a learning experience so far.

    I know you can use a C2 developed host as a server as described, however I feel that's not scalable. I also strongly feel that it's easier to code complex logic in a proper language than in C2 - at least for me. This is doubly so when you start to use sql databases. Use the right tool for the right job.

    I'd also flag that as webrtc is not supported by IE, it would seem to me to be bad practice to dependent on that. I know it's only 25-30% of the desktop market.. but still. if you're doing an android game.. then clearly this is not an issue.

  • as said, a quick search will find you lots of options

    there's webrtc for realtime comms, if you don't want to support Internet explorer

    there's scirra's hosted multiplayer plugin and server

    there's the ajax plugin which makes RESTful API's easy for turn based or asynchronous games

    then there's websocket as well.

    so a lot depends on what you want to do )

  • I caught this error when I ran the following command.

    add key "timer" with value max(0,DATA.Get("timer")-1)

    The problem arose as I had previously defined the contents of DATA.get("time") as an int, and I had changed it to text. My mistake. Either way, there's a casting issue and this throws up the following error when executed in the browser. So the error could have arisen because of the subtraction, or the MAX function. This might be useful to other people who are trying to decipher the error. If you see an assertion error, check if you are misusing a text variable. It might be worth to Ashley or the developers to put in an error check to help catch the problem or to help a developer diagnose the failure if they've made the same mistake.

    Assertion failure: Calling expvalue.set_float without number type

    Stack trace:

    Error

    at assert2 (http://localhost:50000/preview_prelude.js:16:4)

    at ExpValue.prototype.set_float (http://localhost:50000/expressions.js:788:3)

    at SysExps.prototype.max (http://localhost:50000/system.js:2054:3)

    at ExpNode.prototype.eval_system_exp (http://localhost:50000/expressions.js:255:3)

    at Parameter.prototype.get_exp (http://localhost:50000/eveng.js:2049:3)

    at Action.prototype.run_object (http://localhost:50000/eveng.js:1824:7)

    at EventBlock.prototype.run_actions_and_subevents (http://localhost:50000/eveng.js:929:4)

    at EventBlock.prototype.run (http://localhost:50000/eveng.js:886:4)

    at EventSheet.prototype.run (http://localhost:50000/eveng.js:224:4)

    at EventInclude.prototype.run (http://localhost:50000/eveng.js:2318:13)

  • I love Angryfly's work.. but the links there will not work.. but you can find his stuff at

    https://sketchfab.com/angryfly3d

  • Problem Description

    Round2 <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> System-create does not seem to be working on the exported and hosted version. Taking your advice Ashley, here is a stripped down version that replicates the problem. It is not a "clean build" as I know this configuration normally works... that avoids the bug.. the bug is clearly somewhere else and is likely an edge-case of some sort, or more likely something did not get cleaned up correctly in the tool. I really doubt it's system-create. Please note, I have successfully exported many C2 programmes so if there is something there that is not obvious that may be missing.. I haven't a clue where to look. I thought it was simply export and copy to location?

    Attach a Capx

    http://149.157.140.178/debug/index.html

    http://149.157.140.178/debug/debug.capx

    Description of Capx

    The capx has 1 event, includes 3 objects. Total size of capx... 7k

    Steps to Reproduce Bug

      export copy to server click link.

    Observed Result

    a white screen, one piece of text top-left.

    Expected Result

    It should change the text on a preloaded text object, create a text object and set it's text, create and resize a sprite. When started, the screen should go black and a text object on the right hand side should appear with text saying "hello text1". there will be a text object top-left that is preloaded and will be set to layout size.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (??)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    windows 7

    Construct 2 Version ID

    175

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I got around this my randomly tweaking things, removing things, ya ya ya...

    however I hope someone looks at this issue... if you can't trust the local copy to behave the same as the remote copy, then the fundamental concept of Scirra, or any development tool like this, is flawed. I can accept random errors and dependencies causing issues, but the discrepancy between local and hosted versions really has hurt my confidence in the tool.

    R

  • thanks... it was a large project and I just couldn't see it in the big list... thanks!!!

    R

  • How do I find the plugins/objects that have been included in my project, and can I remove them if I don't need them. When I mean plugins, I'm also talking about the standard objects such as mouse/keyboard/ajax, etc.

    The manual is confusing and I'm sure I'm missing something simple. Any help would be appreciated.

    R

  • Problem Description

    I have been working on a project that will have some server related elements (ajax) and things were working fine and I had loaded test versions on a server and everything worked fine. Recently things have stopped working on the version exported and hosted on the server. Most specifically "system create" does not create things, but other things have been noted. If an sprite/object has been loaded onto the layout in advance, then it can be accessed and utilised. the only thing i can think of that was changed significant was the addition of the browser element so that i could look at the query string.

    Attach a Capx

    http://149.157.140.178/nebula/index.html

    http://149.157.140.178/nebula/debug1.capx

    Description of Capx

    I am attaching a stripped down version of my programme. it has 1 event sheet with 4 events. it should create 3 objects and utilise 1 existing. i am also providing a link to the hosted version. the capx does exactly what it wants locally and doesn't work when hosted. I have tested this on chrome/ie11/firefox and i am using a win81 laptop. I do not have another machine to test it with at the moment. I have not been able to remove all the things like browsers, keyboard, mouse plugin objects as i do not know where to find them to remove them.

    Steps to Reproduce Bug

    run the weblink for index.html

    Observed Result

    the objects that need to be created do not get created and all you see is some pink text in the corner on a white background

    Expected Result

    you should see the pink text on a black background, a piece of text that gets shows the tick count, incremented every second, and another piece of text that floats up off the screen.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    175 but was on 173 when i first noticed this

  • thanks... must be me... no addon's.. plain vanilla ie11

  • This could be me but the forum is no longer working under IE11. I noticed it a couple of days ago but I was away. I've cleared the cache but the same behavior exists where I cannot see the content reliably of the posts... generally can't. All works fine under chrome.

    so in case it is more general, i thought i'd flag it.

    R

  • thanks, so it should work perfectly for functions then that do not use globals

  • Hi,

    If I am using a lot of event sheets and I save as a project, I can see each event sheet as a separate file.

    If I am working on a new project but would like to reuse my existing events, can I just copy the event file over to the corresponding directory and hope that C2 will pick it up and incorporate it in?

    I've not tried because I'm pretty sure some hacking will be needed to make it visible. it might be simple but once you go down that road you begin to break the C2 flow and there might be hidden dependencies that I may miss?

    Would this work reliably? or at all?

    R