maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] DiabloRL (Roguelike game) on extras-devel (https://talk.maemo.org/showthread.php?t=76162)

AapoRantalainen 2011-08-29 18:23

[Announce] DiabloRL (Roguelike game) on extras-devel
 
3 Attachment(s)
DiabloRL is a roguelike "unmake" of the popular Blizzard game Diablo. Originaly created for the 7 Day Roguelike Competition.
Upstream: http://diablo.chaosforge.org/

1) Enable extras-devel
2) Install diablorl


This is version svn-r876, using fpcvalkyrie -library version svn-r253.

Game is written in Pascal and it is console/ascii, no mouse.

After installing, give user write access to the directory, unless you can't save.
Code:

sudo gainroot
chown -R user /opt/diablorl

Toggle fullscreen and use smallest font before launching game, run:
Code:

cd /opt/diablorl ; ./diablorl

prankster 2011-08-29 18:30

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
every rougelike game reminds me of you !! good work !

Addison 2011-08-29 18:36

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Ooh!

Will this also work with Maemo 4 or are you using Qemu like your other releases?

AapoRantalainen 2011-08-29 19:43

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1078580)
Ooh!

Will this also work with Maemo 4 or are you using Qemu like your other releases?

I haven't tested with Maemo 4/N8*0. It could work. This is not Qemu based, this is natively compiled from sources (none of my packaging is Qemu based)

Addison 2012-06-20 03:45

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
I would love to give this a try. :)

Could you point to where I can get the download files?

I don't think I have access to the extras-devel repo on my Maemo 4 tablet.

Many cheers.

AapoRantalainen 2012-06-20 09:48

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1224461)
Could you point to where I can get the download files?
.

From page: http://maemo.org/packages/view/diablorl/

Direct link to the current version:
http://repository.maemo.org/extras-d...emo2_armel.deb

Addison 2012-06-20 19:30

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
I think it installed just fine after first grabbing liblua5.1-0_5.1.4-3_armel.

However, when running this, I think I'm getting the following error:

/bin/sh: reset: not found

There's another one before this but I'm not fast enough to read it.

AapoRantalainen 2012-06-20 20:00

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1224809)
/bin/sh: reset: not found

Ouch. There are no direct call for 'reset' in the code. So there are some inner magic.

lma 2012-06-20 21:52

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
There's a /usr/bin/reset in package ncurses-bin.

Addison 2012-06-20 22:30

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

dpkg -i ncurses-bin_5.4-3.osso1_armel.deb
Selecting previously deselected package ncurses-bin.
(Reading database ... 22689 files and directories currently installed.)
Unpacking ncurses-bin (from ncurses-bin_5.4-3.osso1_armel.deb) ...
dpkg: dependency problems prevent configuration of ncurses-bin:
ncurses-bin depends on libncurses5 (>= 5.4-1); however:
Package libncurses5 is not configured yet.
dpkg: error processing ncurses-bin (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
This is how I used to install Angband but it's not working anymore.

root
cd /media/mmc2/N800/Angband
dpkg -i libc6_2.5.0-1osso10_armel.deb
dpkg -i libncurses5_5.7+20081213-1_armel.deb
dpkg -i ncurses-base_5.7+20081213-1_all.deb
dpkg -i angband_3.0.9-1_curses_armel.deb


What is the correct order and files needed?

The only thing different that I can think of is that I'm now booting from SD and auouymous had me installing ncurses-base, nano, and color-ls when he walked me through the process.

Addison 2012-06-21 00:49

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Hey lma, can you help me make sense of this?


apt-get install ncurses-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
ncurses-bin is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libncurses5: Depends: libc6 (>= 2.7-1) but 2.5.0-1osso10 is to be installed omweather-icons-beginning: Depends: omweather (>= 0.16) but it is not going to be installed
osso-software-version-rx34: Depends: libncurses5 (= 5.4-3.osso4) but 5.7+20081213-1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


I think I need libc6, libncurses5, ncurses-base, and maybe your ncurses-bin suggestion.

lma 2012-06-21 01:20

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Hm, try "apt-get install libncurses5=5.4-3.osso4", or, if you really need the 5.7 one, install osso-software-version-rx34-unlocked.

Addison 2012-06-21 01:24

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Hey lma.

I don't think that did anything.


apt-get install libncurses5=5.4-3.osso4
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
omweather-icons-beginning: Depends: omweather (>= 0.16) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Can you try getting DiabloRL to work on your end?

Addison 2012-06-21 01:28

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Also, I got this output.


apt-get install osso-software-version-rx34-unlocked
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libncurses5: Depends: libc6 (>= 2.7-1) but 2.5.0-1osso10 is to be installed
omweather-icons-beginning: Depends: omweather (>= 0.16) but it is not going to be installed
osso-software-version-rx34: Depends: libncurses5 (= 5.4-3.osso4) but 5.7+20081213-1 is to be installed
Conflicts: osso-software-version-variant
osso-software-version-rx34-unlocked: Conflicts: osso-software-version-variant
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

lma 2012-06-21 07:37

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1224979)
apt-get install libncurses5=5.4-3.osso4
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
omweather-icons-beginning: Depends: omweather (>= 0.16) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Right, try "dpkg -P omweather-icons-beginning" (I assume you don't need it without omweather installed, right?) followed by "apt-get -f install" (but double check what that proposes to do just in case it wants to remove something vital) then.

Quote:

Can you try getting DiabloRL to work on your end?
Seems to work here (at least it starts using the instructions in the first post, didn't have time to play it right now).

AapoRantalainen: you may want to send the next version to the Diablo autobuilder as well :-)

Addison 2012-06-21 07:39

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Thanks for testing!

Now I'm excited. :)

I can get it to run with no errors now, but it just clears the screen and gives me a command prompt.

Could you post all of your steps for me whenever you have the time?

No hurry on this. :)

lma 2012-06-21 07:51

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
I just used the chown & cd steps described in post #1. It seems to use an awful lot of CPU though...

Addison 2012-06-21 22:05

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Right, try "dpkg -P omweather-icons-beginning" (I assume you don't need it without omweather installed, right?) followed by "apt-get -f install" (but double check what that proposes to do just in case it wants to remove something vital) then.
I don't know why the icons are broken for OMWeather but they do work and I use them on my desktop.

"apt-get -f install" usually deletes Xterm so I now avoid doing this. It's probably because I use a hacked version of Libvte.

Do you IM chief?

Maybe I could find you online and we could bang out a solution together on this. :)

lma 2012-06-22 08:30

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1225476)
I don't know why the icons are broken for OMWeather but they do work and I use them on my desktop.

So you have omweather installed but the package manager doesn't know about it?

Quote:

"apt-get -f install" usually deletes Xterm so I now avoid doing this. It's probably because I use a hacked version of Libvte.
Right, get rid of osso-software-version-rx34 then, since its dependencies are knowingly missing. You won't be able to SSU, but you already can't anyway. Then try an "apt-get -f install", but if it proposes to remove anything else abort and post the output here.

Quote:

Do you IM chief?

Maybe I could find you online and we could bang out a solution together on this. :)
These days that's a bit difficult, I'm in the middle of 20 annoying things including a large office move. Asynchronous communications are your friend ;-)

Addison 2012-06-22 08:50

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

So you have omweather installed but the package manager doesn't know about it?
I really don't know....

http://img526.imageshack.us/img526/8...2062204411.png

The thing is, OMWeather has been a real, meaty turd for the past few months now. Sorry for that intense visual.

It forecasts temperatures that are constantly stupid.

http://img534.imageshack.us/img534/1...2062204393.png

100 degrees here in Michigan this Sunday? *lol*

So how can I get rid of osso-software-version-rx34?

I'd really like to get DiabloRL running, especially since you said that you were able to. :)

lma 2012-06-22 09:13

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1225595)
I really don't know....

Ah, I see, omweatheroldstyle. So it's bad packaging on the icon package, nothing you can do about that :-(

Quote:

So how can I get rid of osso-software-version-rx34?
"dpkg -P osso-software-version-rx34", or "apt-get remove osso-software-version-rx34".

Addison 2012-06-22 09:21

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
What's next chief?


apt-get remove osso-software-version-rx34
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libncurses5: Depends: libc6 (>= 2.7-1) but 2.5.0-1osso10 is to be installed
omweather-icons-beginning: Depends: omweather (>= 0.16) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

lma 2012-06-22 11:22

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
So, remove it with dpkg :-p

Addison 2012-06-22 11:25

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Okay.

I'll have to do this tomorrow when I can focus though. *lol*

Addison 2012-06-23 00:16

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
And done. :)

dpkg -P osso-software-version-rx34
(Reading database ... 22830 files and directories currently installed.)
Removing osso-software-version-rx34 ...

What can I do next since I'm still just getting a cleared screen and then a command prompt when running Diablorl. :(

lma 2012-06-23 06:28

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Did you "chown -R user /opt/diablorl" as root, and cd into /opt/diablorl before starting it? That works for me...

Addison 2012-06-23 06:31

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Yeah, of course. :)

I don't know what I'm missing on this.

Is there something that I can test to see if I have all of the correct dependencies?

lma 2012-06-23 07:01

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Try this:

Code:

$ cd /opt/diablorl ; LD_TRACE_LOADED_OBJECTS=1 ./diablorl
        liblua5.1.so.0 => /usr/lib/liblua5.1.so.0 (0x4000c000)
        libdl.so.2 => /lib/libdl.so.2 (0x412e8000)
        libc.so.6 => /lib/libc.so.6 (0x41028000)
        libm.so.6 => /lib/libm.so.6 (0x41228000)
        /lib/ld-linux.so.3 (0x41000000)

though you should have all the dependencies if it starts. I don't know what else could be significant, your different ncurses version doesn't seem to be a factor as it's not used (apart from reset).

Addison 2012-06-23 07:09

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
I'm not quite following you. Sorry.


cd /opt/diablorl ; LD_TRACE_LOADED_OBJECTS=1 ./diablorl
liblua5.1.so.0 => /usr/lib/liblua5.1.so.0 (0x4002c000)
libdl.so.2 => /lib/libdl.so.2 (0x40058000)
libc.so.6 => /lib/libc.so.6 (0x40064000)
libm.so.6 => /lib/libm.so.6 (0x40178000)
/lib/ld-linux.so.3 (0x40000000)
[1|user@Nokia-N800-43-7|/opt/diablorl]liblua5.1.so.0 => /usr/lib/liblua5.1.so.0 (0x4000c000)
-bash: syntax error near unexpected token `('
[1|user@Nokia-N800-43-7|/opt/diablorl]libdl.so.2 => /lib/libdl.so.2 (0x412e8000)
-bash: syntax error near unexpected token `('
[1|user@Nokia-N800-43-7|/opt/diablorl]libc.so.6 => /lib/libc.so.6 (0x41028000)
-bash: syntax error near unexpected token `('
[1|user@Nokia-N800-43-7|/opt/diablorl]libm.so.6 => /lib/libm.so.6 (0x41228000)
-bash: syntax error near unexpected token `('
[1|user@Nokia-N800-43-7|/opt/diablorl]/lib/ld-linux.so.3 (0x41000000)
-bash: syntax error near unexpected token `0x41000000'

lma 2012-06-23 07:21

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Sorry it wasn't clear, you were only meant to enter the first line, the rest is the output from my tablet for comparison. The above looks fine to me so you're not missing any dependencies.

Can you try running it in an ssh session just in case it doesn't like something in your terminal?

Addison 2012-06-23 07:45

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Same exact thing happens when I SSH into the tablet.

Next guess? :)

lma 2012-06-23 07:53

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
If you feel up to it, try running it with strace (see here) just in case it gives some hints. Otherwise I'm stumped :-(

Addison 2012-06-23 08:17

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
There's a ton of output, but at the very end, the screen clears and all I'm left with is this.


) = 13908
wait4(13908, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 13908
--- SIGCHLD (Child exited) @ 0 (0) ---
write(3, "<TTextModeOutput/0/0> Closed.\n"..., 30) = 30
write(3, "<TTextModeInput/0/0> Closed.\n"..., 29) = 29
munmap(0x40275000, 32768) = 0
write(3, "<TGameUI/0/0> Closed.\n"..., 22) = 22
munmap(0x4025d000, 32768) = 0
gettimeofday({1340439264, 306518}, NULL) = 0
gettimeofday({1340439264, 309112}, {0, 0}) = 0
write(3, "--- Logging end : 23-6-12 11:14"..., 41) = 41
close(3) = 0
munmap(0x40024000, 32768) = 0
munmap(0x401ed000, 32768) = 0
munmap(0x401f5000, 32768) = 0
munmap(0x40215000, 262144) = 0
munmap(0x4020d000, 32768) = 0
munmap(0x40255000, 32768) = 0
munmap(0x4026d000, 32768) = 0

lma 2012-06-23 10:14

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1226142)
write(3, "<TTextModeOutput/0/0> Closed.\n"..., 30) = 30

Aha, so it does its own logging, hadn't noticed that! Check log.txt in the same directory for any warnings or errors.

Addison 2012-06-23 10:19

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
I really hope this helps. :)


--- Logging start : 23-6-12 11:14:21 ---
<TSystems/0/0> Initialized.
<TGame/0/0> Initialized.
<TGameUI/0/0> Initialized.
<TTextModeOutput/0/0> Initialized.
<TTextModeOutput/0/0> Setting ASCII video to 80x25 color.
<TTextModeOutput/0/0> Failed to set ASCII 80x25 color textmode.
<TTextModeInput/0/0> Initialized.
<TTextModeInput/0/0> Terminal Keyboard system ready.
<TRLLua> Lua closed.
<TGame/0/0> Closed.
<TGame/0/0> Destroyed.
<TSystems/0/0> Closed.
<TTextModeOutput/0/0> Closed.
<TTextModeInput/0/0> Closed.
<TGameUI/0/0> Closed.
--- Logging end : 23-6-12 11:14:24 ---

lma 2012-06-23 10:47

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Quote:

Originally Posted by Addison (Post 1226163)
<TTextModeOutput/0/0> Failed to set ASCII 80x25 color textmode.

That's the only problem I can see, but it logs that on mine too and still works.

Quote:

<TTextModeInput/0/0> Terminal Keyboard system ready.
<TRLLua> Lua closed.
Between those two lines I get lots of stuff:

Code:

<TRLLua> Loading data from diablorl.mpq...
<TVDataFile> Loading "diablorl.mpq"...
<TVDataFile> Loaded "diablorl.mpq" (35 files).
<TRLLua> Loading LUA stream -- "const.inc" (8172b)
<TRLLua> Reading "const.inc" (0-8172)
<TRLLua> Loaded "const.inc" (8172b)
<TRLLua> Loading LUA stream -- "core.lua" (48945b)
<TRLLua> Reading "core.lua" (0-48945)
LuaRequire, entering...
...

but I've no clue why it skips all that at your end, sorry :-(

Addison 2012-06-23 10:54

Re: [Announce] DiabloRL (Roguelike game) on extras-devel
 
Should I be doing something like....

stty cols 80
stty rows 25

I really don't get why this isn't working on my end..... *weep* *sob*

*lol* :)


All times are GMT. The time now is 05:22.

vBulletin® Version 3.8.8