Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> CCAO'S UMS script help?
skitzen
post Nov 21 2012, 07:08 PM
Post #1



Group Icon

Group: Member
Posts: 2
Type: Scripter
RM Skill: Undisclosed




I have a lot of face set pictures for my game, I know how to use the script and such. I was just wondering, how if possible I could change the destination folder for where the script looks, Like a new folder "Face sets"? That way my "pictures" folder isn't clogged up with face sets.

Thanks all! :3

This post has been edited by skitzen: Nov 21 2012, 07:08 PM
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Nov 22 2012, 12:33 PM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 916
Type: Scripter
RM Skill: Skilled
Rev Points: 120




QUOTE (skitzen @ Nov 22 2012, 04:08 AM) *
I have a lot of face set pictures for my game, I know how to use the script and such. I was just wondering, how if possible I could change the destination folder for where the script looks, Like a new folder "Face sets"? That way my "pictures" folder isn't clogged up with face sets.

Thanks all! :3


There are actually two ways to do that:

1. Just replace this line

CODE
RPG::Cache.picture([picture name])


with this:

CODE
RPG::Cache.picture("Face Sets/" + [picture name])


where [picture name] must be replaced by the picture name.
Remember you should create that new folder just inside the Pictures folder.

This is the most straightforward way.

2. There's another way to do it, however.
You should add this in a blank above main:

CODE
module RPG::Cache
    def self.face(filename)
      self.load_bitmap("Graphics/Face Sets/", filename)
    end
end


and call

CODE
RPG::Cache.face( [picture name])


when you need to use a face file. This way, you will be able to put your Face Sets folder just in the Graphics folder and you won't be obliged to put it into the Pictures folder.

I hope this can help, ask for further explainations anytime smile.gif

Jens


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
skitzen
post Nov 22 2012, 01:54 PM
Post #3



Group Icon

Group: Member
Posts: 2
Type: Scripter
RM Skill: Undisclosed




QUOTE (Jens of Zanicuud @ Nov 22 2012, 12:33 PM) *
QUOTE (skitzen @ Nov 22 2012, 04:08 AM) *
I have a lot of face set pictures for my game, I know how to use the script and such. I was just wondering, how if possible I could change the destination folder for where the script looks, Like a new folder "Face sets"? That way my "pictures" folder isn't clogged up with face sets.

Thanks all! :3


There are actually two ways to do that:

1. Just replace this line

CODE
RPG::Cache.picture([picture name])


with this:

CODE
RPG::Cache.picture("Face Sets/" + [picture name])


where [picture name] must be replaced by the picture name.
Remember you should create that new folder just inside the Pictures folder.

This is the most straightforward way.

2. There's another way to do it, however.
You should add this in a blank above main:

CODE
module RPG::Cache
    def self.face(filename)
      self.load_bitmap("Graphics/Face Sets/", filename)
    end
end


and call

CODE
RPG::Cache.face( [picture name])


when you need to use a face file. This way, you will be able to put your Face Sets folder just in the Graphics folder and you won't be obliged to put it into the Pictures folder.

I hope this can help, ask for further explainations anytime smile.gif

Jens


Thanks so much! Going to give the first one a try. Though it doesn't quite match up with it. And there are a few of them, so I'll try it on all and see. Experiment from there XD
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Nov 23 2012, 05:49 AM
Post #4


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 916
Type: Scripter
RM Skill: Skilled
Rev Points: 120




You have to replace only the ones which actually call the face files...
If this method doesn't work, send me a PM with the script and I'll fix it.

Jens


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 06:47 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker