Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Port

Pages: 1 ... 253 254 255 256 257 [258] 259 260 261 262 263 ... 1041
3856
Forum Games / Re: Avatar Rating
« on: June 12, 2013, 07:31:25 AM »
10/10.

3857
What are you guys, Steam?
$500 =/= €500

$500 = €378

It has been like this forever.
http://steamcommunity.com/groups/1e1us

3858
Off Topic / Re: 1000 ways to get kicked out of IKEA
« on: June 11, 2013, 12:44:19 PM »
116. Place spam bricks everywhere

this is not blockland

3859
General Discussion / Re: 2013/06/11 - I am taking a break
« on: June 11, 2013, 12:40:31 PM »
Lol,port.  Did you even read op?

The joke missed the port and ran aground.

[color=transparent]Yes, I know this is a joke but it's stupid as stuff.[/color]

3860
Forum Games / Re: Avatar Rating
« on: June 11, 2013, 12:40:02 PM »
1000/10.

3861
General Discussion / Re: 2013/06/11 - I am taking a break
« on: June 11, 2013, 12:38:06 PM »
I have no idea who you are. Regardless, leaving posts are against the rules. Yes, I know this is a joke but it's stupid as stuff.

3862
Modification Help / Re: Sorting Objects From A - Z
« on: June 11, 2013, 12:36:36 PM »
How does it have low flexibility

What if I wanted to sort by something other than the default sequence that GuiTextListCtrl::sort uses?

and what is wrong with creating one object?

The fact that you're creating an object using the conobject class GuiTextListCtrl, populating it with data, calling one method and deleting it to do something as simple as sorting strings should be an immediate pointer to that you're doing something wrong. Think about it for a second.

3863
Off Topic / Re: eleven year olds: the thread!
« on: June 11, 2013, 12:32:46 PM »
I got a referral, not suspended, for calling someone a bitch because they kicked me into a tree and laughed. c:

The good part: I was forced to go to guidance counselors for forget knows why, and they said "holy stuff! your out of control!" and they gave me a notebook to draw in whenever i got stressed.

so the forgetin' teachers that are mad at me for drawing can go forget themselves

Discuss being 11 and 11-year old things! My mommie is typing this, so I can't say anything bad.



I have many 11 year old things to discuss.

So do I~

3864
Off Topic / Re: Furry Megathread - Genuinely Annoying Tildes
« on: June 11, 2013, 12:31:05 PM »
Tilde's are the best~

Yes

This is incredicute.

This isn't even the tip of the iceberg when it comes to that.

3865
Modification Help / Re: Sorting Objects From A - Z
« on: June 11, 2013, 12:29:08 PM »
Code: [Select]
//in: %word[]
//     %count

%sorter = new GuiTextListCtrl(){};
for(%i = 0; %i < %count; %i++)
%sorter.addRow(%i, %word[%i]);
%sorter.sort(0,1);
for(%i = 0; %i < %sorter.rowCount(); %i++)
%sorted[%i] = %sorter.getRowText(%i);

//out: %sorted[]
Why are you guys doing it so complicated

Because this requires objects and has extremely low flexibility.

3866
Modification Help / Re: Sorting Objects From A - Z
« on: June 11, 2013, 12:10:09 PM »
sort_list(list) takes a tab-separated list of values as a string and returns it in the same format but ordered based on the return value of do_single_sort(left, right).
Uses no objects or anything like that, just simple string manipulation. This is some pretty old code so I apologize for how unreadable it is.

Code: [Select]
$alpha = "abcdefghijklmnopqrstuvwxyz_";

function sort_list( %m )
{
%count = getFieldCount( %m );

if ( !strLen( %m ) || %count <= 1 )
{
return %m;
}

%middle = mFloor( %count / 2 );

for ( %i = 0 ; %i < %middle ; %i++ )
{
%left = %left @ ( strLen( %left ) ? "\t" : "" ) @ getField( %m, %i );
}

for ( %i = %middle ; %i < %count ; %i++ )
{
%right = %right @ ( strLen( %right ) ? "\t" : "" ) @ getField( %m, %i );
}

%left = merge_sort( %left );
%right = merge_sort( %right );

return merge( %left, %right );
}

function do_single_sort( %left, %right )
{
// I'm pretty sure you can just use strStr instead of this mess.

%lln = strLen( %left );
%rln = strLen( %right );

if ( %lln < %rln )
{
%ln = %lln;
%rt = 1;
}
else
{
%ln = %rln;
%rt = 0;
}

for ( %i = 0 ; %i < %ln ; %i++ )
{
%lfs = getSubStr( %left, %i, 1 );
%rfs = getSubStr( %right, %i, 1 );

%lps = strPos( $alpha, %lfs );
%rps = strPos( $alpha, %rfs );

if ( %lps > %rps )
{
return 1;
}

if ( %rps > %lps )
{
return 0;
}
}

return %rt;
}

function merge( %left, %right )
{
%left = strReplace( %left, " ", "\x01" );
%left = strReplace( %left, "\t", " " );

%right = strReplace( %right, " ", "\x01" );
%right = strReplace( %right, "\t", " " );

while( getWordCount( %left ) > 0 || getWordCount( %right ) > 0 )
{
if ( getWordCount( %left ) > 0 && getWordCount( %right ) > 0 )
{
if ( !do_single_sort( firstWord( %left ), firstWord( %right ) ) )
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %left );
%left = restWords( %left );
}
else
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %right );
%right = restWords( %right );
}
}
else if ( getWordCount( %left ) > 0 )
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %left );
%left = restWords( %left );
}
else if ( getWordCount( %right ) > 0 )
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %right );
%right = restWords( %right );
}
}

%left = strReplace( %left, " ", "\t" );
%left = strReplace( %left, "\x01", " " );

%right = strReplace( %right, " ", "\t" );
%right = strReplace( %right, "\x01", " " );

return %result;
}

Specifically, this implements the merge sort algorithm and is O(log n).

3867
added some TNT timer proections

it'd be a better idea to fix TNT freezing regardless

3869
Off Topic / Re: Post Your Desktop 2
« on: June 11, 2013, 02:40:07 AM »
can't tell which one this is but it's gotta be a theme made by =kiko11 (on deviantart)
bello?

yes

3870
Off Topic / Re: Furry Megathread - Like An Awkward Erection
« on: June 10, 2013, 03:15:12 PM »
this thread would be great if there was boobs.

not necessary

Pages: 1 ... 253 254 255 256 257 [258] 259 260 261 262 263 ... 1041