# Testing game does not show images, but no error message?

**URL:** <https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801>\
**Category:** ChoiceScript Help\
**Created:** [April 17, 2017, 5:22am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801 "2017-04-17T05:22:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:22am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/1 "2017-04-17T05:22:14Z")

</div>

So I’m having an issue with getting images to load in my game. I’m not getting any error messages, but when I test the game in Firefox I’m getting the broken image icon instead of the image. I have the file in my “mygame” folder like I’m supposed to, it’s a .png file but I’ve been having the same issue with .jpg files and any other images I try to upload.

My code for it is: \*image filename.type alignment

That’s what it says on the tutorial section of the site: is there something else I need to be doing to get it to load right? Do I need to list it like the scenes on the startup page or something? Everything else on my game seems to be working fine, I just can’t seem to get images to show up; it’s my first time making a game on this software, and I thought I was doing alright before I tried adding images.

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [April 17, 2017, 5:25am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/2 "2017-04-17T05:25:53Z")

</div>

Can you post the exact code you are using?  
Also, can you verify that the image is not corrupt by opening it regularly through Firefox?

---

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:30am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/3 "2017-04-17T05:30:16Z")

</div>

Right now I am literally just trying to get images on. The entirety of the code for my startup page right now is:

\*title Conduit  
\*author Jay M Profio  
\*scene\_list  
startup

Image Test

\*image SpriteRayne.png center

That’s all that’s on there right now, because I’m just using it to test the appearance of the image once I add it to my final game. The file name is exactly the same as in the code, capital letters and all. I opened the file in Firefox and it looks fine, it just doesn’t open with the code when I test it.

---

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:33am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/4 "2017-04-17T05:33:00Z")

</div>

![](https://global.discourse-cdn.com/choiceofgames/original/3X/c/e/ce4c91041ca7b8e8454c3233e77f3bab55d42495.png)  
This is a screenshot of what I get. I don’t get any errors

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [April 17, 2017, 5:34am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/5 "2017-04-17T05:34:16Z")

</div>

Ok, try it with a .jpg  
Does it give you the same message?

I just tested:  
\*image myimage.jpg center

For me, this works on mine.  
Maybe ChoiceScript can’t process .png

---

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:37am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/6 "2017-04-17T05:37:54Z")

</div>

I just saved the image as a .jpg, ran a test and got the same image result as before. I even changed the file type in the code. Running the quick test lists it as successful; everything is running fine but the image just doesn’t show up in the test.

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [April 17, 2017, 5:39am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/7 "2017-04-17T05:39:04Z")

</div>

> [@Jay\_M\_Profio](#):
>
> I just saved the image as a .jpg

Do you get the same result with a .jpg downloaded from the internet?

---

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:42am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/8 "2017-04-17T05:42:15Z")

</div>

I just tried this, and yes. It’s exactly the same.

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [April 17, 2017, 5:44am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/9 "2017-04-17T05:44:24Z")

</div>

Ok, so the image is your “mygame” folder, correct?  
And your code is in your “scenes” folder?  
And both of these things are in the same dfabulich-choicescript folder?

---

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:45am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/10 "2017-04-17T05:45:21Z")

</div>

Yes. Everything is in the right folders, I’ve checked and double checked. The automatic tests say everything is running properly with no errors, but when I compile and test the images are broken links.

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [April 17, 2017, 5:47am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/11 "2017-04-17T05:47:15Z")

</div>

> [@Jay\_M\_Profio](#):
>
> but when I compile

Ok that might be something there… when you compile?  
You don’t need to compile to test.  
If on a PC, you just double click the index in your “mygame” folder.

---

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:48am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/12 "2017-04-17T05:48:22Z")

</div>

Ah I see that was it. The tutorial pages say to test via the “compile” command.

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [April 17, 2017, 5:49am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/13 "2017-04-17T05:49:05Z")

</div>

Silly tutorials 😉  
Does it work now?

---

<div class="post-metadata">

**Author:** ![Jay\_M\_Profio](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jay_m_profio/32/28360_2.png) [@Jay\_M\_Profio](https://forum.choiceofgames.com/u/Jay_M_Profio)\
**Post date:** [April 17, 2017, 5:49am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/14 "2017-04-17T05:49:34Z")

</div>

Yes, it’s working now. Thanks very much, I didn’t realize “compile” was messing with the images

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [April 17, 2017, 11:22am UTC](https://forum.choiceofgames.com/t/testing-game-does-not-show-images-but-no-error-message/25801/15 "2017-04-17T11:22:27Z")

</div>

Which tutorial pages? Compilation should work fine, but you’ll need to copy the images to the folder (location) of the compiled “game.html” file 🙂
