Error

Status
Not open for further replies.

The Warrior248

Intermediate
Member
Joined
Apr 12, 2014
Messages
21
Reaction score
0
First Language
English
First off I have an error that keeps showing up whenever I try to flee battle.

Second whenever I finish the battle that is supposed to level me up, I get an error

that says Script' Game_Actor' line 442: Argument Error Occured. too few arguments.

I'm not sure what to do. All I did was transcribe parts of the script editor to English.

Also when I try to flee battle I get this error: Script' BattleManager' Line 218. argument error occured.

invalid value for float(): "Andrew." What do I need to do to fix them? It didn't happen till after I transcribed

Half of the Vocab page.

                            Also I did not add any new scripts to the script editor.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,365
Reaction score
7,203
First Language
German
Primarily Uses
RMMV
It would help if you would post what you changed, but just from your comments and the incomplete error messages I can tell you what happened: You broke the code that is part of the vocabs, because the vocab's aren't pure texts.


Here's what you have to do:


1) make a new project - that should give you access to the original vocabs.


2) compare the number of %s in each of those vocabs. You'll find that in some cases, the number of %s is now different.


3) rewrite your new vocabs until the number of %s sequences is again identical to the number it was before.


The %s are placeholders for strings that will be added into the text when the text is displayed on screen. The number of %s is identical to the number of arguments needed by the vocab.


In some cases there might be other placeholders like %f (all beginning with %) - in those cases the order of the placeholders has to be the same before and after translation. Because %f is a placeholder for a floatr variable, and %s for a string variable - changing the order usually results in that error "invalid value for float() - "Andrew" is a string, not a number (floating number)


If you remove an %s from the vocab, you'll get the "too few arguments" error.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,618
Reaction score
13,212
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

When you realize @Kupotepo is a champion among RM Web users, and it all makes sense now:
Worst nightmare this morning, tried to get 20 minutes of work done on my project before heading to work and got hit with a POWER SURGE. Restarted my computer and the project was CORRUPTED, luckily I made a back up a few days ago so I only lost 4 days of work but still
Ami
what the other name of Elixir?

many games are use that,i want name it different.
What does your project folder look like?
I was told that an iPhone can provide a personal internet hotspot...You learn something new everyday!

Forum statistics

Threads
100,461
Messages
976,198
Members
132,082
Latest member
nwr
Top