wShuher's Recent Forum Activity

  • but not my employer's... :( and he doesn't want to change any settings

  • i'm using HTML5 export. in my project there is many sounds and pictures. about 4000. and data.json file became 5.5mb. compressed data.json.gz is less then 1mb. while data.json is loading, you see a black screen. it would be great, if Construct could compress and decompress data.json.

    Tagged:

  • so, i think it's not the app ID should be changed, because i did, and it didn't work. i even changed the name of the minigame to louncher's name. not working.

    but i noticed in Chrome Dev Tool something. there is a postfix in c3-localstorage(you can see it on screenshot at my first post). so i changet it in data.json.

    and it works now. does anybody knows how to change it throu Construct, rather then directly in json?

  • I believe you can only access local storage data from another game if it's on the same domain, and if it has the same app ID.

    If you need to use different app IDs in your minigames, then they'll not be able to share local storage. You will have to send data to services like Firebase, Playfab, or store it on your own web server.

    thanks, i'll give it a shot

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi, everybody

    in my project a large amount of minigames. and because there are too many of them, project became heavy, and loading time is slow. so i decided to create a launcher. the problem is how to transfer variables across minigames. for example Music On/Off, users progress, ets.

    i googled that two pages share the same local storage if their origin (domain) is the same. but cant really make it happen...

    launcher

    minigame

    in google chrome i can see the "path" key is stored, but i can't reach it...

    here you can try the result https://youthful-turing-643bff.netlify.app/

    here is capx files. 0 - launcher, 1 - minigame https://dropmefiles.com/B1DEk

    any help will be appreciated

  • hello, community

    im wondering, is there a way to get all sound's names and load them to array or something?

    Tagged:

  • i dont think it is a browser extension, because i tested it on a few devices. so i resolved it

    in file c3runtime.js find:

    URL.revokeObjectURL(d)

    URL.revokeObjectURL(d)

    URL.revokeObjectURL(b)

    URL.revokeObjectURL(this.aI)

    and replace it with:

    setTimeout (() => {

    URL.revokeObjectURL(d)

    } , 200);

    setTimeout (() => {

    URL.revokeObjectURL(d)

    } , 200);

    }};

    setTimeout (() => {

    URL.revokeObjectURL(b)

    } , 200);

    setTimeout (() => {

    URL.revokeObjectURL(this.aI)

    } , 200);

    in file main.js find:

    window.C3_IsSupported&&(window.c3_runtimeInterface=new self.na({Lg:!0,Mg:"workermain.js",Ta:["scripts/c3runtime.js"],ub:[],ge:"",he:"module",Ig:"scripts/",ed:["box2d.wasm.js"],fe:"html5"}))

    and replace it with:

    setTimeout (() => {

    window.C3_IsSupported&&(window.c3_runtimeInterface=new self.na({Lg:!0,Mg:"workermain.js",Ta:["scripts/c3runtime.js?version=1"+Math.random()],ub:[],ge:"",he:"module",Ig:"scripts/",ed:["box2d.wasm.js"],fe:"html5"}))

    } , 200);

  • thanks, that helped.

    and i added some scc to simulate loading progress

    <div class="load">
    <img src="icons/loading-logo.png" class="myloadingImage">
    <div class="loader-border">
    <div class="loader"></div>
    </div>
    </div>
    <style>
    .load{
    	position: absolute;
     	top: 50%;
     	left: 50%;
     	transform: translate(-50%,-50%);
    	z-index: -1;
    }
    .loader-border
    {
    	border: solid;
    	height: 16px;
    	width: 340px;
    }
    .loader{
     width: 4px;
     height: 16px;
     background: red;
     position: absolute;
     animation: 22s in-out forwards;
    }
    
    @keyframes in-out {
     0% {
     width: 0px;
     }
     5%,10% {
    	width: 10px;
     }
     40%,60% {
     width: 200px;
     }
     80%,85% {
     width: 280px;
     }
     100% {
     width: 340px;
     }
    }
    </style>
  • hello.

    running game on Chrome, Firefox and Android browsers is ok, but on safari i get this

    Made with Construct 3, the game and app creator :: https://www.construct.net c3runtime.js:836:459[C3 runtime] Hosted in DOM, using module scripts, rendering with WebGL 1 [Apple GPU] (standard compositing) blob:http://192.168.1.100/e5173aba-2187-43a9-a8c4-6ef79475db5bFailed to load resource: 操作を完了できませんでした。(WebKitBlobResourceエラー1) blob:http://192.168.1.100/02436e60-982b-423d-a185-fc57fb7d4018Failed to load resource: 操作を完了できませんでした。(WebKitBlobResourceエラー1) blob:http://192.168.1.100/e5173aba-2187-43a9-a8c4-6ef79475db5bFailed to load resource: 操作を完了できませんでした。(WebKitBlobResourceエラー1) blob:http://192.168.1.100/02436e60-982b-423d-a185-fc57fb7d4018Failed to load resource: 操作を完了できませんでした。(WebKitBlobResourceエラー1) shell_printErr — 36f90d42-03ff-4846-ae5d-ffffaee009ba:371failed to asynchronously prepare wasm: NotFoundError: The object can not be found here. shell_printErr — 36f90d42-03ff-4846-ae5d-ffffaee009ba:371failed to asynchronously prepare wasm: NotFoundError: The object can not be found here. shell_print — 36f90d42-03ff-4846-ae5d-ffffaee009ba:368NotFoundError: The object can not be found here. shell_print — 36f90d42-03ff-4846-ae5d-ffffaee009ba:368NotFoundError: The object can not be found here. shell_printErr — 36f90d42-03ff-4846-ae5d-ffffaee009ba:371NotFoundError: The object can not be found here. shell_printErr — 36f90d42-03ff-4846-ae5d-ffffaee009ba:371NotFoundError: The object can not be found here. abort — 36f90d42-03ff-4846-ae5d-ffffaee009ba:2009Unhandled Promise Rejection: abort({}) at jsStackTrace@blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:1069:24 stackTrace@blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:1084:26 abort@blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:2003:56 blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:1560:18 promiseReactionJob@[native code] If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information. abort — 36f90d42-03ff-4846-ae5d-ffffaee009ba:2009Unhandled Promise Rejection: abort({}) at jsStackTrace@blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:1069:24 stackTrace@blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:1084:26 abort@blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:2003:56 blob:http://192.168.1.100/36f90d42-03ff-4846-ae5d-ffffaee009ba:1560:18 promiseReactionJob@[native code] If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

    and i get this error only at first run. is i refresh window, it will disappear. so, i googled this, but can't understand where i should make a delay... any help?..

    here is c3runtime.js

    Tagged:

  • did you solved the problem?

  • Add a "press to start" message before starting the video.

    that is not good for my employer...

    i exported that video as a sequence of images, and created a sprite with that sequence

    thanks anyway

  • thanks for reply, Ashley

    the thing is, i need a video played as a logo, right after the application is loaded. may be any ideas on that?

wShuher's avatar

wShuher

Member since 27 Jan, 2021

None one is following wShuher yet!

Trophy Case

  • 3-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies