Show Posts
|
|
Pages: 1 2 [3] 4 5
|
|
31
|
Crystal Space Development / Support / Re: Can't load "crystalspace.kernel.vfs" on CygWin
|
on: November 22, 2005, 06:19:02 pm
|
|
Jorrit: I don't use CygWin (like I said before, I use Linux), but I think that CygWin is like a Linux emulator (like Wine or VMWare emulates Windows on Linux). So, I think that, at least on my professor's computer, it uses Bash as shell. And in Bash, you can set up an environment variable using the command export, as I said above...
Sunshine: I'll try that later.
----
I solved the problem in a ugly way. I think that the VFS wasn't reading the local vfs.cfg of my app, so it couldn't find nothing. I removed the lines that asked for a configuration file (what wouldn't change a thing, because, for now, the conf file is a dummy file...) and added in the root vfs.cfg a line for my map directory and executed my compiled app, and everything worked... I think I'll do it right later...
Anyway, thanks for the help!
Best Regards
|
|
|
|
|
32
|
Crystal Space Development / Support / Re: Can't load "crystalspace.kernel.vfs" on CygWin
|
on: November 22, 2005, 02:26:37 pm
|
I'm not with his laptop here, but yes. He sent me his actions: Downloaded 0.99-pseudo stable ./configure jam all --> walktest runs without problems
export CRYSTAL=/cs/CS tar -jxvf erd-0.02...tar inside of /cs/CS/erd-0.02 /* This is my app file */ ./configure jam
So, the $CRYSTAL value is /cs/CS... It's funny because it can find all others plugins except the VFS... Thanks in advance...
|
|
|
|
|
33
|
Crystal Space Development / Support / Can't load "crystalspace.kernel.vfs" on CygWin
|
on: November 22, 2005, 01:59:34 pm
|
Hello all; My professor (and boss) is having problems when he tries to run my application in his laptop with cygwin. He've installed the libs, CS-Pseudo-Stable 0.99, compiled everything, setted the $CRYSTAL env. variable, runned walktest without a problem. Then he uncompressed my app, compiled everything right with jam, but when he tried to run, he got this error message: Estrada Real Digital v0.02 por Bernardo Figuerêdo Domingues. WARNING: could not load plugin 'crystalspace.kernel.vfs' * This likely means that the plugins could not be found. If you're a user: Check the working directory the application starts from - usually, it is the same as the directory with the executable. If in doubt, contact the vendor. If you're a developer: Check if the CRYSTAL environment var points to the correct location - usually the directory CS was built in. ERROR: Erro ao inicializar as configurações! Error on configuration set up Error saving configuration '/erd/AppErd.cfg'. I use Linux (FC3) and in my machine, it works just fine. Still, the weirdest is when he moves the files to CS root directory and executes it again: Estrada Real Digital v0.02 por Bernardo Figuerêdo Domingues. ERROR: Erro ao inicializar as configurações! Error on configuration set up Error saving configuration '/erd/AppErd.cfg' This time it finds the plugin, but fails in saving the application's configuration file (and I don't know why, because in the app's directory there are a vfs.cfg file that specifies the location of the AppErd.cfg). I really don't know what I can do for it... (Maybe install a Linux?  ) Thanks in advance and best regards!
|
|
|
|
|
34
|
Crystal Space Development / Support / Re: Limiting vertical mouselook
|
on: October 21, 2005, 02:35:30 pm
|
|
Eh...
I rather don't like to use Walktest's code... Well, at least as Jorrit said tha Walktest isn't a good example for projects...
And, I know how to do the freelook... It's already done and working. This is just a limitation in how much the player can look vertically. This is to avoid the player stay upside-down, for example. And Walktest do not limit that...
|
|
|
|
|
36
|
Crystal Space Development / Support / Limiting vertical mouselook
|
on: October 20, 2005, 09:08:25 pm
|
I'm using this piece of code to rotate the camera through the csColliderActor class, method csColliderActor::SetRotation(const csVector3 &rot); This is my procedure: void AppErd::RotateCam(float x, float y) { csVector3 mouse_rot(horizontal_angle, vertical_angle, 0); csVector3 player_rot(collider_actor.GetRotation() +mouse_rot);
collider_actor.SetRotation(player_rot); }
But I want to limit the vertical view of the player in 75 degrees (to avoid spins in the camera, and upside-downs...). But, how can I do it in a clean way? I've tried to compare the y coordinate to 75.0/90.0 (in math -> 1/90 = x/75, as x the value of the coordinate y in csVector3), but it didn't work. I don't know if is a logical (or math) error, or the operation csVector[1] do not return the y coordinate. Any help? Thanks in advance.
|
|
|
|
|
41
|
Crystal Space Development / Support / Re: directory question for Intro to Building Maps in XML
|
on: September 09, 2005, 05:50:15 pm
|
|
You have the correct, but a little bit tricky way, and you have the wrong but quick and easy way.
The correct is to add in the VFS a mount point to your directory. You can edit the vfs.cfg in your CS main dir (for walktest). Just follow the example in this same file for, for example, the flarge level.
After that, just type walktest <yourlevelname> [OPTIONS] without the <> (of course).
The other way, it's just override the default walktest map, which is, for a strange coincidence, the flarge level, in the dir data/flarge, putting your map over and call walktest [OPTIONS]. But don't forget to make a backup of this level before you overwrite it.
Ok?
I would prefer the right way. Or your data directory will become a nightmare!
Regards!
|
|
|
|
|
42
|
Crystal Space Development / Support / Re: simple2 tutorial error
|
on: September 09, 2005, 03:44:10 pm
|
Well; I'm just remaking the tutorials to get used to the new CS-0.99's programming style ([  ]) and I came across with this same error. I've lookes in the vfs.cfg for anything starnge, but nothing... In what case doesn't the sprite work correctly? The problem is that the sprite simply is not rendered. There's no box in the screen. What's with that, anyway? Regards. P.S. - It's an old topic, but the problem continues... It could be a tutorial error?
|
|
|
|
|
43
|
Crystal Space Development / General Crystal Space Discussion / Re: csColliderActor
|
on: August 12, 2005, 03:18:10 pm
|
OR type make install as root. And it worked! A little... The header file that contains the csColliderActor class is the "cstool/collider.h", isn't it? Well, the new error: sisifo:~/csApp/erd/teste2->make Unknown library: cstool; consult --help for library list g++ -I/crystalspace/CS/include -g -o erd.o -c erd.cpp
|
|
|
|
|
44
|
Crystal Space Development / General Crystal Space Discussion / Re: csColliderActor
|
on: August 11, 2005, 09:52:23 pm
|
|
No. Configure? When I run the makefile to compile my code, it gives me that error messages. I relaized that the problem is within the calls of cs-config, which returns nothing when asked about -libdir.
If I'm going to use csColliderActors, I have to compile my app with the CVS version. For that I've to set the env. var. $CRYSTAL to the installation dir of the CVS version, or at least I think...
What can I do to change the lib's dir for the Makefile?
|
|
|
|
|
|