Is this some bug of activation regions?

Non-platform specific questions.

Is this some bug of activation regions?

Postby lcl » Sun Feb 13, 2011 7:11 pm

So, the thing is that:

My game ran slow, and I added activation regions for making it faster.
I split tile actors into clones, one for each region and everything seemed ok.
I started playing and game worked well, but..

At some levels when I load game the screen is just black and views y position is different
to what it should be. This happens often at some levels. Not always. Sometimes i can load the game succesfully after trying several times.

Anyone knows why this happens and/or has some advice for me to fix it?

- Thanks, lcl -
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Is this some bug of activation regions?

Postby Camper1995 » Sun Feb 13, 2011 7:28 pm

Hm yeah, maybe it's a bug because this happens to make too.

I simply removed the region and created new one. (remove it, save game, exit game editor, run GE, create new one, test it, if succed, save game xD)

Maybe ....

good luck :D
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Is this some bug of activation regions?

Postby lcl » Sun Feb 13, 2011 9:28 pm

So you were also having problems like: sometimes working sometimes not.., right?
Then I have to try it, thanks. :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Is this some bug of activation regions?

Postby Camper1995 » Sun Feb 13, 2011 9:32 pm

So you were also having problems like: sometimes working sometimes not.., right?


Yeah, exactly. :?
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Is this some bug of activation regions?

Postby lcl » Sun Feb 13, 2011 9:46 pm

Camper1995 wrote:
So you were also having problems like: sometimes working sometimes not.., right?


Yeah, exactly. :?

Got to try it then. :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Is this some bug of activation regions?

Postby Camper1995 » Sun Feb 13, 2011 9:54 pm

lcl wrote:
Camper1995 wrote:
So you were also having problems like: sometimes working sometimes not.., right?


Yeah, exactly. :?

Got to try it then. :D


Good luck :lol: :lol:
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Is this some bug of activation regions?

Postby lcl » Tue Feb 15, 2011 1:39 pm

The problem is solved.

Thanks for your help camper.
Actually I found out that activation regions worked just as they should but my
code had one "bug".

Let me explain it.
(For no one else to run into this kind of problems 'cause they can learn from this) :)

The problem was that:
I had my player created at startup at the first levels begin position.
I also had code in players draw actor code that moved the view
at the y coordinate of the "room" that player was in. Now when I loaded the game
the code should have moved the view and the player to the level that game was saved in,
but sometimes the view was already moved to saved position but the player wasn't.
And that activated the view moving code in players draw actor and moved view away from the saved rooms y coordinate into empty place, because the first level where player was still in was
several rooms below.

So, what I did was just make player not created at startup and created him straightly to the right place when saved game was loaded. (I hope this made sense). :lol:
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Is this some bug of activation regions?

Postby Camper1995 » Tue Feb 15, 2011 3:36 pm

Nice. :P
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest