Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Wachunga's Font Auto-Install Script Problem
OniLink99999
post Dec 12 2012, 07:53 PM
Post #1


Level 3
Group Icon

Group: Member
Posts: 33
Type: None
RM Skill: Skilled




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 thumbsup.gif

This post has been edited by OniLink99999: Dec 12 2012, 08:31 PM
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 12 2012, 07:59 PM
Post #2


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




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. confused.gif

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:

dafont
and
1001fonts


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
OniLink99999
post Dec 12 2012, 08:04 PM
Post #3


Level 3
Group Icon

Group: Member
Posts: 33
Type: None
RM Skill: Skilled




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.
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 12 2012, 08:07 PM
Post #4


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




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.


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
OniLink99999
post Dec 12 2012, 08:29 PM
Post #5


Level 3
Group Icon

Group: Member
Posts: 33
Type: None
RM Skill: Skilled




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?
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 12 2012, 08:56 PM
Post #6


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




Gimme a few, I haven't opened up XP in so long it wants me to re-enter my activation code. XD


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
OniLink99999
post Dec 12 2012, 08:59 PM
Post #7


Level 3
Group Icon

Group: Member
Posts: 33
Type: None
RM Skill: Skilled




Haha, no problem - whenever you have some time =)
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 12 2012, 09:04 PM
Post #8


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




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'


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
OniLink99999
post Dec 12 2012, 09:13 PM
Post #9


Level 3
Group Icon

Group: Member
Posts: 33
Type: None
RM Skill: Skilled




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.

This post has been edited by OniLink99999: Dec 12 2012, 09:16 PM
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 12 2012, 09:17 PM
Post #10


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




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\'


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
OniLink99999
post Dec 12 2012, 09:24 PM
Post #11


Level 3
Group Icon

Group: Member
Posts: 33
Type: None
RM Skill: Skilled




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!
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 12 2012, 09:32 PM
Post #12


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




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


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
OniLink99999
post Dec 12 2012, 09:37 PM
Post #13


Level 3
Group Icon

Group: Member
Posts: 33
Type: None
RM Skill: Skilled




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.

This post has been edited by OniLink99999: Dec 12 2012, 10:25 PM
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Dec 12 2012, 11:36 PM
Post #14


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




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. :]


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
Jonnie19
post Dec 13 2012, 08:22 AM
Post #15


Are you trying to rise from your lullaby?
Group Icon

Group: Global Mod
Posts: 1,311
Type: Developer
RM Skill: Intermediate
Rev Points: 45




Topic Closed. If you want it reopened, Report the topic and tell us why. Good Job RD tongue.gif Jonnie19


__________________________

Finished Projects:
Slenderman's Army:


Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 02:02 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker