Page 1 of 1

Annoying script error

Posted: Sat May 04, 2024 10:01 am
by Reficul Hopes
Hello there. I am working on a Ace Attorney-like game. I needed something similar to court records from that game, somewhat inventory. I have found VN which represents just that - inventory that looks just like the one from AA and works the same way. But the creator added one feature I don't need. So basically there are three buttons at the right top corner: "Profiles", "Evidences" and "Assistant". I don't need the first and the third ones. But most of all - the third. So I found it in the code, deleted the line and... script error ! And not just that. I am not even sure that this error somehow connected to what I've done. Then I found out that the same error occurs no matter what you edit in the script. So... Help, please ?.. I am leaving here a link to that visual novel so you can look through scripts yourself and see how it works even. And also a screenshot of the script error. The error first occured when I deleted one of the last three lines in court_records.rpy

https://github.com/overlordofflies/court_record

Re: Annoying script error

Posted: Sun May 05, 2024 6:11 am
by m_from_space
The reason it does work when not changing anything is, that it uses the precompiled .rpyc files when executing. As soon as you edit anything, it will try to recompiling the game and result in the error. The error is due to the code not being proper anymore, since it is 6 years old.

But I found the issue:

Change the following code inside <court_record.rpy> on line 118:

Code: Select all

    frame:
        $ pages = records.getPage()
        xsize 1280
        ysize 720
        background Frame("evidence_window.png") 

# change to this

    frame:
        xsize 1280
        ysize 720
        background Frame("evidence_window.png") 
        $ pages = records.getPage()

Re: m_from_space

Posted: Sun May 05, 2024 2:12 pm
by Reficul Hopes
Thanks a lot ! Now it does works, finally !

Re: Annoying script error

Posted: Thu May 09, 2024 7:31 pm
by Milkymalk
m_from_space wrote: Sun May 05, 2024 6:11 am

Code: Select all

    frame:
        $ pages = records.getPage()
        xsize 1280
        ysize 720
        background Frame("evidence_window.png") 

# change to this

    frame:
        xsize 1280
        ysize 720
        background Frame("evidence_window.png") 
        $ pages = records.getPage()
Why is the order relevant here? I don't get it.

Re: Annoying script error

Posted: Thu May 09, 2024 8:05 pm
by jeffster
Milkymalk wrote: Thu May 09, 2024 7:31 pm Why is the order relevant here? I don't get it.
Read the error message in the original screenshot. Apparently Ren'Py can't always translate its instructions after pieces of arbitrary Python code.

Re: Annoying script error

Posted: Tue May 14, 2024 8:24 am
by MakhiPollard
It is working for me also. For a few months, I struggled to give enough time to all my subjects while writing assignments such as assignments and essays. And to facilitate this I found this website https://ukwritings.com/ which is an spamming the forum like a silly person service provider. I have used them a few times now and they really solve my problem. If you also need them, you can use them because they are professional and affordable.