Giter Site home page Giter Site logo

Comments (10)

piiertho avatar piiertho commented on August 16, 2024 2

Hey @2shady4u !
Thank you for the bug report.
It seems we are not managing ressource path properly.
I think problematic code is here:
https://github.com/utopia-rise/fmod-gdnative/blob/6c71f3f030243836e7ac177ee981690ecccddd08/src/godot_fmod.h#L20
Maybe we will have difficulty to pass ressource path to fmod. IIRC we had a discussion with @CedNaru few months ago about this.

from fmod-gdextension.

2shady4u avatar 2shady4u commented on August 16, 2024

Small addendum/update: If I copy the assets folder next to the exported EXE. Everything works...
However, Fmod should be able to use the banks and ogg that are present in the PCK instead? 🤔

from fmod-gdextension.

CedNaru avatar CedNaru commented on August 16, 2024

Having the files next to the .exe is how I proceed.
That plugin is just a bridge to FMOD, so FMOD itself can't access files the same way Godot does.
"res://" paths for FMOD objects are renamed to standard relative paths, It's just a trick I added so people are able to unify the paths with other godot ressources, but maybe it wasn't a good idea because it can be confusing.

At it is today, I don't know how I can read inside a PCK file from Fmod.
I'm open to any kind of lead.

from fmod-gdextension.

CedNaru avatar CedNaru commented on August 16, 2024

One possibility I see:
-Godot File object seems to give enough control to the reading of the File with functions such as "get_buffer", 'seek".
-I never used that, but it seems that you can implement some custom File callback system for FMOD.

By using those 2 functionalities, it might be possible to implement some fallback system in the plugin that would directly interact with a Godot File Object if Fmod can't directly access it.

from fmod-gdextension.

CedNaru avatar CedNaru commented on August 16, 2024

Link:
Fmod File Callback
Godot File

from fmod-gdextension.

2shady4u avatar 2shady4u commented on August 16, 2024

@CedNaru @piiertho
@fire was able to make it work for the SQLite module here:
https://github.com/godot-extended-libraries/godot-sqlite/blob/a9b699c90203989239c49eebbfc70c11fc2ac59c/sqlite.cpp#L185
(using the open_buffered()-function)

But I didn't go deeper into it so I don't know how it exactly works... But it involves the use of this particular file:
https://github.com/godot-extended-libraries/godot-sqlite/blob/master/thirdparty/sqlite/spmemvfs.h

@CedNaru Yes, having the files next to the EXE works, so I'll use that method for now.

from fmod-gdextension.

fire avatar fire commented on August 16, 2024

Feel free to ask any questions.

from fmod-gdextension.

fire avatar fire commented on August 16, 2024

I don't remember much but here's a more recent pointer. https://github.com/godot-extended-libraries/godot-sqlite/blob/master/sqlite.cpp#L218

from fmod-gdextension.

resinten avatar resinten commented on August 16, 2024

Is anyone actively working this one? I ran into this issue and can use the workaround for now, but will need a more robust solution at some point. If no one else is able to get to it, I may be able to devote some time on it once I've addressed the more urgent tickets for my game, but it'll probably be a bit before then

from fmod-gdextension.

piiertho avatar piiertho commented on August 16, 2024

@BrianMWest for now we did not started to work on this issue. Feel free to contribute :)
Anyway this issue needs to be resolved. We would work on it when kotlin is alpha, but if someone have time we're open to contribs :D

from fmod-gdextension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.