Strange behavior of symbols...

Game Editor comments and discussion.

Strange behavior of symbols...

Postby Leif » Tue Dec 29, 2009 1:38 pm

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".
Attachments
symbols.rar
(406.97 KiB) Downloaded 65 times
Repulsor beam + heavy cannons
User avatar
Leif
 
Posts: 147
Joined: Mon Dec 15, 2008 12:42 pm
Location: Moscow, Russia
Score: 10 Give a positive score

Re: Strange behavior of symbols...

Postby Superbeni » Tue Dec 29, 2009 2:04 pm

I didn´t see this error, but restart GE should help.
User avatar
Superbeni
 
Posts: 130
Joined: Sun Aug 02, 2009 1:23 pm
Location: Vienna, Austria
Score: 31 Give a positive score

Re: Strange behavior of symbols...

Postby Leif » Tue Dec 29, 2009 7:39 pm

Restart every time ... :(
Repulsor beam + heavy cannons
User avatar
Leif
 
Posts: 147
Joined: Mon Dec 15, 2008 12:42 pm
Location: Moscow, Russia
Score: 10 Give a positive score

Re: Strange behavior of symbols...

Postby skydereign » Wed Dec 30, 2009 10:27 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Strange behavior of symbols...

Postby Leif » Wed Dec 30, 2009 11:43 am

Yes !! :D It works !!
Thank you very much)

Now I know more about GE ))
Repulsor beam + heavy cannons
User avatar
Leif
 
Posts: 147
Joined: Mon Dec 15, 2008 12:42 pm
Location: Moscow, Russia
Score: 10 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron