JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
Hey I love your script But i cam across this error while using it and im not sure what the problem is D: http://puu.sh/9Tip7/953cd332e5.png
Hey ClownSage,

RGSS3 is a case sensitive language, so when you call Creation() in your event's Script command, you need to actually call creation(). Based on your image, I think that's your only problem.

This script worked fine at first and now it won't stop giving me this error when I call it and I didn't modify anything or add anything.  Why is it suddenly not working?

Here is the error and sorry if I was rude but I am extremely frusterated because I really want to use this script in my game:

attachicon.gif
WHY!.png
Rose Guardian,

Your problem is trickier to figure out. After a quick look at the script, it seems that the error you're getting is from the script not finding an actor in a (save?) file. What are you doing when you get the error, exactly?
 

ClownSage

Warper
Member
Joined
May 8, 2014
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RGSS3 is a case sensitive language, so when you call Creation() in your event's Script command, you need to actually call creation(). Based on your image, I think that's your only problem.
Thanks For the advice! that fixed it but now ive run into this problem http://puu.sh/9Ue8O/4b73b5c1d8.png

Ive saw that somone else posted this problem as well before but i am unsure of the specifics as to remedying the problem  
 

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
Thanks For the advice! that fixed it but now ive run into this problem http://puu.sh/9Ue8O/4b73b5c1d8.png

Ive saw that somone else posted this problem as well before but i am unsure of the specifics as to remedying the problem  
That I'm not so sure about. The include function that I assume that error is talking about is on line 304 of my file and looks like this:

module Composites def self.include?(file) ## Checks if a file is a composite. return CP::COMPOSITE::NAMES.include?(file) endThen there are some other functions, but that's the important one. Can you check to see if your CP Character Composite script has that? I'm not sure how it wouldn't but that's my first guess.

Edit:

Did you see this? Maybe you don't have the character in your party?

 

I just downloaded this yesterday, and i need help. when I try and customize my character in game this shows up "Script 'CP Character Composite' line 493: NoMethodError occurred. undefined method 'include?' for nil:NilClass" appears, and this is what is in that line.

  elsif @equip_hashes.include?(key) && Composites.include_block?(block,

       @equip_hashes[key][0])I'm no scripter and I don't know whats wrong or how to fix it. Help would be very much appreciated.

Nevermind I found my problem, when it went to edit the character it was trying to edit someone I didn't have inside my party. My mistake. anyways, awesome job! this is a great script and it is very helpful to me.
 
Last edited by a moderator:

ClownSage

Warper
Member
Joined
May 8, 2014
Messages
4
Reaction score
0
First Language
English
Primarily Uses
That I'm not so sure about. The include function that I assume that error is talking about is on line 304 of my file and looks like this:

  1. module Composites
  2. def self.include?(file) ## Checks if a file is a composite.
  3. return CP::COMPOSITE::NAMES.include?(file)
  4. end
I have those exact lines In my script, At this point im pretty sure its te latter error, however I don't know if i messed up somewhere or there's some unknown error .  

Here are screenshots of the script , event and character screens in case that helps 

Characters:

http://puu.sh/9Uzcq/fd51e06870.png

http://puu.sh/9Uze0/37b919c12c.png

Script:

 http://puu.sh/9UzfE/4fe8240d93.txt

Event:

 http://puu.sh/9Uzha/d52e5d0fdb.png
 

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
Disregard what was here; see next post.
 
Last edited by a moderator:

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
I have those exact lines In my script, At this point im pretty sure its te latter error, however I don't know if i messed up somewhere or there's some unknown error .  

Here are screenshots of the script , event and character screens in case that helps 

Characters:

http://puu.sh/9Uzcq/fd51e06870.png

http://puu.sh/9Uze0/37b919c12c.png

Script:

 http://puu.sh/9UzfE/4fe8240d93.txt

Event:

 http://puu.sh/9Uzha/d52e5d0fdb.png
Sorry for the delay, but I was just looking at my own project with this script and I'm confident that your error is because you haven't added the actor you're customizing to your party. Here's a screenshot from my own project:

ngjEMZC.png


This event is triggered on autorun when the player first loads the game. You can see that pretty much the first thing I do is add Elume to the party because I'm about to have the player customize the character. When I removed the line adding Elume to the party, I got the weird error you posted previously.

JA6yjz6.png


Then, in this section picture, you can see at the end of the event I call creation(11). This is because Elume's actor id is 011. I tested leaving the leading zeroes in, but it results in the script failing to open the customize character dialog. I tried using Elume's name instead and got the same result, despite what the documentation for the script says. So, add your character into your active party near the start of the event and then change your creation() call to not have any leading zeroes in the actor's id (so in your case, it'd be "creation(1)").

Let me know if you have further issues, but I think this should take care of it for you.
 

ClownSage

Warper
Member
Joined
May 8, 2014
Messages
4
Reaction score
0
First Language
English
Primarily Uses
THANK YOU SO MUCH FOR HELPING ME WITH THIS! Ive been rather busy today so im sorry i couldnt express my gratitude earlier But youve really taken a whole lot of stress out of my game :D
 

Abagail Asta

Programer by birth
Veteran
Joined
Oct 21, 2013
Messages
33
Reaction score
35
First Language
Russian
Primarily Uses
I'm not sure if there is a way but could you not show/check the sprites but just the face.

Becasue I'm using a custom sprite and want to keep that sprite but it crashes with the sprite so

is there a way to fix that?
 

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
I'm not sure what exactly you're after, so I'm going to try to address both things I think you want.

I'm not sure if there is a way but could you not show/check the sprites but just the face.
I think you're saying here that you want to not show the preview for the composite sprite during the character creation. To do that, just comment out (or delete) lines 1041 and 999 of the script. Line 999 instantiates the @chara_window variable and line 1041 refreshes the window. Removing this will cause the sprite window to not display during character creation.

Becasue I'm using a custom sprite and want to keep that sprite but it crashes with the sprite so

is there a way to fix that?
Here you're talking about using a custom sprite for a composite character. To do this, you would have to alter the script to prevent it from generating the composite sprite OR let it generate the sprite but then overwrite it with another command later. Honestly, I wouldn't recommend altering the script to such a huge degree and if you wanted to I'm not even sure to tell you where to start with that.

You should be able to set up a scripting call to overwrite the actor's sprite manually. Though I don't know how to do it myself, here's a promising looking thread about this topic: http://www.rpgmakervxace.net/topic/12089-scripted-sprite-change/

Finally, if neither of those options appeal to you, you could always go the brute force method of changing all the graphics in the /Graphics/Composite/Charas/ folder to your desired sprite sheet. Replacing every one of those images with your sprite sheet would be extreme, but it would achieve the effect that I think you're looking for here.
 

luiscesjr

Veteran
Veteran
Joined
Jun 26, 2014
Messages
117
Reaction score
11
First Language
Portuguese
Sorry for the delay, but I was just looking at my own project with this script and I'm confident that your error is because you haven't added the actor you're customizing to your party. Here's a screenshot from my own project:

ngjEMZC.png


This event is triggered on autorun when the player first loads the game. You can see that pretty much the first thing I do is add Elume to the party because I'm about to have the player customize the character. When I removed the line adding Elume to the party, I got the weird error you posted previously.

JA6yjz6.png


Then, in this section picture, you can see at the end of the event I call creation(11). This is because Elume's actor id is 011. I tested leaving the leading zeroes in, but it results in the script failing to open the customize character dialog. I tried using Elume's name instead and got the same result, despite what the documentation for the script says. So, add your character into your active party near the start of the event and then change your creation() call to not have any leading zeroes in the actor's id (so in your case, it'd be "creation(1)").

Let me know if you have further issues, but I think this should take care of it for you.
I checked the last pages and your post, I set it exactly like this, and I still get this error.

Take a look.:

og8jgu0.png


I think I shouldn't even have to add him anyway, it's the main character! But I tried adding to the

party as mentioned, and as you see, but no luck.

It's blank because there should be a name processing as well.

EDIT.: Never mind, I fixed it by just changing it's place inside the event... (??)

EDIT2.: I found out it's actually because my actor name's empty. It will not work

if you want to process a character's whose name is empty, so this is a kind of a bug?
 
Last edited by a moderator:

StikElLoco

Villager
Member
Joined
Apr 4, 2014
Messages
6
Reaction score
0
First Language
Greek
Primarily Uses
Can someone direct me to the right direction for Equipment tags? I figured out how to use the character creation. But i can't seem to figure out how to use tags on equipment so it will change the graphic of an actor.
 

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
EDIT2.: I found out it's actually because my actor name's empty. It will not work

if you want to process a character's whose name is empty, so this is a kind of a bug?
Well, I'm glad you got it to work! However, when I deleted the name of my character in the example project I posted pictures from above, it worked just fine for me. Line 493 deals with equipment hashes, so I tried removing all starting equipment from my actor as well, but that didn't seem to cause a crash either. I'm not really sure what else could be causing this issue, though I'm glad having a name input somehow solves it for you. Perhaps you have some other script that is interfering with how the Game_Battler class deals with equipment? I wish I could be of more help here, but I think the name needing to be non-empty is just a symptom of a larger problem elsewhere.

Can someone direct me to the right direction for Equipment tags? I figured out how to use the character creation. But i can't seem to figure out how to use tags on equipment so it will change the graphic of an actor.
I can help point you in the right direction! The important information for this can be found on lines 43 and 44 of the script itself which I'll reproduce below:

## tag image[Handler, hue]## - Changes the default images for layer :tag to file handler "Handler".Later on in the file is a list of composite layers:

# The order for composite layers. The first layer is the lowest layer.COMPOSITE =[ :hairRear, :cape, :armorRear, :headAll, :head, :eyes, :eyesAll, :eyesHueless, :armor, :hair, :glasses, :helmet,]So basically, you can create a tag on any piece of equipment by choosing a layer and then specifying a file handler. What are file handlers and how do you make more? File Handlers are specified starting on line 163 of the script. You can add your own pretty easily! Handlers go in this format:

# "Handler" => ["Male_File", "Female_File"],Note: Make sure that you have the comma at the end since these are elements in an array!

Double note: If an armor is only for one gender or effects no visual change on a gender, then you can use "nil" in place of a file name!

You can pick any name for the Handler so long as it is not already a name in the array (i.e. you can't have two handlers of the same name).

Finally, the Male_File and Female_File names need to be the names of files in the CHAR_FOLDER and/or FACE_FOLDER directories specified on lines 101 and 102.

It might sound like a lot, but it's really pretty simple. Let's put it all together!

Let's say I wanted to add some armor to my game that changed my character's appearance, we'll call it "Casual Clothes" armor.

  1. First I'll get the composite image I want to represent my armor and put it into the CHAR_FOLDER directory. Note: Make sure you use .png format for your images!
  2. Then, I add a file handler to the FILE_HANDLERS array in the script. "CasualClothes" => ["CasualClothesM", "CasualClothesF"],
[*]Next, I look for an appropriate composite layer and decide the default "Armor" suits my needs. I use it to construct a tag to put on my armor:
igekG8T.png


That's all there is to it! Hopefully that's enough to get you going. Please let me know if there are any more questions I could answer for you.

P.S. You could put multiple tags down on one piece of armor if you wanted!
 

StikElLoco

Villager
Member
Joined
Apr 4, 2014
Messages
6
Reaction score
0
First Language
Greek
Primarily Uses

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
Thank you for your swift and detailed information. Although i get this error:

 
hxBaB57.png


And here are more screenshots: http://i.imgur.com/pQd3IKF.pnghttp://i.imgur.com/iuLhTsP.png, http://i.imgur.com/iXT74Tl.png, http://i.imgur.com/pjabObd.png.

NOTE: The error occurs after i equip that piece of armour and exit the menu. I also use the Yanfly - Ace Equip Engine. Which adds more equipment slots.
I believe your problem is with the tag you put on your item. Your tag refers to "ArmourM" but that seems to be your image name. The file handler for that image is just named "Armor" (in this one: http://i.imgur.com/iXT74Tl.png). If you change your tag to reflect this, you should be okay.

Like this:

armor image[Armor, 0]Give that a try and let me know if that does the trick!
 

StikElLoco

Villager
Member
Joined
Apr 4, 2014
Messages
6
Reaction score
0
First Language
Greek
Primarily Uses
Indeed it does. A couple more questions, 1. Even if the equipment works as it should be on the composite characters, doesn't work on the default characters. That means it only works on composite characters or i am doing something wrong? 2. Face sets don't seem to work on the character creation, but i probably didn't set up something right. It shows as blank.
 
Last edited by a moderator:

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
Indeed it does. A couple more questions, 1. Even if the equipment works as it should be on the composite characters, doesn't work on the default characters. That means it only works on composite characters or i am doing something wrong? 2. Face sets don't seem to work on the character creation, but i probably didn't set up something right. It shows as blank.
I'm not sure what to tell you about the blank faces. I'd guess that it isn't finding the files correctly.

As for getting the equipment change to work on default characters, I've been looking into this but it's turning out to be a bit more complicated than I thought.The short version is that it probably isn't worth the trouble to make it work and that you're better off allowing the player to customize each character who you want to have the armor OR use another script for this sort of thing.

The longer story is that the default characters don't have composite information built for them and so they aren't affected when their equipment is changed. That information is built when the character creation window is used. It should be possible to create another script command that you can run on each character to create this information BUT it would basically mean that you would have to build their sprite from composite files by specifying defaults and then circumventing the character creation scene. It's definitely possible, but I don't have the time on hand to figure it out today, sorry. I may have some time later in the week to come back to this though and if so I'll post here about what I find.
 

StikElLoco

Villager
Member
Joined
Apr 4, 2014
Messages
6
Reaction score
0
First Language
Greek
Primarily Uses
Thanks for the help. I will look into the face sets. As you said i probably haven't set it up right.
 

daniel1030

Warper
Member
Joined
Oct 1, 2014
Messages
2
Reaction score
0
Primarily Uses
Hello, is there a way to use costumes that are not just one group?

ie, I have armour png which is 3 by 4, but there are 8 of them in one png file.

Is there a way to make the script navigate through this and choose one?
 

JumbocactuarX27

Veteran
Veteran
Joined
Jan 11, 2013
Messages
86
Reaction score
40
First Language
English
Hello, is there a way to use costumes that are not just one group?

ie, I have armour png which is 3 by 4, but there are 8 of them in one png file.

Is there a way to make the script navigate through this and choose one?
With computers many things are possible, but I don't know enough about how to manipulate images in Ruby to tell you how to do this off the top of my head. It would be a whole lot of extra work. The far easier solution would be to open up your armour png in an image editor (e.g. photoshop, gimp, paint.net, etc) and slice it up into 8 seperate png files with one armour each. Is there some reason you can't or wouldn't want to do that?
 

daniel1030

Warper
Member
Joined
Oct 1, 2014
Messages
2
Reaction score
0
Primarily Uses
Hi, Thankyou for your reply I got this matter sussed :)

I have another problem, I want a have a cat character in my game and I added him as an armor init in a blank sheet.

However the base head and hair keeps coming up with this character and I want to get rid of it.. Could you please help me?

Thankyou
 

Latest Threads

Latest Profile Posts

So technically I just ate sausages that were a year old. Use by date was 12/27/2021. But since those dates are just guesses with no scientific reasoning behind them I'll prolly be fine. Guess I know soon if I'm praying to the Porcelain God.
People laughed at me when I said that Activision Blizzard would get bought up by another company if they didn't fire their execs. Now their value has dipped so much Microsoft is willing to buy the company, likely followed by some heavy terminations if they want to purify the current toxic image of Activision Blizzard.
Pro tip: don't be this person.1642536788532.png

Forum statistics

Threads
118,495
Messages
1,116,366
Members
155,480
Latest member
aSasSSasdadw
Top