Search found 826 matches

by Ats
Thu Jun 12, 2025 6:21 am
Forum: Your projects
Topic: OMEGANAUT
Replies: 98
Views: 196730

Re: OMEGANAUT

Omeganaut is featured, along with Satchel from Steel Panther in the last video clip of Lucie Sue :lol:

by Ats
Tue Jun 10, 2025 10:12 am
Forum: Extensions
Topic: ZgeSublime
Replies: 2
Views: 97

Re: ZgeSublime

I've added custom syntax highlighting to the plugin for better visualization of zgeproj files: XML structure is styled similarly to PHP to de-emphasize markup ZExpression sections (<Expression>, <WhileExp>, etc.) use C#-like coloring Data sections (<BitmapFile>, <MeshData>) appear in grey for minima...
by Ats
Wed Jun 04, 2025 6:43 am
Forum: Extensions
Topic: ZgeSublime
Replies: 2
Views: 97

ZgeSublime

ZgeSublime is not an extension for ZGameEditor, but rather a Sublime Text plugin I started to build and run .zgeproj files directly from the editor. Installation Download ZgeSublime from: https://github.com/Txori/ZgeSublime In Sublime Text, go to Preferences > Browse Packages... This opens the Packa...
by Ats
Fri May 23, 2025 2:36 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

I've made the changes to ZPlatform_Android.inc and all the ZGE.java files. The file loading from `assets/` is now working on all platforms and preview mode. I've seen those lines in the Docs\ExportAndroid.md : 169 3. Enable "Settings / Security / Unknown sources" on the Android device. ......
by Ats
Thu May 22, 2025 1:03 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

Yeah, that's the simplest solution :lol:
I'll adapt the androidManifest afterwards.
by Ats
Thu May 22, 2025 9:08 am
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

Yep, it's only "/assets/" in preview mode :wink:
by Ats
Wed May 21, 2025 11:49 am
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

So it's not a bug, but it is a bit strange that the path behaves differently only on Preview. If I want to produce a Windows EXE, a Linux binary, and an Android APK from the same project, it's odd to be required to use "/assets/" to embed files in the APK, while the same path searches for ...
by Ats
Fri May 16, 2025 10:06 am
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

It turns out that string array writing was never implemented. I added that now Thanks, Ville! It works perfectly. Not sure why you'd want to use "char" encoding for a paint program Yeah, I started from the FileDemo and got a bit lost in the loops trying to detect the letter A :lol: Thanks...
by Ats
Wed May 14, 2025 5:19 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

* Little sidequest * In order to test the read/save file behavior on Android, I started making a modification of the FileDemo to turn it into some paint program. It reads the TestFile.txt at loading, but I don't know how to save the drawing to that file once it has been modified. Can't we save plai...
by Ats
Wed May 14, 2025 8:32 am
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

Hahaha, it's not that simple :lol: After verification, this works nicely to obtain /data/user/0/com.mydomain.filedemo/files/TestFile.txt: String dataPath = context.getFilesDir().getAbsolutePath() + "/"; This is for /storage/emulated/0/Android/data/com.mydomain.filedemo/files/TestFile.txt: ...
by Ats
Tue May 13, 2025 5:21 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

Here's the usage for internal path (config file...): https://developer.android.com/training/data-storage/app-specific#internal File file = new File(context.getFilesDir(), filename); And the same for external path (editable file...): https://developer.android.com/training/data-storage/app-specific#ex...
by Ats
Tue May 13, 2025 5:08 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Re: Problem with external file location on Android

So I think it is set in zgameeditor-master\Build\android\ZgeAndroid.pas: procedure Java_org_zgameeditor_Zge_NativeInit( env : PJNIEnv; thiz : jobject; ExtPath : jstring; DataPath : jstring; LibraryPath : jstring);cdecl; var P : PAnsiChar; begin P := env^.GetStringUTFChars(Env,ExtPath,nil); GetMem(An...
by Ats
Tue May 13, 2025 4:44 pm
Forum: Bug reports
Topic: [FIXED] Little problem with Application title for Android
Replies: 10
Views: 659

Re: [FIXED] Little problem with Application title for Android

There's still one little problem, as building the APK (debug) from ZGameEditor also creates run.bat, but with the $title$ name on the first line, instead of the $filename$: "C:\Android\android-sdk-windows\platform-tools\adb" install -r "C:\Dropbox\System\ZGameEditor\Projects\FileDemo\...
by Ats
Tue May 13, 2025 4:25 pm
Forum: Bug reports
Topic: Problem with external file location on Android
Replies: 19
Views: 2505

Problem with external file location on Android

It's one problem after another :lol: So, in order to confirm that my code change regarding ReadAssetFile for Android 64 is working , I'm trying to run the FileDemo on Android. And surprise, it's looking for TestFile.txt in a folder that requires root access: /data/user/0/com.mydomain.filedemo/files/...
by Ats
Tue May 13, 2025 10:02 am
Forum: Bug reports
Topic: [FIXED] Little problem with Application title for Android
Replies: 10
Views: 659

Re: Little problem with Application title for Android

Perfect. Thanks!
Now I can continue with the fileDemo on Android :wink: