Jump to content
Sign in to follow this  

Random Useful Stuff

Recommended Posts

Some useful circuits:


Convert c2g files with relative address to the mp3 files to the new music identifiers:

local a = {
entrtanr = "Intro", EasyWin  = "Outro",
Breezala = "Track01", Wallstrt = "Track02", sunflowr = "Track03",
Newrag   = "Track04", Sugarcn  = "Track05", Smthngdn = "Track06",
Silvrswn = "Track07", reflectn = "Track08", Ragdance = "Track09",
Pineapp  = "Track10", Peachrne = "Track11", paragon  = "Track12",
Palmleaf = "Track13", Original = "Track14", Nonparel = "Track15",
mapleaf  = "Track16", Magnetic = "Track17", Kismet   = "Track18",
Gladiols = "Track19", figleaf  = "Track20", Favorite = "Track21",
Elitesyn = "Track22", Cascades = "Track23", Weepwilo = "Track24",
felicity = "Track25", Lilyquen = "Track26"}

local fh = assert(io.open(arg[1], "rb"))
local data = fh:read("*all")

for old, new in pairs(a) do
  data = string.gsub(data,"+..\\..\\music\\"..old..".mp3","+"..new)

local fh = assert(io.open(arg[2], "wb"))

prog.lua old.c2g new.c2g

  • Upvote 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...