Game parsing code error

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Message
Author
Yoloxd2300
Newbie
Posts: 9
Joined: Mon Oct 09, 2017 2:44 am
Contact:

Game parsing code error

#1 Post by Yoloxd2300 »

Please i have an error when runninga game, here is the log:

I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 265, in script
python:
ScriptError: could not find label 'start'.

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "FILESITE", line 295, in bootstrap
renpy.main.main()
File "FILESITE", line 487, in main
run(restart)
File "FILESITE", line 147, in run
renpy.execution.run_context(True)
File "FILESITE", line 761, in run_context
context.run()
File "renpy/common/00start.rpy", line 265, in script
python:
File "FILESITE", line 858, in lookup
raise ScriptError("could not find label '%s'." % str(original))
ScriptError: could not find label 'start'.

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187

Please i need urgent help

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: Game parsing code error

#2 Post by vollschauer »

Check your script.rpy for this line:

Code: Select all

label start:

Yoloxd2300
Newbie
Posts: 9
Joined: Mon Oct 09, 2017 2:44 am
Contact:

Re: Game parsing code error

#3 Post by Yoloxd2300 »

vollschauer wrote: Mon Oct 09, 2017 4:47 am Check your script.rpy for this line:

Code: Select all

label start:
How do i do that?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Game parsing code error

#4 Post by Imperf3kt »

Open the script.rpy file in a text editor and look for it.
CTRL F (find) usually helps
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Yoloxd2300
Newbie
Posts: 9
Joined: Mon Oct 09, 2017 2:44 am
Contact:

Re: Game parsing code error

#5 Post by Yoloxd2300 »

Imperf3kt wrote: Thu Oct 12, 2017 3:40 am Open the script.rpy file in a text editor and look for it.
CTRL F (find) usually helps

What do I need to check?
I have to change or put somethig?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Game parsing code error

#6 Post by Imperf3kt »

Check your game has a "start" label
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Yoloxd2300
Newbie
Posts: 9
Joined: Mon Oct 09, 2017 2:44 am
Contact:

Re: Game parsing code error

#7 Post by Yoloxd2300 »

Imperf3kt wrote: Thu Nov 09, 2017 11:41 pm Check your game has a "start" label

well i will put here the entire file, plese check if something is wrong

init -1600 python hide:

# menus: Music to play at the main menu.
config.main_menu_music = None

# advanced: Callbacks to run at start.
config.start_callbacks = [ ]

# Transition that's used after the game is loaded.
config.after_load_transition = None

# menus: Transition that's used at the end of the splash screen, when
# it is shown.
config.end_splash_transition = None

# Should we start the game with scene black or just scene?
config.start_scene_black = False

# A save to automatically load, if it exists.
config.auto_load = None

# The language we use when the game starts. None remembers the user's
# choice of language, and defaults to the game's native language.
config.language = None

# Should we attempt to return to the menu we were on after a reload?
config.reload_menu = True

# Callbacks to run after load.
config.after_load_callbacks = [ ]

# Should we suppress overlay during the splashscreen?
config.splashscreen_suppress_overlay = True

init -1600 python:

def _init_language():
"""
Changes the default language. This is called automatically by
Ren'Py as it starts up.
"""

import os

if "RENPY_LANGUAGE" in os.environ:
language = os.environ["RENPY_LANGUAGE"]
elif config.language is not None:
language = config.language
else:
language = _preferences.language

renpy.change_language(language)

# This fixes up the context, if necessary, then calls the real
# after_load.
label _after_load:

python:
renpy.context()._menu = False
renpy.context()._main_menu = False
main_menu = False
_in_replay = None

renpy.execute_default_statement(False)
_init_language()

python hide:

for i in config.after_load_callbacks:
i()

if config.after_load_transition:
renpy.transition(config.after_load_transition, force=True)

menu = renpy.session.pop("_reload_screen", None)

if config.reload_menu and (menu is not None):
renpy.run(ShowMenu(menu))

if renpy.has_label("after_load"):
jump expression "after_load"
else:
return

# Ditto, for warp.
label _after_warp:

python:
renpy.context()._menu = False
renpy.context()._main_menu = False
main_menu = False
_in_replay = None

if renpy.has_label("after_warp"):
jump expression "after_warp"
else:
return



# Common code for _start and _start_replay.
label _start_store:

python hide:
store.main_menu = False
renpy.context()._menu = False
renpy.context()._main_menu = False

for i in config.start_callbacks:
i()

return


# Starts up a replay. This is called by renpy.game.call_replay, and
# is expected to be called with _in_replay True and
# renpy.execute_default_statement already called.
label _start_replay:

call _start_store

python:
renpy.execute_default_statement(False)

if config.start_scene_black:
scene black
else:
scene

$ _init_language()
$ renpy.block_rollback()

jump expression _in_replay


label _splashscreen:

python:

if config.splashscreen_suppress_overlay:
renpy.dynamic("suppress_overlay", "_confirm_quit")
suppress_overlay = True
_confirm_quit = False

jump expression "splashscreen"


# This is the true starting point of the program. Sssh... Don't
# tell anyone.
label _start:

call _start_store

python:
renpy.execute_default_statement(True)

# Predict the main menu. When a load occurs, the loaded data will
# overwrite the prediction requests.
if renpy.has_screen("main_menu"):
renpy.start_predict_screen("main_menu")

renpy.block_rollback()

call _gl_test
call _load_reload_game from _call__load_reload_game_1

python hide:
auto_load = renpy.os.environ.get("RENPY_AUTO_LOAD", config.auto_load)
if not _restart and auto_load and renpy.can_load(auto_load):
renpy.load(auto_load)

if config.start_scene_black:
scene black
else:
scene

if not _restart:
$ renpy.display.interface.with_none(overlay=False)

$ renpy.block_rollback()

$ _old_game_menu_screen = _game_menu_screen
$ _game_menu_screen = None
$ _old_history = _history
$ _history = False

if renpy.has_label("splashscreen") and (not _restart) and (not renpy.os.environ.get("RENPY_SKIP_SPLASHSCREEN", None)):
call _splashscreen from _call_splashscreen_1

$ _game_menu_screen = _old_game_menu_screen
$ del _old_game_menu_screen
$ _history = _old_history
$ del _old_history

$ renpy.block_rollback()

if config.main_menu_music:
$ renpy.music.play(config.main_menu_music, if_changed=True)
else:
$ renpy.music.stop()

$ renpy.music.stop(channel="movie")

# Clean out any residual scene from the splashscreen.
if config.start_scene_black:
scene black
else:
scene

python:
# Stop predicting the main menu, now that we're ready to show it.
if renpy.has_screen("main_menu"):
renpy.stop_predict_screen("main_menu")

# Implement config.window
_init_window()

# This has to be python, to deal with a case where _restart may
# change across a shift-reload.
python:
if _restart is None:
renpy.transition(config.end_splash_transition)
else:
renpy.transition(_restart[0])

renpy.game.context().force_checkpoint = True
renpy.jump(_restart[1])

label _invoke_main_menu:

# Again, this has to be python.
python:
if _restart:
renpy.call_in_new_context(_restart[2])
elif not renpy.os.environ.get("RENPY_SKIP_MAIN_MENU", False):
renpy.call_in_new_context("_main_menu")


# If the main menu returns, then start the game.

python:
renpy.game.context().force_checkpoint = True
renpy.jump("start")

# At this point, we've been switched into a new context. So we
# initialize it.
label _main_menu(_main_menu_screen="_main_menu_screen"):

$ _enter_menu()

python:
renpy.dynamic("_load_prompt")
_load_prompt = False

renpy.context()._main_menu = True
store.main_menu = True

jump expression _main_menu_screen

# This is called to show the main menu to the user.
label _main_menu_screen:

# Let the user give code that runs in the main menu context before
# the main menu runs.
if renpy.has_label("before_main_menu"):
call expression "before_main_menu"

# Let the user completely override the main menu. (But please note
# it still lives in the menu context, rather than the game context.)
if renpy.has_label("main_menu"):
jump expression "main_menu"

# New name.
elif renpy.has_label("main_menu_screen"):
jump expression "main_menu_screen"

# Compatibility name.
elif renpy.has_label("_library_main_menu"):
jump expression "_library_main_menu"

return

ArcialIntegra
Regular
Posts: 53
Joined: Mon Nov 13, 2017 12:10 am
Contact:

Re: Game parsing code error

#8 Post by ArcialIntegra »

Yoloxd2300 wrote: Fri Nov 10, 2017 9:12 pm
Imperf3kt wrote: Thu Nov 09, 2017 11:41 pm Check your game has a "start" label

well i will put here the entire file, plese check if something is wrong
Wrong file. You need to look in your script.rpy (and other associated "gameplay files" that hold your texts and other labels) for "label start:".
"label start:" should be the label that indicates where you want the game to start from, basically it is your first scene. If you do not have this label, your game cannot start because it doesn't know where it is supposed to begin. You may have renamed the first label of your game something completely different on accident. You'll need to change it so that it says "label start:".

Yoloxd2300
Newbie
Posts: 9
Joined: Mon Oct 09, 2017 2:44 am
Contact:

Re: Game parsing code error

#9 Post by Yoloxd2300 »

ArcialIntegra wrote: Mon Nov 13, 2017 3:51 am
Yoloxd2300 wrote: Fri Nov 10, 2017 9:12 pm
Imperf3kt wrote: Thu Nov 09, 2017 11:41 pm Check your game has a "start" label

well i will put here the entire file, plese check if something is wrong
Wrong file. You need to look in your script.rpy (and other associated "gameplay files" that hold your texts and other labels) for "label start:".
"label start:" should be the label that indicates where you want the game to start from, basically it is your first scene. If you do not have this label, your game cannot start because it doesn't know where it is supposed to begin. You may have renamed the first label of your game something completely different on accident. You'll need to change it so that it says "label start:".


Well dude i will put here the entire folder on renpy, i will provide you the game when you find the problem xD


https://mega.nz/#F!i9BDQYaD!ZjahJvqLvzieRiCZwAdA4Q

There is the link of the folder plz help ;-;

ArcialIntegra
Regular
Posts: 53
Joined: Mon Nov 13, 2017 12:10 am
Contact:

Re: Game parsing code error

#10 Post by ArcialIntegra »

Yoloxd2300 wrote: Thu Nov 16, 2017 1:37 am
ArcialIntegra wrote: Mon Nov 13, 2017 3:51 am
Yoloxd2300 wrote: Fri Nov 10, 2017 9:12 pm


well i will put here the entire file, plese check if something is wrong
Wrong file. You need to look in your script.rpy (and other associated "gameplay files" that hold your texts and other labels) for "label start:".
"label start:" should be the label that indicates where you want the game to start from, basically it is your first scene. If you do not have this label, your game cannot start because it doesn't know where it is supposed to begin. You may have renamed the first label of your game something completely different on accident. You'll need to change it so that it says "label start:".


Well dude i will put here the entire folder on renpy, i will provide you the game when you find the problem xD


https://mega.nz/#F!i9BDQYaD!ZjahJvqLvzieRiCZwAdA4Q

There is the link of the folder plz help ;-;
We don't need your Ren'Py folder.
We need your script files in order for us to see what is going on. That said, you should be more than capable of looking at script of the very first scene of your game and seeing if the label is "label start:". Seriously, just open Ren'Py, open the script file in your text editor, and look at the label at the beginning of your game.

Yoloxd2300
Newbie
Posts: 9
Joined: Mon Oct 09, 2017 2:44 am
Contact:

Re: Game parsing code error

#11 Post by Yoloxd2300 »

ArcialIntegra wrote: Thu Nov 16, 2017 1:55 am
Yoloxd2300 wrote: Thu Nov 16, 2017 1:37 am
ArcialIntegra wrote: Mon Nov 13, 2017 3:51 am

Wrong file. You need to look in your script.rpy (and other associated "gameplay files" that hold your texts and other labels) for "label start:".
"label start:" should be the label that indicates where you want the game to start from, basically it is your first scene. If you do not have this label, your game cannot start because it doesn't know where it is supposed to begin. You may have renamed the first label of your game something completely different on accident. You'll need to change it so that it says "label start:".


Well dude i will put here the entire folder on renpy, i will provide you the game when you find the problem xD


https://mega.nz/#F!i9BDQYaD!ZjahJvqLvzieRiCZwAdA4Q

There is the link of the folder plz help ;-;
We don't need your Ren'Py folder.
We need your script files in order for us to see what is going on. That said, you should be more than capable of looking at script of the very first scene of your game and seeing if the label is "label start:". Seriously, just open Ren'Py, open the script file in your text editor, and look at the label at the beginning of your game.

Its the script of a game i downloaded, I do not know about phytom lenguage. In the folder there are the scripts of the game, every single one.
Im sorry im taking your time :(
Least i can do is providing you the game

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Game parsing code error

#12 Post by Imperf3kt »

Okay that make a major difference.
This board is mostly about questions regarding creating games, rather than getting them to play.

That said though, I don't know of any rules against asking for help and I don't see how it'd hurt.

Now for the bad news: if you get that error while trying to play the game, it means there is an uncaught error in the build. Most of the time, there is nothing you can do.
At least, as far as I know. I may be wrong.

Your best course of action is to contact the developer (did they leave any contact info? Did you get the game from an 'official' source?)
We won't be able to help much with already compiled games, at least, not legally.

Mentioning the name of the game would help. Do not worry if it is an embarrasing title or similar - nobody here is critical of such things. You play what you want to, as long as it doesn't feature certain illegal things (such as CP), nobody here will care.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

ArcialIntegra
Regular
Posts: 53
Joined: Mon Nov 13, 2017 12:10 am
Contact:

Re: Game parsing code error

#13 Post by ArcialIntegra »

Yoloxd2300 wrote: Fri Nov 17, 2017 1:33 am
ArcialIntegra wrote: Thu Nov 16, 2017 1:55 am
Yoloxd2300 wrote: Thu Nov 16, 2017 1:37 am



Well dude i will put here the entire folder on renpy, i will provide you the game when you find the problem xD


https://mega.nz/#F!i9BDQYaD!ZjahJvqLvzieRiCZwAdA4Q

There is the link of the folder plz help ;-;
We don't need your Ren'Py folder.
We need your script files in order for us to see what is going on. That said, you should be more than capable of looking at script of the very first scene of your game and seeing if the label is "label start:". Seriously, just open Ren'Py, open the script file in your text editor, and look at the label at the beginning of your game.

Its the script of a game i downloaded, I do not know about phytom lenguage. In the folder there are the scripts of the game, every single one.
Im sorry im taking your time :(
Least i can do is providing you the game
Ok, yeah, that makes a HUGE difference. lol
Sorry, the way you explained it made it sound like you were making the game and having this issue. If you're a player of the game, there are 2 choices you can do. 1) You can alert the developer that their game is missing the start label making it effectively unplayable as it is, then wait for him/her to update it. 2) You can download Ren'Py and fix the code manually. The issue is... since you're not a developer, it may be hard for you to find the spot that needs fixed. Personally, I'd recommend contacting the developer and letting them know what is going on, especially since others are probably having the same problem as you. This just means you have to wait for the fix to be released.

Imperf3kt, I believe you can actually modify existing Ren'Py games through Ren'Py's launcher. I may be wrong, but I remember checking out the code of one Ren'Py game. It may not have been a full-on "Build" though... (You know I'm still pretty green around the gills. lol)

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Game parsing code error

#14 Post by Remix »

Could you let us know what folders are in the game you have?

I am guessing there is:
A /renpy/ folder
A /game/ folder
A /lib/ folder
A .exe with the game name
A .py or .rpa or .pyc with the game name
Maybe a .sh, a readme etc

If so, go to the /game/ folder, find script.rpy and open that in notepad... that's the one that should have 'label start:' ...

If there is no .exe or no /game/ folder, try finding a different release of the game
Frameworks & Scriptlets:

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Game parsing code error

#15 Post by Imperf3kt »

There's the problem guys, in a game you download from someone else, there is no "script.rpy" so you can't just edit it. You need to use (illegal) tools to unarchive the files and return them from a compiled file, to a bare text file, then you will need to recompile everything with the fixed script.
Not exactly beginner stuff.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Ocelot, VESTED