Linux Issues
From TorqueWiki
Contents |
[edit] Links
Web site is focus on Linux Ubuntu, Torque, Blender , GTK Radiant: http://eviwo.free.fr/
[edit] Install
If the file Linux installation file ~/torque/3dgp/EXTRAS/Linux/TorqueGameEngineDemo-1.3.bin from the 3DGP does not work, merge files and directories from the book 3DGP and from the TGE SDK in a new directory:
~/torque/TGE_SDK_1.4.2/example> cp -r torqueDemo.bin lib ../../3dgp/3D2E/ ~/torque/3dgp/3D2E> ls -1 common creator DeleteDSOs.bat DeletePrefs.bat demo lib main.cs README-FIRST-KenFinney.txt ReadMe-GarageGames.html RESOURCES runtorque.sh show Show Book Models.lnk torqueDemo.bin
lib and torqueDemo.bin should come from the SDK while all the content and scrips should come from the book's CD.
Convert all files to UNIX linebreaks:
~/torque/3dgp> find . -name "*.cs" -exec dos2unix '{}' \;
~/torque/3dgp> find . -name "*.gui" -exec dos2unix '{}' \;
~/torque/3dgp> find . -name "*.mis" -exec dos2unix '{}' \;
Turn the .bat files into script files.
DeleteDOSs.sh
find -name "*.dso" -exec rm '{}' ;\
find -name "*.bak" -exec rm '{}' ;\
find -name "dump.dmp" -exec rm '{}' ;\
find -name "*.log" -exec rm '{}' ;\
#del /s *.dso
#del /s *.bak
#del /s dump.dmp
#del /s *.log
DeletePrefs.sh
find -name "prefs.cs" -exec rm '{}' ;\
find -name "config.cs" -exec rm '{}' ;\
find -name "config.cs.dso" -exec rm '{}' ;\
find -name "prefs.cs.dsoe" -exec rm '{}' ;\
#del /s prefs.cs
#del /s config.cs
#del /s config.cs.dso
#del /s prefs.cs.dso
~/torque/3dgp/3D2E> chmod u+x *.sh
[edit] Startup
The -console option can be useful for troubleshooting startup problems.
~/torque/3dgp/3D2E> ./DeleteDOSs.sh; ./DeletePrefs.sh; ./torqueDemo.bin -console
[edit] Compile TGE
[edit] Nvidia GLX and Ubuntu 7.04
By default, all nvidia kernel modules are installed (they come with linux-restricted-modules). Whether they are used or not depends on the setting in /etc/default/linux-restricted-modules-common . Installing nvidia-glx-new will make Ubuntu Feisty use the 97xx series of drivers but if you want to use manually installed drivers then this is of little consequence.
- DISABLED_MODULES="nvidia"
DISABLED_MODULES=""
Error
[161485.844282] NVRM: API mismatch: the client has the version 1.0-9631, but
[161485.844284] NVRM: this kernel module has the version 1.0-9755. Please [161485.844285] NVRM: make sure that this kernel module and all NVIDIA driver [161485.844287] NVRM: components have the same version.
ooking at your error message above your kernel module(1.0-9755) is clearly more recent than you driver (1.0-9631)... this means your linux-restricted-modules is newer that your nvidia-glx ...
I've been able to resolve this problem by downgrading the Nvidia driver to version 1.0.9631 via Synaptic and the nvidia-glx package for Ubuntu: http://www.nvnews.net/vbulletin/showthread.php?t=81256&page=3
felix:
In the End the error comes form Adept, use apt-intall in the shell. I followed : http://albertomilone.com/latest_nvidia_udsf_feisty.html
1) uname -r
2) Now that you know the architecture (generic in my case but it could also be 386), type: file.pngCode:
sudo apt-get install linux-generic
(of course you need to use your architecture instead of generic)
In this way you will install a dummy package which will always provide you with the latest kernel image, headers and restricted modules.
3) Install the Nvidia driver:
If your graphic card model belongs to the first list available on this page you will have to type (this command will install driver 9755): file.pngCode:
sudo apt-get install nvidia-glx-new
OR if your graphic card model belongs to the second list available on this page you will have to type (this command will install driver 9631):
file.pngCode:
sudo apt-get install nvidia-glx
OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7184)
file.pngCode:
sudo apt-get install nvidia-glx-legacy nvidia-xconfig nvidia-settings
4) Backup your xorg.conf
file.pngCode:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
NOTE: if you lost your old xorg.conf or that doesn't work type this:
file.pngCode:
dpkg-reconfigure -phigh xserver-xorg
5) Enable the driver in your xorg:
file.pngCode:
sudo nvidia-xconfig --no-composite
[edit] Tune
Go to nvidas site and install the GLX drivers they make tge fly. sudo nvidia-glx-config enable
[edit] Customizing
[edit] ~/.garagegames and Save Mission and GUI Files
You'll find that the compiled .dsos and a few other bits and pieces are stored in your home directory, in [iirc] .garagegames by default. Try
rm -rf ~/.garagegames
And in the future, you can run torque with the option "-nohomedir" to disable this behaviour and make it write to your game directory.
You may not be able to save you mission correctly, because a normal might not have write access to the game directory
[edit] Console Key Shortcut:
See: [2] Go to the file: fps/client/scripts/default.bind.cs and search for "tildle". You will see where the tilde key is bound to the console. Change the line
GlobalActionMap.bind(keyboard, "tilde", toggleConsole); to GlobalActionMap.bind(keyboard, "F12", toggleConsole);
The statement (GlobalActionMap) creates a keyboard binding so that when we hit the tilde it will run the toggleConsole function. (On my mac I use the "<"-button to bring down the consol).
[edit] Issues and Problems
Problem using capital letters in filenames. Try to use no capital letters in your filenames to avoid some problems.
[edit] Ubuntu 7.1 TGE crash
http://www.garagegames.com/community/forums/viewthread/52287#396369
... In the source tree, and open up x86UNIXInputManager.cc. Scroll down a bit, and you'll see a MapKey() function. Comment out the currently active code there, and remove the #if 0/#endif pair disabling the old version of the code below it, and the X11_KeyToUnicode errors should no longer be an issue.
http://eviwo.free.fr/torque/compile.html
http://www.garagegames.com/community/forums/viewthread/73109
how to debug this graphics crash
http://www.garagegames.com/community/forums/viewthread/10983
At the console, type "glxinfo"
[edit] Broken Save As
Tim Gift Employee Posted: Aug 13, 2001 06:44
I think I may have broken the "Save as" feature of the editor.. Without the save-as (which I was going to change), you have to manually copy the .mis, and (probably a good idea) the .ter file. Edit the .mis file with a text editor and rename any references from the earlier name (probably on only the .ter file).
Thus goto the directory:
~/torque/TGE_SDK_1.4.2/example/GameOne/data/missions
and copy:
cp flat.mis GameOneMission.mis
cp flat.ter GameOneMission.ter
edit GameOneMisssion.mis and replace flat with GameOneMission.
[edit] Save GUI and Mission
See Customizing.
Set the default GUI file in GameOne/main.cs:
$Editor::newMissionOverride = "/GameOne/data/missions/GameOneMission.mis";
You may also copy and rename a mission and load it in torque. The changes are not visible from the date of the file.
[edit] If You Cannot Move the Player with the Mouse
Note: If you can't move your player's view with your mouse, please see this thread for the fix: [3], [4]
Posted: Nov 21, 2006 08:41 I just posted the exact same problem in the SDK bugs forum. The editor changes a lot of code for some reason.
www.garagegames.com/mg/forums/result.thread.php?qt=54117
I guess we just have to open the playGui.gui in notepad everytime and replace the 'GameTSCtrl(PlayGui)' with:
new GameTSCtrl(PlayGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
noCursor = "1";
You need to set canSaveDynamicFields = "1"; so that it doesnt happen next time you save the PlayGui. I fixed this in 1.4 SVN fairly recently, and 1.5 just now, so it'll filter back out eventually.
[edit] Game Server and Networking
Check if you server is visible from "outdise" for that use the method below :
eviwo.free.fr/torque/multiplayer.html
