Replies: 9 comments
-
Haven't used the UWP target in forever, totally possible that it just broke. Please open an issue about it. |
Beta Was this translation helpful? Give feedback.
-
The reason I'm interested is because I don't really know which target to use to publish in the Windows Store. Can you help? |
Beta Was this translation helpful? Give feedback.
-
Nowadays that's actually done with the GDK (Microsoft themselves basically gave up on UWP for games). I have code for that but it's in the Xbox-target which is not public. Have to split it apart. |
Beta Was this translation helpful? Give feedback.
-
I see. There are quite a few Windows targets in Kha. I tried the one that said simply 'Windows', but when running from VS Community there was an exception thrown (write access violation) in file constantbuffer.c.h here: static void setMatrix4(uint8_t *constants, int offset, kinc_matrix4x4_t *value) { 1 - Is this target functional, or did I do something wrong? 3 - Does this target allow publishing in Windows Store? 2 - Can you clean up the VS Code Kha extension, so that only relevant current targets remain? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I see. Sadly, I couild not get khamake to build for WPF (this looks okay for the Windows Store, or am I wrong?). There are some errors: Using Kha (b90792d) from C:\Developer\Kha C:\Developer\Kha\Sources/kha/System.hx:197: characters 14-19 : Class<kha.SystemImpl> has no field login Haxe compiler error. |
Beta Was this translation helpful? Give feedback.
-
No, that's absolutely not suited for the Windows Store. The WPF target is very slow (and that can't be helped because of restrictions in WPF itself) and lacks many features - it's only useful for integrating some Kha-thing into a WPF application. |
Beta Was this translation helpful? Give feedback.
-
I'm using VS Community 2022. The program stops with a breakpoint in a _debugbreak() call. The log says this before the breakpoint:
DXGI ERROR: IDXGIFactory::CreateSwapChain: No target window specified in DXGI_SWAP_CHAIN_DESC, and no window associated with owning factory. [ MISCELLANEOUS ERROR #6: ]
And then it continues:
A breakpoint instruction (__debugbreak() statement or a similar call) was executed in ek.exe.
Error: The specified module could not be found.
Am I doing something wrong? It works in HTML5 target.
Beta Was this translation helpful? Give feedback.
All reactions