yes... though that will also be true for even simply using the save function which will not work unless admin rights is used... IMHO, installing RM in PF is not really a good idea...
If you set it to a folder in My Documents or something like that, it wouldn't ask, even if the game WERE installed into Program Files. It's not a good idea to rely on the user knowing where to install it and where not to - Microsoft (and developers) have been drilling into people for such a long time that everything should go into Program Files.
(Sorry Hime, we're getting more into the theoretical here)
Making a new file in the game's folder, and extracting the audio to there (in fact, even extracting the audio to where the script currently does) could cause problems if the player has installed the game into something like Program Files. Every time it went to play a new piece, they'd get a popup asking if they want Windows to allow it. Wouldn't they?
And this is why installing programs in program files is such a horrible idea. Although most people who have been nagged by that before probably have their UAC turned off and system security knocked down to nothing just to stop all the 'nag' screens. Way to go Microsoft! :golf clap:
I don't think so though... A simple test would tell for sure, but a game has to be able to play files in it's own "space" anyway, and I KNOW that a lot of commercial software uses techniques like these to protect their assets. Let's say I decided to license some Lynryd Skynyrd or "Wayward Son" from Harry Fox for my game (that'd take the greenlight voters attention off the RTP). I'd have to protect the audio somehow. Every major game title has these issues.
If you set it to a folder in My Documents or something like that, it wouldn't ask, even if the game WERE installed into Program Files. It's not a good idea to rely on the user knowing where to install it and where not to - Microsoft (and developers) have been drilling into people for such a long time that everything should go into Program Files.
(Sorry Hime, we're getting more into the theoretical here)
Those are valid concerns since the way the script currently works, it requires write-access to the disk.
It also means if someone, for example, tried to play the game off a CD (because they used a script to change where the save files are stored), it will also fail.
If there was some library that I could use to just decode and stream an audio file from memory, that would solve this problem, and would also make it more secure because now there's no way to just copy-paste a file on your disk; you'd have to either hack the archive or scour the process memory.
So far I have not found one.
I guess I could change the name of the folder, and maybe obfuscate the filenames, but I don't know if those really make a difference.
Usage: unpack the launcher in the same folder as game.exe and then run the launcher.
Source:
import java.io.File;public class RMLauncher { public static void renameDir(String src, String dest) { new File(src).renameTo(new File(dest)); } public static void main(String[] args) { try { Runtime.getRuntime().exec("Game.exe").waitFor(); renameDir("Audio", "AudioDELETED"); } catch (Exception e) { } }}
When you close your project, the launcher will go ahead and clean up things for you.
Now, obviously, anyone can simply bypass the launcher and go straight to game.exe. Even if you hide `game.exe`, I show all hidden files anyways so it's easy to access it.
For some people, it might be weird to have a jar file. You could easily write this in C or something and simply fork a process that will execute game.exe and then have the parent wait until the child returns. This is probably something someone would learn if they were in a introductory lesson to forking.
Yeah, I tested that just now. We still can use the environment variables though. ENV['TEMP'] will return the full path to the Temp folder. Might want to use that.
That is because by default, there is no Environment Variable for 'CD'. If you defined it yourself (in WIndows' System Properties), it should be there. Check with msgbox_p ENV.
Also, if you add the environment variable manually, a computer restart might be needed.
The environment variables that deals with directory paths (that I've seen since the windows 98 era) is only "windir", "path", and "tmp/temp", actually. Usually, installing an environment (like Ruby) appends the path to the executable to the "path" environment variable.
I don't know if I am the only one having this issue but, when my first battle comes up, it says it cant find the audio file. But the audio file just played before in a previous scene with no problem.
Now, I am using another script from you (Troop Battle BGM) and I am not sure if it is not compatible or something with this script.
Note: When I play it in my own computer it works fine, it asks for the file if I play the game in another computer.
Please help, I've been having headaches trying to figure this out. Thanks in advance.
Yay, now back in action Happy Christmas time, coming back!
Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.