FoFiX 4.0.0 Development Thread

Discussion particular to FoFiX, its development, and themes
Forum rules
This topic is 2 years and 4 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby death_au » Thu Feb 11, 2010 4:11 am

rymyst3rio wrote:Thank you for the response, but how do I change the theme outside of the program?

You need to open up your fofix.ini, find the "themename" setting and either delete it or change it to the name of a folder you know works (for example "MegaLight")
...the pain
User avatar
myfingershurt
Member
Posts: 1796
Joined: April 9th, 2007
Location: Northern Nevada, USA
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby myfingershurt » Thu Feb 11, 2010 3:35 pm

death_au wrote:
rymyst3rio wrote:Thank you for the response, but how do I change the theme outside of the program?

You need to open up your fofix.ini, find the "themename" setting and either delete it or change it to the name of a folder you know works (for example "MegaLight")


Yep, or you can just go delete the "CustomTheme.py" file in the theme you're trying to use. It's what is causing the crash. When you update the SVN for that theme next time, it will restore this file, so be aware of that.

I haven't seen a CustomTheme.py load without crashing yet, which is why I started that batch file that auto-checks out any development / SVN themes that I'm aware of (although I limited my search to the game themes). I still am not aware of one that works yet.

Alternately, you can go delete your fofix.ini and start with a fresh configuration file. Either there's one in your FoFiX folder, or one in the %appdata%\fofix\ folder (in Windows, anyway).
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby death_au » Thu Feb 11, 2010 5:30 pm

myfingershurt wrote:...which is why I started that batch file that auto-checks out any development / SVN themes that I'm aware of (although I limited my search to the game themes).

About that...
We decided when the google code project came up not to put game themes up there due to potential copyright issues, etc. Doesn't having a script that obtains those themes automatically bring up a similar issue?
Don't get me wrong, I'm not against the script itself, I'm just not sure if it should be up on google code...
EDIT: A few of us are almost constantly in the dev irc if you want to have a chat about it.

Also, I have a similar script of my own and I think I've got a few more svn links I can add.
...the pain
User avatar
myfingershurt
Member
Posts: 1796
Joined: April 9th, 2007
Location: Northern Nevada, USA
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby myfingershurt » Fri Feb 12, 2010 12:11 pm

Yeah, that's a good point. I didn't intend for it to be distributed with the releases, only for the developers and alpha testers to easily stay updated and discover theme issues quicker.

Perhaps it would be best kept out of the official FoFiX scripts, I'm OK with removing it.

I'd like to see your script, and I'd be interested in any other themes that have an SVN repository. Since your theme list post appears to be legit as it just links to places to download them, what do you think about a link to download the autocheckout script in the theme post? I'm sure others will find it as useful as I have.
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby death_au » Fri Feb 12, 2010 8:19 pm

myfingershurt wrote:Since your theme list post appears to be legit as it just links to places to download them, what do you think about a link to download the autocheckout script in the theme post? I'm sure others will find it as useful as I have.

I was thinking that, actually. Maybe I will.
Anyway, here's my script. I figured a copy-paste was easier than uploading to mediafire:

Code: Select all

@echo off
set SVN_dir=\Tools\CollabNetSVN
set theme_dir=\FoFiX\data\themes

set Gee_SVN_url="http://svn.xp-dev.com/svn/slantyr-GeetarHero/"
set Gee_theme_dir="%theme_dir%\Geetar Hero SVN"

set RB2_SVN_url="http://svn.xp-dev.com/svn/kristijan_mkd_RockBand2Theme/"
set RB2_theme_dir="%theme_dir%\Rock Band 2 SVN"

set GH3_SVN_url="http://svn.xp-dev.com/svn/worldrave-guitarheroIII/"
set GH3_theme_dir="%theme_dir%\Guitar Hero III SVN"

set GHA_SVN_url="http://svn.xp-dev.com/svn/worldrave-guitarhero-aerosmith/"
set GHA_theme_dir="%theme_dir%\Guitar Hero III Aerosmith SVN"

set GHM_SVN_url="http://svn2.xp-dev.com/svn/kristijan_mkd-GuitarHeroMetallicaOriginal/"
set GHM_theme_dir="%theme_dir%\Guitar Hero Metallica SVN"

set SGHM_SVN_url="http://svn2.xp-dev.com/svn/stashincash06-Guitar-Hero-Metallica/"
set SGHM_theme_dir="%theme_dir%\Stashincash's Guitar Hero Metallica SVN"

set GHMC_SVN_url="http://svn.xp-dev.com/svn/kristijan_mkd-GH-Metallica/"
set GHMC_theme_dir="%theme_dir%\Guitar Hero Metallica Custom SVN"

set GHWT_SVN_url="http://svn.xp-dev.com/svn/gamexprt1-GHWT/Guitar Hero World Tour/"
set GHWT_theme_dir="%theme_dir%\Guitar Hero World Tour SVN"

set RB1_SVN_URL="http://svn.xp-dev.com/svn/myfingershurt-fofix-rb1-theme/"
set RB1_theme_dir="%theme_dir%\Rock Band 1 SVN"

set BS_SVN_URL="http://svn.xp-dev.com/svn/slantyr-BioShock/"
set BS_theme_dir="%theme_dir%\BioShock SVN"

set ACDC_SVN_URL="http://svn2.xp-dev.com/svn/PaulTechNox-ACDC-Theme/"
set ACDC_theme_dir="%theme_dir%\AC-DC SVN"

set STARZ_SVN_URL="http://svn2.xp-dev.com/svn/Hazzerz-STaRZ/"
set STARZ_theme_dir="%theme_dir%\STaRZ SVN"

echo --------------
echo FoFiX Portable theme updater script by Death_au
echo --------------
echo Program paths:
echo --------------
echo SVN_dir:         %SVN_dir%
echo theme_dir:       %theme_dir%
echo SVN URLS:
echo Gee_SVN_url:     %Gee_SVN_url%
echo RB1_SVN_url:     %RB1_SVN_url%
echo RB2_SVN_url:     %RB2_SVN_url%
echo GH3_SVN_url:     %GH3_SVN_url%
echo GHA_SVN_url:     %GH3_SVN_url%
echo SGHM_SVN_url:    %SGHM_SVN_url%
echo GHM_SVN_url:     %GHM_SVN_url%
echo GHMC_SVN_url:    %GHMC_SVN_url%
echo GHWT_SVN_url:    %GHWT_SVN_url%
echo BS_SVN_url:      %BS_SVN_url%
echo STARZ_SVN_url:   %STARZ_SVN_url%
echo Theme dirs:
echo Gee_theme_dir:   %Gee_theme_dir%
echo RB1_theme_dir:   %RB1_theme_dir%
echo RB2_theme_dir:   %RB2_theme_dir%
echo GH3_theme_dir:   %GH3_theme_dir%
echo GHA_theme_dir:   %GH3_theme_dir%
echo SGHM_theme_dir:  %SGHM_theme_dir%
echo GHM_theme_dir:   %GHM_theme_dir%
echo GHMC_theme_dir:  %GHMC_theme_dir%
echo GHWT_theme_dir:  %GHWT_theme_dir%
echo BS_theme_dir:    %BS_theme_dir%
echo STARZ_theme_dir: %STARZ_theme_dir%

echo --------------
echo Updating Geetar Hero theme from from SVN...
%SVN_dir%\svn.exe checkout %Gee_SVN_url% %Gee_theme_dir%

echo --------------
echo Updating Rock band 1 theme from from SVN...
%SVN_dir%\svn.exe checkout %RB1_SVN_url% %RB1_theme_dir%

echo --------------
echo Updating Rock band 2 theme from from SVN...
%SVN_dir%\svn.exe checkout %RB2_SVN_url% %RB2_theme_dir%

echo --------------
echo Updating Guitar Hero 3 theme from from SVN...
%SVN_dir%\svn.exe checkout %GH3_SVN_url% %GH3_theme_dir%

echo --------------
echo Updating Guitar Hero Aerosmith theme from from SVN...
%SVN_dir%\svn.exe checkout %GHA_SVN_url% %GHA_theme_dir%

echo --------------
echo Updating Stashincash's Guitar Hero Metallica theme from from SVN...
%SVN_dir%\svn.exe checkout %SGHM_SVN_url% %SGHM_theme_dir%

echo --------------
echo Updating Guitar Hero Metallica theme from from SVN...
%SVN_dir%\svn.exe checkout %GHM_SVN_url% %GHM_theme_dir%

echo --------------
echo Updating Guitar Hero Metallica Custom theme from from SVN...
%SVN_dir%\svn.exe checkout %GHMC_SVN_url% %GHMC_theme_dir%

echo --------------
echo Updating Guitar Hero World Tour theme from from SVN...
%SVN_dir%\svn.exe checkout %GHWT_SVN_url% %GHWT_theme_dir%

echo --------------
echo Updating BioShock theme from from SVN...
%SVN_dir%\svn.exe checkout %BS_SVN_url% %BS_theme_dir%

echo --------------
echo Updating AC/DC theme from from SVN...
%SVN_dir%\svn.exe checkout %ACDC_SVN_url% %ACDC_theme_dir%

echo --------------
echo Updating STaRZ theme from from SVN...
%SVN_dir%\svn.exe checkout %STARZ_SVN_url% %STARZ_theme_dir%

echo --------------
echo SVN update complete. Please make sure there are no errors listed above before you use the themes
pause
It's quite... verbose. And probably in need of a loop somewhere.
There's twelve themes in there with SVN. Not 100% that's all of them, but it should be most
(and it's only completed ones, none of the new WIP ones)
Bridged To The Sun.
User avatar
acrox999
Member
Posts: 3597
Joined: March 22nd, 2008
Location: /opt/bin/fretsonfire
Reputation: 1
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby acrox999 » Fri Feb 12, 2010 9:24 pm

Great idea. We can easily download the themes with SVN repo without searching the whole forum.
rymyst3rio
Member
Posts: 116
Joined: December 20th, 2008
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby rymyst3rio » Sat Feb 13, 2010 10:45 am

well this may seem like a stupid question now haha, but I cannot find my FoFiX ini. I update fofix via SVN and i have gone through the folders and haven't found it
Wait what
User avatar
evilbobthebob
Member
Posts: 1011
Joined: August 25th, 2008
Location: UK
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby evilbobthebob » Sat Feb 13, 2010 10:48 am

Then it's in your Application Data folder. It only appears in your SVN version if you put it there to override the Application Data behaviour.
All my songs | My Hero Project: A Hero
The Smart Way to Ask Questions
Image

Spoiler:ummmmm hey guys
you suck because I said so
I know everything about art guys
what you make is worthless because you use photos
allow me to bash you and not prove I hold any talent of my own guys
guys guys guys
look at me
I need attention

...the pain
User avatar
myfingershurt
Member
Posts: 1796
Joined: April 9th, 2007
Location: Northern Nevada, USA
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby myfingershurt » Sun Feb 14, 2010 1:49 pm

death_au wrote:I was thinking that, actually. Maybe I will.
Anyway, here's my script. I figured a copy-paste was easier than uploading to mediafire:

.....

It's quite... verbose. And probably in need of a loop somewhere.
There's twelve themes in there with SVN. Not 100% that's all of them, but it should be most
(and it's only completed ones, none of the new WIP ones)


Got it, thanks. I've updated my autocheckout and autoupdate scripts (and committed the to SVN), which I've included as code here. They work great anywhere FoFiX is located, and are meant to be run from the FoFiX/src/scripts folder. I also had to alter the URLs of certain themes as some of them have an unnecessary folder containing everything below the trunk.

When you install Subversion, it adds itself to the PATH variable -- so as long as you install Subversion and then reboot first, the following will work fine just fine.



Autocheckout script (for Subversion) - calls "autocheckout module" several times:

Code: Select all

@echo off
set localpath=.\


echo RB1 / RbMFH theme by MFH
set currentThemeFolder=Rock Band 1
set urlOfThemeSvn=http://svn.xp-dev.com/svn/myfingershurt-fofix-rb1-theme/
call module-checkOutOneGameThemeSvn-subversion.bat

echo RB1 Beta theme
set currentThemeFolder=Rock Band 1 beta
set urlOfThemeSvn=http://svn.xp-dev.com/svn/rbbeta/trunk/
call module-checkOutOneGameThemeSvn-subversion.bat

echo RB2 theme by kid
set currentThemeFolder=Rock Band 2
set urlOfThemeSvn=http://svn.xp-dev.com/svn/kristijan_mkd_RockBand2Theme/
call module-checkOutOneGameThemeSvn-subversion.bat

echo The Beatles: Rock Band by @ir15
set currentThemeFolder=The Beatles Rock Band
set urlOfThemeSvn=http://svn.xp-dev.com/svn/TBRB/The Beatles RB Theme/
call module-checkOutOneGameThemeSvn-subversion.bat

echo GH3 theme by Worldrave
set currentThemeFolder=Guitar Hero III
set urlOfThemeSvn=http://svn.xp-dev.com/svn/worldrave-guitarheroIII/
call module-checkOutOneGameThemeSvn-subversion.bat

echo Guitar Hero Aerosmith by worldrave
set currentThemeFolder=Guitar Hero Aerosmith
set urlOfThemeSvn=http://svn.xp-dev.com/svn/worldrave-guitarhero-aerosmith/
call module-checkOutOneGameThemeSvn-subversion.bat

echo Guitar Hero World Tour by gamexprt1
set currentThemeFolder=Guitar Hero World Tour
set urlOfThemeSvn=http://svn.xp-dev.com/svn/gamexprt1-GHWT/Guitar Hero World Tour/
call module-checkOutOneGameThemeSvn-subversion.bat

echo Guitar Hero: Metallica by kid 
set currentThemeFolder=Guitar Hero Metallica
set urlOfThemeSvn=http://svn2.xp-dev.com/svn/kristijan_mkd-GuitarHeroMetallicaOriginal/
call module-checkOutOneGameThemeSvn-subversion.bat

echo Guitar Hero: Metallica by stashincash06 
set currentThemeFolder=Guitar Hero Metallica sc
set urlOfThemeSvn=http://svn2.xp-dev.com/svn/stashincash06-Guitar-Hero-Metallica/Guitar Hero Metallica
call module-checkOutOneGameThemeSvn-subversion.bat

echo Guitar Hero: Metallica custom by kid 
set currentThemeFolder=Guitar Hero Metallica cust
set urlOfThemeSvn=http://svn.xp-dev.com/svn/kristijan_mkd-GH-Metallica/
call module-checkOutOneGameThemeSvn-subversion.bat


Rem ---------------Other (non-GH/RB game clones) themes-------------------

echo Geetar Hero theme by slantyr
set currentThemeFolder=Geetar Hero
set urlOfThemeSvn=http://svn.xp-dev.com/svn/slantyr-GeetarHero/
call module-checkOutOneGameThemeSvn-subversion.bat

echo Bioshock theme by slantyr
set currentThemeFolder=Bioshock
set urlOfThemeSvn=http://svn.xp-dev.com/svn/slantyr-BioShock/
call module-checkOutOneGameThemeSvn-subversion.bat

echo AC/DC theme
set currentThemeFolder=AC DC
set urlOfThemeSvn=http://svn2.xp-dev.com/svn/PaulTechNox-ACDC-Theme/
call module-checkOutOneGameThemeSvn-subversion.bat

echo STARZ theme
set currentThemeFolder=Starz
set urlOfThemeSvn=http://svn2.xp-dev.com/svn/Hazzerz-STaRZ/
call module-checkOutOneGameThemeSvn-subversion.bat


cd ..
cd ..
pause




...........
Autocheckout module (for Subversion):

Code: Select all

call backToFoFiXroot.bat
cd data\themes

IF EXIST "%currentThemeFolder%" GOTO CheckoutDone
echo Checking out %currentThemeFolder% from %urlOfThemeSvn% ...
svn checkout "%urlOfThemeSvn%" "%currentThemeFolder%"
:CheckoutDone

cd ..
cd ..
cd src\scripts



There is a very similar script / module set to accomplish the same task via TortoiseSVN, although it will require you to confirm each checkout instead of being completely automated and silent.


So what I'm thinking is, I can leave the script modules in the SVN as they can be generally useful without any copyright issues... and just delete the autocheckout scripts for subversion / TortoiseSVN. These scripts can then be made available in your theme posting, with instructions to download into the FoFiX/src/scripts folder.

For now they're still up in the SVN.

Edit: added RB1 Beta theme SVN
weirdpeople
Member
Posts: 1105
Joined: August 16th, 2008
Location: Texas
Reputation: 15
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby weirdpeople » Sun Feb 14, 2010 5:28 pm

myfingershurt wrote:
death_au wrote:
Edit: added RB1 Beta theme SVN

You named the theme wrong its actually called Rock Band Beta theme :thumbdown:

Also i have posted a list of things that i think NEED to be added to the rockmeter.ini befor 4.0 is released

- Add support For if, then. or elif statements directly in the rockmeter.ini
- add support for you to change the visibility of items if you please, then have them become visible with the if then statements
- add support for the rockmeater.ini to be able to show certain images for certain instruments, or players, maybe again with if then statements.
- Add support for images to be shown when the user is in star power, star power is activated, or starpower is deactivated
- Add support for an image to be shown when you miss a note, or hit a note.
- Add Support for any image to be dynamically faded in and out like the Overdrive full.png
- add support for BPM to be a variable that you may multiply add subtract and divide by
- add support for a variable which will have how long the song is
- add support for a variable which will have how long the song has left
- add support for a variable which will a have how long the song has been played so far
- change how the overdrive fill works, right now it is really hard to position on the screen.


http://code.google.com/p/fofix/issues/detail?id=1153
Developer of clone hero, and Former FoFiX developer
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby death_au » Sun Feb 14, 2010 6:05 pm

myfingershurt wrote:When you install Subversion, it adds itself to the PATH variable -- so as long as you install Subversion and then reboot first, the following will work fine just fine.

I'm aware of that, but I never installed it :tongue:
I have everything set up on a portable USB hard drive, so all my paths need to be relative, not rely on an existing %PATH%, etc. I know, I'm difficult :tongue2:
...the pain
User avatar
myfingershurt
Member
Posts: 1796
Joined: April 9th, 2007
Location: Northern Nevada, USA
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby myfingershurt » Sun Feb 14, 2010 6:28 pm

weirdpeople wrote:You named the theme wrong its actually called Rock Band Beta theme :thumbdown:



... :ohmy:

Isn't it the beta-style theme for Rock Band 1, though? We didn't call it Rock Band 1 before Rock Band 2 came out, but now we do since there isn't just a single game with that title now.

Well, feel free to name your theme folder whatever you'd like, this is what I did for me.

-- Edit: Sun Feb 14, 2010 7:32 pm --

death_au wrote:I'm aware of that, but I never installed it :tongue:
I have everything set up on a portable USB hard drive, so all my paths need to be relative, not rely on an existing %PATH%, etc. I know, I'm difficult :tongue2:


Nice.

Well then, uh -- carry on! :laugh:
weirdpeople
Member
Posts: 1105
Joined: August 16th, 2008
Location: Texas
Reputation: 15
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby weirdpeople » Sun Feb 14, 2010 7:18 pm

myfingershurt wrote:
weirdpeople wrote:You named the theme wrong its actually called Rock Band Beta theme :thumbdown:

Isn't it the beta-style theme for Rock Band 1, though? We didn't call it Rock Band 1 before Rock Band 2 came out, but now we do since there isn't just a single game with that title now.

Well, feel free to name your theme folder whatever you'd like, this is what I did for me.

But still the Actual name of the theme is: Rock Band Beta not rb1 beta or Rock Band 1 beta and the name of rb1 is Actually Rock Band NOT Rock band 1
Developer of clone hero, and Former FoFiX developer
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby death_au » Sun Feb 14, 2010 7:42 pm

weirdpeople wrote:- Add support For if, then. or elif statements directly in the rockmeter.ini
...
http://code.google.com/p/fofix/issues/detail?id=1153

You can get dodgy if statements in your rockmeter.ini by using ternary operators. The catch is that they don't work on python 2.4 (there's a workaround for that, too, but I'm keeping it simple at the moment)
According to Wikipedia (http://en.wikipedia.org/wiki/Ternary_operation#Python), the general form is:
a if a > b else b

Hopefully in the future the whole rockmeter.ini type stuff will end up in customTheme.py, and we'll have full access to most of everything else you've mentioned in that issue.
User avatar
blazingamer
Member
Posts: 2018
Joined: November 17th, 2007
Location: Pennsylvania
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby blazingamer » Mon Feb 15, 2010 5:26 pm

Death.au, we already had that discussion on the irc and we came to the conclusion of no.

Also, I answered all the suggestions proposed in issue 1153 if anyone is interested.

Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 31 guests