Author Topic: Ship / Squid Modder  (Read 12830 times)

Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Ship / Squid Modder
« on: March 31, 2009, 12:53:13 am »
This mod lets you change which ship you use for which character.
This means you can use the Mono ship in Pusher or the Pointman ship in Vegas etc.
You can also change the colour of the Squid (Black on White or White on Black).

There's 2 additional ships included with Audiosurf as well as the default ones, these are now playable using this mod.

Vid1: http://www.youtube.com/watch?v=U-_mLKN4VtM&fmt=22 (White background, Black Squid)
Vid2: http://www.youtube.com/watch?v=1mG4UD2SDJo&fmt=22 (Black background, White squid)
Both with non-standard ships.

NOTE: When first run, this mod backs up a few files. This is because it WILL CHANGE AUDIOSURF.
You've been warned and I hereby exempt myself from any responsibility if it breaks your installation.
You should be able to reset it by just using the restore button, or copy the files from "ActorsBackup" over "Actors" and "EnvironmentBackup" over "Environment". If all else fails verifying your files should reset them.

I have experimented with some of the other files in Environment, but I can't find any consistency to what happens. I think there's only the Mountain and Spinny l-shapes that are compatible between the White and Black/Grey modes, so I've left that out.

Enjoy!

(Tried to post this before and somehow broke the forum. I think something timed out whilst I was editing the post and uploading the picture)

Edit: New version with Eraser option and Vegas using the correct ship (NOTE: Vegas will have been changed to the wrong ship accidentally with the last version, sorry! That's why I put the warning in. Just set the Vegas ship to the correct label on the right to set it back).

Edit: There are some mistakes in the list: PlayerCar_DragWarp.cgr is actually the Vegas ship, PlayerCar_Vegas.cgr is the Eraser ship. Tsk Dylan, mis-labelling. ;)
I'll get an update out with these changes and the ability to change the Eraser ship.

Edit2: DragWarp, not JetBoat. I blame lack of sleep.


Download link: http://dl.dropbox.com/u/1614587/ShipSquidModder.exe
« Last Edit: January 01, 2012, 08:39:39 am by Mincus »

ViRUS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3218
    • MSN Messenger - newvirus@live.com.ar
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #1 on: March 31, 2009, 03:43:08 am »
Awesome, I'll try it right now and update AHOAA ^^


Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #2 on: March 31, 2009, 07:59:11 am »
SO it's just renaming the files? Not actually changing any of the data?

Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: Ship / Squid Modder
« Reply #3 on: March 31, 2009, 08:08:46 am »
SO it's just renaming the files? Not actually changing any of the data?

Pretty much. But copying and pasting files around is awkward and easy to make mistakes with, so knocked this up.
I was going to make it so you could use all the white background scenery in black/grey modes and vice versa, but they don't appear to be directly compatible. You lose a lot of the stuff. Also I couldn't work out exactly which file referred to which scenery item(s), although swapping SetPiecesWhite and SetPiecesBlack works, as does SetPiecesWhite2 and SetPiecesBlack2, but inconsistently, sometimes ending up with much scenery missing, so I left it out.

Was planning on a skysphere mod in there as well, but I think fergtm covered that best.

ViRUS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3218
    • MSN Messenger - newvirus@live.com.ar
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #4 on: March 31, 2009, 09:51:09 am »
Please add the SetPieces and SetPieces2, I always wanted to have the objects on black background on the white one...


Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: Ship / Squid Modder
« Reply #5 on: March 31, 2009, 10:22:38 am »
Hmm, I'll think about it.
I'm not 100% sure how to implement it.

If you look in the Environment directory, you'll notice theres the following:
Code: [Select]
SetPieces.cgr
SetPiecesBlack.cgr
SetPiecesBlack2.cgr
SetPiecesBlack3.cgr
SetPiecesWhite.cgr
SetPiecesWhite2.cgr

Originally I assumed:
Code: [Select]
SetPieces <-> SetPiecesBlack
SetPiecesWhite <-> SetPiecesBlack2
SetPiecesWhite2 <-> SetPiecesBlack3

This isn't the case (although some things do transport across, others don't and you get practically no scenery), what do appear to match are SetPiecesWhite/Black and SetPiecesWhite2/Black2.
But they both seem to change similar things.

Maybe I just need to do some more experimenting with it, but constant restarting of Audiosurf is annoying. :P

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #6 on: March 31, 2009, 11:07:56 am »
I know copying and paste around files is awkward, that's what my mod did for all the texture files for any number of sets. :P

I wasn't criticising or anything if it seemed that way, I was just wondering if you had made any headway on the .cgr format is all. When I first saw the title I thought you may have done.

Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: Ship / Squid Modder
« Reply #7 on: March 31, 2009, 11:44:28 am »
Not enough to be useful.
The OGG file extractor posted a while ago (http://www.audio-surf.com/forum/index.php/topic,1602.msg12268.html) looks for a certain header, then decompresses using zlib from that point.

In short the CGR files have some description of header, but this is different depending on what the file contains. (great, eh? :P)

I remain confident it can be cracked without too much difficulty, but I've yet to put the time in to do so.
I'm a little wary of releasing anything that could extract Audiosurf resources as well, if I did manage it, I'd only put out an importer I think, closed source, for adding ships to Audiosurf (specifically to the ActorsBackup directory of the Ship/Squid Modder, since it just shows a list of files in the right-hand window).

Lavos^

  • Hero Member
  • *****
  • Posts: 2251
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #8 on: March 31, 2009, 12:12:13 pm »
I did look at that, but every file contains both those identifiers no matter what the data, so I'm sceptical.

ViRUS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3218
    • MSN Messenger - newvirus@live.com.ar
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #9 on: April 02, 2009, 11:22:56 pm »
Messing with Audiosurf's game files can show you the strangest things... Like these ones:





 :P
« Last Edit: April 02, 2009, 11:32:41 pm by ViRUS »


cuddling

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #10 on: April 03, 2009, 12:17:12 am »
I want a party bus! :V

drperry

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #11 on: April 03, 2009, 02:08:52 am »
...and you didn't even show us the party bus!  ;D

Lu Tze

  • Sr. Member
  • ****
  • Posts: 287
    • View Profile
Re: Ship / Squid Modder
« Reply #12 on: April 03, 2009, 04:08:37 am »
Party bus??? LOL

The weirdest I got was playing the game without score/song information at the top/bottom, and of course replacing some ships with others. Replacing radio song cgr files is also nice, that way you can play older radio songs.

lebeth

  • Administrator
  • Hero Member
  • *****
  • Posts: 680
    • View Profile
Re: Ship / Squid Modder
« Reply #13 on: April 03, 2009, 12:35:09 pm »
That party bus stuff is hilarious. I believe I was the genius behind that idea. But then Dylan wanted to make the game "good" and "profitable." Whatever dude.

Devil_Spawn

  • Hero Member
  • *****
  • Posts: 893
  • Not Devil_Awesome, Devil_0wns, Devil_TheGreatest..
    • View Profile
    • Email
Re: Ship / Squid Modder
« Reply #14 on: April 03, 2009, 12:41:03 pm »
dylan should really clean all this stuff up some time.. save on space and probably make things less messy..dunno lol