FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  


FIFE 0.4.0 has been released on 15th of January, 2017!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Nihathrael

Pages: [1]
General discussion / Python 2.6
« on: November 20, 2008, 11:14:58 am »
Evening all,
Since ArchLinux recently updated python to version 2.6 i also updated. Resulting in a not compiling FIFE ;) So here's the patch to make it work again. Big Question would be on when to make the big switch for FIFE officially?

Please note:
It might be necessary to also change some things in the windows, i haven't looked into that, as i do not run windows here and am not able to test the changes.

So long,

Code: [Select]
Index: build/
--- build/ (revision 2677)
+++ build/ (working copy)
@@ -6,13 +6,13 @@
  context.env.Replace(LIBPATH = ['/opt/lib', '%s/ext/install/lib' % context.env['SCONS_ROOT_PATH']])
  context.env.Append(CPPPATH = ['/opt/include',
-                               '/usr/include/python2.5',
+                               '/usr/include/python2.6',
                                '%s/ext/install/include' % context.env['SCONS_ROOT_PATH']])
  context.env.Append(CPPPATH = [])
  context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h')
  context.checkSimpleLib(['openal_soft'], 'AL/al.h')
- context.checkSimpleLib(['python', 'python2.5'], ['python2.5/Python.h'])
+ context.checkSimpleLib(['python', 'python2.6'], ['python2.6/Python.h'])
  context.checkSimpleLib(['SDL'], 'SDL.h')
  context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h')
  context.checkSimpleLib(['SDL_image'], 'SDL_image.h')
Index: engine/SConscript
--- engine/SConscript (revision 2677)
+++ engine/SConscript (working copy)
@@ -281,7 +281,7 @@
 swig = env.SwigWrappers('swigwrappers/python/fife', interfacefiles)
-env.Install('$PREFIX/lib/python2.5/site-packages/fife', ['swigwrappers/python/'])
+env.Install('$PREFIX/lib/python2.6/site-packages/fife', ['swigwrappers/python/'])
 allfiles = list(enginepath.walkfiles())
 headerfiles = [f for f in allfiles if is_headerfile(f)]
@@ -310,5 +310,5 @@
  if sys.platform != 'win32':
  env.Command('swigwrappers/%s/' % env['script'], flib, [Copy('$TARGET', '$SOURCE')])
  if sys.platform != 'darwin':
- env.Install('$PREFIX/lib/python2.5/site-packages/fife', flib)
-# env.Install('$PREFIX/lib/python2.5/site-packages/fife', [str(f) for f in extensionfiles])
+ env.Install('$PREFIX/lib/python2.6/site-packages/fife', flib)
+# env.Install('$PREFIX/lib/python2.6/site-packages/fife', [str(f) for f in extensionfiles])

Game creators corner / Multilayer pathfinding/blocking
« on: March 19, 2008, 06:36:33 am »
Hi everyone,
I'm currently working on OpenAnno and came up with an idea for the FIFE engine, which i think might be useful to allot of games.

Currently pathfinding only works on the layer an instance is present on, meaning if an instance is on layer1 it will move arround all objects(blocking=1) on that layer. Currently there is no possilibilty to make the pather consider other layers for blocking(correct me if there is).

What I would find a great feature is the following:
In addition to only issuing unit.move(coordinates), i would like to have a second command available simular to unit.move(coordinates, listOfBlockingLayers), where listOfBlockingLayers is a list containing all layers i want the pather to consider for blocking. So if I would put layer1 + layer2 into that list, the unit moves arround all blocking elements on both layers.

As this saves alot of work on the map layout and complexity and saves allot of work in the code, I could very well imagine this be used by many games.

Thoughts and comments always welcome!

So long,

Pages: [1]