DutChen18
DutChen18
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
Yes, that is correct. Cheerpj only supports Java 8 at this time.
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
Please share a screenshot of your browser console window and network tab, to see if there's any errors there.
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
That's a warning with from http-server, outside of your control, it should still work.
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
There is no error message there. Those messages are just telling you that it's serving the file correctly.
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
I don't know what your app is supposed to do, but at this point the jar file is definitely being loaded by cheerpj. If there's any other issues please tell me what is the expected behaviour and show how it's not working.
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
The way you did it without cd is fine, please now send a screenshot of browser console and the network tab. Make sure you're not getting any other errors.
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
I do not see any 404 in the server logs. So if it doesn't work still that's a different issue.
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
Yes
94 replies
LTLeaning Technologies
Created by haxtq on 6/30/2024 in #support
CheerpJ can't get my game onto a site
You're running the server from the wrong directory here. Make sure your current working directory is C:\Users\alfee\PlatformGameProject .
94 replies
LTLeaning Technologies
Created by Awesome on 5/11/2024 in #support
Compatibility with the typeof, instanceof keywords
instanceof and _typeof are now available in nightly.
object->instanceof<client::String>();
object->_typeof();
object->instanceof<client::String>();
object->_typeof();
12 replies
LTLeaning Technologies
Created by Awesome on 5/11/2024 in #support
Compatibility with the typeof, instanceof keywords
After some more discussion we have decided that we want to implement this, though it will likely be implemented as a member of the object to stay consistent with ->cast(). There is some other work I need to finish first before I can start on this, but if you're interested I can let you know when it's done.
12 replies
LTLeaning Technologies
Created by Awesome on 5/11/2024 in #support
Compatibility with the typeof, instanceof keywords
This seems possible, either by adding a special static variable to all client types that stores the corresponding javascript type, or with an templated intrinsic that returns the javascript type for a client type. It should then be relatively simple to implement functions like typeof and instanceof in c++.
12 replies
LTLeaning Technologies
Created by Awesome on 4/2/2024 in #support
Runtime class extending
As Alessandro mentioned before, the structure of C++ objects and javascript objects declared in the client namespace is completely different and I see no way to make inheritance work in a way that makes sense. Supporting this type of inheritance for [[cheerp::jsexport]]-ed classes makes more sense. Currently, jsexport inheritance is not supported at all, but it is planned for the near future. When I get around to working on jsexport inheritance I will see if also supporting inheritance from client objects is feasible or not.
17 replies
LTLeaning Technologies
Created by Pedro on 3/26/2024 in #support
Calling JS object member functions from Wasm
Hi @Pedro, we have fixed several bugs related to externref in the latest nightly build of cheerp. Please try again with the new build and let us know if you encounter any more issues.
18 replies