From no-reply_wiki at metalforge.org Wed Apr 1 15:58:46 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 01 Apr 2009 15:58:46 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: people Message-ID: <1238619526.193916.31639.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/01 15:58 User : ryo Edit Summary: update @@ -14,9 +14,9 @@ | Rapha?l Quinet | [[user:raphael]] | raphael (gimpnet),\\ RaphaelQ (freenode) | [[http://sourceforge.net/users/quinet/|quinet]] | [[https://launchpad.net/people/raphael-gimp|raphael-gimp]] | | | | Joshua Wilson | majorwoo | majorwoo | [[http://sourceforge.net/users/majorwoo|majorwoo]] | | | | | Yann Chachkoff | | gros,\\ lauwenmark | [[http://sourceforge.net/users/gros|gros]] | | | | | Tony Harrison | | webstrand | | | | | - | Nicolas Weeger | ryo | ryo_ / Nicolas | [[http://sourceforge.net/users/ryo_saeba|ryo_saeba]] | | http://nicolas.weeger.org | | + | Nicolas Weeger | ryo | ryo_ / Nicolas | [[http://sourceforge.net/users/ryo_saeba| ryo_saeba]] | | http://nicolas.weeger.org | | | Gene Alexander | [[user:eracc]] | eracc\\ galahadcf\\ (hosts cfbot on #crossfire) | [[http://sourceforge.net/users/eracc|eracc]] | | [[http://www.eracc.com|www.eracc.com]] | | | Ruben Safir | [[user:mrbrklyn]] | mrbrklyn\\ ruben\\ (runs xchat at al) | | | [[http://www.mrbrklyn.com]] | | | Kurt Fitzner | [[user:kfitzner]] | Fortiscue\\ Reven (forums) | [[http://sourceforge.net/users/kfitzner|kfitzner]] | | [[http://www.excelcia.org]] | | | Christian Hujer | | Cher | [[http://sourceforge.net/users/christianhujer|christianhujer]] | | [[http://www.riedquat.de]] | | @@ -38,5 +38,5 @@ | Kari Pahula | kaol | Debian| | Michael Thomas | _wart_ | Fedora| | Ketche | Ketche | Mac OS X(ppc-X11) | | Ketche | Ketche | SPARC Solaris | - | Ryo | ryo_ | Windows | + | Ryo | ryo_ | Windows | IP-Address : 82.236.87.204 Old Revision: http://wiki.metalforge.net/doku.php/people?rev=1234305281 New Revision: http://wiki.metalforge.net/doku.php/people -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Tue Apr 7 16:01:10 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Tue, 07 Apr 2009 16:01:10 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: windows Message-ID: <1239138070.986675.15693.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/07 16:01 User : Edit Summary: Updated link for the Windows Client download @@ -145,16 +145,14 @@ 9. After waiting a few moments, GTK+ 2 is now installed, click on Finish {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk07.png}} - - ==== Windows Client ==== The Crossfire client is required for playing Crossfire - whether it's a localhost server (running on your computer), or a server on your Local Area Network (LAN) or one of the many public servers that are available. - 1. Click [[http://downloads.sourceforge.net/crossfire/crossfire-client-windows-2008-08-04.exe|here]] to begin the install process of Windows Client 2008-08-04 Snapshot + 1. Click [[http://downloads.sourceforge.net/crossfire/crossfire-client-windows-2008-12-21.exe|here]] to begin the install process of Windows Client 2008-12-21 Snapshot {{http://wiki.metalforge.net/lib/exe/fetch.php/images:00-download.png}} 2. Click Next in the Install Wizard IP-Address : 65.193.16.100 Old Revision: http://wiki.metalforge.net/doku.php/windows?rev=1233100919 New Revision: http://wiki.metalforge.net/doku.php/windows -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Tue Apr 7 16:21:49 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Tue, 07 Apr 2009 16:21:49 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: windows Message-ID: <1239139309.327427.15737.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/07 16:21 User : lalomartins Edit Summary: updating instructions for 1.12 client @@ -103,56 +103,16 @@ {{http://wiki.metalforge.net/lib/exe/fetch.php/images:11_server.png}} ===== Win32 GTK Client ===== - - - - ==== GTK+ 2 Runtime Environment ==== - - First, we need to install GTK+ 2 Runtime Environment - this is the core application which the client uses. - - 1. Click [[http://downloads.sourceforge.net/gladewin32/gtk-2.12.9-win32-1.exe|here]] to begin the install process of GTK v2.12.9 - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:02_gtk-download_.png}} - - 2. Click Open to begin the install process, click on Ok if you see a warning about this being an executable file - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:03_gtk-warning.png}} - - 3. Click Next in the Install Wizard - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk01.png}} - - 4. Read through the License agreement, and if you accept, click on I agree - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk02.png}} - - 5. Chose how you want to install GTK+ Runtime Environment, the default should be fine - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk03.png}} - - 6. Chose which components to install - it is recommended to use the defaults and click Next - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk04.png}} - - 7. Chose the install location, it is recommended to use the default destination folder (C:\GTK), click on Next - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk05.png}} - - 8. Chose the Start Menu Folder, it is recommended to use the default (GTK+), click on Install - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk06.png}} - - 9. After waiting a few moments, GTK+ 2 is now installed, click on Finish - - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:gtk07.png}} ==== Windows Client ==== The Crossfire client is required for playing Crossfire - whether it's a localhost server (running on your computer), or a server on your Local Area Network (LAN) or one of the many public servers that are available. - 1. Click [[http://downloads.sourceforge.net/crossfire/crossfire-client-windows-2008-12-21.exe|here]] to begin the install process of Windows Client 2008-12-21 Snapshot + **Note:** the screenshots below haven't yet been updated to the latest release, but the install process is basically the same. + + 1. Click [[http://downloads.sourceforge.net/crossfire/crossfire-client-gtk-1.12.0.exe|here]] to begin the install process of Windows Client 1.12.0 {{http://wiki.metalforge.net/lib/exe/fetch.php/images:00-download.png}} 2. Click Next in the Install Wizard @@ -162,17 +122,19 @@ 3. Read through the License agreement, and if you accept, click on I Agree {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client02.png}} - 4. Select an installation directory - the default location should be fine, click on Install + 4. Here you can choose whether you want to install the extra layouts. Better just click Next + + 5. Select an installation directory - the default location should be fine, click on Install {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client03.png}} - 5. Wait for the client to install - this should only take a moment + 6. Wait for the client to install - this should only take a moment - 6. Click on Finish + 7. Click on Finish {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client04.png}} - 7. The client should launch for you automatically, or you can run the client from your Start menu + 8. The client should launch for you automatically, or you can run the client from your Start menu {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client-launch.gif}} IP-Address : 96.246.52.150 Old Revision: http://wiki.metalforge.net/doku.php/windows?rev=1239138069 New Revision: http://wiki.metalforge.net/doku.php/windows -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 8 07:30:30 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 08 Apr 2009 07:30:30 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: spells:sorcery Message-ID: <1239193830.866031.17614.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/08 07:30 User : Edit Summary: I began with sorcery as part of my initial skill set (as a wizard). @@ -8,9 +8,9 @@ useful sorcery spells. The sorcery skill is acquired by learning the skill from a scroll or by having a talisman of sorcery. Spellcasters may also be created - with sorcery as part of their initial skill set.((is this true?)) + with sorcery as part of their initial skill set. IP-Address : 90.241.28.234 Old Revision: http://wiki.metalforge.net/doku.php/spells:sorcery?rev=1167956270 New Revision: http://wiki.metalforge.net/doku.php/spells:sorcery -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 8 17:43:25 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 08 Apr 2009 17:43:25 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: faq Message-ID: <1239230605.147791.21635.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/08 17:43 User : Edit Summary: 3.2.14 How does lifesaving (i.e., Amulet of Lifesaving) work? @@ -506,8 +506,12 @@ Magical attacktypes from a bow will only apply to non-magical arrows. For instance, Arrows of Fire (attacktype: fire) with a Bow of Thunder (attacktypes: slow, paralyze) will only result in fire damage. + + === 3.2.14 How does lifesaving (i.e., Amulet of Lifesaving) work? === + + The item with the lifesaving property needs to be worn by your character. When your character reaches 0 (zero) hit points, the item immediately casts the heal spell on you, thus restoring your hit points to full health. At this time, the item is also consumed. Meaning, it only works once. ==== 3.3 Monster Problems ==== === 3.3.1 How do I kill vampires? (or other, tough monsters) === IP-Address : 65.193.16.100 Old Revision: http://wiki.metalforge.net/doku.php/faq?rev=1215465949 New Revision: http://wiki.metalforge.net/doku.php/faq -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Fri Apr 10 00:12:25 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Fri, 10 Apr 2009 00:12:25 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: crossfire_compile_guide Message-ID: <1239340345.284365.29745.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/10 00:12 User : Edit Summary: Updates to the required packages @@ -39,14 +39,14 @@ * libsqlite3-0 - SQLite 3 shared library (used by cflogger) * libpython2.4 - Python shared object library (used by game features such as bank, post office, slot machines, etc.) * libpython2.4-devel - Required to compile python support into the server * libcurl3 - - Multi-protocol file transfer library (required by metaserver2) - * libcurl3-dev - Transitional package to libcurl3-openssl-dev (required by metaserver2) + * libcurl4-openssl-dev - Development files and documentation for libcurl (OpenSSL) (required by metaserver2) * libsvn-dev - Development files for Subversion libraries (required for Subversion revision number reporting in metaserver2) As a quick reference: - sudo apt-get install check autoconf libsqlite3-0 libcurl3 libcurl3-dev libsvn-dev + sudo apt-get install check autoconf libsqlite3-0 libcurl3 libcurl4-openssl-dev libsvn-dev Installing Python and which version is still under investigation/discussion * lib64python2.4-2.4.3 is known to work on Mandriva 2007.0 x86_64 * python2.4-dev is known to work on Ubuntu @@ -54,9 +54,8 @@ ==== Useful Packages ==== These useful packages are not normally required for end-user builds, but they come in handy in cases where developers may have forgotten to check in changes to build scripts, etc. - * autoconf2.5 - Running autogen.sh to fix up build scripts will require autoconf. * cproto - supports `make proto` to automatically update prototype files. * sudo - Provide limited super user privileges to specific users * Not required, but `sudo make install` is useful for installing to system directories. * sudo is also useful for installing packages that are missing. IP-Address : 216.243.156.5 Old Revision: http://wiki.metalforge.net/doku.php/crossfire_compile_guide?rev=1235684910 New Revision: http://wiki.metalforge.net/doku.php/crossfire_compile_guide -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Apr 11 16:57:37 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 11 Apr 2009 16:57:37 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: windows Message-ID: <1239487057.896103.5875.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/11 16:57 User : leaf Edit Summary: Content update @@ -103,15 +103,14 @@ {{http://wiki.metalforge.net/lib/exe/fetch.php/images:11_server.png}} ===== Win32 GTK Client ===== + ==== Windows Client ==== The Crossfire client is required for playing Crossfire - whether it's a localhost server (running on your computer), or a server on your Local Area Network (LAN) or one of the many public servers that are available. - - **Note:** the screenshots below haven't yet been updated to the latest release, but the install process is basically the same. 1. Click [[http://downloads.sourceforge.net/crossfire/crossfire-client-gtk-1.12.0.exe|here]] to begin the install process of Windows Client 1.12.0 {{http://wiki.metalforge.net/lib/exe/fetch.php/images:00-download.png}} IP-Address : 216.243.156.5 Old Revision: http://wiki.metalforge.net/doku.php/windows?rev=1239487004 New Revision: http://wiki.metalforge.net/doku.php/windows -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Apr 11 16:56:46 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 11 Apr 2009 16:56:46 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: windows Message-ID: <1239487006.876451.5869.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/11 16:56 User : leaf Edit Summary: Update screen shots for the 1.12.0 client installation @@ -103,8 +103,9 @@ {{http://wiki.metalforge.net/lib/exe/fetch.php/images:11_server.png}} ===== Win32 GTK Client ===== + ==== Windows Client ==== The Crossfire client is required for playing Crossfire - whether it's a localhost server (running on your computer), or a server on your Local Area Network (LAN) or one of the many public servers that are available. @@ -114,27 +115,49 @@ 1. Click [[http://downloads.sourceforge.net/crossfire/crossfire-client-gtk-1.12.0.exe|here]] to begin the install process of Windows Client 1.12.0 {{http://wiki.metalforge.net/lib/exe/fetch.php/images:00-download.png}} - 2. Click Next in the Install Wizard + 2. Wait for the client to download, double click to launch the install process + + {{01-wingtkclient_download.png}} + + You may see some warnings about installing the client, click on OK and Open (respectively) + + {{02-wingtkclient_warning1.png}} + + {{03-wingtkclient_warning2.png}} + + 3. Click Next in the Install Wizard + + {{04-wingtkclient_start.png}} + + 4. Read through the License agreement, and if you accept, click on I Agree + + {{05-wingtkclient_license.png}} + + 5. Here you can choose whether you want to install the extra layouts. Better just click Next + + {{06-wingtkclient_setup.png}} + + 6. Select an installation directory - the default location should be fine, click on Next - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client01.png}} + {{07-wingtkclient_location.png}} - 3. Read through the License agreement, and if you accept, click on I Agree + 7. The installer will ask if you want to create a Start Menu folder - the default suggestion should be fine, click on Install - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client02.png}} + {{08-wingtkclient_menu.png}} - 4. Here you can choose whether you want to install the extra layouts. Better just click Next + 8. Wait for the client to install - this should only take a moment - 5. Select an installation directory - the default location should be fine, click on Install + {{09-wingtkclient_installing.png}} - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client03.png}} + 9. Click on Finish - 6. Wait for the client to install - this should only take a moment + {{10-wingtkclient_finish.png}} - 7. Click on Finish + 10. The client should launch for you automatically, or you can run the client from your Start menu - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client04.png}} + {{12-wingtkclient_launch.png}} - 8. The client should launch for you automatically, or you can run the client from your Start menu + 11. You should then see the Server selection screen showing all available public servers. - {{http://wiki.metalforge.net/lib/exe/fetch.php/images:client-launch.gif}} + {{11-wingtkclient-metaserver.png}} IP-Address : 216.243.156.5 Old Revision: http://wiki.metalforge.net/doku.php/windows?rev=1239139308 New Revision: http://wiki.metalforge.net/doku.php/windows -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Apr 11 17:22:45 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 11 Apr 2009 17:22:45 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: start Message-ID: <1239488565.992422.6044.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/11 17:22 User : leaf Edit Summary: Version updates for the clients @@ -38,11 +38,11 @@ * [[FAQ]] - Frequently Asked Questions. [[http://crossfire.real-time.com|Crossfire]] is a [[client-server]] based game. \\ The current version for the server is 1.11.0\\ - The current GTK client version is 1.11.0 \\ + The current GTK client version is 1.12.0 \\ The Windows port for the server and maps 1.11.0.\\ - The Windows port of the GTK client is a snapshot version from 2008-Aug-04 + The Windows port of the GTK client is 1.12.0 Crossfire works on: * [[Linux]] * [[Windows]] IP-Address : 216.243.156.5 Old Revision: http://wiki.metalforge.net/doku.php/start?rev=1237032070 New Revision: http://wiki.metalforge.net/doku.php/start -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sat Apr 11 17:33:42 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sat, 11 Apr 2009 17:33:42 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: windows Message-ID: <1239489222.602104.6060.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/11 17:33 User : leaf Edit Summary: Added README for the client @@ -103,8 +103,9 @@ {{http://wiki.metalforge.net/lib/exe/fetch.php/images:11_server.png}} ===== Win32 GTK Client ===== + ==== Windows Client ==== @@ -159,4 +160,25 @@ 11. You should then see the Server selection screen showing all available public servers. {{11-wingtkclient-metaserver.png}} + + 13. The client README contains some useful hints and tips when using the client + + Readme for Win32 (04 April 2009) + + Currently the only client supported is GTK v2. + + This version of the client supports SDL and OpenGL rendering, but it + makes no attempt to detect which one is best for your system. It's + strongly recommended that, before playing for the first time, you open + the configuration dialog (main menu, "Client", "Configure") and change + a few settings to your liking. In particular, "Enable smoothing", and + on "Display mode", select OpenGL. Save and restart (the client, not + your system). If your map display doesn't work or has artifacts, + configure again and select SDL. + + If using SDL and if your computer is relatively recent, you should + also set the "Lighting options" to "Best Per Pixel". + + Finally, if you installed the extra layouts, you may want to try a few + of them. Changing layouts requires a client restart IP-Address : 216.243.156.5 Old Revision: http://wiki.metalforge.net/doku.php/windows?rev=1239487056 New Revision: http://wiki.metalforge.net/doku.php/windows -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Thu Apr 23 14:03:11 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Thu, 23 Apr 2009 14:03:11 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: windows Message-ID: <1240513391.087150.28213.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/23 14:03 User : Edit Summary: @@ -103,8 +103,9 @@ {{http://wiki.metalforge.net/lib/exe/fetch.php/images:11_server.png}} ===== Win32 GTK Client ===== + IP-Address : 201.83.48.197 Old Revision: http://wiki.metalforge.net/doku.php/windows?rev=1239489220 New Revision: http://wiki.metalforge.net/doku.php/windows -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Fri Apr 24 13:58:04 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Fri, 24 Apr 2009 13:58:04 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: linux Message-ID: <1240599484.215759.1299.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/24 13:58 User : leaf Edit Summary: Update ubuntu cf package information @@ -56,14 +56,12 @@ * For crossfire-client-gtk: **gcfclient** * For crossfire-client-gtk2: **gcfclient2** (Minor Note: gcfclient stands for **G**TK **C**ross**F**ire **client**) - - ===== (K|X)Ubuntu ===== - Crossfire is available in all (K|X)Ubuntu distributions (warty, hoary, breezy, dapper, edgy, feisty, gutsy and hardy) and found in the **universe** section; the exceptions being that the crossfire-client-gtk2 client is only available for the edgy, feisty and hardy distribution and the no longer maintained crossfire-maps-small (aka small world) package is only available for the dapper, edgy, feisty and hardy distribution. + Crossfire is available in all (K|X)Ubuntu distributions (warty, hoary, breezy, dapper, edgy, feisty, gutsy, hardy, ibex and jaunty) and found in the **universe** section; the exceptions being that the crossfire-client-gtk2 client is only available for the edgy, feisty, hardy, index and jaunty distribution and the no longer maintained crossfire-maps-small (aka small world) package is only available for the dapper, edgy, feisty, hardy, ibex and jaunty distribution. ==== Installation ==== The easiest way to install Crossfire on [[wp>Ubuntu]] is to use the (K|X)Ubuntu package system and repository. The version there may lag somewhat behind the latest release, but it will be tested for (K|X)Ubuntu and automatically install any needed dependencies. (To stay current with the latest development version, see the [[http://crossfire.real-time.com/svn/index.html|Crossfire SVN page]].) IP-Address : 65.193.16.100 Old Revision: http://wiki.metalforge.net/doku.php/linux?rev=1229393304 New Revision: http://wiki.metalforge.net/doku.php/linux -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 00:18:22 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 00:18:22 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: crossfireeditor Message-ID: <1240723102.768433.11339.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 00:18 User : kbulgrien Edit Summary: created The official Crossfire map editor is also known as the [[gridarta]] project. IP-Address : 70.245.1.210 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/crossfireeditor -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 00:19:39 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 00:19:39 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: gridarta Message-ID: <1240723179.577002.11342.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 00:19 User : kbulgrien Edit Summary: Added ailesse daily build. @@ -22,10 +22,11 @@ ===== Getting Gridarta ===== Gridarta can be retrieved from svn with: svn co https://gridarta.svn.sourceforge.net/svnroot/gridarta - Also, there is the following 'unoffical' gridarta build: + Also, there are following 'unoffical' gridarta builds: * [[http://www.eracc.com/other/crossfire/|Ragnor's Gridarta4Crossfire Build]] (usually updated when Ragnor makes user-visible changes) + * wget http://crossfire.ailesse.com/downloads/gridarta/CrossfireEditor.jar ===== Building and Running Gridarta ===== To build Gridarta, you need to use the //[[http://en.wikipedia.org/wiki/Apache_Ant|Apache Ant]]// build system, and Java 1.5.0 or higher is required to both build and run Gridarta. ==== Building Gridarta4Crossfire ==== IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/gridarta?rev=1234043904 New Revision: http://wiki.metalforge.net/doku.php/gridarta -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 00:53:23 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 00:53:23 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: howto:setup_ant_toolchain Message-ID: <1240725203.876997.11397.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 00:53 User : kbulgrien Edit Summary: created ======Mandriva====== =====2007.0===== ====x86_64==== Example Linux build environment setup and troubleshooting tips This summary of a setup on an x86_64 Mandriva 2007.0 system may help identify some of the build environment setup issues that may crop up on a Linux system. The Mandriva distribution uses urpmi to manage RPM package installation. ?Use the command appropriate to your particular distribution. ?Packages required may vary, but the requirements for Mandriva 2007.0 are shown here to give a basic idea of what is needed. - Download Sun JDK from http://java.sun.com/javase/downloads/index.jsp - Unpack and install the JDK. ?For example:// %%$ sudo bash jdk-6u2-linux-amd64-rpm.bin%% - Find out where the JDK was installed. ? ?$ rpm -ql jdk ? ?. ? ?. ? ? . ? ? $ ls -l /usr/java ? ? total 0 ? ? lrwxrwxrwx 1 root root ?16 Aug ?4 13:54 default -> /usr/java/latest/ ? ? drwxr-xr-x 9 root root 448 Aug ?4 13:54 jdk1.6.0_02/ ? ? lrwxrwxrwx 1 root root ?21 Aug ?4 13:54 latest -> /usr/java/jdk1.6.0_02/ - Put the newly installed Sun Java first in your run path by fixing the login profile and/or executing these export commands. ? ?$ export PATH=/usr/java/latest/bin;$PATH ? ?$ export JAVA_HOME=/usr/java/latest ? ? If the primary login shell is BASH, ~/.bash_profile is where to put these commands so that the changes persist across sessions. - Install ant. ? ?$ sudo urpmi ant ? ?One of the following packages is needed: ? ? 1- java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64 : JPacka... ? ? 2- kaffe-devel-1.1.7-1mdk.x86_64 : Development package with static libs ... ? ? headers for kaffe (to install) ? ? What is your choice? (1-2) 1 ? ? One of the following packages is needed: ? ? 1- xml-commons-resolver10-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.0 u... ? ? 2- xml-commons-resolver11-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.1 u... ? ? 3- xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.2 f... ? ? What is your choice? (1-3) 3 ? ? To satisfy dependencies, the following packages are going to be installed ? ? ant-1.6.5-21mdv2007.0.x86_64 ? ? antlr-2.7.6-4.1mdv2007.0.x86_64 ? ? bouncycastle-1.33-3mdv2007.0.x86_64 ? ? bouncycastle-jdk1.4-1.33-3mdv2007.0.x86_64 ? ? classpath-0.92-3mdv2007.0.x86_64 ? ? classpathx-jaf-1.1.1-1mdv2007.0.x86_64 ? ? classpathx-mail-1.1.1-3mdv2007.0.x86_64 ? ? classpathx-mail-monolithic-1.1.1-3mdv2007.0.x86_64 ? ? eclipse-ecj-3.2.0-12.3mdv2007.0.x86_64 ? ? gcc-java-4.1.1-3mdk.x86_64 ? ? gcj-tools-4.1.1-3mdk.x86_64 ? ? gjdoc-0.7.7-9mdv2007.0.x86_64 ? ? jamvm-1.4.3-3.1mdv2007.0.x86_64 ? ? java-1.4.2-gcj-compat-1.4.2.0-40.103.1mdv2007.0.x86_64 ? ? java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64 ? ? jikes-1.23-0.20050308.1mdk.x86_64 ? ? jpackage-utils-1.7.0-1.4mdv2007.0.noarch ? ? lib64gcj7-devel-4.1.1-3mdk.x86_64 ? ? xalan-j2-2.7.0-2.2mdv2007.0.x86_64 ? ? xerces-j2-2.8.0-1mdv2007.0.x86_64 ? ? xml-commons-1.3.03-5.1mdv2007.0.x86_64 ? ? xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64 ? ? Proceed with the installation of the 22 packages? (84 MB) (Y/n) Y - Install some additional packages. ?Note, these were required for Crossfire's jxclient. ?It has not been assured that they are required for the gridarta?CrossfireEditor. ? ?$ sudo urpmi xml-commons-apis ? ?One of the following packages is needed: ? ? 1- xml-commons-jaxp-1.1-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.1, DOM2... ? ? 2- xml-commons-jaxp-1.2-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.2, DOM ... ? ? 3- xml-commons-jaxp-1.3-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.3, DOM ... ? ? What is your choice? (1-3) 3 ? ?$ sudo urpmi ant-junit ? ?To satisfy dependencies, the following packages are going to be installed: ? ?ant-junit-1.6.5-21mdv2007.0.x86_64 ? ?junit-3.8.2-1.1mdv2007.0.x86_64 ? ? Proceed with the installation of the 2 packages? (2 MB) (Y/n) y - Troubleshooting may be required. ?Use --execdebug to identify some issues. ? ? Note the difference in output between the first and second commands. ? ?$ ant ? ?Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher at gnu.java.lang.MainThread.run(libgcj.so.7) ? ? Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher not found in gnu.gcj.runtime.SystemClassLoader{urls=[/usr/bin/build-classpath,/usr/lib/jvm/java-gcj/lib/tools.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[/usr/share/java-ext/bcprov-jdk14-1.33.jar], parent=null} ? ?} ? ? ? at java.net.URLClassLoader.findClass(libgcj.so.7) ? ? ? at java.lang.ClassLoader.loadClass(libgcj.so.7) ? ? ? at java.lang.ClassLoader.loadClass(libgcj.so.7) ? ? ? at java.lang.Class.forName(libgcj.so.7) ? ? ? at gnu.java.lang.MainThread.run(libgcj.so.7) ? ?$ ant --execdebug ? ?exec "/usr/java/latest/jre/bin/java" -classpath "/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp "" ? ? Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher ? ? For some reason, something is looking for the directory /usr/lib/java-1.6.0. ? ? Oddly, all that is needed in this case is to create the directory. ? ?$ sudo mkdir /usr/lib/java-1.6.0 - Install dependencies over and above requirements for jxclient. ? ?$ ant --execdebug ? ?exec "/usr/java/latest/jre/bin/java" -classpath "/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp "" ? ? Buildfile: build.xml ? ?init: ? ?BUILD FAILED ? ?/home/data/svn/gridarta/crossfire/build.xml:66: Could not create task or type of type: echoproperties. ? ?Ant could not find the task or a class this task relies upon. ? ? This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: ? ? - You have misspelt 'echoproperties'. ? ? ? Fix: check your spelling. ? ? - The task needs an external JAR file to execute and this is not found at the right place in the classpath. ? ? ? Fix: check the documentation for dependencies. ? ? ? Fix: declare the task. ? ? - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. ? ? ? Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. ? ? ? ? If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org ? ? - The build file was written for a later version of Ant ? ? ? Fix: upgrade to at least the latest release version of Ant ? ? - The task is not an Ant core or optional task ? ? ? ? and needs to be declared using . ? ? - You are attempting to use a task defined using ? ? ? ? or but have spelt wrong or not ? ? ? defined it at the point of use ? ?Remember that for JAR files to be visible to Ant tasks implemented ? ?in ANT_HOME/lib, the files must be in the same directory or on the ? ?classpath ? ?Please neither file bug reports on this problem, nor email the ? ?Ant mailing lists, until all of these causes have been explored, ? ?as this is not an Ant bug. ? ?Total time: 0 seconds ? ?$ sudo urpmi ant-nodeps - Build the application. ? ?$ ant ? ?Buildfile: build.xml ? ?init: ? ?clean: ? ? ? ?[mkdir] Created dir: /home/data/svn/gridarta/crossfire/class/production ? ?ctags: ? ?compile: ? ? ? ?[javac] Compiling 309 source files to /home/data/svn/gridarta/crossfire/ ? ?class/production ? ? ? ?... ? ? ? ?[javac] Note: Some input files use unchecked or unsafe operations. ? ? ? ?[javac] Note: Recompile with -Xlint:unchecked for details. ? ? ? ?[javac] 25 warnings ? ?jar: ? ? ? ? ?[jar] Building jar: /home/data/svn/gridarta/crossfire/CrossfireEditor. ? ?jar ? ? ? [delete] Deleting directory /home/data/svn/gridarta/crossfire/class/produ ? ?ction ? ?BUILD SUCCESSFUL ? ?Total time: 11 seconds - Run the application. ? ?$ java -jar CrossfireEditor.jar IP-Address : 70.245.1.210 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 01:40:21 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 01:40:21 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: howto:setup_ant_toolchain Message-ID: <1240728021.840857.7331.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 01:40 User : kbulgrien Edit Summary: Reformat the mess of the prior accidental save. @@ -5,163 +5,17 @@ ====x86_64==== Example Linux build environment setup and troubleshooting tips - This summary of a setup on an x86_64 Mandriva 2007.0 system may help identify - some of the build environment setup issues that may crop up on a Linux system. - The Mandriva distribution uses urpmi to manage RPM package installation. ?Use - the command appropriate to your particular distribution. ?Packages required - may vary, but the requirements for Mandriva 2007.0 are shown here to give a - basic idea of what is needed. + This summary of a setup on an x86_64 Mandriva 2007.0 system may help identify some of the build environment setup issues that may crop up on a Linux system. The Mandriva distribution uses urpmi to manage RPM package installation. ?Use the command appropriate to your particular distribution. ?Packages required may vary, but the requirements for Mandriva 2007.0 are shown here to give a basic idea of what is needed. - - Download Sun JDK from http://java.sun.com/javase/downloads/index.jsp - - Unpack and install the JDK. ?For example:// %%$ sudo bash jdk-6u2-linux-amd64-rpm.bin%% - - Find out where the JDK was installed. - ? ?$ rpm -ql jdk - ? ?. - ? ?. - ? ? . - ? ? $ ls -l /usr/java - ? ? total 0 - ? ? lrwxrwxrwx 1 root root ?16 Aug ?4 13:54 default -> /usr/java/latest/ - ? ? drwxr-xr-x 9 root root 448 Aug ?4 13:54 jdk1.6.0_02/ - ? ? lrwxrwxrwx 1 root root ?21 Aug ?4 13:54 latest -> /usr/java/jdk1.6.0_02/ - - Put the newly installed Sun Java first in your run path by fixing the login profile and/or executing these export commands. - ? ?$ export PATH=/usr/java/latest/bin;$PATH - ? ?$ export JAVA_HOME=/usr/java/latest - ? ? If the primary login shell is BASH, ~/.bash_profile is where to put these commands so that the changes persist across sessions. - - Install ant. - ? ?$ sudo urpmi ant - ? ?One of the following packages is needed: - ? ? 1- java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64 : JPacka... - ? ? 2- kaffe-devel-1.1.7-1mdk.x86_64 : Development package with static libs ... - ? ? headers for kaffe (to install) - ? ? What is your choice? (1-2) 1 - ? ? One of the following packages is needed: - ? ? 1- xml-commons-resolver10-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.0 u... - ? ? 2- xml-commons-resolver11-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.1 u... - ? ? 3- xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.2 f... - ? ? What is your choice? (1-3) 3 - ? ? To satisfy dependencies, the following packages are going to be installed - ? ? ant-1.6.5-21mdv2007.0.x86_64 - ? ? antlr-2.7.6-4.1mdv2007.0.x86_64 - ? ? bouncycastle-1.33-3mdv2007.0.x86_64 - ? ? bouncycastle-jdk1.4-1.33-3mdv2007.0.x86_64 - ? ? classpath-0.92-3mdv2007.0.x86_64 - ? ? classpathx-jaf-1.1.1-1mdv2007.0.x86_64 - ? ? classpathx-mail-1.1.1-3mdv2007.0.x86_64 - ? ? classpathx-mail-monolithic-1.1.1-3mdv2007.0.x86_64 - ? ? eclipse-ecj-3.2.0-12.3mdv2007.0.x86_64 - ? ? gcc-java-4.1.1-3mdk.x86_64 - ? ? gcj-tools-4.1.1-3mdk.x86_64 - ? ? gjdoc-0.7.7-9mdv2007.0.x86_64 - ? ? jamvm-1.4.3-3.1mdv2007.0.x86_64 - ? ? java-1.4.2-gcj-compat-1.4.2.0-40.103.1mdv2007.0.x86_64 - ? ? java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64 - ? ? jikes-1.23-0.20050308.1mdk.x86_64 - ? ? jpackage-utils-1.7.0-1.4mdv2007.0.noarch - ? ? lib64gcj7-devel-4.1.1-3mdk.x86_64 - ? ? xalan-j2-2.7.0-2.2mdv2007.0.x86_64 - ? ? xerces-j2-2.8.0-1mdv2007.0.x86_64 - ? ? xml-commons-1.3.03-5.1mdv2007.0.x86_64 - ? ? xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64 - ? ? Proceed with the installation of the 22 packages? (84 MB) (Y/n) Y - - Install some additional packages. ?Note, these were required for Crossfire's jxclient. ?It has not been assured that they are required for the gridarta?CrossfireEditor. - ? ?$ sudo urpmi xml-commons-apis - ? ?One of the following packages is needed: - ? ? 1- xml-commons-jaxp-1.1-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.1, DOM2... - ? ? 2- xml-commons-jaxp-1.2-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.2, DOM ... - ? ? 3- xml-commons-jaxp-1.3-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.3, DOM ... - ? ? What is your choice? (1-3) 3 - ? ?$ sudo urpmi ant-junit - ? ?To satisfy dependencies, the following packages are going to be installed: - ? ?ant-junit-1.6.5-21mdv2007.0.x86_64 - ? ?junit-3.8.2-1.1mdv2007.0.x86_64 - ? ? Proceed with the installation of the 2 packages? (2 MB) (Y/n) y - - Troubleshooting may be required. ?Use --execdebug to identify some issues. - ? ? Note the difference in output between the first and second commands. - ? ?$ ant - ? ?Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher at gnu.java.lang.MainThread.run(libgcj.so.7) - ? ? Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher not found in gnu.gcj.runtime.SystemClassLoader{urls=[/usr/bin/build-classpath,/usr/lib/jvm/java-gcj/lib/tools.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[/usr/share/java-ext/bcprov-jdk14-1.33.jar], parent=null} - ? ?} - ? ? ? at java.net.URLClassLoader.findClass(libgcj.so.7) - ? ? ? at java.lang.ClassLoader.loadClass(libgcj.so.7) - ? ? ? at java.lang.ClassLoader.loadClass(libgcj.so.7) - ? ? ? at java.lang.Class.forName(libgcj.so.7) - ? ? ? at gnu.java.lang.MainThread.run(libgcj.so.7) - ? ?$ ant --execdebug - ? ?exec "/usr/java/latest/jre/bin/java" -classpath "/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp "" - ? ? Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher - ? ? For some reason, something is looking for the directory /usr/lib/java-1.6.0. - ? ? Oddly, all that is needed in this case is to create the directory. - ? ?$ sudo mkdir /usr/lib/java-1.6.0 - - Install dependencies over and above requirements for jxclient. - ? ?$ ant --execdebug - ? ?exec "/usr/java/latest/jre/bin/java" -classpath "/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp "" - ? ? Buildfile: build.xml - ? ?init: - ? ?BUILD FAILED - ? ?/home/data/svn/gridarta/crossfire/build.xml:66: Could not create task or type of type: echoproperties. - ? ?Ant could not find the task or a class this task relies upon. - - ? ? This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - ? ? - You have misspelt 'echoproperties'. - ? ? ? Fix: check your spelling. - ? ? - The task needs an external JAR file to execute and this is not found at the right place in the classpath. - ? ? ? Fix: check the documentation for dependencies. - ? ? ? Fix: declare the task. - ? ? - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. - ? ? ? Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. - ? ? ? ? If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org - ? ? - The build file was written for a later version of Ant - ? ? ? Fix: upgrade to at least the latest release version of Ant - ? ? - The task is not an Ant core or optional task - ? ? ? ? and needs to be declared using . - ? ? - You are attempting to use a task defined using - ? ? ? ? or but have spelt wrong or not - ? ? ? defined it at the point of use - - ? ?Remember that for JAR files to be visible to Ant tasks implemented - ? ?in ANT_HOME/lib, the files must be in the same directory or on the - ? ?classpath - - ? ?Please neither file bug reports on this problem, nor email the - ? ?Ant mailing lists, until all of these causes have been explored, - ? ?as this is not an Ant bug. - - ? ?Total time: 0 seconds - - ? ?$ sudo urpmi ant-nodeps - - - Build the application. - - ? ?$ ant - ? ?Buildfile: build.xml - - ? ?init: - - ? ?clean: - ? ? ? ?[mkdir] Created dir: /home/data/svn/gridarta/crossfire/class/production - - ? ?ctags: - - ? ?compile: - ? ? ? ?[javac] Compiling 309 source files to /home/data/svn/gridarta/crossfire/ - ? ?class/production - ? ? ? ?... - ? ? ? ?[javac] Note: Some input files use unchecked or unsafe operations. - ? ? ? ?[javac] Note: Recompile with -Xlint:unchecked for details. - ? ? ? ?[javac] 25 warnings - - ? ?jar: - ? ? ? ? ?[jar] Building jar: /home/data/svn/gridarta/crossfire/CrossfireEditor. - ? ?jar - ? ? ? [delete] Deleting directory /home/data/svn/gridarta/crossfire/class/produ - ? ?ction - - ? ?BUILD SUCCESSFUL - ? ?Total time: 11 seconds - - - Run the application. - - ? ?$ java -jar CrossfireEditor.jar + - Download Sun JDK from http://java.sun.com/javase/downloads/index.jsp\\ \\ + - Unpack and install the JDK. ?For example:
\\ \\ $ sudo bash jdk-6u2-linux-amd64-rpm.bin\\ \\ + - Find out where the JDK was installed.\\ \\ $ rpm -ql jdk\\ .\\ .\\ .\\ $ ls -l /usr/java\\ total 0\\ lrwxrwxrwx 1 root root ?16 Aug ?4 13:54 default -> /usr/java/latest/\\ drwxr-xr-x 9 root root 448 Aug ?4 13:54 jdk1.6.0_02/\\ lrwxrwxrwx 1 root root ?21 Aug ?4 13:54 latest -> /usr/java/jdk1.6.0_02/\\ \\ + - Put the newly installed Sun Java first in your run path by fixing the login profile and/or executing these export commands.\\ \\ $ export PATH=/usr/java/latest/bin;$PATH\\ $ export JAVA_HOME=/usr/java/latest\\ \\ If the primary login shell is BASH, ~/.bash_profile is where to put these commands so that the changes persist across sessions.\\ \\ + - Install ant.\\ \\ $ sudo urpmi ant\\ One of the following packages is needed:\\ 1- java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64 : JPacka...\\ 2- kaffe-devel-1.1.7-1mdk.x86_64 : Development package with static libs ...\\? What is your choice? (1-2) 1\\ One of the following packages is needed:\\ 1- xml-commons-resolver10-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.0 u...\\ 2- xml-commons-resolver11-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.1 u...\\ 3- xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.2 f...\\ What is your choice? (1-3) 3\\ To satisfy dependencies, the following packages are going to be installed\\ ant-1.6.5-21mdv2007.0.x86_64\\ antlr-2.7.6-4.1mdv2007.0.x86_64\\ bouncycastle-1.33-3mdv2007.0.x86_64\\ bouncycastle-jdk1.4-1.33-3mdv2007.0.x86_64\\ classpath-0.92-3mdv2007.0.x86_64\\ classpathx-jaf-1.1.1-1mdv2007.0.x86_64\\ classpathx-mail-1.1.1-3mdv2007.0.x86_64\\ classpathx-mail-monolithic-1.1.1-3mdv2007.0.x86_64\\ eclipse-ecj-3.2.0-12.3mdv2007.0.x86_64\\ gcc-java-4.1.1-3mdk.x86_64\\ gcj-tools-4.1.1-3mdk.x86_64\\ gjdoc-0.7.7-9mdv2007.0.x86_64\\ jamvm-1.4.3-3.1mdv2007.0.x86_64\\ java-1.4.2-gcj-compat-1.4.2.0-40.103.1mdv2007.0.x86_64\\ java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64\\ jikes-1.23-0.20050308.1mdk.x86_64\\ jpackage-utils-1.7.0-1.4mdv2007.0.noarch\\ lib64gcj7-devel-4.1.1-3mdk.x86_64\\ xalan-j2-2.7.0-2.2mdv2007.0.x86_64\\ xerces-j2-2.8.0-1mdv2007.0.x86_64\\ xml-commons-1.3.03-5.1mdv2007.0.x86_64\\ xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64\\ Proceed with the installation of the 22 packages? (84 MB) (Y/n) Y\\ \\ + - Install some additional packages. ?Note, these were required for Crossfire's jxclient. ?It has not been assured that they are required for the gridarta?CrossfireEditor.\\ \\ $ sudo urpmi xml-commons-apis\\ One of the following packages is needed:\\ 1- xml-commons-jaxp-1.1-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.1, DOM2...\\ 2- xml-commons-jaxp-1.2-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.2, DOM ...\\ 3- xml-commons-jaxp-1.3-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.3, DOM ...\\ What is your choice? (1-3) 3\\ \\ $ sudo urpmi ant-junit\\ To satisfy dependencies, the following packages are going to be installed:\\ ant-junit-1.6.5-21mdv2007.0.x86_64\\ junit-3.8.2-1.1mdv2007.0.x86_64\\ Proceed with the installation of the 2 packages? (2 MB) (Y/n) y\\ \\ + - Troubleshooting may be required. ?Use --execdebug to identify some issues.\\ Note the difference in output between the first and second commands.\\ \\ $ ant\\ Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher at gnu.java.lang.MainThread.run(libgcj.so.7)\\ Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher not found in gnu.gcj.runtime.SystemClassLoader{urls=[/usr/bin/build-classpath,/usr/lib/jvm/java-gcj/lib/tools.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[/usr/share/java-ext/bcprov-jdk14-1.33.jar], parent=null}\\ }\\ at java.net.URLClassLoader.findClass(libgcj.so.7)\\ at java.lang.ClassLoader.loadClass(libgcj.so.7)\\ at java.lang.ClassLoader.loadClass(libgcj.so.7)\\ at java.lang.Class.forName(libgcj.so.7)\\ at gnu.java.lang.MainThread.run(libgcj.so.7)\\ \\ $ ant --execdebug\\ exec "/usr/java/latest/jre/bin/java" -classpath "/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp ""\\ Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher\\ \\ For some reason, something is looking for the directory /usr/lib/java-1.6.0.\\ Oddly, all that is needed in this case is to create the directory.\\ \\ $ sudo mkdir /usr/lib/java-1.6.0\\ \\ + - Install dependencies over and above requirements for jxclient.\\ \\ $ ant --execdebug\\ exec "/usr/java/latest/jre/bin/java" -classpath "/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp ""\\ Buildfile: build.xml\\ \\ init:\\ \\ BUILD FAILED\\ /home/data/svn/gridarta/crossfire/build.xml:66: Could not create task or type of type: echoproperties.\\ \\ Ant could not find the task or a class this task relies upon.\\ \\ This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file:\\ - You have misspelt 'echoproperties'.\\ Fix: check your spelling.\\ - The task needs an external JAR file to execute and this is not found at the right place in the classpath.\\ Fix: check the documentation for dependencies.\\ Fix: declare the task.\\ - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources.\\ Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF.\\ If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org\\ - The build file was written for a later version of Ant\\ Fix: upgrade to at least the latest release version of Ant\\ - The task is not an Ant core or optional task and needs to be declared using .\\ - You are attempting to use a task defined using? or but have spelt wrong or not defined it at the point of use\\ \\ Remember that for JAR files to be visible to Ant tasks implemented?in ANT_HOME/lib, the files must be in the same directory or on the?classpath\\ \\ Please neither file bug reports on this problem, nor email the?Ant mailing lists, until all of these causes have been explored,?as this is not an Ant bug.\\ \\ Total time: 0 seconds\\ \\ $ sudo urpmi ant-nodeps\\ \\ + - Build the application.\\ \\ $ ant\\ Buildfile: build.xml\\ \\ init:\\ \\ clean:\\ [mkdir] Created dir: /home/data/svn/gridarta/crossfire/class/production\\ \\ ctags:\\ \\ compile:\\ [javac] Compiling 309 source files to /home/data/svn/gridarta/crossfire/class/production\\ ...\\ [javac] Note: Some input files use unchecked or unsafe operations.\\ [javac] Note: Recompile with -Xlint:unchecked for details.\\ [javac] 25 warnings\\ \\ jar:\\ [jar] Building jar: /home/data/svn/gridarta/crossfire/CrossfireEditor.\\ jar\\ [delete] Deleting directory /home/data/svn/gridarta/crossfire/class/production\\ \\ BUILD SUCCESSFUL\\ Total time: 11 seconds\\ \\ + - Run the application.\\ \\ $ java -jar CrossfireEditor.jar IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain?rev=1240725200 New Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 01:55:18 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 01:55:18 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: howto:setup_ant_toolchain Message-ID: <1240728918.046013.7352.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 01:55 User : kbulgrien Edit Summary: Add ant setup example on Mandriva 2009.0. @@ -1,5 +1,53 @@ ======Mandriva====== + + =====2009.0===== + + ====x86_64==== + + # urpmi --exclude-media "Mandriva Linux - 2009.0 (Free64) - Installer" ant\\ \\ + In order to satisfy the 'java-devel[>= 0:1.5.0]' dependency, one of the following packages is needed: + ?1- java-1.6.0-openjdk-devel-1.6.0.0-0.16.b11.4mdv2009.0.x86_64: OpenJDK Development Environment (to install) + ?2- java-1.5.0-gcj-devel-1.5.0.0-17.1.7mdv2009.0.x86_64: JPackage development scripts for GCJ (to install) + ?3- kaffe-devel-1.1.8-1mdv2008.1.x86_64: Development package with static libs and headers for kaffe (to install) + What is your choice? (1-3) 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? + To satisfy dependencies, the following packages are going to be installed: + ? ?Package ? ? ? ? ? ? ? ? ? ? ? ?Version ? ? ?Release ? ? ? Arch + (medium "Main (Official2009.0-1)") + ant ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.7.1 ? ? ? ?7.0.1mdv2009> x86_64 + ? java-1.6.0-openjdk-devel ? ? ? 1.6.0.0 ? ? ?0.16.b11.4md> x86_64 + ? xalan-j2 ? ? ? ? ? ? ? ? ? ? ? 2.7.0 ? ? ? ?7.0.6mdv2009> noarch + ? xerces-j2 ? ? ? ? ? ? ? ? ? ? ?2.9.0 ? ? ? ?9mdv2009.0 ? ?x86_64 + ? xml-commons ? ? ? ? ? ? ? ? ? ?1.3.04 ? ? ? 3.0.2mdv2009> x86_64 + ? xml-commons-jaxp-1.3-apis ? ? ?1.3.04 ? ? ? 3.0.2mdv2009> x86_64 + ? xml-commons-resolver12 ? ? ? ? 1.3.04 ? ? ? 3.0.2mdv2009> x86_64 + 50MB of additional disk space will be used. + 13MB of packages will be retrieved. + Proceed with the installation of the 7 packages? (Y/n) y + + + # urpmi --exclude-media "Mandriva Linux - 2009.0 (Free64) - Installer" xml-commons-apis\\ \\ + In order to satisfy the 'xml-commons-jaxp-1.2-apis|xml-commons-jaxp-1.1-apis|xml-commons-jaxp-1.3-apis' dependency, one of the following packages is needed: + ?1- xml-commons-jaxp-1.1-apis-1.3.04-3.0.2mdv2009.0.x86_64: JAXP 1.1, DOM2, SAX2, SAX2-ext 1.0 apis (to install) + ?2- xml-commons-jaxp-1.2-apis-1.3.04-3.0.2mdv2009.0.x86_64: JAXP 1.2, DOM 2, SAX 2.0.1, SAX2-ext 1.0 apis (to install) + What is your choice? (1-2) 2 + + + # urpmi --exclude-media "Mandriva Linux - 2009.0 (Free64) - Installer" ant-junit\\ \\ + To satisfy dependencies, the following packages are going to be installed: + ? ?Package ? ? ? ? ? ? ? ? ? ? ? ?Version ? ? ?Release ? ? ? Arch + (medium "Main (Official2009.0-1)") + ant-junit ? ? ? ? ? ? ? ? ? ? ?1.7.1 ? ? ? ?7.0.1mdv2009> x86_64 + junit ? ? ? ? ? ? ? ? ? ? ? ? ?3.8.2 ? ? ? ?5.0.1mdv2009> x86_64 + 1.4MB of additional disk space will be used. + 501KB of packages will be retrieved. + Proceed with the installation of the 2 packages? (Y/n) y + + + # urpmi --exclude-media "Mandriva Linux - 2009.0 (Free64) - Installer" ant-nodeps\\ \\ + $ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 + $ export ANT_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 + =====2007.0===== ====x86_64==== IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain?rev=1240728019 New Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 01:56:58 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 01:56:58 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: howto:setup_ant_toolchain Message-ID: <1240729018.721626.7355.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 01:56 User : kbulgrien Edit Summary: Fix ANT_HOME in 2009.0 example @@ -44,9 +44,9 @@ # urpmi --exclude-media "Mandriva Linux - 2009.0 (Free64) - Installer" ant-nodeps\\ \\ $ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 - $ export ANT_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 + $ export ANT_HOME=/usr/share/ant =====2007.0===== IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain?rev=1240728915 New Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 01:59:28 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 01:59:28 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: crossfireeditor Message-ID: <1240729168.844030.7358.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 01:59 User : kbulgrien Edit Summary: Add link to examples on how to set up the ant toolchain. @@ -1,2 +1,3 @@ The official Crossfire map editor is also known as the [[gridarta]] project. + See also : [[howto:setup_ant_toolchain|HOWTO: Set up the ant toolchain]] IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/crossfireeditor?rev=1240723099 New Revision: http://wiki.metalforge.net/doku.php/crossfireeditor -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 02:03:04 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 02:03:04 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: gridarta Message-ID: <1240729384.286584.8350.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 02:03 User : kbulgrien Edit Summary: Link a page with examples on how to set up ant for building the editor. @@ -54,8 +54,11 @@ Double click on the .jar file - this is the case for Windows based systems and also applies for MacOS X. ===== Special Instructions & Troubleshooting ===== + ==== ant setup ==== + + * See the [[howto:setup_ant_toolchain|HOWTO Set up the ant toolchain]] page. ==== JRE Update ==== === *nix Based === IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/gridarta?rev=1240723177 New Revision: http://wiki.metalforge.net/doku.php/gridarta -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 02:07:11 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 02:07:11 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: howto:setup_ant_toolchain Message-ID: <1240729631.375271.8362.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 02:07 User : kbulgrien Edit Summary: Remove extra linebreak. @@ -69,7 +69,7 @@ - Install ant.\\ \\ $ sudo urpmi ant\\ One of the following packages is needed:\\ 1- java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64 : JPacka...\\ 2- kaffe-devel-1.1.7-1mdk.x86_64 : Development package with static libs ...\\? What is your choice? (1-2) 1\\ One of the following packages is needed:\\ 1- xml-commons-resolver10-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.0 u...\\ 2- xml-commons-resolver11-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.1 u...\\ 3- xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64 : XmlResolver 1.2 f...\\ What is your choice? (1-3) 3\\ To satisfy dependencies, the following packages are going to be installed\\ ant-1.6.5-21mdv2007.0.x86_64\\ antlr-2.7.6-4.1mdv2007.0.x86_64\\ bouncycastle-1.33-3mdv2007.0.x86_64\\ bouncycastle-jdk1.4-1.33-3mdv2007.0.x86_64\\ classpath-0.92-3mdv2007.0.x86_64\\ classpathx-jaf-1.1.1-1mdv2007.0.x86_64\\ classpathx-mail-1.1.1-3mdv2007.0.x86_64\\ classpathx-mail-monolithic-1.1.1-3mdv2007.0.x86_64\\ eclipse-ecj-3.2.0-12.3mdv2007.0.x86_64\\ gcc-java-4.1.1-3mdk.x86_64\\ gcj-tools-4.1.1-3mdk.x86_64\\ gjdoc-0.7.7-9mdv2007.0.x86_64\\ jamvm-1.4.3-3.1mdv2007.0.x86_64\\ java-1.4.2-gcj-compat-1.4.2.0-40.103.1mdv2007.0.x86_64\\ java-1.4.2-gcj-compat-devel-1.4.2.0-40.103.1mdv2007.0.x86_64\\ jikes-1.23-0.20050308.1mdk.x86_64\\ jpackage-utils-1.7.0-1.4mdv2007.0.noarch\\ lib64gcj7-devel-4.1.1-3mdk.x86_64\\ xalan-j2-2.7.0-2.2mdv2007.0.x86_64\\ xerces-j2-2.8.0-1mdv2007.0.x86_64\\ xml-commons-1.3.03-5.1mdv2007.0.x86_64\\ xml-commons-resolver12-1.3.03-5.1mdv2007.0.x86_64\\ Proceed with the installation of the 22 packages? (84 MB) (Y/n) Y\\ \\ - Install some additional packages. ?Note, these were required for Crossfire's jxclient. ?It has not been assured that they are required for the gridarta?CrossfireEditor.\\ \\ $ sudo urpmi xml-commons-apis\\ One of the following packages is needed:\\ 1- xml-commons-jaxp-1.1-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.1, DOM2...\\ 2- xml-commons-jaxp-1.2-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.2, DOM ...\\ 3- xml-commons-jaxp-1.3-apis-1.3.03-5.1mdv2007.0.x86_64 : JAXP 1.3, DOM ...\\ What is your choice? (1-3) 3\\ \\ $ sudo urpmi ant-junit\\ To satisfy dependencies, the following packages are going to be installed:\\ ant-junit-1.6.5-21mdv2007.0.x86_64\\ junit-3.8.2-1.1mdv2007.0.x86_64\\ Proceed with the installation of the 2 packages? (2 MB) (Y/n) y\\ \\ - Troubleshooting may be required. ?Use --execdebug to identify some issues.\\ Note the difference in output between the first and second commands.\\ \\ $ ant\\ Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher at gnu.java.lang.MainThread.run(libgcj.so.7)\\ Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher not found in gnu.gcj.runtime.SystemClassLoader{urls=[/usr/bin/build-classpath,/usr/lib/jvm/java-gcj/lib/tools.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[/usr/share/java-ext/bcprov-jdk14-1.33.jar], parent=null}\\ }\\ at java.net.URLClassLoader.findClass(libgcj.so.7)\\ at java.lang.ClassLoader.loadClass(libgcj.so.7)\\ at java.lang.ClassLoader.loadClass(libgcj.so.7)\\ at java.lang.Class.forName(libgcj.so.7)\\ at gnu.java.lang.MainThread.run(libgcj.so.7)\\ \\ $ ant --execdebug\\ exec "/usr/java/latest/jre/bin/java" -classpath "/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.6.0 does not exist or is not a directory:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp ""\\ Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher\\ \\ For some reason, something is looking for the directory /usr/lib/java-1.6.0.\\ Oddly, all that is needed in this case is to create the directory.\\ \\ $ sudo mkdir /usr/lib/java-1.6.0\\ \\ - Install dependencies over and above requirements for jxclient.\\ \\ $ ant --execdebug\\ exec "/usr/java/latest/jre/bin/java" -classpath "/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/java/latest/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp ""\\ Buildfile: build.xml\\ \\ init:\\ \\ BUILD FAILED\\ /home/data/svn/gridarta/crossfire/build.xml:66: Could not create task or type of type: echoproperties.\\ \\ Ant could not find the task or a class this task relies upon.\\ \\ This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file:\\ - You have misspelt 'echoproperties'.\\ Fix: check your spelling.\\ - The task needs an external JAR file to execute and this is not found at the right place in the classpath.\\ Fix: check the documentation for dependencies.\\ Fix: declare the task.\\ - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources.\\ Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF.\\ If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org\\ - The build file was written for a later version of Ant\\ Fix: upgrade to at least the latest release version of Ant\\ - The task is not an Ant core or optional task and needs to be declared using .\\ - You are attempting to use a task defined using? or but have spelt wrong or not defined it at the point of use\\ \\ Remember that for JAR files to be visible to Ant tasks implemented?in ANT_HOME/lib, the files must be in the same directory or on the?classpath\\ \\ Please neither file bug reports on this problem, nor email the?Ant mailing lists, until all of these causes have been explored,?as this is not an Ant bug.\\ \\ Total time: 0 seconds\\ \\ $ sudo urpmi ant-nodeps\\ \\ - - Build the application.\\ \\ $ ant\\ Buildfile: build.xml\\ \\ init:\\ \\ clean:\\ [mkdir] Created dir: /home/data/svn/gridarta/crossfire/class/production\\ \\ ctags:\\ \\ compile:\\ [javac] Compiling 309 source files to /home/data/svn/gridarta/crossfire/class/production\\ ...\\ [javac] Note: Some input files use unchecked or unsafe operations.\\ [javac] Note: Recompile with -Xlint:unchecked for details.\\ [javac] 25 warnings\\ \\ jar:\\ [jar] Building jar: /home/data/svn/gridarta/crossfire/CrossfireEditor.\\ jar\\ [delete] Deleting directory /home/data/svn/gridarta/crossfire/class/production\\ \\ BUILD SUCCESSFUL\\ Total time: 11 seconds\\ \\ + - Build the application.\\ \\ $ ant\\ Buildfile: build.xml\\ \\ init:\\ \\ clean:\\ [mkdir] Created dir: /home/data/svn/gridarta/crossfire/class/production\\ \\ ctags:\\ \\ compile:\\ [javac] Compiling 309 source files to /home/data/svn/gridarta/crossfire/class/production\\ ...\\ [javac] Note: Some input files use unchecked or unsafe operations.\\ [javac] Note: Recompile with -Xlint:unchecked for details.\\ [javac] 25 warnings\\ \\ jar:\\ [jar] Building jar: /home/data/svn/gridarta/crossfire/CrossfireEditor.jar\\ [delete] Deleting directory /home/data/svn/gridarta/crossfire/class/production\\ \\ BUILD SUCCESSFUL\\ Total time: 11 seconds\\ \\ - Run the application.\\ \\ $ java -jar CrossfireEditor.jar IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain?rev=1240729576 New Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 02:06:18 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 02:06:18 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: howto:setup_ant_toolchain Message-ID: <1240729578.048852.8359.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 02:06 User : kbulgrien Edit Summary: Restructure outline and add an overview section. @@ -1,9 +1,15 @@ - ======Mandriva====== + ======Overview====== - =====2009.0===== + This page contains various examples of setting up ant on different systems. Even if the platform you have is not shown here, the information could be helpful clues as to what might need to be installed on your system. - ====x86_64==== + ======Examples====== + + =====Mandriva===== + + ====2009.0==== + + ===x86_64=== # urpmi --exclude-media "Mandriva Linux - 2009.0 (Free64) - Installer" ant\\ \\ In order to satisfy the 'java-devel[>= 0:1.5.0]' dependency, one of the following packages is needed: ?1- java-1.6.0-openjdk-devel-1.6.0.0-0.16.b11.4mdv2009.0.x86_64: OpenJDK Development Environment (to install) @@ -47,11 +53,11 @@ $ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 $ export ANT_HOME=/usr/share/ant - =====2007.0===== + ====2007.0==== - ====x86_64==== + ===x86_64=== Example Linux build environment setup and troubleshooting tips This summary of a setup on an x86_64 Mandriva 2007.0 system may help identify some of the build environment setup issues that may crop up on a Linux system. The Mandriva distribution uses urpmi to manage RPM package installation. ?Use the command appropriate to your particular distribution. ?Packages required may vary, but the requirements for Mandriva 2007.0 are shown here to give a basic idea of what is needed. IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain?rev=1240729016 New Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 02:24:13 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 02:24:13 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: howto:setup_ant_toolchain Message-ID: <1240730653.039909.8396.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 02:24 User : kbulgrien Edit Summary: Mention that ant is used to build gridarta. @@ -1,5 +1,7 @@ ======Overview====== + + ant is needed to build [[:crossfireeditor|Crossfire Editor]] also called [[:gridarta]]. This page contains various examples of setting up ant on different systems. Even if the platform you have is not shown here, the information could be helpful clues as to what might need to be installed on your system. ======Examples====== IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain?rev=1240729629 New Revision: http://wiki.metalforge.net/doku.php/howto:setup_ant_toolchain -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 02:33:03 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 02:33:03 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: lore Message-ID: <1240731183.640780.8411.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 02:33 User : kbulgrien Edit Summary: Link an orphan lore page. @@ -14,8 +14,9 @@ * [[Legends Of The Fall]] (As told by Berd of the West) * [[The Tale of Lord Butakis]] (The origins of the Lake Country) * [[On the whereabouts of Asteroid and Frost Nova]] (Various rumors and innuendo) * [[The Clockwork Hunters]] (Gears in the Artificers Wars) + * [[lore:navar_very_tall_tower|Navar's Very Tall Tower]] (Testament to Sarnach) == Various Short Notes about anything and everything == There are many names that appear here and there without further explanation. Some notes about those were gathered here: @@ -29,12 +30,13 @@ * [[Zormola]], The Bashing One, Orcish Hero; * [[Morgul]], The Tower Builder; * [[Ilrya]], The Mountain Huntress; * [[Kragi]], The Savage Crocodile. - + * [[Khelens]], The original inhabitents of bigworld. * The [[Fox Lady]], the diety of the [[races:Fendrakis]]. * [[Khorolizov]], one of the three great ancient dwarven kingdoms. == Legends not related to Bigworld's inhabitants, but nevertheless persistent == * [[Fido]] (the story about Fido, the messenger of the Gods) + IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/lore?rev=1202471940 New Revision: http://wiki.metalforge.net/doku.php/lore -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 02:39:48 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 02:39:48 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: guides Message-ID: <1240731588.652342.8430.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 02:39 User : kbulgrien Edit Summary: Link an orphaned page. @@ -138,9 +138,9 @@ ==== Code ==== Documentation on the code and coding. * [[Coding Style Guide]] - Guidelines for coding syle for the crossfire server and clients. - + * [[dev:server_design|Server Design]] ==== Misc ==== IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/guides?rev=1218060782 New Revision: http://wiki.metalforge.net/doku.php/guides -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Sun Apr 26 02:41:58 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Sun, 26 Apr 2009 02:41:58 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: guides Message-ID: <1240731718.022749.8439.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/26 02:41 User : kbulgrien Edit Summary: Link an orphan page. @@ -139,9 +139,9 @@ Documentation on the code and coding. * [[Coding Style Guide]] - Guidelines for coding syle for the crossfire server and clients. * [[dev:server_design|Server Design]] - + * [[ideas:cult_system_restructuring|Cult System Restructuring Ideas]] ==== Misc ==== Other stuff that doesn't fit the above catagories. IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/guides?rev=1240731585 New Revision: http://wiki.metalforge.net/doku.php/guides -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Tue Apr 28 17:31:00 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Tue, 28 Apr 2009 17:31:00 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: world:scorn:ipo Message-ID: <1240957860.121563.27822.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/28 17:30 User : Edit Summary: @@ -17,12 +17,13 @@ To send mail, say "help" to Colette (behind the counter next to the mailbox) for instructions, and read the Manual on the table on the other side of the room. To send mail, you'll need the literacy skill, a pen, and a blank message scroll (all of which may be purchased from Colette). ===== Notes & Comments ===== + ===== Credits ===== - * Map created by Commander Gros. + * Map created by Commander Gros (Ha, he wishes! <- Avion). * Image swiped from the excellent [[http://cfmaps.schmorp.de/|Crossfire Maps Directory]]. * replaced with a map generated by ryo IP-Address : 131.137.243.66 Old Revision: http://wiki.metalforge.net/doku.php/world:scorn:ipo?rev=1166975638 New Revision: http://wiki.metalforge.net/doku.php/world:scorn:ipo -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:15:49 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:15:49 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: client_scripting Message-ID: <1241032549.143859.32010.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:15 User : Edit Summary: Change to use the client_side_scripting namespace. @@ -1,7 +1,7 @@ ====== Client Scripting ====== **This page contains links to various scripts for the client** - *[[book.py]] - writes a book from a text file (need to have a pen, and mark what will be writen to) + *[[client_side_scripting:book.py]] - writes a book from a text file (need to have a pen, and mark what will be writen to) - *[[cfequip.cpp]] - manages sets of equipment for different roles (fighting, spell casting, shopping :-)), docs. at top of file + *[[client_side_scripting:cfequip.cpp]] - manages sets of equipment for different roles (fighting, spell casting, shopping :-)), docs. at top of file IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/client_scripting?rev=1133390249 New Revision: http://wiki.metalforge.net/doku.php/client_scripting -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:16:30 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:16:30 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: client_side_scripting:book.py Message-ID: <1241032590.613856.32013.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:16 User : Edit Summary: Moved content from book.py into client_side_scripting namespace. ====== book.py ====== #! /usr/bin/env python import sys # A simple client-side script to write a book from a text file. # It requires that you have a pen, and marked a book # or other writable object. # Then, issue the command 'script PATH/TO/book.py file/to/write/to/book'. DEFAULT_PATH="PATH_TO_TXT_FILE_HERE" path = DEFAULT_PATH if len(sys.argv) > 1: path = sys.argv[1] try: file = open(path, "r") except: print "draw 7 Unable to open '%s':", # Don't end the line yet. if isinstance(str, sys.exc_info()[0]): print sys.exc_info()[0] else: print str(sys.exc_info()[1]) else: lines = file.readlines() # This is kind of messy, since it puts out 2 newlines per actual # line because, "print" adds a "newline" character; it works fine though for line in lines: print("issue 1 1 use+skill inscription " + line) finally: file.close() IP-Address : 70.245.1.210 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:book.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:16:46 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:16:46 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: book.py Message-ID: <1241032606.613821.32016.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:16 User : Edit Summary: removed @@ -1,35 +1 @@ - ====== book.py ====== - - #! /usr/bin/env python - - import sys - - # A simple client-side script to write a book from a text file. - # It requires that you have a pen, and marked a book - # or other writable object. - # Then, issue the command 'script PATH/TO/book.py file/to/write/to/book'. - - DEFAULT_PATH="PATH_TO_TXT_FILE_HERE" - - path = DEFAULT_PATH - if len(sys.argv) > 1: - path = sys.argv[1] - - try: - file = open(path, "r") - - except: print "draw 7 Unable to open '%s':", # Don't end the line yet. - if isinstance(str, sys.exc_info()[0]): - print sys.exc_info()[0] - else: print str(sys.exc_info()[1]) - else: - lines = file.readlines() - - # This is kind of messy, since it puts out 2 newlines per actual - # line because, "print" adds a "newline" character; it works fine though - for line in lines: - print("issue 1 1 use+skill inscription " + line) - finally: - file.close() - IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/book.py?rev=1163693843 New Revision: http://wiki.metalforge.net/doku.php/book.py -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:18:27 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:18:27 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page added: client_side_scripting:cfequip.cpp Message-ID: <1241032707.869465.32022.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:18 User : Edit Summary: Moved content from cfequip.cpp into client_side_scripting namespace. /* cfequip.cpp * $Id: cfequip.cpp,v 1.3 2005/12/01 23:11:02 tbrown Exp $ * Author: Terry Brown * Created: Tue Nov 29 2005 */ /* Bugs, contact: terry_n_brown at yahoo.com To compile: g++ cfequip.cpp -o cfequip To run from within the client: script /path/to/cfequip Commands to script from client: (replace '1' with the number of the script if more than one running, use client command 'scripts' to list) scripttell 1 cfe file set the file for storing / reading equipment sets scripttell 1 cfe store save current equipment set as (use a single word) the file is written every time you use this command, so there's no need to save before you quit scripttell 1 cfe use equip the equipment set scripttell 1 cfe list list known equipment sets scripttell 1 cfe quit quit the script - not really necessary Equipment needs unique names, e.g. "shoes +1" might be confused with "red shoes +1" - just rename the items as needed. Containers behave oddly, because "apply -u bag" opens rather than drops an active but non-open bag. */ #include #include #include #include using namespace std; #define inv_col_flag 6 // request items inv returns multiple columns, with // flags in column inv_col_flag #define inv_col_name 8 // and the name starting in column inv_col_name #define flag_equip 8 // the flags value to test for being equipped #define red "draw 3 " // see crossfire-client-1.8.0/common/newclient.h NDI_RED #define blue "draw 5 " // make a string of words into a vector of words vector stringToVector(const string &s); // class the handle equipment sets class EquipmentSets { public: void setfile(const string &fn); // set the file sets are stored in void store(const string &name); // store current equipment as set void use(const string &name); // equip equipment set void list(); // list stored equipment sets private: typedef map > eSets; eSets m_dat; string m_fn; bool load(const string &fn); void save(const string &fn); }; void EquipmentSets::setfile(const string &fn) { m_fn = fn; m_dat.clear(); if (!load(m_fn)) { cout << red << "Couldn't open '" << m_fn << "', will create on first" << " cfe_store command (if writeable)\n"; } else { cout << blue << "Loaded " << m_fn << "\n"; list(); } } bool EquipmentSets::load(const string &fn) { ifstream in(fn.c_str(), ios::in); if (!in) { return false; } m_dat.clear(); string c; while (in.good()) { string l; getline(in, l); if (l.length() < 1) { break; } if (l[0] != '\t') { c = l; cout << blue << "Set '" << c << "'\n"; } else { m_dat[c].push_back(l.substr(1)); cout << blue << l << "'\n"; } } return true; } void EquipmentSets::save(const string &fn) { ofstream out(fn.c_str(), ios::out); if (!out) { cout << red << "ERROR - couldn't write to '" << fn << "'\n"; return; } for (eSets::const_iterator i = m_dat.begin(); i != m_dat.end(); i++) { out << (*i).first << "\n"; for (vector::const_iterator j = (*i).second.begin(); j != (*i).second.end(); j++) { out << "\t" << *j << "\n"; } } } void EquipmentSets::list() { cout << blue << m_dat.size() << " sets loaded\n"; for (eSets::const_iterator i = m_dat.begin(); i != m_dat.end(); i++) { cout << blue << (*i).first << "\n"; } } void EquipmentSets::store(const string &s) { m_dat[s].clear(); cout << "request items inv\n"; string l; while (getline(cin, l)) { vector r = stringToVector(l); if (r[3] == "end") { break; } if (r[0]+r[1]+r[2] == ("request" "items" "inv") ) { int flags = atol(r[inv_col_flag].c_str()); if (flags & flag_equip) { string item = ""; string comma = ""; for (unsigned int i = inv_col_name; i < r.size(); i++) { item = item + comma + r[i]; comma = " "; } cout << blue << item << "\n"; m_dat[s].push_back(item); } } } save(m_fn); cout << blue << "saved\n"; } void EquipmentSets::use(const string &s) { if (m_dat.find(s) == m_dat.end()) { cout << red << "Can't find set '" << s << "'\n"; list(); return; } cout << blue << "use " << s << " (" << m_dat[s].size() << " items)\n"; cout << "request items inv\n"; string l; while (getline(cin, l)) { vector r = stringToVector(l); if (r[3] == "end") { break; } if (r[0]+r[1]+r[2] == ("request" "items" "inv") ) { int flags = atol(r[inv_col_flag].c_str()); if (flags & flag_equip) { string item = ""; string comma = ""; for (unsigned int i = inv_col_name; i < r.size(); i++) { item = item + comma + r[i]; comma = " "; } // cout << blue << item << "\n"; cout << "issue 1 1 apply -u " << item << "\n"; } } } for (vector::const_iterator j = (m_dat[s]).begin(); j != m_dat[s].end(); j++) { cout << "issue 1 1 apply -a " << *j << "\n"; } } vector stringToVector(const string &s) { vector ans; string part; for (unsigned int i=0; i < s.length(); i++) { if (s[i] > ' ') { part += s[i]; } else { if (part.length() > 0) { ans.push_back(part); } part = ""; } } if (part.length() > 0) { ans.push_back(part); } return ans; } int main() { string s; cout << blue << "Starting cfequip\n"; cout << blue << "================\n"; cout << blue << "\n"; cout << blue << "Supply equipment set file name with:\n"; cout << blue << " scripttell 1 cfe file \n"; cout << blue << "Other commands:\n"; cout << blue << " scripttell 1 cfe list - list known equipment sets\n"; cout << blue << " scripttell 1 cfe quit - end script\n"; cout << blue << " scripttell 1 cfe store - store current equipment as \n"; cout << blue << " scripttell 1 cfe use - equip equipment set \n"; EquipmentSets es; while (cin.good()) { getline(cin, s); vector r = stringToVector(s); if (r[0] + r[2] == ("scripttell" "cfe") ) { if (r.size() == 5 && r[3] == "file") { es.setfile(r[4]); } else if (r.size() == 4 && r[3] == "quit") { cout << blue << "cfequip quitting\n"; cout.flush(); return 0; } else if (r.size() == 4 && r[3] == "list") { es.list(); } else if (r.size() == 5 && r[3] == "store") { es.store(r[4]); } else if (r.size() == 5 && r[3] == "use") { es.use(r[4]); } else { cout << red << "invalid cfe command\n"; } } cout.flush(); } return 0; } IP-Address : 70.245.1.210 Old Revision: none New Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:cfequip.cpp -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:19:44 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:19:44 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: cfequip.cpp Message-ID: <1241032784.156342.32025.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:19 User : Edit Summary: Content moved to client_side_scripting:cfequip.cpp @@ -1,351 +1 @@ - - /* cfequip.cpp - * $Id: cfequip.cpp,v 1.3 2005/12/01 23:11:02 tbrown Exp $ - * Author: Terry Brown - * Created: Tue Nov 29 2005 - */ - - /* - - Bugs, contact: - - terry_n_brown at yahoo.com - - To compile: - - g++ cfequip.cpp -o cfequip - - To run from within the client: - - script /path/to/cfequip - - Commands to script from client: - - (replace '1' with the number of the script if more than one running, - use client command 'scripts' to list) - - scripttell 1 cfe file - set the file for storing / reading equipment sets - - scripttell 1 cfe store - save current equipment set as (use a single word) - the file is written every time you use this command, so there's no need - to save before you quit - - scripttell 1 cfe use - equip the equipment set - - scripttell 1 cfe list - list known equipment sets - - scripttell 1 cfe quit - quit the script - not really necessary - - Equipment needs unique names, e.g. "shoes +1" might be confused with - "red shoes +1" - just rename the items as needed. - - Containers behave oddly, because "apply -u bag" opens rather than drops - an active but non-open bag. - - */ - - #include - #include - #include - #include - - using namespace std; - - #define inv_col_flag 6 // request items inv returns multiple columns, with - // flags in column inv_col_flag - #define inv_col_name 8 // and the name starting in column inv_col_name - #define flag_equip 8 // the flags value to test for being equipped - #define red "draw 3 " // see crossfire-client-1.8.0/common/newclient.h NDI_RED - #define blue "draw 5 " - - // make a string of words into a vector of words - vector stringToVector(const string &s); - - // class the handle equipment sets - class EquipmentSets - { - public: - void setfile(const string &fn); // set the file sets are stored in - void store(const string &name); // store current equipment as set - void use(const string &name); // equip equipment set - void list(); // list stored equipment sets - - private: - - typedef map > eSets; - eSets m_dat; - string m_fn; - - bool load(const string &fn); - void save(const string &fn); - }; - - void EquipmentSets::setfile(const string &fn) - { - m_fn = fn; - m_dat.clear(); - if (!load(m_fn)) - { - cout << red << "Couldn't open '" << m_fn - << "', will create on first" - << " cfe_store command (if writeable)\n"; - } - else - { - cout << blue << "Loaded " << m_fn << "\n"; - list(); - } - } - - bool EquipmentSets::load(const string &fn) - { - ifstream in(fn.c_str(), ios::in); - if (!in) - { - return false; - } - - m_dat.clear(); - string c; - while (in.good()) - { - string l; - getline(in, l); - if (l.length() < 1) - { - break; - } - if (l[0] != '\t') - { - c = l; - cout << blue << "Set '" << c << "'\n"; - } - else - { - m_dat[c].push_back(l.substr(1)); - cout << blue << l << "'\n"; - } - } - - return true; - } - - void EquipmentSets::save(const string &fn) - { - ofstream out(fn.c_str(), ios::out); - if (!out) - { - cout << red << "ERROR - couldn't write to '" - << fn << "'\n"; - return; - } - - for (eSets::const_iterator i = m_dat.begin(); - i != m_dat.end(); i++) - { - out << (*i).first << "\n"; - - for (vector::const_iterator j = (*i).second.begin(); - j != (*i).second.end(); j++) - { - out << "\t" << *j << "\n"; - } - } - } - - void EquipmentSets::list() - { - cout << blue << m_dat.size() << " sets loaded\n"; - for (eSets::const_iterator i = m_dat.begin(); - i != m_dat.end(); i++) - { - cout << blue << (*i).first << "\n"; - } - } - - void EquipmentSets::store(const string &s) - { - m_dat[s].clear(); - - cout << "request items inv\n"; - string l; - - while (getline(cin, l)) - { - vector r = stringToVector(l); - - if (r[3] == "end") - { - break; - } - - if (r[0]+r[1]+r[2] == ("request" "items" "inv") ) - { - int flags = atol(r[inv_col_flag].c_str()); - if (flags & flag_equip) - { - string item = ""; - string comma = ""; - for (unsigned int i = inv_col_name; i < r.size(); i++) - { - item = item + comma + r[i]; - comma = " "; - } - cout << blue << item << "\n"; - m_dat[s].push_back(item); - } - } - } - - save(m_fn); - - cout << blue << "saved\n"; - - } - - void EquipmentSets::use(const string &s) - { - - if (m_dat.find(s) == m_dat.end()) - { - cout << red << "Can't find set '" << s << "'\n"; - list(); - return; - } - - cout << blue << "use " << s << " (" << m_dat[s].size() << " items)\n"; - cout << "request items inv\n"; - string l; - - while (getline(cin, l)) - { - vector r = stringToVector(l); - - if (r[3] == "end") - { - break; - } - - if (r[0]+r[1]+r[2] == ("request" "items" "inv") ) - { - int flags = atol(r[inv_col_flag].c_str()); - if (flags & flag_equip) - { - string item = ""; - string comma = ""; - for (unsigned int i = inv_col_name; i < r.size(); i++) - { - item = item + comma + r[i]; - comma = " "; - } - // cout << blue << item << "\n"; - cout << "issue 1 1 apply -u " << item << "\n"; - - } - } - } - - for (vector::const_iterator j = (m_dat[s]).begin(); - j != m_dat[s].end(); j++) - { - cout << "issue 1 1 apply -a " << *j << "\n"; - } - } - - vector stringToVector(const string &s) - { - vector ans; - - string part; - - for (unsigned int i=0; i < s.length(); i++) - { - if (s[i] > ' ') - { - part += s[i]; - } - else - { - if (part.length() > 0) - { - ans.push_back(part); - } - part = ""; - } - } - - if (part.length() > 0) - { - ans.push_back(part); - } - - return ans; - } - - int main() - { - string s; - - cout << blue << "Starting cfequip\n"; - cout << blue << "================\n"; - cout << blue << "\n"; - cout << blue << "Supply equipment set file name with:\n"; - cout << blue << " scripttell 1 cfe file \n"; - cout << blue << "Other commands:\n"; - cout << blue << " scripttell 1 cfe list - list known equipment sets\n"; - cout << blue << " scripttell 1 cfe quit - end script\n"; - cout << blue << " scripttell 1 cfe store - store current equipment as \n"; - cout << blue << " scripttell 1 cfe use - equip equipment set \n"; - - EquipmentSets es; - - while (cin.good()) - { - getline(cin, s); - - vector r = stringToVector(s); - - if (r[0] + r[2] == ("scripttell" "cfe") ) - { - if (r.size() == 5 && r[3] == "file") - { - es.setfile(r[4]); - } - else if (r.size() == 4 && r[3] == "quit") - { - cout << blue << "cfequip quitting\n"; - cout.flush(); - return 0; - } - else if (r.size() == 4 && r[3] == "list") - { - es.list(); - } - else if (r.size() == 5 && r[3] == "store") - { - es.store(r[4]); - } - else if (r.size() == 5 && r[3] == "use") - { - es.use(r[4]); - } - else - { - cout << red << "invalid cfe command\n"; - } - } - - cout.flush(); - } - - return 0; - - } - - IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/cfequip.cpp?rev=1133482310 New Revision: http://wiki.metalforge.net/doku.php/cfequip.cpp -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:22:25 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:22:25 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: client_side_scripting:scripts:python Message-ID: <1241032945.858655.32034.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:22 User : Edit Summary: Re-link book.py in client_side_scripting namespace. @@ -3,4 +3,4 @@ === The Scripts === - * [[:book.py]] - A script that inscribes a book from a text file. (must have the "inscription" skill, along with something to write on) + * [[client_side_scripting:book.py]] - A script that inscribes a book from a text file. (must have the "inscription" skill, along with something to write on) * [[:user:eadmund:scripts:crossfire.py]] - A library of convenient functions for writing client scripts in Python (a rip-off of [[:user:mhoram:scripts:subs.pl]]) contributed by [[user:eadmund|Eadmund]] * [[:user:eadmund:scripts:altar-pray]] - A port of [[user:mhoram:scripts:altar_pray]] to Python by [[user:eadmund|Eadmund]] IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:scripts:python?rev=1201141787 New Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:scripts:python -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:27:13 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:27:13 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: client_side_scripting:scripts:c Message-ID: <1241033233.428214.32043.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:27 User : Edit Summary: Add cfequip.cpp to the list of C scripts. @@ -4,4 +4,6 @@ === The Scripts === *[[user:gxc:client_side_scripting:cplusplus-howto]] - HOWTO for using C++ scripts *[[:user:gxc:scripts:food_watch]] -- Monitors your food and eats if it falls below a certain level. + *[[client_side_scripting:cfequip.cpp]] -- manages sets of equipment for different roles (fighting, spell casting, shopping :-)), docs. at top of file + IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:scripts:c?rev=1215467090 New Revision: http://wiki.metalforge.net/doku.php/client_side_scripting:scripts:c -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:33:18 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:33:18 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: client_scripting Message-ID: <1241033598.509716.32055.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:33 User : Edit Summary: Re-apply bolding end-tag accidentally deleted. @@ -1,4 +1,4 @@ ====== Client Scripting ====== - **See [[client_side_scripting]] for scripting information. + **See [[client_side_scripting]] for scripting information.** IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/client_scripting?rev=1241033564 New Revision: http://wiki.metalforge.net/doku.php/client_scripting -- This mail was generated by DokuWiki at http://wiki.metalforge.net/ From no-reply_wiki at metalforge.org Wed Apr 29 14:32:47 2009 From: no-reply_wiki at metalforge.org (no-reply_wiki at metalforge.org) Date: Wed, 29 Apr 2009 14:32:47 -0500 Subject: [Crossfire-wiki] [Crossfire DokuWiki] page changed: client_scripting Message-ID: <1241033567.167756.32052.nullmailer@metalforge.net> A page in your DokuWiki was added or changed. Here are the details: Date : 2009/04/29 14:32 User : Edit Summary: "Redirect" users to client_side_scripting since it is better developed. @@ -1,7 +1,4 @@ ====== Client Scripting ====== - **This page contains links to various scripts for the client** + **See [[client_side_scripting]] for scripting information. - *[[client_side_scripting:book.py]] - writes a book from a text file (need to have a pen, and mark what will be writen to) - - *[[client_side_scripting:cfequip.cpp]] - manages sets of equipment for different roles (fighting, spell casting, shopping :-)), docs. at top of file IP-Address : 70.245.1.210 Old Revision: http://wiki.metalforge.net/doku.php/client_scripting?rev=1241032546 New Revision: http://wiki.metalforge.net/doku.php/client_scripting -- This mail was generated by DokuWiki at http://wiki.metalforge.net/