Skyrates
http://skyrates.net/forum/

Hotmod greasemonkey patch
http://skyrates.net/forum/viewtopic.php?f=52&t=9648
Page 1 of 1

Author:  nehp [ Sun Mar 13, 2011 6:29 pm ]
Post subject:  Hotmod greasemonkey patch

http://userscripts.org/scripts/show/98962

Having suffered a week is enough, I took a poke around and produced a rudimentary 'patch' to the plane stats for hotmod. This is based upon the Compendium, if any errors show up just drop me a note and I'll make various appropriate updates.

This appears to work fine for Hotmod, but I'd have to produce alternate results for the beta or hotshot, if you want these, drop a note and I'll see if I can pop something out.

I attempted to update the mods, but the same thing that works for the planes causes hotmod to break when I do it for the mods. Any greasemonkey geeks out there, hit me up with any suggestions or rebuild, please. This is fairly unimportant as only the 4barrel has changed that I can tell (+10% stall now, was +5% in old hotmod) and several flight license numbers (which would be nice, but not as huge.)

Initial testing looks good, but I need others to give it a good pounding to see if this really works.

Author:  nehp [ Sun Mar 13, 2011 6:59 pm ]
Post subject:  Re: Hotmod greasemonkey patch

** Due to the way I'm inserting the updated information, this will not work on Chrome. I'm looking for options, but hope we can just get the original fixed.

Author:  nehp [ Sun Mar 13, 2011 8:04 pm ]
Post subject:  Re: Hotmod greasemonkey patch

Alternate solution, using a javascript bookmark.

1) Create a new bookmark, name it whatever you want.
2) In location, put the below text.

Code:
javascript:void(window.planes=[{name:'(0--)%20CR-4P',speed:330,stall:132,accel:30,maneuver:4,armor:2,ac:0,ammo:200,cargo:15,range:200,crew:0,combat:1,engine:1,hull:1,wing:1},{name:'(1C)%20Mastiff',speed:342,stall:140,accel:40,maneuver:2,armor:3,ac:0,ammo:350,cargo:38,range:340,crew:0,combat:2,engine:2,hull:1,wing:1},{name:'(1T)%20Nomad',speed:308,stall:137,accel:27,maneuver:2,armor:2,ac:1,ammo:150,cargo:65,range:350,crew:1,combat:1,engine:2,hull:1,wing:2},{name:'(1P)%20Thor',speed:400,stall:107,accel:70,maneuver:3,armor:2,ac:0,ammo:250,cargo:40,range:330,crew:0,combat:1,engine:2,hull:1,wing:2},{name:'(2C)%20Valkyrie',speed:392,stall:151,accel:50,maneuver:3,armor:4,ac:0,ammo:200,cargo:46,range:480,crew:1,combat:3,engine:2,hull:2,wing:1},{name:'(2T)%20Kittyhawk',speed:341,stall:146,accel:35,maneuver:2,armor:3,ac:0,ammo:300,cargo:88,range:510,crew:1,combat:1,engine:2,hull:3,wing:2},{name:'(2P)%20Marauder',speed:463,stall:123,accel:100,maneuver:4,armor:2,ac:0,ammo:200,cargo:54,range:500,crew:1,combat:1,engine:3,hull:2,wing:2},{name:'(3C)%20Mkii',speed:377,stall:151,accel:55,maneuver:4,armor:5,ac:0,ammo:450,cargo:61,range:560,crew:1,combat:4,engine:3,hull:2,wing:1},{name:'(3T)%20Halifax',speed:250,stall:115,accel:40,maneuver:3,armor:4,ac:6,ammo:450,cargo:160,range:700,crew:2,combat:1,engine:2,hull:4,wing:3},{name:'(3P)%20Requin',speed:506,stall:136,accel:125,maneuver:5,armor:3,ac:0,ammo:350,cargo:63,range:650,crew:1,combat:1,engine:4,hull:2,wing:3},{name:'(3S)%20Chapparal',speed:400,stall:152,accel:55,maneuver:4,armor:3,ac:0,ammo:350,cargo:65,range:740,crew:1,combat:3,engine:3,hull:3,wing:3},{name:'(4C)%20Phantom',speed:360,stall:142,accel:70,maneuver:4,armor:5,ac:0,ammo:400,cargo:75,range:730,crew:2,combat:4,engine:4,hull:3,wing:1},{name:'(4T)%20Cyclops',speed:320,stall:142,accel:50,maneuver:3,armor:5,ac:5,ammo:600,cargo:150,range:890,crew:2,combat:1,engine:4,hull:4,wing:3},{name:'(4P)%20Loki',speed:550,stall:149,accel:150,maneuver:5,armor:3,ac:0,ammo:300,cargo:69,range:820,crew:2,combat:1,engine:4,hull:3,wing:4},{name:'(4U)%20Excelsior',speed:333,stall:144,accel:55,maneuver:4,armor:4,ac:0,ammo:500,cargo:94,range:850,crew:3,combat:4,engine:4,hull:4,wing:4},{name:'(5C)%20Seahawk',speed:352,stall:152,accel:80,maneuver:5,armor:6,ac:0,ammo:550,cargo:88,range:920,crew:3,combat:6,engine:3,hull:4,wing:3},{name:'(5T)%20Barracuda',speed:186,stall:37,accel:55,maneuver:4,armor:8,ac:11,ammo:650,cargo:300,range:1060,crew:3,combat:4,engine:2,hull:7,wing:3},{name:'(5P)%20Mantis',speed:598,stall:128,accel:140,maneuver:8,armor:4,ac:0,ammo:450,cargo:72,range:1000,crew:3,combat:3,engine:6,hull:3,wing:4},{name:'(5U)%20Dauntless',speed:325,stall:158,accel:65,maneuver:5,armor:0,ac:0,ammo:450,cargo:110,range:1000,crew:4,combat:5,engine:5,hull:5,wing:5},{name:'(6C)%20Hades',speed:326,stall:155,accel:95,maneuver:6,armor:7,ac:2,ammo:1100,cargo:106,range:1100,crew:4,combat:7,engine:4,hull:5,wing:4},{name:'(6T)%20Bullfrog',speed:315,stall:123,accel:80,maneuver:4,armor:6,ac:7,ammo:600,cargo:200,range:1300,crew:5,combat:4,engine:5,hull:7,wing:4},{name:'(6P)%20Ceta',speed:642,stall:197,accel:195,maneuver:7,armor:4,ac:5,ammo:600,cargo:74,range:1200,crew:4,combat:4,engine:7,hull:4,wing:5},{name:'(6S)%20Bolo',speed:379,stall:168,accel:85,maneuver:5,armor:6,ac:0,ammo:700,cargo:105,range:1350,crew:4,combat:6,engine:6,hull:6,wing:6},{name:'(7C)%20Vengance',speed:361,stall:165,accel:125,maneuver:7,armor:8,ac:0,ammo:550,cargo:104,range:1400,crew:5,combat:8,engine:5,hull:6,wing:5},{name:'(7T)%20Leviathan',speed:100,stall:23,accel:50,maneuver:4,armor:10,ac:15,ammo:800,cargo:690,range:2500,crew:5,combat:7,engine:0,hull:10,wing:7},{name:'(7P)%20Havoc',speed:684,stall:208,accel:225,maneuver:8,armor:4,ac:0,ammo:650,cargo:76,range:1500,crew:4,combat:5,engine:8,hull:5,wing:6},{name:'(7U)%20Seafire',speed:391,stall:156,accel:137,maneuver:6,armor:5,ac:2,ammo:650,cargo:110,range:1530,crew:5,combat:7,engine:7,hull:7,wing:7},{name:'(8C)%20Avenger',speed:370,stall:164,accel:140,maneuver:8,armor:9,ac:2,ammo:600,cargo:110,range:1600,crew:5,combat:10,engine:6,hull:6,wing:6},{name:'(8T)%20Lancaster',speed:312,stall:104,accel:112,maneuver:5,armor:8,ac:7,ammo:900,cargo:240,range:1900,crew:5,combat:6,engine:6,hull:10,wing:6},{name:'(8P)%20Nova',speed:718,stall:217,accel:250,maneuver:9,armor:4,ac:0,ammo:600,cargo:78,range:1800,crew:5,combat:6,engine:10,hull:4,wing:8},{name:'(8S)%20Bismarck',speed:129,stall:57,accel:50,maneuver:6,armor:10,ac:12,ammo:700,cargo:360,range:2250,crew:6,combat:10,engine:2,hull:10,wing:10},{name:'(9C)%20Thunderbolt',speed:400,stall:160,accel:185,maneuver:9,armor:9,ac:0,ammo:650,cargo:108,range:1850,crew:6,combat:7,engine:7,hull:7,wing:7},{name:'(9T)%20Kingfisher',speed:275,stall:88,accel:137,maneuver:6,armor:8,ac:10,ammo:950,cargo:290,range:2000,crew:6,combat:7,engine:3,hull:10,wing:8},{name:'(9P)%20Ingersoll',speed:750,stall:225,accel:500,maneuver:11,armor:3,ac:0,ammo:550,cargo:80,range:1990,crew:4,combat:7,engine:10,hull:2,wing:9},{name:'(9U)%20Spectre',speed:370,stall:142,accel:180,maneuver:8,armor:6,ac:0,ammo:750,cargo:135,range:1800,crew:6,combat:8,engine:8,hull:8,wing:8}])


3) Load hotmod page
4) click this bookmark
5) click the planes popup list to show updated data

Author:  nehp [ Sun Mar 13, 2011 8:15 pm ]
Post subject:  Re: Hotmod greasemonkey patch

This appears to work on chrome and FF3/FF4 even as a greasemonkey script, so I've updated the greasemonkey script to use this method. Note that you still have to click the popup list to get the new data in (CR-4P will show old data when first opened.) I'll look into this later.

Author:  Kalin [ Mon Mar 14, 2011 5:33 pm ]
Post subject:  Re: Hotmod greasemonkey patch

Errata:
Chappy has 750 range
Dauntless has 4 armor
Levi has 2000 ammo
Bissie has 2100 ammo

Author:  nehp [ Mon Mar 14, 2011 11:47 pm ]
Post subject:  Re: Hotmod greasemonkey patch

Kalin wrote:
Errata:
Chappy has 750 range
Dauntless has 4 armor
Levi has 2000 ammo
Bissie has 2100 ammo


Updated compendium and greasemonkey script

Author:  Kalin [ Tue Mar 15, 2011 11:36 am ]
Post subject:  Re: Hotmod greasemonkey patch

I finally made it to FL9:

{name:'(9S)%20Barashiki',speed:200,stall:95,accel:100,maneuver:10,armor:9,ac:7,ammo:900,cargo:300,range:2250,crew:6,combat:7,engine:7,hull:7,wing:7}

Author:  nehp [ Tue Mar 15, 2011 2:53 pm ]
Post subject:  Re: Hotmod greasemonkey patch

Kalin wrote:
I finally made it to FL9:

{name:'(9S)%20Barashiki',speed:200,stall:95,accel:100,maneuver:10,armor:9,ac:7,ammo:900,cargo:300,range:2250,crew:6,combat:7,engine:7,hull:7,wing:7}

Woops! I used the first spreadsheet, didn't realize the shiki was missing. Added and updated (and I made sure to up the version this time for auto-updaters.)

Author:  Calvin [ Wed Jun 06, 2012 6:03 am ]
Post subject:  Re: Hotmod greasemonkey patch

Istatay wrote:
nehp wrote:
http://userscripts.org/scripts/show/98962

Having suffered a week is enough, I took a poke around and produced a rudimentary 'patch' to the plane stats for hotmod.
When combined with nehp's GreaseMonkey patch, Hotmod seems to work great.
Just a bump for those interested.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/