Search found 859 matches

by Ats
Thu Aug 21, 2025 10:42 am
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: [Solved] Help to get Sunvox module volume (maybe using json?)

I guess that's why the File component has the FileEmbedded property :wink: I guess you are right. My method make sense for all the spaceship datas that are stored, modified and generated from the sheet, but for the music volumes, since the txt files already exist, that makes total sense. You can, y...
by Ats
Thu Aug 21, 2025 8:46 am
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: [Solved] Help to get Sunvox module volume (maybe using json?)

Maybe this is the simplest way to achieve this: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZLibrary Comment="Music Volumes" HasInitializer="1&quo...
by Ats
Thu Aug 21, 2025 7:09 am
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: [Solved] Help to get Sunvox module volume (maybe using json?)

Hahaha I have one last problem regarding the same number storage within the game :lol: When my game isn’t in DEBUG_MUSIC mode, I would like to embed the volumes of the music instruments directly in the game, instead of relying on external text files. Typically, in other languages, I would store my a...
by Ats
Tue Aug 19, 2025 10:03 am
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: [Solved] Help to get Sunvox module volume (maybe using json?)

Oh yeah, I overdid it :lol:
Thanks a lot!
by Ats
Mon Aug 18, 2025 11:17 pm
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: [Solved] Help to get Sunvox module volume (maybe using json?)

I managed to read my list of numbers from the txt file, but that seems overly complicated. Am I doing it right? <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <FileA...
by Ats
Mon Aug 18, 2025 3:57 pm
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: [Solved] Help to get Sunvox module volume (maybe using json?)

After some reflection, I realized I’m going to need to read an external file to make tweaks on the modules without having to compile an EXE. It’s for the musician :) Right now, I’m saving the modules’ volumes in an array when I first scan the SunVox files: void ListMusicModules() { // Get the total ...
by Ats
Mon Aug 18, 2025 2:32 pm
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: Help with Sunvox volume and json

Oh wow. It worked perfectly: void ListMusicModules() { // Get the total number of modules int num_modules = sv_get_number_of_modules(0); // Loop through each module and print its name and volume for (int i = 0; i < num_modules; i++) { string module_name = sv_get_module_name(0, i); int volume = sv_ge...
by Ats
Mon Aug 18, 2025 2:09 pm
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

Re: Help with Sunvox volume and json

I wrote a program that reads a MIDI file, adds the SunSynth instrument to the tracks with the transposition and volume values listed in the JSON, and then saves it as a SunVox file. This works perfectly. Now, in ZGE, I’m trying to get the base volume of each module. That’s why I was wondering if I c...
by Ats
Mon Aug 18, 2025 1:35 pm
Forum: General discussion
Topic: [Solved] Help to get Sunvox module volume (maybe using json?)
Replies: 12
Views: 99642

[Solved] Help to get Sunvox module volume (maybe using json?)

Hello. I found someone to make the music for my game. He’s excellent at composing, but not so good at naming the tracks and instrument modules... { "gc1": { "sunsynth": "gc1.sunsynth", "volume": 400, "transpose": 24 }, "cc1": { "sunsyn...
by Ats
Mon Jul 14, 2025 8:48 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 90
Views: 223890

Re: Questions about ES2/GL3 shaders

I believe OpenGL isn't working properly on Android during the first frame (OnLoaded). We already had a problem with that when retrieving the screen resolution via glGetIntegerv , and I believe there was another issue I can’t find on the forum. So now, I set glGetUniformLocation to an int during the ...
by Ats
Fri Jul 11, 2025 5:00 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 90
Views: 223890

Re: Questions about ES2/GL3 shaders

It's weird that it returns 0, it should be -1 when something is wrong. I know, right? Using this in App.OnLoaded isn't working either on Android: @UseMaterial(Material: DemoMaterial); @RenderMesh(Mesh: DemoMesh); DemoLocations[0] = glGetUniformLocation(DemoShader.Handle, "x"); DemoLocatio...
by Ats
Fri Jul 11, 2025 3:26 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 90
Views: 223890

Re: Questions about ES2/GL3 shaders

switch the example to ES2/GL3, the shaders need to be re-written That is exactly what I did :lol: I added text to your example to see what's going on, and another shader that isn't using values x and y. On PC, the glGetUniformLocation values are 1 and 2. Screenshot 2025-07-11 172308.png On Android,...
by Ats
Fri Jul 11, 2025 10:48 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 90
Views: 223890

Re: Questions about ES2/GL3 shaders

Thanks Kjell. Did you use ES2/GL3 for both the PC and Android version? My game is ES2/GL3 only, and it's one project for all the targets, so yes :wink: here's an example using glGetUniformLocation I was indeed using it wrong. But the result is the same with your example: it crashes hard on Android. ...
by Ats
Thu Jul 10, 2025 11:51 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 90
Views: 223890

Re: Questions about ES2/GL3 shaders

So I wrote a shader that jitter the vertices, so several copies of a single model looks different. On PC, the models are jittered, and they all look different. But on android, the models are jittered, but they all look the same... In order to see that better, I applied a color based on the model per...
by Ats
Tue Jul 08, 2025 2:57 pm
Forum: Feature requests
Topic: Edit XML with an external editor
Replies: 16
Views: 151642

Re: Edit XML with an external editor

Oh yeah, now I remember wasting hours with mscdex.exe and command-line just to get the CD-ROM working so I could reinstall Windows 95 :lol: