This is where fixed bugs can be seen. Please do not post new bugs into this forum, it is purely to see what has been fixed and most topics will be locked.

Search & Replace [ Solved ]

Search & Replace [ Solved ]

Postby Shando » 01 Jan 2014, 23:00

Hi All,

Just a quick one to let you know that the "Search & Replace" functionality in the Script Editor seems to go into an infinite loop.

I have a file that has 192 lines like this (NB: These lines are towards the end of a 600+ line script):

Code: Select all
function createMapTable ( )
   mapTable = {
      m001 = { x1 = "0", y1 = "0", lush = "false", fissure = "false", player = "0", building = "0", online = "true", sick = "false", removeable = "false" },
      m002 = { x1 = "0", y1 = "0", lush = "false", fissure = "false", player = "0", building = "0", online = "true", sick = "false", removeable = "false" },
      m003 = { x1 = "0", y1 = "0", lush = "false", fissure = "false", player = "0", building = "0", online = "true", sick = "false", removeable = "false" },
      m004 = { x1 = "0", y1 = "0", lush = "false", fissure = "false", player = "0", building = "0", online = "true", sick = "false", removeable = "false" },
      m005 = { x1 = "0", y1 = "0", lush = "false", fissure = "false", player = "0", building = "0", online = "true", sick = "false", removeable = "false" },


when I try the following "Search & Replace":

http://sdrv.ms/1gnUIpH

Skyline seems to go into an infinite loop (Task Manager shows it running one core at 100%). My guess would be that it keeps cycling through the script replacing the "able = "false" over and over again??

Regards

Shando
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Search & Replace

Postby StarFire » 03 Jan 2014, 17:55

Thanks for the report =)

Ok one small issue is that when the replace has completed it throws up an info window which can get trapped behind the script editor if it is pinned ( unpin editor to fix ). Have a look in the side bar to see if any other window has opened.

I have changed a couple of bits in the replace loop and it seem to be behaving, we will add it to the next update for you to test. ;)
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 5 guests