cyphesis error
  • hi all,

    Im really new to world forge and cyphesis so please bare with me.

    I have cyphesis-0.5.17 (this was the newest version i could get to work) installed on ubuntu 9.04. everything seems to work ok apart from one thing, i get this error server-side when i try and kill something:
    2009-12-07 20:36:38 ERROR Reporting python error
    2009-12-07 20:36:39 SCRIPT_ERROR Traceback (most recent call last):
    2009-12-07 20:36:39 SCRIPT_ERROR File "/usr/share/cyphesis/rulesets/mason/world/tasks/Combat.py", line 25, in attack_operation
    2009-12-07 20:36:39 SCRIPT_ERROR if self.character.stamina < 0.1:
    2009-12-07 20:36:39 SCRIPT_ERROR AttributeError: stamina
    2009-12-07 20:36:39 WARNING Task init failed


    what can i do to fix this?
  • Hi,

    Thanks for the report. Firstly I've got to say that 0.5.17 is a really old version, and when you try anything this old then error reports will not really be very useful, and we will have no idea how to fix them in your version. If you have problems getting the latest release 0.5.22 working, please post here with the problems, and we will do our best to work out whether there is anything we can do.

    The error you have looks like an error in the data files where the stamina is not correctly set on some entities, or is not correctly checked in the combat scripts. In order to be able to debug this we would need a specific description of a scenario which will trigger the bug. Even if it occurs in a broad range of scenarios please describe exactly what you did that caused this error, and if appropriate provide more information about broader scenarios which have a similar effect.

    Al
  • ok,

    well the error i get in 0.5.22 is that cyclient says:

    ERROR: Connection Failed


    and the server says:

    2009-12-08T16:45:07 ERROR Could not create local listen socket with address "/usr/var/tmp/cyphesis.sock"
    2009-12-08T16:45:07 ERROR Could not create python listen socket with address /usr/var/tmp/cypython_cyphesis.sock.
    2009-12-08T16:45:07 INFO Running


    However cyloadrules works perfectly after editing cyphesis.vconf with my Database dietails
  • Did you install using the autopackage, or from source? It looks as though it is getting the prefix wrong, which is possibly a bug, or a misconfiguration with the build
  • Hi,

    I installed it using the autopackage

    However when i compile from source i get this:

    /usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
    /root/Desktop/Python-2.6.4/./Modules/posixmodule.c:7180: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
    /usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_tempnam':
    /root/Desktop/Python-2.6.4/./Modules/posixmodule.c:7135: warning: the use of `tempnam' is dangerous, better use `mkstemp'
    /usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_forkpty':
    posixmodule.c:(.text+0x2cb3): undefined reference to `forkpty'
    /usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_openpty':
    posixmodule.c:(.text+0x2d6c): undefined reference to `openpty'
    collect2: ld returned 1 exit status
    make[2]: *** [cyphesis] Error 1
    make[2]: Leaving directory `/root/Desktop/cyphesis-0.5.22/server'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/Desktop/cyphesis-0.5.22'
    make: *** [all] Error 2


    Also, my server hasnt been registered on the metaserver even after opening the ports required
  • You seem to be linking Python statically, which is weird because this should never happen. What distribution or OS are you building on?
  • By the way, you can almost certainly get around the problems you have with the autopackage by installing it privately rather than using the root password to install it system-wide. You will have to remove the package, then try and install it again. When you are asked for the root password, just click on the "No Password" button.
  • I will try that.

    I was building it on Ubuntu 9.04
  • Sorry, I remember you mentioning earlier.

    What options did you pass to configure when you were building from source?

    Does /usr/lib/libpython2.6.so exist on your system? It should be part of the python2.6-dev package. It looks like you are building against a version of Python in /usr/local, and that is causing your problems. Does /usr/local/lib/libpython2.6.so exist? What version of Python does Ubuntu 9.04 include?
  • ubuntu includes no python by default
    so I installed the latest 2.6

    i used ./configure
    make
    make install

    to compile

    /usr/lib/libpython2.6.so exists

    and when not installing system-wide where is cyphesis.vconf?
  • ok so ive got it working without installing it system-wide

    but now i get this
    2009-12-09T19:35:12 ERROR Connection to database failed:
    2009-12-09T19:35:12 ERROR could not connect to server: No such file or directory
    2009-12-09T19:35:12 ERROR Is the server running locally and accepting
    2009-12-09T19:35:12 ERROR connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    2009-12-09T19:35:12 ERROR Error opening database. Database disabled.
    2009-12-09T19:35:12 INFO Unable to connect to the RDBMS.
    2009-12-09T19:35:12 INFO Please ensure that the RDBMS is running, the cyphesis database exists and is accessible to the user running cyphesis.
    2009-12-09T19:35:12 INFO To disable this message please run:

    cyconfig --cyphesis:usedatabase=false

    to permanently disable database usage.
    2009-12-09T19:35:12 INFO Running


    I know that this means that the database dietails are wrong.
    When installing system-wide you edit /usr/etc/cyphesis/cyhesis.vconf
    After installing on a single user how can i edit the database dietails or what should they be?
  • YAY!!!!!!!!

    it works!

    I used the following commands:

    cyconfig --cyphesis:dbpasswd="......."
    cyconfig --cyphesis:dbuser="........."
    cyconfig --cyphesis:dbserver="localhost"

    Btw your software is amazing
    One last thing, i have opened my firewall for the reqiured ports. My friends can log in but the metaserver doesnt register my server?
  • Do you mean that your server does not appear on the server list on the website, or that it does not appear in the list when you run Ember?

    The list on the website may be out of date.

    You can check directly with the metaserver for you IP address using the test tools that come with the metaserver software. You can check them out from the WorldForge cvs server by checking out the metaserver module. See the CVS instructions on the main website at http://worldforge.org/ for details.
  • It looks like you installed Python from source. You would have found things worked much better from source if you had installed the python-dev package that is available from the Ubuntu servers using apt-get.
  • My server doesent appear on the website and in ember

    1 last little niggle once i have populated the world when i connect in and log in ember crashes and in sear everything is white there are trees but no terrain
  • Sear is out of date, and not supported well as the author is very busy. I'm not sure I can help much with Ember support except to say that you should be running the latest version, and check .ember/ember.log for the possible cause. The most common is that you might not have your 3D drivers configured correctly. Try running glxinfo for some debugging information, and see how well glxgears runs.
  • ok well this client is on windows, what happens in ember in windows is all the trees load up then the pig farm and then you see the terrain start to load but there are no hills and the grass is grey then ember crashes. Could this be an issue with cyclient or ember i have tried it on several machines and they all do the same thing.
  • Sadly we have not had a build of the latest Ember code on windows for many months. Old releases are not stable, and are very likely to crash.

    If you are interested in stepping forward to help that would be very much appreciated.
  • I might be insterested as i have some experience in windows programming aminly visual basic.

    What Language is it?

    Btw im 12, if that matters.
  • Well done on getting so far. Ember is in C++, so it has to be compiled into an executable for distribution. This is relatively complex, but not impossible for most people who understand software. We have mostly used a compiler called mingw to build our software, which works fine but like most compilers there is a fare amount of effort involved in build all the required libraries and the final program. You will almost certainly find that you will learn a huge amount, and develop your skills by working on the problem.

    If you feel like giving it a try, you can either install mingw on your ubuntu system to build Windows programs, or install on Windows itself. We will help you when we can, but the more you work things out for yourself the more you will learn from the process.
  • Im getting a really annoying error in ember and sear on both linux and windows
    There's no walking animation swo you move but you just float????

    also above a ceratin height there is a big grey sheet so you cant see below.

    I didnt get this in 0.5.17 so it must be server-side

    any ideas?
  • This is because the versions you are running are too old.

    We modified the way movement is represented, and both Ember and Sear were updated to, but there is no windows download available for the updated versions, as I mentioned earlier. I'm afraid it really is of little use trying to do much with old versions of Ember as so much has changed since it was released.

    I have discovered the source of the issue you had with the .package file for Cyphesis 0.5.22, and I have fixed it. The next version will not have the same problem. Thanks for letting us know about it.
  • ok

    so i have MinGW, I have the source code what do i need to do to compile it into an exe?

    Like I know you need to run g++ filename.cpp -o filename.exe but what file do I need to compile?
  • Check the instructions in the INSTALL file which is in the source package. These are general instructions which should work for many different software packages. If it does not seem to make sense, let me know and I'll try and answer your questions.

    Al
  • If i try to run any of these in the command prompt with mingw installed:

    ./autogen.sh
    ./configure
    make
    make install

    i get that its not a recognised command so what commands should i be using on windows
  • You need to download MSYS which is the unix-like command prompt for use with mingw. If you have downloaded the source for Ember you will not need to run autogen.sh

    You will also need to build or download a number of libraries which Ember requires. See this page for details: http://wiki.worldforge.org/wiki/Compiling_Ember
  • i will do that

    Do you plan to compile the latest version for windows?
  • Noone else is currently working on compiling it for windows, as many of us don't have windows machines. This is why it would be a valuable contribution to discover and solve the issues.

    Al
  • Hi,

    So im trying to compile libiconv-1.12 so that I can compile gettext-0.17.
    Here is the error I get when using "make":
    [attachment=0]makeelibiconv.jpg[/attachment]

    So what is going wrong?
  • I can't quite tell just from the messages you have given, and I don't have a windows machine to test on.

    Have you tried using Google to search for the library name, mingw, and the error messages?

    Searching like this:

    http://www.google.ie/#hl=en&source=hp&q ... 5941b22296

    Gives this result:

    http://lists-archives.org/mingw-msys/00 ... error.html

    See if this or any other links help you out.
  • So here is where i am now.

    Im trying to compile ogre but it says it needs zzipplib to work.
    I try to compile that but then it says it cant find command -lz which is needed to compile.
    What is -lz and how can I get it? A google search gives zero results.

    James
  • The -lz command line option is used when a program or library wants to link to the compression library zlib. zlib is very common, and you should be able to download it easily, and it should compile with no problems on mingw.

    If you have any trouble, feel free to let me know.
  • I have already compiled zlib

    Here is what I get when I compile zlib (it compiles successsfully):
    [attachment=1]zlibzomp.jpg[/attachment]

    Here is what I get when I compile zziplib (doesent compile succsessfully):
    [attachment=0]zzipliberror.jpg[/attachment]
  • Ok so I downloaded from the MinGW downloads page zlib-dev package and installed that.
    Now zziplib installs fine

    I now begin ogre compilation..... Here goes
  • I think the problem is that the compiler is not looking into /usr/local/lib. You can make this happen by adding -L/usr/local/lib to the compiler flags, but I am not sure of the top of my head how to do this using configure.

    Really busy just now, will try and follow up later this weekend.
  • I have successfully compiled zziplib and /lib/pkgconfig has zziplib.pc in it.
    I have set the PKG_CONFIG_PATH to /lib/pkgconfig/ .
    But when I run ./configure for ogre it says that it can't find zziplib.pc and that my directory might be wrong.
    What should I do?
  • Are you sure it's not placed in /usr/local/lib/pkgconfig? /lib/pkgconfig seems like a strange path.

    When I compiled Ember 0.5.3 with mingw some years ago I think I used mingwPORTs for most of the dependencies. But even so there were a couple ones which were hell to compile properly.
    I also provided a binary depencency package, as seen in this post http://worldforgedev.org/archives/145, but I would guess that some of those libs are outdated by now.
    Ogre themselves also provide some of the dependencies for mingw (or actually Code::Blocks, but it's also using gcc) over at http://sourceforge.net/projects/ogre/fi ... p/download .
  • I have now used echo $PKG_CONFIG_PATH to decifer that /usr/local/lib/pkgconfig is the path. (you where right)
    But I still get the same error:
    [attachment=1]pkgconfigerror.jpg[/attachment]
    The PKG_CONFIG_PATH is:
    [attachment=0]pkgpath.jpg[/attachment]
    The contents of /usr/local/lib/pkgconfig/ are:
    gio-2.0.pc
    glib-2.0.pc
    gmodule-2.0.pc
    gmodule-no-export-2.0.pc
    gobject-2.0.pc
    gthread-2.0.pc
    libgcj.pc
    zziplib.pc
    zzipwrap.pc
    zzip-zlib-config.pc

    What the hell is wrong with it?
    And also, Do I have to use the version of ogre stated in the install instructions or can I use the latest?
  • I have now fixed this problem
  • Good. You should use the latest version of Ogre on the 1.6 branch. Which instructions are you referring to?
  • Im now compiling Ogre 1.6.4
    Im getting this when running ./configure
    [attachment=0]libxtheaders.jpg[/attachment]
    A google search of libxt shows nothing.
    What library is this and where can I get it?
  • The libxt headers are only relevant on UNIX, so should not be available on windows, which means there is probably something you should be doing differently, however I am not sure what. Try Googling for this error message with "mingw" and "OGRE", and see if you find anything from someone who has fixed this before.
  • You need to run configure with the "--with-platform=win32" directive to specify that it's for windows you're building it. I'm guessing that it otherwise will assume that you're building for unix.
  • I'll do that.
  • Ok so now I dont have FreeImage installed. I have downloaded th source package an tried to run ./configure but it says that the file does not exist.
    How do I compile FreeImage?
  • FreeImage is a horrible lib, but we have to use it.
    It doesn't use the automake system, instead opting for presenting ready-made Makefiles. If you just do "make" it should work.
    Otherwise you might need to do "make -f Makefile.mingw".
  • I have ran "make -f Makefile.mingw" and "make install -f Makefile.mingw" and both worked succsessfully, however "./configure" on ogre still says that FreeImage is not installed. I even tried manually installing it and this does not work. Why is this?
  • You need to check where FreeImage installed itself. Did it install a package config file (*.pc)? If so, is that file on a path where it will be recognized by the package config system?
    If it isn't, you can alter the PKG_CONFIG_PATH environment variable to make it look in the correct place.
  • It didn't make a .pc file it made a .dll and a .h file.
  • Ok, what happens if you instead do "make -f Makefile.gnu"?
  • I'd suggest looking around in the source package for instructions. There might be a file called readme, or installing or any other name which hints that it contains directions. I'll look into it myself when I get a chance, but I don't have things to hand now.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID