Appath$ problems (RayCaster)
I recently made an Installer for my Raycasting game.. I made all the textures in a folder called "Data" (The Maps were also in there)
The setup was this way
(MFA Folder)
-Data
-(Textures)
-Map.rcm
-map.rcm.tex
Game.MFA
After asking me where the textures were I set the Directory to (Appath$+"Data/"). I ran the MFA and it worked perfectly. but after building the Installer the textures came up as an orange box. I figured that since the exe was the Application then Appath$ would work.
Something went wrong help please..
Re: Appath$ problems (RayCaster)
Also here is a video of my problem.. PLEASE HELP ME OUT WITH THIS!! http://www.youtube.com/watch?v=8fMWLxaQuwc
Re: Appath$ problems (RayCaster)
It wants the texture folder, so maybe try without the \?
eg. (Appath$+"Data")
Re: Appath$ problems (RayCaster)
I tried Textures still come out orange... I must've typed the code wrong.
Re: Appath$ problems (RayCaster)
I actually had this problem once at some point, but the fix is actually really simple:
Go to "Settings" of the application properties, go into "Image Filters", and turn off "Automatic". Your textures should load when playing the exe.
Re: Appath$ problems (RayCaster)
For Windows programming, you should definitely know where the backslash is located on your keyboard. Usually it is the key above Enter, to the right of an end bracket "]", and below Backspace.
It is not necessary to have the backslash at the end of a file path, though, unless directions explicitly say so.
Re: Appath$ problems (RayCaster)
Give me 5 minutes. I will check video and give you reply.
Try to use:
Load Map From File ( Appdrive$+Appdir$+"Data\map2.rcm" )
Load Textures from File ( Appdrive$+Appdir$+"Data\map2.rcm.tex" )
In That particular order. Raycaster got issues with AppPath sometimes, as well as you need to load Map First and Textures after that. So don't put any events in between.
Also is there a chance to see the code of your project?
What's more the files should have all letters the same (I noticed that in first post one of files is Map and other one is map, and in code you are using map2).
And the last thing - or even first one. Is to load Map File in Raycaster editor and check if it loads textures properly if not, there will be pop-up and you will be able to sort it out.
Re: Appath$ problems (RayCaster)
Everyone's over-complicating the solution.
The Raycaster knows where to find the textures if they are loading during frame testing. Simply turn off "Automatic" in the Image Filters (found in the application properties and "Settings", and the problem will be solved.