Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Nov 27, 2021 1:42 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Prevent BE from 'sorting' the code
Thanked: 0 time(s)  Unread post Posted: Sat Oct 30, 2021 11:31 pm 
Active User
Active User



Joined: Sun Oct 17, 2021 9:07 pm
Posts: 32
Been thanked: 0 time(s)
Has thanked: 6 time(s)
Contribution Points: 67
Ok, with the lack of a search within the code view, I started to use comment lines code as this to seperate different sections to make it easier to find functions I'm looking for.
Code:
 //
 // ***************** Skill Timers ************************
 //


What i have found though is that after closing/reopening a few times All those comment lines are being 'sorted' to directly below the main program like this
Code:
 end
 //
 // ***************** Skill Timers ************************
 //
 //
 // **************** Decision Routines ***************
 //
 //
 // ***************** Skill Routines **************************
 //
 //
 // ******************** Basic Attack Routines ******************
 //
 //
 // *************** HEALTH AND SP FUNCTIONS **************
 //




Is there any way to stop this happening?


Top
 Profile  
Reply with quote  
 Post subject: Re: Prevent BE from 'sorting' the code
Thanked: 0 time(s)  Unread post Posted: Sun Oct 31, 2021 12:08 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2218
Location: USA
Been thanked: 520 time(s)
Has thanked: 38 time(s)
Contribution Points: 17606
It would be good to see the "before" so I can try and duplicate it...unless this is the case:

There's only one instance that I can think of where this occurs and that's when you leave a comment with only one "/"; if you do that, then it will sort all the comments to the top.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
 Post subject: Re: Prevent BE from 'sorting' the code
Thanked: 0 time(s)  Unread post Posted: Sun Oct 31, 2021 12:16 am 
Active User
Active User



Joined: Sun Oct 17, 2021 9:07 pm
Posts: 32
Been thanked: 0 time(s)
Has thanked: 6 time(s)
Contribution Points: 67
its happening when the comments are outside of a function like the example below.
It'll stay like that for awhile, then after fully closing BE and reopening i'm noticing it as above. Unsure what point it's changing at precisely as just closing/opening the script isnt reproducing it, neither is closing BE and immediately opening again. At first I thought maybe I had done something without realizing it, and put them all back as they should be, only to find on opening it today they were back like shown in the OP.

Code:
begin
.... main program
end
//
//Comment divider
//
function("some function")
begin
end
function
//
//Comment divider 2
//
function("another function")
begin
end
function


Attachments:
File comment: the actual script its occuring with.
Note: you'll need to remove the 3 lines towards the start that I was testing the plugin with or it just hangs and aborts

robot;singlescript.bem [295.47 KiB]
Downloaded 11 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group