HeatCheque / TKO-Titanic-Kungfubot-Offensive

Files for the Cartoon Network fighting game "TKO: Titanic Kungfubot Offensive"
MIT License
0 stars 0 forks source link

Is there anyway to play this locally? #1

Open pablo-chocobar opened 11 months ago

pablo-chocobar commented 11 months ago

i'm assuming that none of those servers work, so is there anyway you can run this locally?

HeatCheque commented 11 months ago

If by "locally" you mean offline gameplay, then no. The game is purely online multiplayer only so there isn't any local 2 player mode or training mode.

If you run the game using the standalone version of Adobe Flash Player(the .exe application), you'll be able to get to the main menu of the game, but you won't be able to do anything else past that point. (see the attached image)

You can download the Adobe Flash Player here: Adobe Flash Player - Debug Downloads (archive.org) https://web.archive.org/web/20220401020702/https://www.adobe.com/support/flashplayer/debug_downloads.html It's better to download the debug version since that version will give error messages explaining what went wrong when running the .swf file

Feel free to ask more questions if you have any

On Sun, Oct 15, 2023 at 1:05 PM pablo-chocobar @.***> wrote:

i'm assuming that none of those servers work, so is there anyway you can run this locally?

— Reply to this email directly, view it on GitHub https://github.com/HeatCheque/TKO-Titanic-Kungfubot-Offensive/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6I5PF4WC4PF5KWIA7EOADLX7QJWZANCNFSM6AAAAAA6BEGTZU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

pablo-chocobar commented 11 months ago

If I were to host a server on my LAN, would I be able to make it functional since most of the websites that already host this only go up to the connecting to server part and fail. Do you have any idea on how the server would work on the backend? I would appreciate if you have any pointers on that.

HeatCheque commented 11 months ago

I honestly don't know a lot about server-side stuff, so I can't give you a definitive answer. But I can tell you what I do know:

You can see the all the code inside the .swf files using JPEXS Free Flash Decompiler

The game uses SmartFoxServer2X for its online functionality

The code for the main menu (including the SmartFoxServer2X code) is in GameContainer.swf

Game.swf has most of the code relating to the actual gameplay

The file "cnsl.xml" is a list of servers that the game used, the game would connect to whatever servers are in there

The game won't open Game.swf until a connection to the server is made (Not 100% sure on this)

In GameData.as (which is in Game.swf), there's a variable named "TOOLS_ENABLED" which is set to false by default. If set to true, it allows access to a debugging panel and a tools panel. (I only know this by looking at the source code, I don't know what the panel looks like)

The game uses some sort of analytics tracker that sends game info to Cartoon Network, usually events like the player choosing a character, a match ending, or a connection being made (I'm not 100% sure how it works) You can see evidence of this in trackTko.swf as well as various function calls scattered throughout the code

One time I modified the code in GameContainer.as (which is inside of GameContainer.swf) to take away the tracking stuff, and when I ran the game the play button actually worked (This doesn't normally happen for me in the Flash Player), but I would get an error as soon as the game tried to connect to the server. The error said something along the lines of "Local SWF files cannot use sockets". When I searched this up, I learned that this was for security reasons.

On Sun, Oct 15, 2023 at 2:40 PM pablo-chocobar @.***> wrote:

If I were to host a server on my LAN, would I be able to make it functional since most of the websites that already host this only go up to the connecting to server part and fail. Do you have any idea on how the server would work on the backend? I would appreciate if you have any pointers on that.

— Reply to this email directly, view it on GitHub https://github.com/HeatCheque/TKO-Titanic-Kungfubot-Offensive/issues/1#issuecomment-1763471592, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6I5PF3LYZHKCQ7TWNSLGTDX7QUZVANCNFSM6AAAAAA6BEGTZU . You are receiving this because you commented.Message ID: @.*** com>

pablo-chocobar commented 11 months ago

Thank you , you've been very helpful.

HeatCheque commented 11 months ago

UPDATE: I just found out that if you run the game using the Ruffle browser extension, the play button will work, but you'll still get stuck on the loading screen as the game tries to connect to servers that don't work anymore.

You have to run the game by either:

entering this URL into the Ruffle SWF Player: http://i.cartoonnetwork.com/games/tko/GameContainer.swf

or finding a website that hosted the game such as https://www.gameshero.com/games/tkotitanickungfubotoffensive

pablo-chocobar commented 11 months ago

Wow, thank you so much for this. I'll let you know if it works when I try it!