Comments (13)
Hi @FuroYT . When sharing a block of text, you might consider inserting it in your post as text, and not a screenshot. That way it can be indexed by search, and elements copied by people trying to assist. Your error is in French, but I can't copy/paste it into translate, for example.
Anyway, translated:
- src/animateatlas/AtlasFrameMaker.cpp
- src/Song.cpp
- src/openfl/media/Video.cpp [haxe,release]
- src/lime/graphics/opengl/ext/NV_fbo_color_attachments.cpp
- src/Main.cpp
- src/fliexl/ui/FlxTypeButton.cpp
- src/openfl/display/GraphicsShader.cpp [haxe,release]
Error: Main.cpp
include\openfl/events/ErrorEvent.h(50): error C2059: syntax error : 'constant'
include\openfl/events/ErrorEvent.h(50): error C2238: unexpected tokens before ';'
from openfl.
Sorry about that and by the way my version of openfl is the latest version
from openfl.
I could be mistaken of course, but that error to me looks like a syntax error in your Main class file. Do you get a more useful error if you target Neko?
lime test neko
from openfl.
i just gives me this error and dont even compile
C:/HaxeToolkit/haxe/lib/discord_rpc/git/discord_rpc/DiscordRpc.hx:4: characters 8-20 : You cannot access the cpp package while targeting neko (for cpp.Function)
source/Discord.hx:5: characters 8-30 : ... referenced here
source/Main.hx:20: characters 8-15 : ... referenced here
export/release/neko/haxe/ApplicationMain.hx:319: characters 48-52 : ... referenced here
from openfl.
As the error says, you are trying to access cpp packages while compiling for neko...
from openfl.
I know I'm not that dumb
from openfl.
I know I'm not that dumb
Then why don't you temporarily remove the cpp package references from your code to see what happens?
from openfl.
I just don't want to break the library and I forgor what's the git url for it
from openfl.
You can't compile code using a cpp package for Neko. You will need to target cpp.
Other than that, your issue report is lacking significant information to determine if there is an issue with OpenFL at all in regards to whatever you are trying to accomplish. I'm closing the issue but if you want to properly identify a specific bug or bad behavior in OpenFL, we can reopen it.
Please refrain from issue reporting in order to debug your own code or a third party library. Instead, try seeking help on the forums, discord, or other proper channels.
from openfl.
After Debugging A Lot I Saw That The Error Was Caused By My Crash Handler
I Try To Catch Any UncaughtErrorEvent.UNCAUGHT_ERROR Events And Send Them To My Function "onCrash" Which Looks Like This
function onCrash(e:UncaughtErrorEvent):Void
{
var errMsg:String = "";
var path:String;
var callStack:Array<StackItem> = CallStack.exceptionStack(true);
var dateNow:String = Date.now().toString();
dateNow = dateNow.replace(" ", "_");
dateNow = dateNow.replace(":", "'");
path = "./crash/" + "Crash" + dateNow + ".txt";
for (stackItem in callStack)
{
switch (stackItem)
{
case FilePos(s, file, line, column):
errMsg += file + " (line " + line + ")\n";
default:
Sys.println(stackItem);
}
}
errMsg += "\nUncaught Error: " + e.error;
if (!FileSystem.exists("./crash/")) FileSystem.createDirectory("./crash/");
File.saveContent(path, errMsg + "\n");
Sys.println(errMsg);
Sys.println("Crash dump saved in " + Path.normalize(path));
Application.current.window.alert(errMsg, "Error!");
DiscordClient.shutdown();
Sys.exit(1);
}
And To Add The Event Listener I Used
Lib.current.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onCrash);
But Removing It Breaks The Game
from openfl.
and these are all the import used
import openfl.events.UncaughtErrorEvent;
import haxe.CallStack;
import haxe.io.Path;
import Discord.DiscordClient;
import sys.FileSystem;
import sys.io.File;
import sys.io.Process;
from openfl.
This is not the proper venue to seek help in debugging your project.
from openfl.
The OpenFL community forum: community.openfl.org/
The OpenFL Discord: discord.gg/tDgq8EE
from openfl.
Related Issues (20)
- [Flash] Type coercion failure when loading maps from SharedObject HOT 1
- [HashLink] Explicit cast from the OpenGLRenderer class HOT 2
- File.creationDate showing wrong date on macOS Ventura HOT 6
- HTML5: openfl.display.Graphics.drawGraphicsData() does not correctly close a connected path HOT 1
- es6 generation fails under certain conditions HOT 2
- TextField High Memory Usage When Incrementing Large Numbers HOT 16
- Rounded Rectangle swf asset renders incorrectly HOT 4
- Add support for 2.5D properties like rotationX and rotationY
- Sounds over a certain length do not play properly. HOT 3
- Text Field fails to render certain Unicode characters HOT 6
- [html5] FileReferenceList doesn't dispatch Event.CANCEL HOT 1
- DropShadowFilter renders incorrectly when applied onto a TextField HOT 1
- OpenFL is compatible with old devices on WeChat IOS, which can cause`__scissorRectangle` An error occurred during off screen rendering;
- FlashPlayer does not change its size HOT 4
- [HTML5] Display looks bad when it is not a scale HOT 1
- Custom fonts don't support bold or italic variants on Windows HOT 3
- Uncaught TypeError: Cannot read properties of null (reading 'duration') - Sound.hx:761
- TextField does not handle <img> on platforms other than Flash HOT 3
- The Hashlink profiler does not work with OpenFL HOT 5
- Linking to `utest` or `munit` breaks HTML5 target HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfl.