Airport Colors

A6MsiGL.png


Code:
svn checkout http://svn.code.sf.net/p/kol-airport-colors/code
 
Last edited:

Veracity

Developer
Staff member
This is an important script.

Note that I needed to do this:

Code:
svn checkout http://svn.code.sf.net/p/kol-airport-colors/code
 
The planes only get colored if you have access to the charter zone, so the blue plane will turn up when the cold charter gets released. Until then you should just chill.
 

ckb

Minion
Staff member
ok, thanks. Is that information frozen in place in the current script? Maybe it should just be put on ice until it gets done... or is that just a snow job? Winter is coming!

(Help me, I can't stop.)
 

Erich

Member
This is weird, but this script just recently stopped working for me entirely. It's updated at revision 3, and I'm using mafia r16830. Is anyone else experiencing this? All the images and the script are all in place where they have been, and are fully up to date from what I've checked.

Poop :(
 
Thanks for pointing that out, I've been using the iconic topmenu for going to airport zones and didn't notice. The script is updated for butt-hosted images now.
 

Bale

Minion
Probably irrelevant, but since we don't know if Jick is going to revoke the cloud experiment instead of going forward with it, I created a version that will continue to work even if images go back to their original url:

PHP:
string color_planes( buffer source )
{
	return replace_all(create_matcher('http(s://s3\.amazonaws\.com/|://)images\.kingdomofloathing\.com/otherimages/(?=[^.]*plane)', source)
		, '/images/relayimages/airport_color_planes/');
}

void main( )
{
	write( color_planes( visit_url( ) ) );
}

Anyway, I'll be using that version. This is an important script and I can't risk it ceasing to work just because Jick might abort his latest experiment.
 
Last edited:

VladYvhuce

Member
This is a nice change of pace from all of the black and white images on KOL.

I used to use the "Color KOL" and "Color Familiars" Greasemonkey scripts. Are there any plans to retrofit those for KOL Mafia or do something similar?
 

ckb

Minion
Staff member
The Plane to That 70s Volcano image has a bit on the bottom that is a red line that should be a black line (just under the plane's nose). Can you update that?

Here is a corrected image.airport_plane_70s.gif
 

redrick

New member
PLS HALP
someone with a bit of scripting know-how, the images have been moved to https://<CENSORED>.cloudfront.net/
Bale is gone, darkcodelagsniper is gone

Who can help with a new regex or something? I cant be the only one still using this script ...
 

Veracity

Developer
Staff member
As I mentioned earlier in this thread, I don't know how I could play without this script.
I fixed this locally years ago, when KoL changed its image servers.

Here is a replacement for place.airport.ash in your "relay" directory:

Code:
buffer color_planes( buffer source )
{
    string original = "https://d2uyhvukfffg5a.cloudfront.net/otherimages/";
    string replace = "/images/relayimages/airport_color_planes/";

    void replace_plane( string plane )
    {
        replace_string( source, original + plane, replace + plane );
    }

    replace_plane( "airport_plane_sleaze.gif" );
    replace_plane( "airport_plane_70s.gif" );
    replace_plane( "airport_plane_spooky.gif" );
    replace_plane( "plane_stinko_dinko.gif" );
    replace_plane( "airport_plane_cold.gif" );
    return source;
}

void main( )
{
    write( color_planes( visit_url( ) ) );
}
 
Top