CGamez's Forum Posts

  • Hello,

    I'm looking for a freelancer who can help me out with a bug in my project.

    Link to the problem:

    construct.net/en/forum/construct-3/how-do-i-8/fix-invalid-size-error-145310

    Of course I can provide more information, like a link to the project to reproduce the error... Just send me an eMail and we can discuss everything.

    It's just a one time offer, but if everything works great, I will come back to you with more offers.

    Pricing:

    Just let me know how much you want.

    Contact:

    supportyan@creative-gamez.de

    Thanks for your help!

  • Hello,

    I've exported my game to HTML5 and sometimes I start it it works fine, but sometimes it just shows a black-screen and the browser-console tells me:

    Error: invalid size (in c3runtime.js)

    Code looks like this (in c3runtime.js):

    .....

    g_zw.g_Dj()}g_aiY(g){this.g_aip=!!g.isFullscreen,this.g_uo(g.innerWidth,g.innerHeight,!0),this.g_zw.g_Dj()}

    g_uo(g,_,e=!1){var t=Math.floor;if(g=t(g),_=t(_),0>=g||0>=_)throw new Error("invalid size");

    .....

    What does that error mean?

    Best regards.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello annnnnyo,

    it depends on where you want to upload the game.

    If it's just for a homepage, the html5.capx is the only one you need.

    The mobile...capx are for mobile versions I guess.

    Just open them and maybe you will also see the difference.

    To play the game you need to export the .capx with Construct and there you can choose HTML5 (for web / homepage) or other versions like mobile...

  • Hello,

    I'm using the contruct 3 web-engine.

    I have a very large project, for example the largest Event-Sheet has about 800 lines/events.

    If I click on one of these big eventsheets, sometimes the engine freezes for 1-5 minutes! Also copying anything from these big eventsheets can cause freezes.

    The next problem: When I want to export the project (just for HTML5), the engine crashes completly and the browser tells me to restart or quit...

    This happens like 4 of 5 times when I try to export the project.

    Maybe it's just a simple browser-setting and you can help me out with that.

    I'm using the newest version of firefox. PC-specs should be more than fine (i7-7700k, 16gb ram, nvidia gtx 1060 with 3gb ram, win7 64bit).

    Best regards.

  • Hello,

    I know I have to post bugs on github, but since I don't have an account there, maybe someone will post the bug there who have an account, or maybe the staff can check it out here:

    If you have an image (in my example called image1.png) and you use it for a TiledBackground but you also use it for a Sprite (The Sprite uses the image for frame1 and the Sprite also has other frames with other images).

    Now you export the game to html5-web and choose deduplicate, recompress, minify. Now you should have your exported game with the spritesheets. If the image "image1.png" is in a spritesheet with other images, the TiledBackground shows the whole Spritesheet when playing the game...

    This always happens if you use the same image for a TiledBackground + Sprite and the image is in a Spritesheet with other images after exporting. You can fix the problem by not deduplicating images when exporting.

    Hope you can fix that problem so I can use same images in tiledbackgrounds / sprites and deduplicate at export-settings.

    Version: newest Version of Construct 3

    Best regards.

    Tagged:

  • Ok thank you for the help, just one more question :)

    What do you think would be best to use for "max spritesheet size"? Higher or lower? Just for the loading / downloading.

  • I also found this link now (because of your link):

    construct.net/en/tutorials/offline-games-construct-8

    But there I have one question:

    It says that I get offline.js and sw.js

    I can find the sw.js but only an offline.json or in /scripts/offlineClient.js

    offline.js = offline.json?

    To not allow offline playing I can delete the sw.js + offline.js (or offline.json?)

    Should this also fix the problem with the updates?

    Best regards.

  • Thank your for the links!

  • Hey,

    thanks for the response, but that doesn't work for me. I've tried it and that makes a game like this unplayable since you need to change scenes multiple times per minute... And there you don't want any loadings between them.

  • Hello,

    I made a simple 2D game with a lot of images (mostly tiled-backgrounds, but also many sprites). Since I didn't want multiple layouts (loading between scenes), I just put everything in 1 layout. This works perfect, the only problem is the loading of the game. I have a loading-layout, start-layout and game-layout. In the loading-layout I preload some of the images. When it's finished I move on to the start-layout where I load some game-data. After that I move on to the game-layout. This step needs a bit of time, since everything needs to be loaded before the layout is displayed.

    How can I get there more performance / reduce loading? All images have a total size of 30mb. I already made them as small as possible...

    Thanks for the help!

    Best regards.

  • Hello,

    I've made a little clicker-game with construct 3.

    When exporting, I choose the following:

    Kongregate -> deduplicate / recompress images, minify script.

    Everything works fine but everytime I publish a new version of the game, some of the images are completly wrong... I need to reload twice with "F5", then everything works fine again.

    What I mean with the images shown wrong: For example there is a list of 10 avatars (avatar1, avatar2 ...). After update, there is the image of avatar5 instead of avatar1 and so on... All 10 avatars using the same sprite (avatar1 = frame1, avatar2 = frame2 ...)

    Btw: what exactly is the difference between exporting for kongregate or html5 web? I guess it's the same?

    Hopefully anyone can help me out with this annoying bug...

    Thanks!

    Best regards.

  • Hey,

    I want to show you my newest minigame creation with C3:

    Name: Idle Mons

    Platform: Web (Android-Version coming soon)

    Genre: Clicker, Idle

    Engine: Construct 3

    Link to the game:

    https://www.kongregate.com/games/CreativeGamez/idle-mons

    In the game you need to defeat pokemon-like monsters.

    To deal damage you need to upgrade avatars to do DPC (Damage per Click) and DPS (Damage per Second / Idle Damage). From every bossfight you can drop monsterpoints to collect monsters and evolve them. Upgrade artifacts and skills to do even more damage.

    Have Fun!

  • Hey,

    thank you for the help!

    So the response from the AJAX-Call should look like this?

    {"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[["{\"c2array\":true,\"size\":[10,1,1],\"data\":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}"]]]}

    And then I can do this:

    myArray = load from JSON string AJAX.lastdata

    myArrayInArray = load from JSON string myArray.At(9)

    Should this work?

    Best regards and thank you!

    Edit:

    Tested it like described above and it worked :)

    Thank you for the help!

  • Hello,

    I have a question to Arrays in C3:

    I made a function to save some Userstats in a mysql database.

    To load these data, I just make an AJAX request and the answer will be a C3-Array like this:

    {"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}

    So I do something like this:

    "myLoadArray = load from JSON string AJAX.lastdata"

    Then I can access all the data from the "myLoadArray".

    This works fine.

    But now my problem:

    I also save complete arrays...

    For example in array.at(9) I stored a full array, then it would look like this:

    {"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[["{"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}"]]]}

    And this doesn't work. I pretty sure the problem are the quotation marks.

    But how can I fix that? Working with "'" + """ like this:

    {'c2array':true,'size':[10,1,1],'data':[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[['{"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}']]]}

    also doesn't work...

    Thanks for your help!