maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Vicious Orcs - Roguelike (https://talk.maemo.org/showthread.php?t=75407)

szopin 2011-08-01 19:16

Vicious Orcs - Roguelike
 
2 Attachment(s)
Vicious Orcs by Jeff Lait
(http://www.zincland.com/7drl/orcs/)

Your remote mountain village is snowed in awaiting the pass to clear when an earthquake strikes, revealing a new cave complex. It so happens that tales in the village have told of such a cave complex many generations ago. That time vicious orcs stormed out and attacked the defenseless villagers. This time, you are here.

Since the rest of the villagers are too fearful or too doubtful to make a foray into the caverns, it is up to you to explore their depths and rid the village of this threat.

Vicious Orcs is a game in the Angband style. Except much shorter. Much like Quickband quickened.

The features of Vicious Orcs are:

* One main quest and three sub-quests.
* Active and dynamic town!
* Only six dungeon levels to explore!
* Magical potions and magical rings to find and identify!

Made compatible with libtcod 1.5.1 ported by Aapo. Fully working. Extract to ext2/3 partition, run from bin directory.

Have fun!

trompkins 2011-08-02 03:43

Re: Vicious Orcs - Roguelike
 
1 Attachment(s)
Heh, it so happens I ported this one too... Libtcod 1.5.0 used, though. :)

szopin 2011-08-02 15:21

Re: Vicious Orcs - Roguelike
 
You wouldn't still have libtcod 1.5.0 compiled for arm by any chance? It would be much easier to just include it while compiling instead of rewriting the code. Older versions also welcome.

slender 2011-08-02 15:26

Re: Vicious Orcs - Roguelike
 
-Wrong thread-

trompkins 2011-08-02 15:56

Re: Vicious Orcs - Roguelike
 
Quote:

Originally Posted by szopin (Post 1062848)
You wouldn't still have libtcod 1.5.0 compiled for arm by any chance? It would be much easier to just include it while compiling instead of rewriting the code. Older versions also welcome.

If you want the compiled libs they're actually included in the package (/opt/vorcs/lib/libtcod-1.5.0). :)

I haven't mucked about with any older libtcod versions yet. If there are any games which need them I might as well get to it.

szopin 2011-08-02 17:44

Re: Vicious Orcs - Roguelike
 
Thanks. Managed to compile it (except for gui, but who needs that) using cmake list from 1.5.1. Some of the games written with libtcod 1.4.x are not trivial to update to 1.5.1. Got 1.4.0-2 now so shouldn't be a problem anymore.

AapoRantalainen 2011-09-07 18:24

Re: Vicious Orcs - Roguelike
 
I uploaded this to the extras-devel.
Package name is vorcs and it uses icons etc from trompkins' package.

It is using system's libtcod-1.5.1 (modifications by szopin).

It didn't compile for ARM with gcc-4.2, so I made some modifications, hope they will not break game.

Save file is "/home/user/.orc.sav", config file is /opt/vorcs/orc.cfg.
No audio support.

szopin 2011-09-07 19:56

Re: Vicious Orcs - Roguelike
 
Please do share your 4.2 fix. This <4.3 bug in gcc is really pretty common/annoying and my googlefu failed me when looking for a solution. I had to switch to 4.4.

AapoRantalainen 2011-09-07 20:10

Re: Vicious Orcs - Roguelike
 
Quote:

Originally Posted by szopin (Post 1083772)
Please do share your 4.2 fix. This <4.3 bug in gcc is really pretty common/annoying and my googlefu failed me when looking for a solution. I had to switch to 4.4.

Not sure is this always easy as this:
Code:

src/thread.c
@@ -70,5 +70,10 @@ inline s32
 testandset(s32 *addr, s32 val)
 {
-    return __sync_lock_test_and_set(addr, val);
+    int return_value =  *addr;
+    *addr=val;
+    return return_value;
+
+    //It writes value into *ptr, and returns the previous contents of *ptr.
+    //return __sync_lock_test_and_set(addr, val);
 }
 
@@ -76,5 +81,10 @@ inline s32
 testandadd(s32 *addr, s32 val)
 {
-    return __sync_fetch_and_add(addr, val);
+    int return_value =  *addr;
+    *addr+=val;
+    return return_value;
+
+    //These builtins perform the operation suggested by the name, and returns the value that had previously been in memory.
+    //return __sync_fetch_and_add(addr, val);
 }

This can be dangerous. As you see there are some kind of homemade threading and now bultin __sync_-functions are not used.

This is my reference: http://gcc.gnu.org/onlinedocs/gcc-4....-Builtins.html

And there are (were? it is about gcc4.1.2)
Quote:

At present GCC ignores this list and protects all variables which are globally accessible.

szopin 2011-09-07 20:19

Re: Vicious Orcs - Roguelike
 
Awesome. Good source, my googlefu sucks in programming currently


All times are GMT. The time now is 17:02.

vBulletin® Version 3.8.8