Page 1 of 1

Strange behavior of symbols...

PostPosted: Tue Dec 29, 2009 1:38 pm
by Leif
Open file and click "Game mode". Then exit. Now If you click on any menu item you'll see strange behavior of symbols..
If you click "Game mode" next time an error will occure...
????? how to correct it ????? :((

It began after inserting procedures "Create_Figure" and "Get_HEX_Colors".

Re: Strange behavior of symbols...

PostPosted: Tue Dec 29, 2009 2:04 pm
by Superbeni
I didnĀ“t see this error, but restart GE should help.

Re: Strange behavior of symbols...

PostPosted: Tue Dec 29, 2009 7:39 pm
by Leif
Restart every time ... :(

Re: Strange behavior of symbols...

PostPosted: Wed Dec 30, 2009 10:27 am
by skydereign
First off if you are going to try to bump a topic, do it within the topic that you want... don't start new ones. I have seen the problem you are experiencing, though I get it through the following.
Open the file -> Game Mode -> Click, creating the hex colors -> Exit Game -> Game Mode

I didn't go completely through the code, but here are some observations I made. First off, it seems that the game is hell bent on a certain random combination. Red on top, yellow in the middle, and two blacks on bottom. This happens whenever I load the game, maybe due to the rand function, or just my gameEditor. I can break this by making sure that combination does not happen, and after that it will allow actual random patterns.

In the code where you have if(C==0), if you comment out the setting of black, and instead increase C, in my case I set C to 1, effectively getting rid of the black hex, it seems to not mess up. From what I saw that does not make sense... but furthering this, I found that the game only has this bug you are encountering if there are two black hex actors created. Again I am not sure if this is acceptable. The only thing that I noticed that made HEX_black unique was that everything inherited from it. I will look further into it for a more acceptable fix.

-Edit
Try this, it worked for me. Create a new actor and make it identical to HEX_black, and use that instead. See if that works for you as well, you probably already know, but also switch the Get_HEX_Colors names for C==0.

Re: Strange behavior of symbols...

PostPosted: Wed Dec 30, 2009 11:43 am
by Leif
Yes !! :D It works !!
Thank you very much)

Now I know more about GE ))