Diving in, got stuck pretty quick

Game development with Board Game Arena Studio
Post Reply
User avatar
Madmartigan007
Posts: 10
Joined: 26 December 2020, 19:09

Diving in, got stuck pretty quick

Post by Madmartigan007 »

Hello,

So I am following the Create_a_game_in_BGA_Studio:_Complete_Walkthrough

I am trying to get some moral satisfaction by just adding the game board to the screen.

To the tpl file I added
<div id="board" class="board">
</div>

to the css file I added
.board {
background-image: url('img/board.png');
width: 942px;
height: 2400px;
background-size: 942px 2400px;
float: left;
position: relative;
background-repeat: no-repeat;
background-position: center top;
}

Then I uploaded the board.png file to the img directory as well.

Not sure what I am missing. no errors, just no picture showing.
User avatar
ShaPhi7
Posts: 37
Joined: 22 April 2020, 20:44

Re: Diving in, got stuck pretty quick

Post by ShaPhi7 »

You'll need to make sure you completely refresh your browser for the studio site to clear any cache it may have had, causing it to only display files that were there before rather than your new one (Ctrl+F5 in Google Chrome, rather than the usual F5 for a standard refresh).

Edit: the below part of my original is only applicable to game_*.png or game_*.jpg image file (game box images displayed outside of game page), not for all images for your game. Thanks to fafa-fr for pointing out.

Have you clicked the magical "reload game images" button?

On studio, click CONTROL PANEL on the top menu, select your game, and on the next screen in the game configuration box, there is a button saying "reload game images".
Last edited by ShaPhi7 on 30 December 2020, 17:53, edited 1 time in total.
User avatar
fafa-fr
Posts: 383
Joined: 22 December 2013, 21:58

Re: Diving in, got stuck pretty quick

Post by fafa-fr »

Don't know if you've done something since your post, but I see your board, no problem.
ShaPhi7 wrote: 29 December 2020, 10:03 Have you clicked the magical "reload game images" button?
This is needed only for game_*.png or game_*.jpg image file (game box images displayed outside of game page), not for all images for your game.
User avatar
paramesis
Posts: 398
Joined: 28 April 2020, 05:00

Re: Diving in, got stuck pretty quick

Post by paramesis »

Whenever you make changes to your CSS or images, you’ll want to do a hard refresh on the game interface (shift-f5 or ctrl-f5) to ignore the earlier version cached in your browser.
User avatar
tchobello
Posts: 693
Joined: 18 March 2012, 13:19

Re: Diving in, got stuck pretty quick

Post by tchobello »

Is that really a 900 × 2400 png file ?
Seems huge !
User avatar
Madmartigan007
Posts: 10
Joined: 26 December 2020, 19:09

Re: Diving in, got stuck pretty quick

Post by Madmartigan007 »

cntrl-F5 solved that - TY

I had been reloading the pictures after every step.


as for the size, no, its too big, but i had no idea until i saw it.
User avatar
ShaPhi7
Posts: 37
Joined: 22 April 2020, 20:44

Re: Diving in, got stuck pretty quick

Post by ShaPhi7 »

fafa-fr wrote: 29 December 2020, 10:58 Don't know if you've done something since your post, but I see your board, no problem.
ShaPhi7 wrote: 29 December 2020, 10:03 Have you clicked the magical "reload game images" button?
This is needed only for game_*.png or game_*.jpg image file (game box images displayed outside of game page), not for all images for your game.
Thanks for pointing out, I hadn't realised, I've updated original post.
Post Reply

Return to “Developers”