The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: scramcrew on June 11, 2009, 05:01:55 AM

Title: Help! I cannot display hero name.
Post by: scramcrew on June 11, 2009, 05:01:55 AM

I am using rpg xp on windows vista. AT the start of my game, i ask the player to enter a name for the hero.
Afterwards, when i use \N[001] to display the name, nothing comes out. If anyone knows how to solve this, please reply... ???
Title: Re: Help! I cannot display hero name.
Post by: Martin W. on June 11, 2009, 09:32:21 AM
Quote from: scramcrew on June 11, 2009, 05:01:55 AM

I am using rpg xp on windows vista. AT the start of my game, i ask the player to enter a name for the hero.
Afterwards, when i use \N[001] to display the name, nothing comes out. If anyone knows how to solve this, please reply... ???

You need Dubealex's Advanced Messaging System or a similar script. Unfortunately, the Creation Asylum is down so I can't link you =/
Title: Re: Help! I cannot display hero name.
Post by: shaz on June 11, 2009, 11:08:48 AM
No, that's an RMXP standard function.  You don't need a messaging system for it.

Things to check - what number are you using for the actor?
Does your name input processing refer to the correct actor number, and does it allow enough characters?
You're outputting it using Show Text?

I created a 9th character in the default project, used #9 for name input processing, and I tried all of the following:
Show Text: Hello \N[9]
Show Text: Hello \N[009]
Show Text: Hello \n[9]
Show Text: Hello \n[009]

and they all worked.

Do you HAVE a custom message system installed in your scripts - if so, could that be interfering?

You say "nothing" comes out.  Does that mean you don't even get a message box?  Or do you get a message box, but it's empty?  Or does it have something in it, but just not the name?

Can you tell us what you're outputting in the Show Text command, and tell us exactly what you see when it hits that logic?
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 12, 2009, 01:30:14 AM
Thanks for replying!
I used event - text
Hello, \N[001]
and it came out "Hello, "
Anyway, I do not have a messaging system.
Title: Re: Help! I cannot display hero name.
Post by: modern algebra on June 12, 2009, 02:15:50 AM
Well, did you go through the naming event yet?

In any case, it is better to lose the 0s. Though it ought not to make a difference, it does for some people. \n[1] should work. Just try it. If it doesn't we'll go from there.
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 12, 2009, 02:54:58 AM
At the start of the game, i ask the player to rename actor 1, max 10 characters.
The first time i use \n[1], it works, but after that it stops working, just display a space there
:'(
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 12, 2009, 01:45:58 PM
i have tried to use slipknot's AMS and Dubealex's AMS but it still did not work.
Please help. This is very important... ???
Title: Re: Help! I cannot display hero name.
Post by: modern algebra on June 12, 2009, 03:26:38 PM
Well, it doesn't make sense that \n[1] would just stop working. It doesn't stop working in either shaz's or my programs. If \n[1] works the first, \n[1] ought to work the second time. There must be something different about your project. Please upload the project and let me take a look.
Title: Re: Help! I cannot display hero name.
Post by: shaz on June 13, 2009, 12:18:17 AM
do you do something anywhere else that might reset the actor name?
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 13, 2009, 04:49:55 AM
No...I don't think I reset the name anywhere...
Anyway,l have attached my game here...Please help me take a look and find the error?
Many Thanks!
Title: Re: Help! I cannot display hero name.
Post by: shaz on June 13, 2009, 04:56:04 AM
Downloaded it, played it.  Typed in my name, and in at least two places, my name showed up in the message boxes.

Where it said \Na[\n[2]] in your event, I actually got \Na[Lotus] in the game.  I think something's wrong there.

But my name showed up twice.


Perhaps something glitchy about your RPG maker?  Dare I ask if it's the PK version?
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 13, 2009, 05:01:27 AM
What's Pk version? Don't think i am using it....
Anyway, if you have no problem playing my game...I think i will delete and remake my game!
Thanks for helping me! :lol:
Title: Re: Help! I cannot display hero name.
Post by: shaz on June 13, 2009, 05:03:49 AM
don't delete it.  Create a new map and make a new starting point. 

Experiment a bit - see if you can name character 1 via events, rather than getting the player to key it in.

I'm assuming you're saying it's just that second dialogue in the same event, that's supposed to display the name, but doesn't?

If you can't figure this one out, deleting and starting again isn't likely to help you, because the problem isn't with the event itself.
Title: Re: Help! I cannot display hero name.
Post by: shaz on June 13, 2009, 05:04:43 AM
Wait for Modern Algebra to take a look - maybe the same thing will happen with him, maybe not.  He can give you some more feedback on the event, though I didn't see anything after a quick glance that would cause the issue.
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 13, 2009, 05:07:31 AM
Well, did you take a look at the events?
At the second map where there are lots of snow...
you will see " ,thanks for coming"
before the comma, the name is supposed to come out.
It happens in the next few events too.
Title: Re: Help! I cannot display hero name.
Post by: modern algebra on June 13, 2009, 05:28:01 AM
Hmm, works for me.
Title: Re: Help! I cannot display hero name.
Post by: shaz on June 13, 2009, 05:28:55 AM
On the second map, I could move around, but I couldn't see my character.

I assumed the problems were on the first map.  I'll go back and check further.

Should I be able to see a character walking around on the screen?
Title: Re: Help! I cannot display hero name.
Post by: shaz on June 13, 2009, 05:33:18 AM
ok - I got exactly the same as MA.  On the second page, my name showed at least three times.
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 13, 2009, 06:04:53 AM
Thank you all of you for replying.
I guess there is a problem with my RPGXP...
I will try reinstalling it and tell you guys...
And about shaz's comment about the missing character, you have to press enter.
I don't know what the problem is, but you have to press enter all each time you enter the second map.
;D
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 13, 2009, 06:41:32 AM
I tried to reinstall RPGXP, but the error still persist.
if you see the first picture, the name shows.
but the 2 and 3 one does not have.
The 4 picture shows the player in combat. The name of player 1 does not appear!
What should i do now?
Title: Re: Help! I cannot display hero name.
Post by: modern algebra on June 13, 2009, 02:01:44 PM
Oh, I wish you had told me that you had to press ENTER to add the character. That's the event where it is messing up.

A) That should be before the Transfer Player command in the first map or it should be parallel. You def. shouldn't make the player have to press ENTER.

B) You are initializing the actor when you add him. What that does is set him back to database stats, and database name. ALl you need to do is uncheck that box and you'll be fine.
Title: Re: Help! I cannot display hero name.
Post by: scramcrew on June 14, 2009, 08:26:08 AM
Hahaha....my problem is now resolved! Many thanks to modern algebra, shaz and any others for helping me.
The name appears with no problem and the user does not have to press enter anymore! Thanks to modern algebra who told me to make it a parallel event!
Cheers!  ;D