Page 1 of 1

Highlighting off by 1 if line is greater then 10000

Posted: Fri Nov 22, 2013 2:03 pm
by xinux
Highlighting get's off by one when the line number is greater then 10000. Would it be possiable to add a if statement in the following section so it changes the offset by 1 or use a new map if the line number is 10000 or greater?

SelectionData.cs

Code: Select all

	public class SelectionData {
		//we store the offsets for data offsets per byte. so each line would have 16 possible offsets.
		//well, since each byte is actually 2 ASCII characters and a space, we need to map it differently
		//so actually each selection offset is spaced 3 bytes apart
		//eg. offset 0 is actually at offset 6   ->  SelectionOffsetMapping[0] = 6   ->  0000:	0
		//eg. offset 5 is actually at offset 21  ->  SelectionOffsetMapping[5] = 21  ->  0000:	01 FF CE 01 00 0)
		public static int[] SelectionOffsetMapping = new int[] {
			6,  9,  12, 15,
			18, 21, 24, 27,
			30, 33, 36, 39,
			42, 45, 48, 51
		};

Re: Highlighting off by 1 if line is greater then 10000

Posted: Fri Nov 22, 2013 2:12 pm
by John Adams
You mean THIS? :)

Sure, go ahead and fix it. You should have rights to commit to EQ2Tools.

Re: Highlighting off by 1 if line is greater then 10000

Posted: Fri Nov 22, 2013 3:32 pm
by xinux
Been playing with it but haven't got it to work right yet

Re: Highlighting off by 1 if line is greater then 10000

Posted: Fri Nov 22, 2013 3:37 pm
by John Adams
Yup, I failed after staring at it a week and Scatman disappears usually for 6 mos when I mention C-sharp :mrgreen:

Re: Highlighting off by 1 if line is greater then 10000

Posted: Wed Jul 26, 2017 9:57 pm
by Cynnar
Checking to see if this can be archived.
It's a keeper.

Re: Highlighting off by 1 if line is greater then 10000

Posted: Wed Jul 26, 2017 10:21 pm
by Jabantiz
I think this one might still be an issue.

Re: Highlighting off by 1 if line is greater then 10000

Posted: Thu Jul 27, 2017 7:50 am
by Ememjr
offset.JPG
confirmed This is still an issue

Re: Highlighting off by 1 if line is greater then 10000

Posted: Thu Jul 27, 2017 7:59 am
by Cynnar
Roger that.