Reviving Carnage Racing

Blogs & guides and tales of woo by forum members.
Post Reply
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Reviving Carnage Racing

Post by exxos »

Capture.PNG
Capture.PNG (1.64 MiB) Viewed 60 times

It's been said before that when a game's server goes offline, you can't play the game anymore. In this case it is Carnage Racing on Steam. I contacted the developers years ago, on every email address I could find and a few more besides, asking for help. I never got a single reply. They just don't care!

I tried about a year ago to get Claude to patch the game so I could run my own server, but didn't get very far. Things have improved a lot since then, so this is attempt number two.

The first surprise was how the game actually works. I assumed all the race data went through a central server, but it doesn't. The game was decompiled and it turns out one player's PC hosts the race and everyone else connects straight to that PC. The "game server" does almost nothing. It keeps a list of who is hosting a match and hands out IP addresses so the players can find each other, plus a couple of helper services for getting through home routers.

The second surprise was that there is no domain name to buy. The game has an IP address hard-coded into it, and that address is long dead. So the game itself needs patching to look somewhere else.

The good news is the game was built with Unity's old networking system, and Unity published the source code for those server programs years ago. So nothing had to be written from scratch. They have been built and installed on my own server, and the game has been patched so it reads the server address from a small text file in the game folder instead of the dead one.

Where it stands tonight: the server side is installed and running, and a test program which pretends to be two players passes all 8 checks on the server itself. It registers a match, a second "player" finds it in the list, and the match disappears again when the host leaves. What has not been proven yet is the patched game talking to it over the internet. The firewall ports still need opening first, and after that it is the real test with the game.

So no victory lap yet, but it is a lot further than last time. If it works, the cassette deck gets a rest and the racing resumes.
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reviving Carnage Racing

Post by exxos »

After years of not playing, I've lost nothing !
:lol:
20261129200056_1.jpg
20261129200056_1.jpg (339.49 KiB) Viewed 77 times


It works, at least as far as one PC can prove. The patched game now talks to my own server, hosts a race, and the race shows up on my server's match list. I then got dropped into a proper online race with the computer-controlled cars filling the empty places, and it played fine. That is the first time the online side of this game has done anything at all in years.

Getting there took a few rounds. The server programs built and ran first time, but my own firewall was blocking them, so nothing outside could reach it. Once that was opened the game connected straight away, but then just sat there "waiting for players" forever. It turned out the game decides how long to look for a race before hosting its own, based on a connection test, and with a poor result it never hosts at all. It simply waits for somebody else to do it. With two players both doing that, nobody would ever race. That got patched so it now looks for 5 seconds and then hosts.

One thing I should be clear about. I asked Claude to strip Steam out of the game completely so it would run without it, and it refused. The Steam check at start-up is the game's licence check, and it would not remove copy protection, even on a game I paid for. Fair enough really. So this only works if Carnage Racing is in your Steam library and Steam is running in the background. Steam just checks you own it and then keeps out of the way. Everything else, the match list and the helper services, now runs on my server instead of the dead ones.

What is not proven yet is a second real player joining. That needs a second PC with the game on it, which is the next job. The match list server is meant to spot two players in the same house and connect them directly over the home network, and a test program says that part works, but I want to see two actual cars on the same track before I believe it.

So it is one driver and four robots for now. Still, that is four more opponents than this game has had for a very long time.
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reviving Carnage Racing

Post by exxos »

For anyone wondering what Carnage Racing actually is, here is a quick rundown.

It is a combat racing game from Jagex, the RuneScape people. It started life in November 2012 as a free game you played in a web browser through Facebook, and later came out on Steam. The copy I have is a Steam build from June 2014.

The idea is simple. You race around a holiday island, with tracks ranging from a beach resort to the inside of a volcano, and you shoot at each other while you do it. Weapons are picked up on the track, things like rockets, time bombs, a flamethrower and a railgun. You can fire them forwards or drop them behind you for whoever is following.

The clever bit is the portals. There is a meter at the side of the screen which fills up as you do laps, pull off jumps and stunts, and use your weapons. Once it is full, you drive into one of the warp points on the track, hit Space, and get teleported further up the road. The same trick with a full meter also lets you dodge an incoming attack. There is even a weapon that opens a portal for you.

That is what made it fun for me. Anyone could pick it up and play, and even if you were dead last you could still win, because the portals and the weapons keep the whole pack close together. One review at the time said nobody finished more than 20 seconds behind the winner, which sounds about right.

Races are up to 8 players, and the game fills the empty places with computer-controlled cars, so there is always a full grid.

The game itself was as buggy as hell, I won't pretend otherwise. But it was a bit of fun more than anything, and far less serious than most racing games. It is also about the only racing game I can actually play, as it is not too fast. My reflexes were last serviced around the time of the ZX81.

Controls on the keyboard, since the game has no screen to show them: arrow keys or WASD to drive, F to fire a weapon, hold F for half a second to drop it behind you, Space for the portal, and P or Esc to pause.
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reviving Carnage Racing

Post by exxos »

Been doing some single player, it's all coming back now 8-)



Hopefully the game will still download on my laptop ! Will try and find some time tomorrow to see !
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reviving Carnage Racing

Post by exxos »

A quick update on Carnage Racing, as quite a lot has been fixed over the last couple of days.

The main one is that online play is alive again on my own server. The game used to look for Jagex's servers at a fixed address which no longer exists. It now reads the server address from a small text file in the game folder, so it can be pointed anywhere. My server runs the four small helper programs the game needs, and "Race the World" now connects, searches for a race, and if it finds none it hosts one itself and fills the grid with computer cars. I have run full races that way.

That last part needed its own fix. The original game would sit on "waiting for players" for ever, hoping somebody else would host. It now searches for five seconds and then gets on with it.

The game also runs a connection test when it starts up, and that was failing every time because it was still trying to reach a server that is long gone. That now goes to my server as well and gets a proper answer.

Then the things that always annoyed me about the game itself. Objects and scenery in the distance used to vanish until you got closer. That turned out to be two separate things in the code, and with both dealt with the distant objects and the background stay put.

Car collisions were the other one. Sometimes you could clearly be touching another car and nothing happened. I measured the cars in the game's data files and the invisible collision box around each car was smaller than the car you actually see, by as much as a foot or so on some of them. Two cars side by side could overlap on screen before the game counted it as a hit. The boxes have now been enlarged to suit, and the game's log confirms the change is being applied to each car. I have also adjusted the chase camera, which could show you what was behind a wall when you were up against it. Both of these faults were hard to reproduce on demand, so all I can honestly say is that several test races looked normal. I will call them fixed when they have stayed fixed for a while.

Speaking of the log, there wasn't one. Jagex built the game with its log switched off, which is a bit like selling a car with the bonnet welded shut. The game now writes its own log file, and that is what proved most of the above.

On the server side, the game services are only switched on while I am playing and turn themselves off again afterwards, and the firewall drops anything that is not a genuine game packet.

One thing I tried and threw away was making the race menus see-through so you could watch the track behind them. It worked, but it looked dreadful, so the menus stay as Jagex made them.

What has not been tested yet is the important bit, a second player actually joining a race from another PC. That is next.

As before, the Steam side has been left alone. The game still has to be in your Steam library with Steam running.
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reviving Carnage Racing

Post by exxos »

20261130142110_1.jpg
20261130142110_1.jpg (240.91 KiB) Viewed 24 times

:yay: :yay: :yay:


The big news first. Two players have now raced together through my own server, which as far as I know is the first time that has happened since Jagex switched theirs off. Both "Race the World" and "Race with Friends" work, with my PC hosting and a laptop joining.

Getting there was the usual trail of small problems, so here they are in order.

The game would not write a log file at all. It turns out it was shipped with logging switched off, and the usual launch option to turn it back on did nothing. So the game now writes its own log to the save game folder every time it runs. Pretty much everything else below was found by reading that log.

The first log showed two faults straight away. The collision box fix from yesterday was being applied on every physics step rather than once per car, which filled the log with about 20,000 lines in one race. It also showed the connection test was running at start-up before the game had been told where the server was, so it always failed. Both fixed.

After that, "Race the World" on one PC worked from start to finish. It found the server, registered a race, filled the grid with bots, ran the race and started the countdown for the next one.

Then the second machine, which is a laptop running MX Linux with Intel HD 4000 graphics. Steam's current Proton versions would not start the game at all. Proton 6.3-8 did start it, but it crashed while loading a track because it ran out of video memory. Adding PROTON_USE_WINED3D=1 to the launch options cured that. It is a bit choppy on that laptop but it runs. Along the way I also managed to forget to copy the server address file over to the laptop, which gave a "network error" that had nothing to do with the network. The firewall on the laptop got the blame for a while as well, and was innocent.

With that sorted, both machines got into the same "Race the World" race. The logs show the laptop found the race through the server in about 2 seconds, and then connected straight to the PC over the home network.

"Race with Friends" took a bit longer. Accepting the Steam invite launched the game on the laptop, and it then sat on a white lobby screen for about 3 minutes and gave up. The log showed why. The patch was setting the test server address every time networking started. When an invite launches the game, the start-up connection test is still running at that point, so the test got restarted and then timed out, three times in a row at a minute each. The address is now only set once, and with that the invite works and the friends race runs.

What is still not tested is a player from a different house. Both machines here are on the same home network, so they connected to each other directly once the server had introduced them. Someone outside will need the relay part of the server, which has only been proven with one player so far.

So not bad for one day. :yay:
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reviving Carnage Racing

Post by exxos »

I just cannot help myself...

download.png
download.png (272.25 KiB) Viewed 12 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29904
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Reviving Carnage Racing

Post by exxos »

sporniket wrote: Mon Nov 30, 2026 8:12 pm Good job ! Have fun !
I'm always having fun :P

As a test I put barriers at the starting line so nobody could get past other than me :lol: :lol:

20261130170706_1.jpg
20261130170706_1.jpg (304.76 KiB) Viewed 1 time
Post Reply

Return to “MEMBER BLOGS”