Final testing for game fails.

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
User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Final testing for game fails.

#16 Post by Jake » Sat Jan 19, 2008 4:58 pm

Cybeat wrote:What made it even worse was that after I archived the files and tested my game with the launcher (instead of waiting to distribute over and over)
it still failed.
This suggests to me that there's some image/s referenced in your script which weren't in the game directory when you archived the files. How big is the data.rpa, compared to the sum size of all your image files?

Also, if you put all the images from the 'archive' directory back into the 'game' directory, then run it, does it work?
Server error: user 'Jake' not found

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Final testing for game fails.

#17 Post by PyTom » Sat Jan 19, 2008 5:02 pm

Hm... This could occur if the case of your images are wrong. But lint should warn about that.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: Final testing for game fails.

#18 Post by Cybeat » Sat Jan 19, 2008 5:12 pm

The data rpa was about 11 mb when archived. I really don't know what's wrong. It only happens after archiving.

at Pytom: Can you take my files and distribute it and see what my problem is?
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Final testing for game fails.

#19 Post by PyTom » Sat Jan 19, 2008 5:16 pm

I'm now pretty sure that image case is the problem. Basically, if you have an image named "foo.PNG", but have in your script:

Code: Select all

image foo = "foo.png"
then this will work in windows, which has a case insensitive filesystem. (But lint will warn about it.)

The archive files are case-sensitive, so you get this problem.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: Final testing for game fails.

#20 Post by Cybeat » Sat Jan 19, 2008 8:11 pm

That's not it. This is what I got:

UTF8 ch=70
UTF8 ch=79
UTF8 ch=67
UTF8 ch=61
UTF8 ch=6d
UTF8 ch=65
UTF8 ch=0

Ren'Py 6.5.0e lint report, generated at: Sat Jan 19 19:09:21 2008

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:307 One or more text tags were left open at the end of the string: 'color' (in "{color=#0f0}Location: Cyber City, in 010's Cyber Troops base.")

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:1337 One or more text tags were left open at the end of the string: 'b' (in "It's {b} I would've been your daddy but a dog beat me over the fence, Red Ranger wanna be!")

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:2090 The image named 'Monster twocolor' was not declared.


Statistics:

The game contains 1405 screens of dialogue.
These screens contain a total of 8406 words.
For an average of 6.0 words per screen.
The game contains 37 menus.

Lint is not a substitute for thorough testing.
Remember to update Ren'Py before releasing. New releases fix bugs and
improve compatibility.
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

User avatar
Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: Final testing for game fails.

#21 Post by Cybeat » Sat Jan 19, 2008 8:37 pm

And this is before archiving:

UTF8 ch=70
UTF8 ch=79
UTF8 ch=67
UTF8 ch=61
UTF8 ch=6d
UTF8 ch=65
UTF8 ch=0

Ren'Py 6.5.0e lint report, generated at: Sat Jan 19 19:36:27 2008

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:4 Filename case mismatch for image HK. 'HK.png' was used in the script, but 'HK.PNG' was found on disk.
Case mismatches can lead to problems on Mac, Linux/Unix, and when archiving images. To fix them, either rename the file on disk, or the filename use in the script.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:5 Filename case mismatch for image HK happy. 'HK(happy).png' was used in the script, but 'HK(happy).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:7 Filename case mismatch for image HK shocked. 'HK(shocked).png' was used in the script, but 'HK(shocked).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:8 Filename case mismatch for image HK unhappy. 'HK(unhappy).png' was used in the script, but 'HK(unhappy).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:9 Filename case mismatch for image GK. 'GK.png' was used in the script, but 'GK.PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:10 Filename case mismatch for image GK confident. 'GK(confident).png' was used in the script, but 'GK(confident).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:11 Filename case mismatch for image GK mad. 'GK(mad).png' was used in the script, but 'GK(mad).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:12 Filename case mismatch for image GK shocked. 'GK(shocked).png' was used in the script, but 'GK(shocked).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:13 Filename case mismatch for image GK smile. 'GK(smile).png' was used in the script, but 'GK(smile).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:14 Filename case mismatch for image BK clerk. 'BK(clerk).png' was used in the script, but 'BK(clerk).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:15 Filename case mismatch for image BK. 'BK.png' was used in the script, but 'BK.PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:16 Filename case mismatch for image BK confident. 'BK(confident).png' was used in the script, but 'BK(confident).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:18 Filename case mismatch for image BK shocked. 'BK(shocked).png' was used in the script, but 'BK(shocked).PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:59 Filename case mismatch for image Drone2. 'Drone2.png' was used in the script, but 'Drone2.PNG' was found on disk.

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:307 One or more text tags were left open at the end of the string: 'color' (in "{color=#0f0}Location: Cyber City, in 010's Cyber Troops base.")

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:1337 One or more text tags were left open at the end of the string: 'b' (in "It's {b} I would've been your daddy but a dog beat me over the fence, Red Ranger wanna be!")

C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:2090 The image named 'Monster twocolor' was not declared.


Statistics:

The game contains 1405 screens of dialogue.
These screens contain a total of 8406 words.
For an average of 6.0 words per screen.
The game contains 37 menus.

Lint is not a substitute for thorough testing.
Remember to update Ren'Py before releasing. New releases fix bugs and
improve compatibility.
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

User avatar
akemicchi
Veteran
Posts: 465
Joined: Mon Dec 31, 2007 11:22 pm
Projects: Magicians of Delphine, Panaderia: Ensaimada, SweetTooth!, XOXO Droplets
Deviantart: littlebabyshoes
Contact:

Re: Final testing for game fails.

#22 Post by akemicchi » Sat Jan 19, 2008 8:51 pm

Cybeat wrote:C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:2090 The image named 'Monster twocolor' was not declared.
Um, from the lint before archiving, it looks like you haven't declared the image 'Monster twocolor' in the init. :3 You know: image Monster twocolor = "etc...."

Also, it looks like some parts of your script doesn't have any closing tags. Like, for
C:\Documents and Settings\Owner\Desktop\renpy-6.5.0-full[1]\renpy-6.5.0\Cyber Troops/game/script.rpy:307 One or more text tags were left open at the end of the string: 'color' (in "{color=#0f0}Location: Cyber City, in 010's Cyber Troops base.")
... you should end it with {/color}. Same with line 1337; close it with {/b}.

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Final testing for game fails.

#23 Post by Jake » Sat Jan 19, 2008 8:56 pm

Cybeat wrote:And this is before archiving:
...

Filename case mismatch for image HK. 'HK.png' was used in the script, but 'HK.PNG' was found on disk.
This looks like exactly the problem PyTom was describing.

There are two relatively-easy ways to solve this.

1) Open a command prompt in your game directory (Win-R to run, type 'cmd' in the box, then at the prompt type:

Code: Select all

cd "c:\games\renpy\mygame\game"
- with quotes, where 'c:\games\renpy\mygame\game' is the path to your game, then type:

Code: Select all

ren *.PNG *.png
Do this with all the images in the folder, then run the archiver and try again.

2) Edit your script, do a find-and-replace on all instances of ".png" with ".PNG".
Server error: user 'Jake' not found

User avatar
Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: Final testing for game fails.

#24 Post by Cybeat » Sat Jan 19, 2008 9:22 pm

I think you and PyTom are right. The list of the files I posted are the ones that needed to be capitalized (I don't know why). The game went further this time, but sometimes I still get errors saying png not found, in other words, only some have to be capitalized and some stay lower cased. I'll test it again.
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Final testing for game fails.

#25 Post by Jake » Sat Jan 19, 2008 9:47 pm

Cybeat wrote:I think you and PyTom are right. The list of the files I posted are the ones that needed to be capitalized (I don't know why). The game went further this time, but sometimes I still get errors saying png not found, in other words, only some have to be capitalized and some stay lower cased. I'll test it again.
If you follow option 1 in my previous post, then do a find-and-replace in your script to change ".PNG" into ".png", it should result in all the files in your game directory having a lower-case extension, and all the file references in your script having a lower-case extension.
Server error: user 'Jake' not found

User avatar
Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: Final testing for game fails.

#26 Post by Cybeat » Sat Jan 19, 2008 9:54 pm

Jake wrote:
Cybeat wrote:I think you and PyTom are right. The list of the files I posted are the ones that needed to be capitalized (I don't know why). The game went further this time, but sometimes I still get errors saying png not found, in other words, only some have to be capitalized and some stay lower cased. I'll test it again.
If you follow option 1 in my previous post, then do a find-and-replace in your script to change ".PNG" into ".png", it should result in all the files in your game directory having a lower-case extension, and all the file references in your script having a lower-case extension.
Oh that. I didn't take that choice because it sounded confusing.
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

User avatar
Cybeat
Miko-Class Veteran
Posts: 607
Joined: Wed Jan 02, 2008 3:12 am
Contact:

Re: Final testing for game fails.

#27 Post by Cybeat » Sun Jan 20, 2008 3:16 am

Okay, I got it working. Thanks guys. Let's see if it works on everybody's computer.
Mujinchitai
http://lemmasoft.renai.us/forums/viewto ... =16&t=3360
Current Status: artist of R.E.M: Reality's Dream and musician, programmer, and writer of Mujinchitai

User avatar
herenvardo
Veteran
Posts: 359
Joined: Sat Feb 25, 2006 11:09 am
Location: Sant Cugat del Vallès (Barcelona, Spain)
Contact:

Re: Final testing for game fails.

#28 Post by herenvardo » Sat Jan 26, 2008 1:01 pm

Jake wrote:
Cybeat wrote:I think you and PyTom are right. The list of the files I posted are the ones that needed to be capitalized (I don't know why). The game went further this time, but sometimes I still get errors saying png not found, in other words, only some have to be capitalized and some stay lower cased. I'll test it again.
If you follow option 1 in my previous post, then do a find-and-replace in your script to change ".PNG" into ".png", it should result in all the files in your game directory having a lower-case extension, and all the file references in your script having a lower-case extension.
Warning: Jake's suggestion would fix the case-matching issue for the extension part of the filenames only. You'd still need to check that the rest of the filenames are properly matched.
To put an example, if you have a file named "MYIMAGE.PNG" and have a reference from your code to "myimage.png" or "myimage.PNG", Jake's method will make you end up with "MYIMAGE.png" in your disk, and "myimage.png" in your script's references to that image: you would still need to rename "MYIMAGE.png" to "myimage.png" for it to work. Anyway, according to the Lint's output you posted, it seems that you only have capitalization problems with the extensions. Just make sure to run Lint everytime before you build the distributions, and you should be fine (and I think the launcher actually runs Lint when you ask it to build the distributions, so just make sure you check the results when it does).

Something that worries me about your posts is that you said:
Cybeat wrote:I distibuted the game and everything
but afterwards you also commented:
Cybeat wrote: I have copyright over the images already? I thought I needed to license my work first.
By any chance, do you what's the best place (site) to license my work?
Did you distribute the game without any license? If you did that, you're not granting the users even the right to run the game; and while you don't seem to sure about which license to use, I'd bet you at least want the players to be able to play it. Note that distributing doesn't mean just using Ren'py launcher's "Build distributions" function, but also to make these distribution packages reach actual users. If you've built the distributions, but haven't "spread" the game among users (nobody other than you has it yet), then you haven't actually "distributed" it; if somebody already got the game, and there is no license, then you haven't granted any permission to that user to run the program, and by doing so s/he'd be violating your copyright on the program. If this is the case, I hope you won't take legal actions against such person, but rather clarify that the lack of license is more like a mistake, and grant her/him some license once you decide which one to use.

One more thing, about your question:
Cybeat wrote:By any chance, do you what's the best place (site) to license my work?
I'm not actually sure of what do you mean with this. If your question is about which license to chose, you already started a topic on http://lemmasoft.renai.us/forums/viewto ... f=8&t=3062. I encourage you to review Pytom's reply on that topic, and post the answers to the questions described there; if you do I'll try to browse the web and find licenses matching your interests for you to review and chose (I suggest you to post these answers on the topic I've just linked above, since it will be more relevant).
If your question is about what should you do once you chose your license in order to apply it to your game, then in most cases is quite simple, there are two basic steps:
1) Include a license.txt (or something like that) with the text of the license you've chosen for your product.
and 2) Add a note (ie: at the beginning of the game and / or in the webpage where you publish it, if you publish it on a webpage) saying something like that "© [your name or your company's name here] 2008. You are entitled to use this product according to the terms described in the license.txt document within the distribution package."
Remember that thanks to the Berne Convention, the Agreement on Trade-Related Aspects of Intellectual Property Rights, and similar international agreements you own the copyright of something you create as soon as you create it, and are entitled to license it under any terms you chose just by following the steps above.

Hope this helps.
I have failed to meet my deadlines so many times I'm not announcing my projects anymore. Whatever I'm working on, it'll be released when it is ready :P

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Final testing for game fails.

#29 Post by PyTom » Sat Jan 26, 2008 3:53 pm

While IANAL, from what I understand a license isn't required to simply run a program. That falls under fair use... once you've legitimately acquired a program, it's yours to run... unless you accept a contract that reduces your rights. You need a license to redistribute the program.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Final testing for game fails.

#30 Post by Jake » Sat Jan 26, 2008 7:55 pm

PyTom wrote:While IANAL, from what I understand a license isn't required to simply run a program. That falls under fair use...
While I would consider this the case, and don't see the particular need to include a run-time license on software I distribute, it has been argued by some that the act of loading a piece of software into RAM constitutes 'making a copy', which is something which only the copyright holder is by default authorised to do.

Of course, this kind of reasoning seems to mostly be the domain of psychotic RIAA lawyers rather than ordinary human beings, but all the same... it's an argument.
Server error: user 'Jake' not found

Post Reply

Who is online

Users browsing this forum: Google [Bot], minyan