0 Favourites

Is it possible to make project changes editing the runtime?

  • I wonder if is possible to edit the runtime (not minified) to change the project, in case the client doesn't want to buy the source code (CAPX with comments) but at the same time wants to have freedom to make some modifications using his own programmer. Is it possible?

    I have one more question about the runtime: Is it possible to remove any reference directly to the "Construct2" (not about to the abbreviations (e.g. "c2")) in the runtime when it is not minified? I think not, but I needed to ask it.

    Thanks in advance.

  • In theory, yes. But that would be highly un-practical. C2 is designed to program your game using the editor.

  • In theory, yes. But that would be highly un-practical. C2 is designed to program your game using the editor.

    Thanks, glerikud

    I'm trying to sell the source code but I don't want to force him to buy it. I offered myself to make any necessary adjusts but the client don't want to be dependent on me, that is fair enough. So, I can tell him that it is possible to make only small changes or great modifications too through the runtime?

    And about the Construct 2 references in the runtime code, do you know if it is possible to remove it? I don't want him to know that while we are in negotiation.

  • The issue here is that the runtime code is made by a program, so it is basically unreadable and designed to be modular, I don't think that would work.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Sorry for asking for a non-conventional subject but I really need a confirmation if is possible or not to make changes in the project through the runtime's code.

  • This is why I said "in theory, yes". But that would require to rewrite almost everything (for removing references to C2). To even make changes to the game in that code, big parts have to be rewritten. Just as Whiteclaws said it is basically unreadable. Your employer would be better off to hire you to maintain the game instead to have the in-house programmers commit suicide while tinkering with the program made code.

    The short answer for your questions:

    • Removing C2 references: Forget it, doesn't worth the time/effort.
    • Editing the game from exported code: Nope, if they want source access, provide them the capx.
  • Yes, it is possible.

    One of solution is executing javascript code from official browser object -

    1. load external javascript code ( a string ) from AJAX

    2. execute javascript code by action of official browser object

    3. call C2 function by

    c2_callFunction("name", ["param1", "param2"]);[/code:3oxavhtn]
    
    This solution only can controls objects by official function call.
  • Lots of users are worried about their projects being reverse-engineered, so the exported runtime code is designed to be as difficult to work with as possible, so making any non-trivial changes to it is probably not practical.

    Minification removes all references to Construct/C2, so why not use that as your "remove references" method?

  • Lots of users are worried about their projects being reverse-engineered, so the exported runtime code is designed to be as difficult to work with as possible, so making any non-trivial changes to it is probably not practical.

    Minification removes all references to Construct/C2, so why not use that as your "remove references" method?

    Because they want to edit the runtime for themselves and I cannot minified it for this reason.

  • Well, as I pointed out, that is very difficult since we've deliberately designed it to make that hard.

  • And hopefully, for users such as myself, it stay difficult and hard.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)