• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!

Idea Vague error message, syntax error on line e, section 172:205

Desperado

Novice
Member
Joined
Jan 22, 2024
Posts
26
I'm making a fangame using Pokémon Essentials v21.1. Between the last time I was able to compile my project without error to now, I've been adding to the scripts to create some custom moves and abilities. I've also been making some small changes that shouldn't result in errors. I'm currently stuck with an error message when launching the game that has very little information and I'm looking to solve it. Here's the full error message:

Script '' line e: SyntaxError occured.
Section172:205: syntax error, unexpected end-of-input, expecting `end'

Usually error messages give a lot more information on where the error is located but I'm not sure what to look for with this one. I've tried searching for this error message but haven't been able to find anything online in general or here on Eevee Expo. I'll keep looking through my documentation to see if I messed something up while awaiting a response here.
 
Supposedly some addition you made last resulted in this, this error refers to you having a missing 'end' or one more 'end' than the script expected, If he didn't mention any script, it was probably from some event (Which I find unlikely considering your situation)
 
I'm making a fangame using Pokémon Essentials v21.1. Between the last time I was able to compile my project without error to now, I've been adding to the scripts to create some custom moves and abilities. I've also been making some small changes that shouldn't result in errors. I'm currently stuck with an error message when launching the game that has very little information and I'm looking to solve it. Here's the full error message:

Script '' line e: SyntaxError occured.
Section172:205: syntax error, unexpected end-of-input, expecting `end'

Usually error messages give a lot more information on where the error is located but I'm not sure what to look for with this one. I've tried searching for this error message but haven't been able to find anything online in general or here on Eevee Expo. I'll keep looking through my documentation to see if I messed something up while awaiting a response here.
You're missing an end in script number 172 in the script editor. If you haven't added any new scripts in the first couple hundred of them, that should be the Battle_Move script. You're going to have to go through the whole thing, look for where you made changes, and find where you're missing an end. You could also use a diff checker to compare it with a clean copy of it from a clean copy of essentials (which will help give you a visual of all your changes).

If you can't find it yourself, feel free to post the full contents of the script (in text form) here and someone can spot it.
 
You're missing an end in script number 172 in the script editor. If you haven't added any new scripts in the first couple hundred of them, that should be the Battle_Move script. You're going to have to go through the whole thing, look for where you made changes, and find where you're missing an end. You could also use a diff checker to compare it with a clean copy of it from a clean copy of essentials (which will help give you a visual of all your changes).
This is what I was trying to figure out, thank you. I was manually counting each page and probably miscounted to end up on the wrong one.

The only changes I made to this page is adding more definitions to the list of move flags under biting, punching, sound, powder, pulse, bomb, and dance. I didn't modify or add anything to the rest of it. Here's where I added to this part of the script:

def contactMove?; return @flags.any? { |f| f[/^Contact$/i] }; end
def canProtectAgainst?; return @flags.any? { |f| f[/^CanProtect$/i] }; end
def canMirrorMove?; return @flags.any? { |f| f[/^CanMirrorMove$/i] }; end
def thawsUser?; return @flags.any? { |f| f[/^ThawsUser$/i] }; end
def highCriticalRate?; return @flags.any? { |f| f[/^HighCriticalHitRate$/i] }; end
def bitingMove?; return @flags.any? { |f| f[/^Biting$/i] }; end
def punchingMove?; return @flags.any? { |f| f[/^Punching$/i] }; end
def soundMove?; return @flags.any? { |f| f[/^Sound$/i] }; end
def powderMove?; return @flags.any? { |f| f[/^Powder$/i] }; end
def pulseMove?; return @flags.any? { |f| f[/^Pulse$/i] }; end
def bombMove?; return @flags.any? { |f| f[/^Bomb$/i] }; end
def danceMove?; return @flags.any? { |f| f[/^Dance$/i] }; end
[COLOR=rgb(251, 160, 38)]# Desperado's note: added custom flags below.[/COLOR]
def drainMove?; return @flags.any? { |f| f[/^Draining$/i] };
def kickMove?; return @flags.any? { |f| f[/^Kicking$/i] };

[COLOR=rgb(251, 160, 38)] def sliceMove?; return @flags.any? { |f| f[/^Slicing$/i] }; [/COLOR]
# Causes perfect accuracy and double damage if target used Minimize. Perfect accuracy only with Gen 6+ mechanics.
def tramplesMinimize?; return @flags.any? { |f| f[/^TramplesMinimize$/i] }; end

I didn't realize it while writing the lines I added, but there are ends after each of those flags. I manually typed in the lines I added here. I should've copy-pasted one of those whole lines, from the start before def until right before the def on the next line, in case anything was floating like that.

Thank you both! I made the fatal mistake of not paying attention to the window scrolling to the right. I'm now able to compile and launch my project without this error.
 
Back
Top