FAQ  •  Register  •  Login

How do i change the directory for bitfigher's stuff

<<

Lamp

User avatar

Posts: 426

Joined: Fri Jan 11, 2013 3:07 pm

Post Tue May 20, 2014 1:55 pm

How do i change the directory for bitfigher's stuff

I want to change it from Application Support in Library to my Dropbox

folder, so my bitfighter stuff will be synced with all computers.



Can i do this?
Image
<<

Quartz

User avatar

Posts: 901

Joined: Thu Jun 17, 2010 12:14 am

Location: Texas

Post Tue May 20, 2014 1:57 pm

Re: How do i change the directory for bitfigher's stuff

Pretty spiffy idea.
Exploits of Quartz and bobdaduck - Pleiades Maps
19-year-old Quartz mad about lawn removal
raptor wrote:sometimes I think getting Quartz to use plugins is like getting my mom to use a computer
<<

Little_Apple

User avatar

Posts: 839

Joined: Sat Jun 11, 2011 12:31 pm

Location: Zanzibar Land

Post Tue May 20, 2014 2:08 pm

Re: How do i change the directory for bitfigher's stuff

You can change Bitfighter's level directory in the .ini near the server settings, but I'm not sure if you could do more than that without modding and making a new build. But something like Steam cloud saving would be pretty neat.
Hee-ho!
<<

Lamp

User avatar

Posts: 426

Joined: Fri Jan 11, 2013 3:07 pm

Post Tue May 20, 2014 4:41 pm

Re: How do i change the directory for bitfigher's stuff

Little_Apple wrote:You can change Bitfighter's level directory in the .ini near the server settings, but I'm not sure if you could do more than that without modding and making a new build. But something like Steam cloud saving would be pretty neat.



Just syncing levels is good enough, but i want to be able to have bitfighter write levels into the specified directory, not only read them.
Image
<<

raptor

Posts: 1046

Joined: Mon Oct 11, 2010 9:03 pm

Post Tue May 20, 2014 9:10 pm

Re: How do i change the directory for bitfigher's stuff

Hi Lamp!

If it is just levels you want to change, then you can do it by launching the game with the '-leveldir SOME_DIRECTORY' flag. Or, if you want all resources, you can use the '-rootdatadir SOME_DIRECTORY' flag.

I'm not quite sure how to do it on OSX... any OSX gurus out there?

Here are other flags you can specify, taken from running 'bitfighter -help' on the command line:

Specifying folders

All of the following options can be specified with either a relative or absolute path. They are primarily intended to make installation on certain Linux platforms more flexible; they are not meant for daily use by average users.

In most cases, -rootdatadir is the only parameter in this section you will need.
  • -rootdatadir <path>   -- Equivalent to setting the -inidir, -logdir, -robotdir, -screenshotdir, and -leveldir parameters. The application will automatially append "/robots", "/screenshots", and "/levels" to path as appropriate.
  • -logdir <path>        -- Folder where logfiles will be written
  • -scriptsdir <path>    -- Folder where Lua helper scripts are stored
  • -robotdir <path>      -- Folder where robot scripts are stored
  • -screenshotdir <path> -- Folder where screenshots are stored
  • -sfxdir <path>        -- Folder where sounds are stored
  • -musicdir <path>      -- Folder where game music stored
  • -plugindir <path>     -- Folder where editor plugins are stored
  • -fontsdir <path>      -- Folder where fonts are stored
  • -recorddir <path>     -- Folder where recording gameplay are stored
<<

sky_lark

User avatar

Posts: 2053

Joined: Wed Mar 10, 2010 6:00 pm

Post Wed May 21, 2014 11:33 am

Re: How do i change the directory for bitfigher's stuff

I think this will work:

- Open Terminal (found in Applications > Utilities)
- Right click on your Bitfighter app and select Show Package Contents
- Go to Content > MacOS > Bitfighter and drag that file onto your Terminal window. You can also type out the path but it's easier to just drag and drop.
- Through this interface you can type -dedicated to launch a server. However if you just hit return you can also launch the game without starting a server. I bet if you put -leveldir SOME_DIRECTORY here that would change the level directory.
Follow Bitfighter! FacebookTwitterDiscord
<<

Lamp

User avatar

Posts: 426

Joined: Fri Jan 11, 2013 3:07 pm

Post Wed May 21, 2014 12:56 pm

Re: How do i change the directory for bitfigher's stuff

Ok thanks sky lark! I thought about that before reading your second post
Image
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Wed May 21, 2014 7:10 pm

Re: How do i change the directory for bitfigher's stuff

If you really want to, you can take what sky_lark said, but make it an application using AppleScript. I haven't tested this, but this script should work:

  Code:
do shell script "#!/bin/bash
'BITFIGHTER_PATH' -leveldir 'SOME_DIRECTORY'"


In Spotlight search, type "Script Editor" and click on it. Paste that code in the window, replacing the "BITFIGHTER_PATH" and "SOME_DIRECTORY" with the right stuff. Then, click the "Build and Go" button to try it out. When you are done, save it, and make it an Application if you want to by selecting it in the drop-down menu on the save window.

For example:
  Code:
do shell script "#!/bin/bash
'/MacintoshHD/Applications/bitfighter' -leveldir '/MacintoshHD/Users/Lamp/Dropbox/BitfighterLevels'"
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

Lamp

User avatar

Posts: 426

Joined: Fri Jan 11, 2013 3:07 pm

Post Thu Feb 12, 2015 7:19 pm

Re: How do i change the directory for bitfigher's stuff

Bumping this because I have a better idea. You can use symbolic links instead. Put bitfighter folder in Dropbox folder and create a symbolic link to it. Use "ln -s" in Terminal to make symbolic links.

I did this with Minecraft.
Image
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Fri Feb 13, 2015 4:32 pm

Re: How do i change the directory for bitfigher's stuff

Ohh smart
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest