So I first tried to use particle effects, and since the manual was incomplete, I decided to look at the particle example, and used the stock smoke.ptf and texture.
I came out with this:
File "C:\Panda3D-1.7.0\direct\particles\ParticleEffect.py", line 201, in loadConfig
data = vfs.readFile(filename, 1)
AssertionError: okflag at line 121 of c:\panda3d-1.7.0\built\include\virtualFileSystem.I
from panda3d.core import loadPrcFileData
loadPrcFileData("", "model-path $MAIN_DIR/assets/mymodel")
Or, if you get this executing a sample or demo file, the paths may be set absolutely instead of relatively. In that case you have to change directory to that demo.
Huh, it seems that I just replaced the file again with the original(even though I never edited it) and it works. The relative path does not work sadly, but the absolute path does.
I have put absolute path but still it is giving this error
File âC:\Panda3D-1.10.11-x64\direct\particles\ParticleEffect.pyâ, line 205, in loadConfig
data = vfs.readFile(filename, 1)
OSError: Failed to read file: âC:\Users\thinkpad\OneDrive\Documents\Sleigh-Ride-main\src\snow.ptfâ
It might be that youâre using Windows file-path formatting, where Panda instead uses Linux-style file-path formatting, I believe.
Perhaps try passing your file-name to Panda in a manner something like this: /C/Users/thinkpad/OneDrive/Documents/Sleigh-Ride-main/src/snow.ptf
That said, let me note that Iâd suggest that you be wary about using absolute file-paths: they tend to become invalid as soon as you move the project (such as via installing the program onto a new machine). I do recommend using relative file-paths.
Hmm⌠Iâm not familiar with the way that Windows is displaying your file-path, but it doesnât look like your file is under âOneDriveââit looks like itâs under âThis PCâ (or perhaps an expansion that is abbreviated as âThis PCâ).
yes it was some path issue now I have cut and pasted my files on the desktop now it is working properly. thanks for your time. I did not properly understand what was the issue but it is resolved now. thanks once again!