You are here

FoFiX Portable

38 posts / 0 new
Last post
Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
FoFiX Portable

Hi everybody,

First, I want to thank all of you for making me keep trying new things without worrying about my PC's stability... thank you

I just decided to join this community and will help as much as I can!
So I start it easy! Fofix is already portable itself (I'm not really a gamer but played this one for few days and liked it),
so I just had to make a little launcher.ini to make it fully portable

(I think!)

    Some help needed please:

  • help.html needs to be updated/created
  • licence, readme, ... files: don't know how to preceed
  • splash: couldn't find any jpg to work with!
  • and finally, I don't know where to upload the installer (or a .zip would be better???)

There it is, you should have noticed my bad english so thanks for being... patient! Wink

Have a nice day

Edit 02.04.2011:

I need some help on,
- Testing
- and I need to preserve 2 folders ("AppDir\FoFiX\data\users" and "AppDir\FoFiX\data\avatars") after update

Can you test it please? Thanks

Edit 03.04.2011:

  • added installer.ini to preserve "avatars" and "users"
  • icons fixed
  • added DefaultData with all stuff needed inside it
  • an installer
  • a 7zip file

Need feedback please...

Edit 06.04.2011: DevTest 3

Aluísio A. S. G.
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Template

There is an application template at https://downloads.sourceforge.net/portableapps/PortableApps.com_Applicat..., that contains everything you requested. You will just need to tweak the help.html file.

For the upload, you can use e.g. MediaFire.

Previously known as kAlug.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
Search

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
Search!!!!

Dear Chris,
The page you've linked to seems to be dead (inactive) and the guy doesn't mention what problems he encountred or his achivements!!!

Thank you (both) for your reply, kAlug I will check out your link

thx

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
Still miss a "clean" splash:

Still miss a "clean" splash: something colored without a logo of any portable app. (not the development test splash)

thx

Aluísio A. S. G.
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
On Release

If this become an official portable app, John will provide one.

Previously known as kAlug.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
Splash

all beta tests use the Black and white beta test splash

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
thx

Thanks kAlug, vf2nsr for the replies
I made some changes, I think it's ready now. See "Edit" above...

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
Feedback

I'm not a gamer, but I downloaded this anyway to take a look at the portabilization. Overall, it looks like you did a really good job! There are just a few things I noticed:

* appicon.ico is supposed to contain more image sizes and resolutions (16x16 8-bit, 32x32 8-bit, 48x48 8-bit, 16x16 32-bit, 32x32 32-bit, 48x48 32-bit, and an optional 256x256 32-bit). You can use IcoFX to extract those icons from FoFiX and copy them into appicon.ico.
* Since FoFiX contains a 128x128 32-bit icon, you can extract that and save it as appicon_128.png, next to appicon_16.png and appicon_32.png.
* To preserve AppDir\FoFiX\data\users and AppDir\FoFiX\data\avatars, you can use installer.ini. Just create a blank INI file named installer.ini next to appinfo.ini, and add this to it:

[DirectoriesToPreserve]
PreserveDirectory1=App\FoFiX\data\users
PreserveDirectory2=App\FoFiX\data\avatars

Other than those minor issues, this looks good. Nice work!

EDIT: I just tried running FoFiX Portable and FoFiX crashed. It left this traceback in App\FoFiX\FoFix.exe.log:

Traceback (most recent call last):
File "FoFiX.py", line 108, in
File "GameEngine.pyo", line 391, in
IndexError: list index out of range

That looks more like a FoFiX issue than a FoFiX Portable issue, but you might want to see if you can find a fix/workaround. I'm on XP SP3, btw.

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Aluísio A. S. G.
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Unable to reproduce

I was able to run it without issues (except by a crash when I tried to close it by the window button). Same system.

Can you try to delete App\FoFix\src\GameEngine.pyo?

Previously known as kAlug.

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
DNE

That file doesn't exist. Pardon

This looks like a Python app, so my guess is that GameEngine.pyo is contained within the FoFiX exe. Time for a little Googling, since you can't reproduce it...

EDIT: yep, this is a pretty old bug. Issue 1024, crash if no theme is found, describes my issue perfectly (right down to the failing line number in GameEngine.pyo), and I don't have any themes in App\FoFiX\data\themes. In fact, App\FoFiX\data\themes doesn't even exist.

@Gimme_P: you may want to make a note of that, or perhaps just include a theme or two so users never have to see that bug. You may also want to preserve App\FoFiX\data\themes, since it looks like that's a fairly important folder.

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
Unable to reproduce too...

Thank you very much, both, for your feedback

Everything works fine for me, and yes closing the window directly sometimes makes it crash like kAlug has reported, it's a Fofix bug, although it doesn't hurt anything!

themes folder is in DataDir, and is moved when the app starts, please see launcher.ini. I preferred to do so to avoid users from accessing the app folder when installing new themes, songs and mods.
Computerfreaker maybe you launched fofix.exe rather than fofixportable.exe?!

Thanks for advice and the few lines, I will make a installer.ini, do the icons and reup...

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
Quite sure

I'm quite certain I didn't launch FoFiX.exe by mistake. Does the themes folder exist before first run? I'm on a mobile device ATM, so I can't check, but I could have sworn App\DefaultData was empty. Pardon

Just having the launcher move that folder wouldn't be enough under these circumstances, I'm afraid; you'd need to create a default themes folder (put it in App\DefaultData, so it gets moved to Data properly) with a sample theme or two to keep FoFiX from crashing.

And just to be sure I'm not going crazy... can either of you try running a clean, unmodified install? I'm convinced the issue is that I didn't have any themes installed, but if that's not the case I'll let this go and chalk it up to my old PC being foolish again.

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
I'm a noob

Hello,

Does the themes folder exist before first run?
...
but I could have sworn App\DefaultData was empty.

Yes it does and it must be in Fofix\data\ before each run.
And yes, you're right, App\DefaultData is empty.

Just having the launcher move that folder wouldn't be enough under these circumstances,

Don't understand, can you explain why please?

I'm afraid; you'd need to create a default themes folder (put it in App\DefaultData, so it gets moved to Data properly) with a sample theme or two to keep FoFiX from crashing.

The themes I've put in the Data directory Are default...

can either of you try running a clean, unmodified install?

This Is a clean one... Like I said before, it's almost portable except the fofix.ini file generated by the app to keep user's settings.
So I just moved the "songs", "mods", "necks" and "themes" folders, which by default are located in "fofix\data\", to the DataDir and inserted [MoveDirectories] lines in the launcher.ini
If you want... I could have let these directories (songs, etc) in their default place (fofix\data\) and add just one line in the launcher.ini to keep/delete fofix.ini (%AppDir%\fofix\) and the app would have been fully portable... but the user needs to access the app folder each time they want to add new themes, necks or songs.

Try please to put these folders back to fofix\data\ and then launch fofix.exe (not fofixportable.exe) and see...
If you do this way, you should see a "fofix" folder created by the app in %AppData% !

That's it...
thx

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
AAAArrrggghhh

hi,
It's all my fault, I'm so STupId Sad

freaker, you were right about the DefaultData folder. The PA installer doesn't include the Data directory, I didn't know that! and I haven't even tested it Sad

kAlug should have downloaded the zip file and you... the installer.

I fixed it like you suggested, it's all ready now Smile

please see Edit above.

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
Say something!!!

plz!

Aluísio A. S. G.
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Seems fine

Just a couple notes:

  • users and avatars: shouldn't these go in the Data folder too?
  • DisplayVersion: I think this should be only 3.121

Previously known as kAlug.

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
hey kAlug :)

- no, we could do so but... the user doesn't need to access "users" and "avatars" so we just need to preserve them on update.
- yep agree, but notice please that on their site there are two "latest" versions with different python and ogl each (py2.6-ogl3 and py2.4-ogl2), anyway 3.121 would be better I think.

Aluísio A. S. G.
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Py2.4: Not sure about the reason, but...

Python 2.4 Users: Make sure you try the Python 2.6 version! We're planning to cut support for Python 2.4 soon, so you'll want to make sure everything works right before then! This version should help take care of a good number of the speed issues we've had. To those of you who are running Python 2.4 from sources, you should also get around to updating your setup to run FoFiX from Python 2.6.

IMPORTANT - Note on the memory leak and how to handle it: Python version 2.4 (which Frets on Fire 1.2.451 is built on) has an inherent memory leak problem. As you play more songs, this leak will eat more and more of your physical and virtual memory until the game runs unplayably slow. Every so often, it is recommended that you quit the game completely and restart it. This clears all memory used and restarts the game fresh.

So I believe we can just ignore the Python 2.4 + OGL 2 version.

Previously known as kAlug.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
DT

More the the point, the DisplayVersion should be marking this as a Dev Test.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
Sorry for the wait, here's my feedback

Sorry, I've been either on a mobile device or a restricted PC for the past few days and couldn't even get at the download until now.

I just downloaded the new version (yep, the installer Wink ) and my feedback can be summed up in one word: impressive. You did a good job taking care of everything I pointed out last time, and the new DefaultData worked like a charm in fixing the startup crash.

There are just two minor things I noticed:
* Data\settings\fofix\fofix.ini contains selected_library = C:\Documents and Settings\(username)\Desktop\FoFiX\FoFiXPortable\Data\songs,which doesn't exist on this computer. I'm not sure if that's a path from your system or something from a FoFiX dev's system, but I don't think it should be in that INI.
EDIT: never mind, I think that's just because I didn't select a library (all I did was change a few options to see if they were properly saved). I just looked at the DefaultData copy of that INI and base_library has a similar path. I guess that's just a default setting that will be replaced if I actually pick a library?
* In appinfo.ini, DisplayVersion should have "Development Test X" appended, where X is the Development Test number.

Once those are taken care of, this could be ready for release. Very nice work!

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
plz

can you plz remove this part: (username) from the path above, I'm such a paranoid Smile
thank you

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
Mod?

After anyone replies to a message, only a mod can edit that message. Could a mod take care of removing that, please?

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
oh ok, so both please: his

oh ok, so both please: his (initial) and mine just below
thanks

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
kAlug, Chris, freaker thank

kAlug, Chris, freaker
thank you for the feedback and advice

- yes, I think we can just ignore the python 2.4 version
- ok, I'll fix the DisplayedVersion (add Dev Test)
- yes, it's a little thing I didn't see, it's from my system (the path). I will try to fix it... (thx very much for your encouragement)

I'll try to fix these few issues, reupload (only the installer, can I?) then let you know...

Have a nice day

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
Yep, you can upload just the

Yep, you can upload just the installer. The zip isn't necessary.

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
Updated

please see Edit above..

Can anybody axplain how the updater works please?
Does it look for the installer.ini on user's drive?
Or does it use the installer.ini packaged in the new (updated) .paf.exe? if so, so I don't need to add an installer.ini to this first release (to make it preserve a folder when it's being updated), right?

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 6 days ago
DeveloperModerator
Joined: 2008-07-24 18:46
Leave the installer.ini in

Leave the installer.ini in place, so it can used when the program is being installed.

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
Empty, you mean, for this

Empty, you mean, for this first release? (for next update, there's a folder "fofix\data\users" that needs to be preserved)

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
Nope, you can just leave the

Nope, you can just leave the full installer.ini in place. It won't affect anything during the initial installation, but it'll be useful for future updates.

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
ok but...

hi all,
I understand but... we cannot foresee what changes would be in next releases of an app (v4 for fofix)!

for exemple, how would I do if I would like to preserve or delete other items then already specified in this first release?
Will next releases use installer.ini included in their installers or do they search for an installer.ini on user's system?

thx

Aluísio A. S. G.
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
From installer

The installer will always use the files from itself.

Previously known as kAlug.

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
ok kAlug, it's all what I

ok kAlug, it's all what I wanted to confirm, thanks

I'm going to add it on the Test Releases page, I think it's ready! (?)

computerfreaker
computerfreaker's picture
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-08-11 11:24
Might be ready, just wait a bit

It's probably ready, but you might want to wait a bit before adding it to the release queue. Your last update was just a couple of days ago, so you might want to wait for a week or two to make sure nobody has any issues. Then, go ahead and post it in the release queue (make sure you post a link to this topic there as well, so John can find the right release quickly and easily).

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
oops!

hi freaker,

I already added it on this page https://portableapps.com/development/test... hope I didn't do something wrong!
I don't know yet what is the difference between this page and the one you linked to and don't know how you do (proceed) usually!!

thanks

Aluísio A. S. G.
Offline
Last seen: 7 years 8 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Testing vs. Ready apps

https://portableapps.com/development/test is used by all apps in testing. This way, you can know if someone else is already developing a portable version.
https://portableapps.com/node/11772 is for ready-to-release apps.

In the Test Releases page, please edit your comment to use the code after "This is the template that will yield the desired format.". Perhaps a form to generate that code would be nice. Try this

Previously known as kAlug.

Gimme_P
Offline
Last seen: 11 years 6 months ago
Joined: 2011-03-29 13:46
ok :)

thanks for all kAlug

I think it's fixed: https://portableapps.com/development/test#comment-174604 (now it looks like your Clementine Portable just above Smile )

thanks for the site too, I like it...

tal
Offline
Last seen: 12 months 9 hours ago
Developer
Joined: 2009-08-07 07:34
Frets on Fire X - FoFiX 4

there is FoFiX v4.0.0alpha2
in
https://github.com/fofix/fofix/releases

some one can update?

Log in or register to post comments