FIFE forums

General Category => General discussion => Topic started by: MackaN on November 05, 2008, 06:09:24 am

Title: How to start? Problems...
Post by: MackaN on November 05, 2008, 06:09:24 am
Do FIFE have good tutorials? I study software engeenering (I know C++, Java, Python and OCaml. I have good knowlage of XML and UML) and I was thinking to make a simple 2d isometric game. I always wrote my programs from beginnig to the end alone, some times using some usefull lib. Now to make things more simple, I woudlike to writte something based on FIFE engine. I tried to read wiki, but I coundn't find interesting information about FIFE. So I have some quastions:
1. Is FIFE just on stage C++ lib, what can I use in my programs to render graphic? Or something more? I mean there are some tools what help me create the game?
2. If there are tools, are there in this dowload pack on this site?
3. Is there toturial how to using FIFE (and propobly the simple tools) make Hello World program and simple interface or explanations of basic structure of FIFE.
4. I red that FIFE use scripts in Python and XML structure? How it work?
Title: Re: Good Tutorials?
Post by: mvBarracuda on November 05, 2008, 08:08:03 am
Best way to get started is to grab the latest code from the SVN repository and build the engine and the example clients from source. For win32 there is a compile SDK that radically eases building FIFE so you shouldn't run into any hassles.

Concerning documentation in general check out this wiki article:
http://wiki.fifengine.net/Getting_started

There are links to detailed documentation of the C++ and Python code of FIFE.

FIFE is not just a 2d rendering library but meant to be a complete isometric game development framework. Check out the example clients as well as FIFE-based games like OpenAnno or Zero-Projekt to get an idea what kind of games could be created with FIFE.

The example clients in SVN should be sufficent to get started writing your own FIFE-based game. At least if you got a basic understanding of Python. The C++ <> Python bindings are created via SWIG, a bindings generator tool.
Title: Python.exe Error
Post by: MackaN on November 07, 2008, 12:02:24 pm
So I have FIFE now. I installed all thing like had to in tutorials... but... what now? How to write simple HELLO WORLD aplication in FIFE engine?


PS: When I try to run run.py... I have some error in Python.exe and aplication just crashes
I have instaled ActivePython 2.5, but it seems to not work :(

After dubleclick on run.py
I have PSYCO ACCELERATION NOT USED and then
I have some Controller logs
and it crashes on: Engine intialized when there is Controller log:Creating main screen


"python.exe" has encountered a problem and needs to close... :(

Error signature:
AppName: python.exe AppVer: 0.0.0.0 ModName: Unkown  ModVer: 0.0.0.0 Offset:00000000


Test_fife when I put 29 - it means all tests - crashes too...
Title: Re: How to start? Problems...
Post by: ZDearborn on November 07, 2008, 08:09:55 pm
Mine crashes after "Controller log:Creating main screen" as well.
Title: Re: How to start? Problems...
Post by: MackaN on November 08, 2008, 03:11:37 am
I also have to say that I have the last stable realase and I done everything like they wanted in torurials. Actually I noticed one thing... Is it normal, that when I want to install openAL its happening so quick? When I start oalinst.exe, I have first some text about license, and then when I click OK I have almost in the same moment window what say that Installation Compete....

Anyway, I still cant resolve problem how make this engine work...  I opened pychan_demo.py and it works until I click in some option... It means, I guess, that it crashes when it have to print some graphic on the screen

Can someone help me to start the engine anyway?

On the screens on wiki everything look nice. So I woud like to play a bit longer with this engine than 3 secounds before it crashes...
Title: Re: How to start? Problems...
Post by: shevegen on November 08, 2008, 02:48:08 pm
"that it crashes when it have to print some graphic on the screen"

Sounds like a bug
Title: Re: How to start? Problems...
Post by: vtchill on November 10, 2008, 12:27:50 pm
All,

Can you guys run it in the debugger and post the output?

debugging instructions here: http://wiki.fifengine.net/Debugging (http://wiki.fifengine.net/Debugging)
Title: Re: How to start? Problems...
Post by: agrippa on November 10, 2008, 04:40:15 pm
Quote
"python.exe" has encountered a problem and needs to close...

I had the same problem on windoze when application crashed to desktop after engine initialised. Fixed by downloading the latest pnglib and zlib from sourceforge and overwriting those are in FIFE package.

And yes i have to say FIFE really lacks documentation ((
I'm dumb, those you have on your website is not enough for me   ;D... it looks just like a list of classes and their methods with no descriptions. However cpp docs are bit better, but still...
Title: Re: How to start? Problems...
Post by: mvBarracuda on November 11, 2008, 12:47:58 am
Quote
"python.exe" has encountered a problem and needs to close...

I had the same problem on windoze when application crashed to desktop after engine initialised. Fixed by downloading the latest pnglib and zlib from sourceforge and overwriting those are in FIFE package.
Thanks for the pointer. I'll give it a try here and release an updated compile SDK over the weekend in case that resolves the problems.
Title: Re: How to start? Problems...
Post by: mvBarracuda on November 13, 2008, 10:31:58 am
Could you please upload all files that you changed to get FIFE working somewhere? I've tried to replace the DLLs with the versions you mentioned today but unfortunately it does still segfault on my win32 notebook :-/
Title: Re: How to start? Problems...
Post by: agrippa on November 17, 2008, 02:28:37 pm
http://rapidshare.com/files/164762271/libpng12-0.dll.html
http://rapidshare.com/files/164762659/zlib1.dll.html

sorry for uploading it to rapidshare separated, but i'm in a hurry right now
Title: Re: How to start? Problems...
Post by: mvBarracuda on November 18, 2008, 02:31:13 am
Thanks I'll give it a test tomorrow and edit this message as soon as I know if it fixed my win32 segfault issues.
Title: Re: How to start? Problems...
Post by: MackaN on November 21, 2008, 07:31:34 am
Generaly, I decided to wait for more workable version of FIFE. I sitll have the same poroblem. I just can't print any graphic. All the time the same problem with Python.exe. I changed this dll's from agrippa. But no positive results.

For today, I'm sorry but I am done with current version of FIFE. I will see the progress with this engine  maybe next year.
Title: Re: How to start? Problems...
Post by: vtchill on November 21, 2008, 05:30:37 pm
Generaly, I decided to wait for more workable version of FIFE. I sitll have the same poroblem. I just can't print any graphic. All the time the same problem with Python.exe. I changed this dll's from agrippa. But no positive results.

For today, I'm sorry but I am done with current version of FIFE. I will see the progress with this engine  maybe next year.

I'm sorry to hear that you still had problems using FIFE. The error is new to me and I have installed/used FIFE on 3 or 4 different computers with different operating systems and hardware configurations and it has always "just worked" out of the box when i followed the install directions. Please do keep an eye on the progress and give it another try in the future.
Title: Re: How to start? Problems...
Post by: MackaN on November 23, 2008, 08:15:48 am
Well I tryied to install FIFE 3 times on my laptop. Everytime I done everything like was in install instructionns. But still, every aplication crashes when I try to see some graphic. Every time python.exe problem. I worked in python 2 years ego (it was connected with my study) but I never met that kind critical error before. Anyway, I will keep looking here to see some new versions of FIFE.

Ok, I can try maybe to instal it again. If someone had no problem with current version of FIFE, just can tell me how he/she installed it. I mean step by step with links from where he/she dowloaded all files.
I will try to use those links, and do instalation again. Maybe I still missed something during installation.

And one more thing. Is it normal when I want to install OPEN AL using oalinst.exe, it take me so short time. First I see license, and after click OK, I have immediately dialog window with Instalation Complete?
Title: Re: How to start? Problems...
Post by: vtchill on November 23, 2008, 11:18:59 am
Well I tryied to install FIFE 3 times on my laptop. Everytime I done everything like was in install instructionns. But still, every aplication crashes when I try to see some graphic. Every time python.exe problem. I worked in python 2 years ego (it was connected with my study) but I never met that kind critical error before. Anyway, I will keep looking here to see some new versions of FIFE.

Ok, I can try maybe to instal it again. If someone had no problem with current version of FIFE, just can tell me how he/she installed it. I mean step by step with links from where he/she dowloaded all files.
I will try to use those links, and do instalation again. Maybe I still missed something during installation.

And one more thing. Is it normal when I want to install OPEN AL using oalinst.exe, it take me so short time. First I see license, and after click OK, I have immediately dialog window with Instalation Complete?

Ok I will detail the exact steps I use when dl'ing and installing FIFE. I am assuming you are using windows since you mentioned ActiveState python. If you are not using Windows please let me know.

1. Download Python 2.5 from ActiveState website
http://downloads.activestate.com/ActivePython/windows/2.5/ActivePython-2.5.2.2-win32-x86.msi (http://downloads.activestate.com/ActivePython/windows/2.5/ActivePython-2.5.2.2-win32-x86.msi)

2. checkout latest FIFE from subversion using TortoiseSVN, if you don't have TortoiseSVN download it first
trunk url: http://svn9.cvsdude.com/fife/engine/trunk

3. download latest FIFE SDK (includes all dependencies for FIFE), and unzip it using 7zip to the location <path-to-fife>/Trunk/build/win32
http://downloads.sourceforge.net/fife/FIFE_2008.0-r4_win32_SDK.7z (http://downloads.sourceforge.net/fife/FIFE_2008.0-r4_win32_SDK.7z)

4. run script <path-to-fife>/Trunk/build/win32/update_project_files.bat

5. open <path-to-fife>/Trunk/build/win32/build_environments/<visual-studio-version>/fife_engine.sln and build the solution and make sure no errors occurred

6. depending on which IDE you used to build fife, run the corresponding update_dlls script in the location
<path-to-fife>/Trunk/build/win32/update_dlls_<ide-used>.bat
eg. if you uses msvc 2005 you would run <path-to-fife>/Trunk/build/win32/update_dlls_msvc2005.bat

7. Everything should be built for running a FIFE game.
now run the script <path-to-fife>/Trunk/clients/rio_de_hola/run.py to make sure everything runs properly.

Post back if you have any troubles or questions.
Title: Re: How to start? Problems...
Post by: MackaN on November 26, 2008, 06:46:02 am
So. I tried again. And I have the same python.exe error.
I use mingw.
Title: Re: How to start? Problems...
Post by: vtchill on November 26, 2008, 10:50:48 am
So. I tried again. And I have the same python.exe error.
I use mingw.

I have only built using mingw once and it was a while ago so I will give it another try next week to see if I can reproduce your error. I will post back once I have tried either with my steps to install or to let you know I saw the same error.

What version of windows are you using?  I am using windows XP service pack 2.
Title: Re: How to start? Problems...
Post by: MackaN on November 26, 2008, 01:14:51 pm
I am using Windows SP 2 too.

Look atthis screen. I can open Pychan-Demo. But when I click any button what will change the screen (change example). It just... well... crashes to windows...
Title: Re: How to start? Problems...
Post by: chewie on November 26, 2008, 01:46:10 pm
mmh.. maybe the new event handlers are to blame for this one...?
Title: Re: How to start? Problems...
Post by: MackaN on November 26, 2008, 05:20:16 pm
I dont care. I just want to open anything in FIFE engine. But its look like I have to write my own engine... But I hate programming graphics. There are much more intresting things in programming than graphic.
Title: Re: How to start? Problems...
Post by: vtchill on November 27, 2008, 05:06:48 pm
I am using Windows SP 2 too.

Look atthis screen. I can open Pychan-Demo. But when I click any button what will change the screen (change example). It just... well... crashes to windows...

This sounds like the same problem I documented about a week ago and have yet to find a solution for it. I was running in debug mode so it gave me a little bit more information than simply a python crash. It only happens when FIFE handles keyboard input. Here is the link to my post about the problem.

http://forums.fifengine.net/index.php?topic=220.0 (http://forums.fifengine.net/index.php?topic=220.0)
Title: Re: How to start? Problems...
Post by: MackaN on November 28, 2008, 10:21:53 am
Sounds like the same kind of problem. Anyway. I have an other quastion. Is it possible to find somwhere logical documentation of FIFE. I mean, at least some UML diagram of classes or something about structure?
Title: Re: How to start? Problems...
Post by: mvBarracuda on November 30, 2008, 08:39:45 am
Like these ones? http://fifedocs.boxbox.org/doxygen/
Title: Re: How to start? Problems...
Post by: MackaN on November 30, 2008, 09:09:15 am
Wow. Is there this link on http://www.fifengine.net/ ? Actually I coundnt find this on this page. But yes. I was looking something like this. Thanks a lot.

Even that I still can't open any FIFE aplication, I must say, that from this forum, every information you can get very fast. Maybe I will look in struture of FIFE and I will start writte something without python. Only C++.
Title: Re: How to start? Problems...
Post by: mvBarracuda on November 30, 2008, 09:31:42 am
All this kind of information can be found at the wiki:
http://wiki.fifengine.net/