hammy140 - 24-4-2017 at 08:49 PM
Hi guys! Div follower since around 1997. Trying to get back into it with the Beta on XP. However whenever I try test programs or tutorials, my program
will not work or display my sprite when I try to load my FPG with whatever sprite inside.Its like DIV cannot see where my FPG is even though its in
the same directory as the program and can be seen on the work screen etc.
Is there a folder for FPGs I have to set up somewhere? A default path?
Thanks in advance.
David
CicTec - 24-4-2017 at 11:27 PM
Hello hammy148 and welcome,
Normally, the FPG loader (LOAD_FPG) can search in several paths automatically, but much depends on what is specified as a parameter.
Are you using some absolute path ?
Are you seeing some error in loading the FPG ?
An example of code would be useful to help you solve the problem.
hammy140 - 25-4-2017 at 12:17 PM
I was following this tutorial but could not get the fpg file to load on the screen.
https://blog.willicab.com.ve/tutorial-1-juego-de-plataformas...
So i went to the manual and tried a simpler example. It still could not load the fpg even though it was there and saved in the root folder...
hammy140 - 25-4-2017 at 12:21 PM
Thanka for the quick response btw!
Here is the error when i hit f10 on the short pic previous.
CicTec - 25-4-2017 at 01:07 PM
Well, the call to the function is correct, it looks like the FPG is not in the same location as the source program (PRG) or in a proper folder.
Where is the file test1.prg? The FPG file should be in the same folder to work correctly or in an FPG folder in the same directory as the PRG file.
hammy140 - 25-4-2017 at 02:48 PM
Thats perfect thanks! I found where my PRG file is and put the FPG in the correct folder.
Thanks again.
CicTec - 25-4-2017 at 04:15 PM
I'm glad you solved it.