OniLink99999
Dec 12 2012, 07:53 PM
Hi,
I'm trying to use Wachunga's Font Auto-Install Script (found here:
https://github.com/wachunga/rmxp-auto-font-install), but am having a bit of trouble.
You see, I've been testing it on different computers, and I've found out that any Windows Vista or 7 computers which have the User Account Control setting turned on will prevent the script from working and simply crash the game.
I simply get an error message that states:
Script 'Game_Temp' line 0: Errno::EACCES occured.
Permission denied - C:\windows\Fonts\*font name*.tff
I'm afraid that I haven't been able to figure out how to fix this. Is there any way to prevent the script from being blocked by User Account Control, aside from turning User Account Control off? Some small edit to the script, perhaps?
Thanks to everyone in advance
Resource Dragon
Dec 12 2012, 07:59 PM
You need administrator privileges by default to be able read/write/add/delete fonts. Your User needs permission to be able to access them. There isn't a way to be able to code into a program to access them, if the program itself and it's user doesn't have access. Sorry.

However, if you have this said font not in the windows font folder, and, say, in your project folder, you can change the file path to where it is in your project, and it should work fine. If your parents (I'm guessing they are the ones with admin access) won't let you access or copy and move them, you can always download fonts from the internet and just move them into your folder.
Some trustworthy sites are:
dafontand
1001fonts
OniLink99999
Dec 12 2012, 08:04 PM
Thanks for the quick reply Resource Dragon! Unless I'm misunderstanding something (which is entirely possible haha), the user accounts on the computers in question have administrator permissions - I can access, install, and edit fonts with no problem. It's just when the game tries to boot up and install the font, it gets blocked.
Resource Dragon
Dec 12 2012, 08:07 PM
In that case, I would copy said font into the project folder, and change the file path accordingly.
I also updated my first post, if it sparks any ideas at all.
OniLink99999
Dec 12 2012, 08:29 PM
Thanks again for all the help Resource Dragon =D I've just been trying to do as you said and change the file path so that RPG Maker XP uses the font from the project folder, rather than trying to install it, however I'm afraid I'll have to ask for your help once more. Can you please tell me where I can edit the scripts to change the font file path?
Resource Dragon
Dec 12 2012, 08:56 PM
Gimme a few, I haven't opened up XP in so long it wants me to re-enter my activation code. XD
OniLink99999
Dec 12 2012, 08:59 PM
Haha, no problem - whenever you have some time =)
Resource Dragon
Dec 12 2012, 09:04 PM
Found it.
1. Scroll down to the script that's called "Auto Font Install 1.1"
2. Scroll down to line 72,
Dest = ENV['SystemRoot'] + '\Fonts\\'
3. Change this line to:
Dest = ENV['filepath here']
EDIT: And actually, if that doesn't work, just;
Dest = 'filepath here'
OniLink99999
Dec 12 2012, 09:13 PM
Aha! I had found the right place, I just wrote it out wrongly. Thanks =D However now, for some reason, I'm getting a new error. It says:
Script 'Font Auto-Installer' line 51: NoMethodError occured.
undefined method for '+' for nil:NilClass
Just to clarify, I replaced ['filepath here'] with ['Fonts/'], which is a folder inside my game project folder (it's the same one that the script references in the 'location of fonts (relative to game folder)' line above).
EDIT: I just tried your alternative solution in your edit. The game loads, but the font doesn't - so all the text in the game is then invisible.
Resource Dragon
Dec 12 2012, 09:17 PM
That sounds like you forgot to delete the plus sign.
Also, you would need to put the ENTIRE filepath, from C:\. (Just because "SystemRoot" means "C:\Windows\")
I believe it was trying to look in the system fonts folder.
Example,
'C:\Users\Mike\Documents\RPGXP\Project1\Fonts\'
OniLink99999
Dec 12 2012, 09:24 PM
I'm afraid that deleting the plus sign just led to more errors.
And ah, I see. In that case, it won't be viable, as the directory isn't a constant - it could be on C Drive on one computer, and on D Drive on another, leading to more complications. Regardless, thank you very much for your help Resource Dragon - I sincerely appreciate it!
Resource Dragon
Dec 12 2012, 09:32 PM
QUOTE (OniLink99999 @ Dec 12 2012, 09:24 PM)

I'm afraid that deleting the plus sign just led to more errors.
And ah, I see. In that case, it won't be viable, as the directory isn't a constant - it could be on C Drive on one computer, and on D Drive on another, leading to more complications. Regardless, thank you very much for your help Resource Dragon - I sincerely appreciate it!
Meh, I tried, It's giving me weird syntax errors on lines that don't involve the line I changed. :S
OniLink99999
Dec 12 2012, 09:37 PM
I'm getting the same errors here - I have no idea what would be causing them. Maybe someone else will have some ideas? Thanks again =D
EDIT: Actually, I think I've found another way to achieve this goal outside of RPG Maker XP, and it works. I found a way to make the installer for my game install both the game files and the font, so that takes care of things just fine. This thread can be closed, and thanks again for the help Resource Dragon.
Resource Dragon
Dec 12 2012, 11:36 PM
QUOTE (OniLink99999 @ Dec 12 2012, 09:37 PM)

I'm getting the same errors here - I have no idea what would be causing them. Maybe someone else will have some ideas? Thanks again =D
EDIT: Actually, I think I've found another way to achieve this goal outside of RPG Maker XP, and it works. I found a way to make the installer for my game install both the game files and the font, so that takes care of things just fine. This thread can be closed, and thanks again for the help Resource Dragon.
I guess so. And, your welcome. Ever need anything else, RRR is here. :]
Jonnie19
Dec 13 2012, 08:22 AM
Topic Closed. If you want it reopened, Report the topic and tell us why. Good Job RD
Jonnie19
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.