modify sprites file

Game development with Board Game Arena Studio
Post Reply
User avatar
tchobello
Posts: 694
Joined: 18 March 2012, 13:19

modify sprites file

Post by tchobello »

Hello

I'm adding sprites in a sprites file and I also need to move the existing ones.
I've had a bug report last time as it has disturbed display on existing games so I had to switch back to a former deploy.

Is there a way to do that without altering existing games ?
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: modify sprites file

Post by RicardoRix »

css selector for the new image file with the new php?
User avatar
tchobello
Posts: 694
Joined: 18 March 2012, 13:19

Re: modify sprites file

Post by tchobello »

what does it mean ?
can you give a little more explanation ?
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: modify sprites file

Post by RicardoRix »

don't overwrite your image file, make a new one, and have both that you can reference.

.oldVersionImage
{
url: oldimage;
}

.newVersionImage
{
url: newimage;
}

old php:
<div class="oldVersionImage">

new php:
<div class="newVersionImage">
User avatar
tchobello
Posts: 694
Joined: 18 March 2012, 13:19

Re: modify sprites file

Post by tchobello »

you mean I should add
.newVersionImage
{
url: newimage;
}

in the CSS

and replace
<div class="oldVersionImage">
by
<div class="newVersionImage">
in the JS file ?

The existing games will make the switch without bugging ?
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: modify sprites file

Post by RicardoRix »

sorry, I'm talking absolute nonsense. I was thinking the old games would be running the old code, which is not true.

What was the reason the update failed the last time?
If you get to the bottom of that, then it would help you understand.

I think the only reason why this would fail is because of something in the DB, so it's mildly possible the suggestion above may have some merit.
Post Reply

Return to “Developers”