Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Atreides

Pages: [1]
1
Programming / Updating Pixel Dungeon?
« on: August 12, 2016, 10:13:55 AM »
I have a few ideas about modifying (and perhaps altering the GUI to make it more extensible) but I can't get it to compile.  I'm not on my Android Studio machine, but I remember that it would produce errors that certain methods were not found, perhaps because newer editions of the Android libraries didn't support those methods.

How hard would it be to update Pixel Dungeon so it compiles on the most up-to-date versions of Android Studio?  Or should I use an older version of AS (and if so, where do I find it)?  Should I look at my phone to determine what version of AS I should or should not use for development, since I want to play my modifications of Pixel Dungeon?

2
Programming / Trying to compile Advanced Rogue 5.8
« on: April 30, 2014, 06:20:17 AM »
Source code from here:
http://rogue.rogueforge.net/advanced-rogue-5-8/

SVN page:
http://rogue.rogueforge.net/trac/browser/arogue5.8/trunk

Attempted compilation:
Code: [Select]
person@computer ~/Games/arogue5.8.2-src $ make
gcc -g   -c -o chase.o chase.c
gcc -g   -c -o command.o command.c
command.c: In function ‘command’:
command.c:251:4: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
    exit(0);
    ^
command.c: In function ‘quit’:
command.c:454:2: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
  exit(0);
  ^
command.c: In function ‘call’:
command.c:925:6: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
      free(guess[obj->o_which]);
      ^
command.c:926:2: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
  strcpy(prbuf, elsewise);
  ^
command.c:930:6: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
      strncpy(obj->o_mark, prbuf, MARKLEN-1);
      ^
command.c:934:47: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
      guess[obj->o_which] = new((unsigned int) strlen(prbuf) + 1);
                                               ^
command.c:935:6: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
      strcpy(guess[obj->o_which], prbuf);
      ^
gcc -g   -c -o daemon.o daemon.c
gcc -g   -c -o daemons.o daemons.c
gcc -g   -c -o encumb.o encumb.c
gcc -g   -c -o fight.o fight.c
gcc -g   -c -o init.o init.c
init.c: In function ‘init_names’:
init.c:244:28: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
  s_names[i] = (char *) new(strlen(prbuf)+1);
                            ^
init.c:247:2: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
  strcpy(s_names[i], prbuf);
  ^
init.c: In function ‘init_player’:
init.c:302:6: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
      strcpy(pstats.s_dmg,"3d4");
      ^
init.c:353:6: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
      strcpy(pstats.s_dmg,"1d4");
      ^
gcc -g   -c -o io.o io.c
io.c: In function ‘endmsg’:
io.c:68:5: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
     strcpy(huh, msgbuf);
     ^
io.c: In function ‘doadd’:
io.c:90:14: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
     newpos = strlen(msgbuf);
              ^
io.c: In function ‘status’:
io.c:235:15: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
     pb = &buf[strlen(buf)];
               ^
gcc -g   -c -o list.o list.c
gcc -g   -c -o main.o main.c
main.c: In function ‘main’:
main.c:58:5: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
     strncpy(home,md_gethomedir(),LINELEN);
     ^
main.c:61:5: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
     strcpy(file_name, home);
     ^
main.c:62:5: warning: incompatible implicit declaration of built-in function ‘strcat’ [enabled by default]
     strcat(file_name, "arogue58.sav");
     ^
main.c:76:43: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
         strucpy(whoami, md_getusername(), strlen(md_getusername()));
                                           ^
main.c:90:2: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
  exit(0);
  ^
main.c:144:6: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
      exit(1);
      ^
main.c: In function ‘fatal’:
main.c:236:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
     exit(0);
     ^
gcc -g   -c -o maze.o maze.c
gcc -g   -c -o mdport.o mdport.c
mdport.c:59:26: fatal error: ncurses/term.h: No such file or directory
 #include <ncurses/term.h>
                          ^
compilation terminated.
make: *** [mdport.o] Error 1
[2]person@computer ~/Games/arogue5.8.2-src $

I'll look up these error messages in my free time.  Documenting here in case anyone is interested.

EDIT

It compiles if I change mdport.c
line 59 : #include <ncurses/term.h>
to
line 59 : #include <term.h>

This part goes over the character limit, so I moved it to pastebin.

Compilation:
http://pastebin.com/pibXnZN2

3
Off-topic (Locked) / Having trouble with the anti-spam measure
« on: April 29, 2014, 02:08:56 AM »
It keeps timing out.  I click save to save my edit and it keeps going forever.  Does this apply to all users?  Do I need to get past a certain post number?  Is there some way I can be promoted past this so I don't have to deal with this junk?

4
Player's Plaza / Looking for a roguelike to play with
« on: April 28, 2014, 05:12:45 AM »
I want a roguelike that:
* Is small - by which I mean it doesn't have a lot of source files,
* Is stable,
* Is open source, and
* Runs on linux.
* BONUS: Code is well-documented/commented and is easily maintainable.
* BONUS: I prefer CLI roguelikes (Command Line Interface, for the uninitiated.  Also known as ASCII graphics.)
* BONUS: Everything is editable via the source code only.  No JSONs, not *.dat files.
* BONUS: Ideally C or C++.

I want something that is easily modifiable, with minimal effort or knowledge.  I'm okay with either the traditional dungeon-crawl roguelikes or modern free-roaming open world ones.

Pages: [1]