The Daily Click ::. Forums ::. Klik Coding Help ::. Remove midi files from a game? (tgf)
 

Post Reply  Post Oekaki 
 

Posted By Message

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
4th March, 2008 at 00:03:31 -

I've never figured out how to do this. Say for example, I have a music in my game that I decide to replace, and delete all references to it. Even then, the music will still be saved "inside" the game; if I choose midi files from the game file, it is there, and it adds to the total file size. And that filesize can be quite a concern when I have like 300kb of completely unused music files.

So how the heck do you permanently remove a midi file from TGF's built in player?

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
4th March, 2008 at 00:57:24 -

Maybe copying all the frames/objects/events into a new tgf file would fix it. If that doesn't cause other problems...

 
-

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
4th March, 2008 at 01:02:18 -

When it is no longer referenced anywhere TGF should delete it when you save, close and reload the project IIRC.

 
Image
http://bfollington.tumblr.com

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
4th March, 2008 at 01:04:29 -


Originally Posted by Ben~
When it is no longer referenced anywhere TGF should delete it when you save, close and reload the project IIRC.



Thats what I'd figure, but it doesn't seem to follow that; There are midis that aren't referenced anywhere in my game that are tagging along. And its much too big and complex to reframe everythings; you can't exactly copy/paste 5000 lines of code like that.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
4th March, 2008 at 10:05:28 -

I have a feeling that old midis were left in TGF files because of a design choice with the MIDI Chunk in the .gam format. IIRC, the midi references relied heavily on byte references, in a way that was difficult to update afterwards.

It meant that if you were to erase a midi and alter the offsets in the music chunk, you'd also have to alter a value in every 'music' event. Something like that, I think - it's a long time since I worked with GAM format.

Your best bet is the copy-to-other-file suggestion made by Rick Garces.

EDIT 2: It does work, just tried it. Copy your frames across.

Image Edited by the Author.

 
191 / 9999 * 7 + 191 * 7

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
4th March, 2008 at 11:16:38 -

Do you seriously think its possible to copy/paste an entire ENGINE level? Its got over 5000 lines of code. Heck, I can't even display half the events at the same time. And after that, one big problem is that when you copy/paste events in TGF, it loses any "Open/close group" commands, which I use alot of. So I'd have to go in and rewrite so much code

I suppose its worth giving a shot, however. I'll back up gridquest and give it a whir



ooh not to forget; You cannot copy/paste any events with SOUNDS in TGF; I'd have to go back and re-add every single sound effect / music in the entire game

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
   

Post Reply



 



Advertisement

Worth A Click