Setting Up FoF Sources - 1.2.451 - How to test your own source changes

Discuss mods and get help with mods ONLY
This topic is 16 years and 8 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
Rogue_F
Member
Posts: 1504
Joined: November 2nd, 2006
Reputation: 1

Postby Rogue_F » Sun Apr 29, 2007 12:04 am

This is an update for 1.2.451. It also updates a few of the other components to more recent versions (not all)


Versions are likely important. Don't substitute one for the other without trying the original versions first. These versions were tested, yours were not. I will not answer questions unless you have done the things in this document.

1) Download Active Python 2.4.3.12 (not the standard python distro)
http://downloads.activestate.com/ActiveP....x86.msi

2) Download Psyco optimizing compiler 1.5.2
http://downloads.sourceforge.net/psyco/psyco-1.5.2.win32-py2.4.exe

3) Download GLEW 1.4.0
http://downloads.sourceforge.net/glew/glew-1.4.0-win32.zip

4) Download PyOpenGL 2.0.2.01
http://downloads.sourceforge.net/pyopeng....y23.exe

5) Download GLEWpy 0.7.4
http://downloads.sourceforge.net/glewpy/glewpy-0.7.4.win32-py2.4.exe

6) Download PyGame 1.7.1
http://www.pygame.org/ftp/pygame-1.7.1release.win32-py2.4.exe

7) Download PIL 1.1.6
http://effbot.org/downloads/PIL-1.1.6.win32-py2.4.exe

8) Download Numeric 2.4.2
http://downloads.sourceforge.net/numpy/Numeric-24.2.win32-py2.4.exe

9) Download Amanith 0.3
[s]http://www.amanith.org/download/pafiledb.php?action=file&id=11[/s] | Mirror

10) Download PyAmanith 0.3.34

http://muksuluuri.ath.cx/~skyost....2.4.exe

11) Download PyOgg 1.3 (this url is important, other versions dont work)
http://thomas.paviot.free.fr/soya/pyogg-1.3.win32-py2.4.exe

12) Download PyVorbis 1.4 (this URL is important, other versions don't work)
http://thomas.paviot.free.fr/soya/pyvorbis-1.4.win32-py2.4.exe

13) Download py2exe 0.6.6
http://downloads.sourceforge.net/py2exe/py2exe-0.6.6.win32-py2.4.exe

14) Download the Frets on Fire 1.2.451 sources


Install


1) Install active python by double clicking the .msi
2) Install psyco by double clicking the .exe
3) Unzip GLEW (no easy install)
3a) Install glew by copying the 'glew.dll' file in 'bin' to your 'system32' dir under C:\Windows (or equivalent)
4) Install PyOpenGL by double clicking the .exe
5) Install GLEWpy by double clicking the .exe
6) Install PyGame by double clicking the .exe
7) Install PIL by double clicking the .exe
8) Install Numeric by double clicking the .exe
9) Install Amanith by double clicking the .exe
9a) Select reboot later
10) Install PyAmanith by double clicking the .exe
11) Install Pyogg by double clicking the .exe
12) Install Pyvorbis by double clicking the .exe
13) Install py2exe by double clicking the .exe


This next part fixes a opengl/py2exe bug so it may not be necessary in the future. Only if you get an error when running the FoF.exe that says:

IOError: [Errno 2] No such file or directory: 'D:\\Games\\Frets on Fire\\dist\\data\\library.zip\\OpenGL\\version'

14) Go to your Python directory and go into the 'Lib' and then 'site-packages' directory

VERY IMPORTANT
In steps 15-18 you must replace the --'s with two underscores. The message board does not allow you to put in underscores like this for some reason

15) Go into the 'OpenGL' directory and edit the file called '--init--.py'
16) replace the line that reads:

--version-- = string.strip(open(filename).read())

with

--version-- = '2.0.2.01'

17) Save this file
18) Delete '--init--.pyc' and '--init--.pyo' in the same directory

VERY IMPORTANT
In previous steps 15-18 you must replace the --'s with two underscores. The message board does not allow you to put in underscores like this for some reason



19) Unzip the Frets On Fire sources
20) Move the 'src ' directory from the 'FretsOnFire-src-1.2.451' directory into your Frets On Fire directory (same place as the 'data' directory)
21) REBOOT (required)
23) Open a command prompt
24) cd to the new 'src' directory in your Frets on Fire directory
25) type 'python fretsonfire.py'

At this point you should be able to play frets on fire directly from the source
To create the executable we need a few more steps

26) in your command prompt type 'python setup.py py2exe'
27) a bunch of stuff will happen and you should end up with a 'dist' directory above.
28) go into the dist directory and doubleclick the fretsonfire.exe (you will need to get an icon for the .exe)


You should be ready to go, just copy your songs in there and you're all set.

The resulting file that matters mostly out of this if you are changing the source is the 'library.zip' file in the data directory. It is NOT compatible with the mod system because it needs to be lly replaced before the game starts. Also these source mods will not be 'overlappable' with eachother because many modify the same source files and they all get bundled into the library.zip. There may be some other files that need to be included as well depending on if you have any updated libraries, etc. Always test your new changes by testing it on a freshly installed standard version.

-Alex
Last edited by raph666 on Tue Jun 17, 2008 12:15 pm, edited 1 time in total.
whatakevin
Member
Posts: 1273
Joined: February 12th, 2007
Reputation: 0

Postby whatakevin » Sun Apr 29, 2007 12:11 am

i can already scene the pinnage...
mmsven
Member
Posts: 2705
Joined: September 24th, 2006
Location: Canada
Reputation: 1

Postby mmsven » Sun Apr 29, 2007 12:25 am

pinnaged!
Shredder
User avatar
Scutch-Nukem
Member
Posts: 3176
Joined: December 23rd, 2006
Location: Confirmed, sending supplies.
Reputation: 0
Contact:

Postby Scutch-Nukem » Sun Apr 29, 2007 12:30 am

pinned for real? say its true!
If you can read this then you've gone too far.
Image
jfhidakatsu
Member
Posts: 2
Joined: May 5th, 2007
Reputation: 0

Postby jfhidakatsu » Wed May 09, 2007 10:04 pm

I can't find the 'src' directory. Is there any way to skip step 20?
User avatar
thesilent
Member
Posts: 52
Joined: August 27th, 2006
Reputation: 0
Contact:

Postby thesilent » Thu May 10, 2007 6:33 pm

did you download the source code?

step 20 and the src directory are the whole point of every other step
jfhidakatsu
Member
Posts: 2
Joined: May 5th, 2007
Reputation: 0

Postby jfhidakatsu » Thu May 10, 2007 8:48 pm

o...I thought this was an update for Frets on Fire 1.2.451. What's the source code?
Neoblood
Member
Posts: 41
Joined: April 16th, 2007
Reputation: 0

Postby Neoblood » Sun May 20, 2007 10:05 pm

ummm when i click on the "--init--" file I see a black box come up but then it dissapears instantly... and those files dont have .pyc or anything for me, Im assuming Im supposed to edit the 1kb Python file and neither of the 2kb compiled python files?
Rogue_F
Member
Posts: 1504
Joined: November 2nd, 2006
Reputation: 1

Postby Rogue_F » Mon May 21, 2007 2:35 am

you dont click on it, you edit it.

-Alex
Neoblood
Member
Posts: 41
Joined: April 16th, 2007
Reputation: 0

Postby Neoblood » Mon May 21, 2007 10:33 pm

How do I get the FoF sources? do they come with the actual game download or are they a separate group of files?
Rogue_F
Member
Posts: 1504
Joined: November 2nd, 2006
Reputation: 1

Postby Rogue_F » Mon May 21, 2007 10:41 pm

You can download them from their webpage on sourceforge. It was not included because at the time they were transitionining from their old website to sourceforge.

-Alex
Neoblood
Member
Posts: 41
Joined: April 16th, 2007
Reputation: 0

Postby Neoblood » Mon May 21, 2007 10:56 pm

so just to be absolutely, painstakingly clear its the one called "full version zip archive"?

sorry for all the questions, but im a dummy.
Rogue_F
Member
Posts: 1504
Joined: November 2nd, 2006
Reputation: 1

Postby Rogue_F » Tue May 22, 2007 12:28 am

Well, if you are a dummy, it's not likely you will get the sources working.

The sources are here

-Alex
User avatar
Whyte Raven
Member
Posts: 11
Joined: March 1st, 2007
Reputation: 0

Postby Whyte Raven » Wed Jun 06, 2007 5:15 pm

hi guys!

nice instructions, but i have a problem with No. 10)

the downloaded exe has a 0kb-size...seems to be corrupted
at the end of the instructions the command window sais that a few files are missing

is it possible to upload one of your versions of PyAmanith?

thx for help
User avatar
crazy.neo
Member
Posts: 2601
Joined: January 11th, 2007
Location: Portugal
Reputation: 0

Postby crazy.neo » Thu Jun 14, 2007 4:51 am

What exactly do you mean with:

23) Open a command prompt
24) cd to the new 'src' directory in your Frets on Fire directory
25) type 'python fretsonfire.py'
26) in your command prompt type 'python setup.py py2exe'


Do you mean the interactive compiler window? And how do I open a command promt? I simply open pythonwin.exe, open a *.py scipt and edit it, I can't create the "dis" folder or open a command promt...

PLEASE HEL ME! I KNOW IT'S NOOBISH, BUT I'VE BEEN GAINING COURAGE TO ASK YOU THIS FOR ABOUT 3 WEEKS!!!

Return to “FOF Mod Discussion and Support”

Who is online

Users browsing this forum: Bing [Bot] and 18 guests