ineedbots / iw4_bot_warfare

The Bot Warfare mod for MW2
https://www.moddb.com/mods/bot-warfare
112 stars 27 forks source link

Error: Attempted to execute deprecated built-in HttpGet/HttpCancel! These functions have been deemed unsafe and are scheduled for removal. #53

Closed harrisonlingren closed 10 months ago

harrisonlingren commented 1 year ago
*** DEPRECATION WARNING ***

Error: Attempted to execute deprecated built-in HttpGet/HttpCancel! These functions have been deemed unsafe and are scheduled for removal. Please update your mod!

***************************
Error getting remote version of Bot Warfare.

The function HttpGet() is used two places:

getRemoteVersion(): https://github.com/ineedbots/iw4x_bot_warfare/blob/27be561a42b674de8521385ea4703d1292cf5376/userraw/maps/mp/bots/_bot_http.gsc#L74

getLinesFromUrl() https://github.com/ineedbots/iw4x_bot_warfare/blob/27be561a42b674de8521385ea4703d1292cf5376/userraw/maps/mp/bots/_bot_http.gsc#L95

ineedbots commented 1 year ago

REALLY sucks that these gsc function were in the client for years (https://github.com/ineedbots/iw4x-client/commit/f6894b46c5f5a56d247e1a48140764662ac0d014#diff-18631504627233646a4a8a1432d8611deac1b7287787dc4e765fc0a5ff4849dbR791) and then all of a sudden are being removed

Besides, mod downloading can be just as exploited as these functions... I guess just reducing the possible attack surfaces.

really breaks compatibility. they could of at least made these function do nothing, instead of breaking older mods.

ineedbots commented 10 months ago

Removed http from mod