Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old August 22, 2010, 08:52   #1
andrewdoull
Unangband maintainer
 
andrewdoull's Avatar
 
Join Date: Apr 2007
Location: Sydney, Australia
Age: 48
Posts: 872
andrewdoull is on a distinguished road
Unangband 0.6.4a released

You can download the source code from http://prdownload.berlios.de/unangba...d-064a-src.zip and a precompiled Windows build from http://prdownload.berlios.de/unangba...d-064a-win.zip.

Changes in this release:

- Fix crash on Windows when levelling up (Reported by michielgk).

- Prevent friendly uniques from being invulnerable to enemy attacks (Reported by Ashkir).
__________________
The Roflwtfzomgbbq Quylthulg summons L33t Paladins -more-
In UnAngband, the level dives you.
ASCII Dreams: http://roguelikedeveloper.blogspot.com
Unangband: http://unangband.blogspot.com
andrewdoull is offline   Reply With Quote
Old August 22, 2010, 21:37   #2
SaThaRiel
Adept
 
SaThaRiel's Avatar
 
Join Date: Nov 2009
Posts: 174
SaThaRiel is on a distinguished road
Nice one Andrew.
In version 0.4.6b may it be possible to split the game and the sound packages? The download is really big for an angband variant.

Oh, i never saw a *band which compiles so nice like unangband Just 2 warning about unused variables and the old mkstemp problem.
__________________
Proud candidate for the Angband Darwin Award!
SaThaRiel is offline   Reply With Quote
Old August 23, 2010, 13:30   #3
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 42
Posts: 1,516
d_m is on a distinguished road
Quote:
Originally Posted by andrewdoull View Post
You can download the source code from http://prdownload.berlios.de/unangba...d-064a-src.zip and a precompiled Windows build from http://prdownload.berlios.de/unangba...d-064a-win.zip
Hi Andrew,

FWIW, V has a version of main-ros.c that no longer uses path_temp() which is what uses tmpnam. If you just grab that code you can stop getting those warnings.
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Old September 8, 2010, 16:29   #4
Hajo
Adept
 
Hajo's Avatar
 
Join Date: Aug 2010
Posts: 142
Hajo is on a distinguished road
I've been trying to compile this and get it running, but my compiled code seems to run into endless or at least very long loops in birth.c

Edit: Sorry. Must be a compiler problem. Rand_div always generates 0, that explains the problems. I'll see what went wrong there.

Edit: It works now. Seems the value table for the complex RNG was never initialized. Don't ask why, don't know either ...
__________________
I have a project problem? I have no project problem. I start a project, I work on it, it fails. No problem

Last edited by Hajo; September 8, 2010 at 21:54.
Hajo is offline   Reply With Quote
Old November 28, 2015, 20:24   #5
jrodman
Apprentice
 
Join Date: Feb 2009
Posts: 56
jrodman is on a distinguished road
Quote:
Originally Posted by Hajo View Post
I've been trying to compile this and get it running, but my compiled code seems to run into endless or at least very long loops in birth.c

Edit: Sorry. Must be a compiler problem. Rand_div always generates 0, that explains the problems. I'll see what went wrong there.

Edit: It works now. Seems the value table for the complex RNG was never initialized. Don't ask why, don't know either ...
Huh, this is frustrating. I'm trying to get a 2001-era variant running, and i'm getting similar symptoms. You found a problem but don't explain what you changed.

I think psi-angband is based on 2.9.x, and keeps hanging in z-rand, but I'm not sure why.

I can see in a debugger that Rand_state has stuff in it....

Hmm, in my case the problem was:

* the values are defined as u32b.
* However, they were 64bit
* The loop only escapes if the values are below a threshold based on 32 bit values, so the loop will last 4 billion times longer than intended.
* Using the define L64 worked (which was intended for DEC alpha) which used unsigned and signed int instead of 'long' for u32 etc.
* In practice, this means I added -D"L64" to the compiler flags in Makefile.std.

The original symptom was a parse problem in the info files, because the code assumes the memory will fit, but is using 8-byte integers instead of 4-byte, which overflows the zeroed memory space.
jrodman is offline   Reply With Quote
Old November 29, 2015, 14:38   #6
debo
Veteran
 
debo's Avatar
 
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,400
debo is on a distinguished road
Quote:
Originally Posted by jrodman View Post
Huh, this is frustrating. I'm trying to get a 2001-era variant running, and i'm getting similar symptoms. You found a problem but don't explain what you changed.

I think psi-angband is based on 2.9.x, and keeps hanging in z-rand, but I'm not sure why.

I can see in a debugger that Rand_state has stuff in it....

Hmm, in my case the problem was:

* the values are defined as u32b.
* However, they were 64bit
* The loop only escapes if the values are below a threshold based on 32 bit values, so the loop will last 4 billion times longer than intended.
* Using the define L64 worked (which was intended for DEC alpha) which used unsigned and signed int instead of 'long' for u32 etc.
* In practice, this means I added -D"L64" to the compiler flags in Makefile.std.

The original symptom was a parse problem in the info files, because the code assumes the memory will fit, but is using 8-byte integers instead of 4-byte, which overflows the zeroed memory space.
usually you need to change the typedefs for the numeric types in 'types.h' to be something less archaic -- I think I've done this with animeband before just by looking at what the typedefs were in modern angband types.h and going with that.
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'
debo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unangband 0.6.4 released andrewdoull Variants 15 May 6, 2010 11:59
[Un] Unangband 0.6.3a released andrewdoull Variants 60 January 15, 2010 10:16
[Un] Unangband 0.6.4-pre released andrewdoull Variants 2 January 13, 2010 02:19
Unangband 0.6.3 released andrewdoull Variants 36 June 19, 2009 08:24
[Un] Unangband 0.6.2-wip7a has been released andrewdoull Variants 12 November 16, 2007 18:16


All times are GMT +1. The time now is 11:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.