Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > ToME

Reply
 
Thread Tools Display Modes
Old July 19, 2018, 18:38   #31
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,393
AnonymousHero is on a distinguished road
I'm starting to wonder if I shouldn't just provide a Docker container which the correct toolchain pre-setup just for compiling...
AnonymousHero is offline   Reply With Quote
Old July 20, 2018, 08:46   #32
Sky
Veteran
 
Join Date: Oct 2016
Location: London-ish
Age: 51
Posts: 2,249
Sky will become famous soon enough
Broadly speaking ... what are the differences between TOME 1, 2, 3 and 4?

I played tome 1 and iirc it was similar to angband in style - although it had wilderness, colors, quests - many of the stats, commands, gameplay were similar.

But then i played tome 4 - Tales Of Copyright Infringment - that did away with the tolkien setting and changed pretty much everything.

When did the big change happen? What is the last angband-esque build?? (And where can i find it?)
__________________
"i can take this dracolich"
Sky is offline   Reply With Quote
Old July 20, 2018, 08:53   #33
wobbly
Prophet
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,617
wobbly will become famous soon enough
Tome 3 doesn't exist. It was Darkgod's 1st attempt at the new engine. He ended up abandoning it and writing T4. The 1st versions of T4 are still middle earth, though that's stretching it. The last version based on angband, you're probably in the thread for it? Not really an expert on Tome.
wobbly is offline   Reply With Quote
Old July 20, 2018, 15:19   #34
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,022
Derakon is on a distinguished road
ToME 2 is the last Angband-like ToME. This is the thread for the most recent release of that line.

ToME 1 was called PernAngband and got hit by a C&D from Anne McCaffrey's lawyers, so 2 stripped out the Pern references at the same time that it bumped the version number.
Derakon is offline   Reply With Quote
Old August 7, 2018, 17:42   #35
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 961
Gwarl will become famous soon enough
For apparently no reason at all I managed to build it this time, having done exactly the same thing I did last time.

However, I don't seem to be able to specify the user directory from the command line? I don't remember having this problem before.
Gwarl is offline   Reply With Quote
Old August 7, 2018, 18:26   #36
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 961
Gwarl will become famous soon enough
grabbed the 2.4.0 release and I have the same problem.

looking at main.c I don't see anywhere that the user directory is parsed.

this makes no sense because I swear this worked before.
Gwarl is offline   Reply With Quote
Old August 8, 2018, 20:16   #37
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,393
AnonymousHero is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
grabbed the 2.4.0 release and I have the same problem.

looking at main.c I don't see anywhere that the user directory is parsed.

this makes no sense because I swear this worked before.
Are/were you using the TOME_PATH environment variable, or...?

AFAIR it should still work -- I certainly haven't done anything to remove it or anything like that.
AnonymousHero is offline   Reply With Quote
Old August 9, 2018, 10:50   #38
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 961
Gwarl will become famous soon enough
In my archive of the old site, in the source folder I have, within a folder labelled tome2-2.3.6-ah a main.c file with the following function:

Quote:
/*
* Handle a "-d<what>=<path>" option
*
* The "<what>" can be any string starting with the same letter as the
* name of a subdirectory of the "lib" folder (i.e. "i" or "info").
*
* The "<path>" can be any legal path for the given system, and should
* not end in any special path separator (i.e. "/tmp" or "~/.ang-info").
*/
static void change_path(cptr info)
{
cptr s;

/* Find equal sign */
s = strchr(info, '=');

/* Verify equal sign */
if (!s) quit_fmt("Try '-d<what>=<path>' not '-d%s'", info);

/* Analyze */
switch (tolower(info[0]))
{
case 'a':
{
string_free(ANGBAND_DIR_APEX);
ANGBAND_DIR_APEX = string_make(s + 1);
break;
}

case 'f':
{
string_free(ANGBAND_DIR_FILE);
ANGBAND_DIR_FILE = string_make(s + 1);
break;
}

case 'h':
{
string_free(ANGBAND_DIR_HELP);
ANGBAND_DIR_HELP = string_make(s + 1);
break;
}

case 'i':
{
string_free(ANGBAND_DIR_INFO);
ANGBAND_DIR_INFO = string_make(s + 1);
break;
}

case 'u':
{
string_free(ANGBAND_DIR_USER);
ANGBAND_DIR_USER = string_make(s + 1);
break;
}

case 'x':
{
string_free(ANGBAND_DIR_XTRA);
ANGBAND_DIR_XTRA = string_make(s + 1);
break;
}

#ifdef VERIFY_SAVEFILE

case 'b':
case 'd':
case 'e':
case 's':
{
quit_fmt("Restricted option '-d%s'", info);
}

#else /* VERIFY_SAVEFILE */

case 'b':
{
string_free(ANGBAND_DIR_BONE);
ANGBAND_DIR_BONE = string_make(s + 1);
break;
}

case 'd':
{
string_free(ANGBAND_DIR_DATA);
ANGBAND_DIR_DATA = string_make(s + 1);
break;
}

case 'e':
{
string_free(ANGBAND_DIR_EDIT);
ANGBAND_DIR_EDIT = string_make(s + 1);
break;
}

case 's':
{
string_free(ANGBAND_DIR_SAVE);
ANGBAND_DIR_SAVE = string_make(s + 1);
break;
}

#endif /* VERIFY_SAVEFILE */

default:
{
quit_fmt("Bad semantics in '-d%s'", info);
}
}
}
I need this to keep everyone's character dumps and pref files seperate from each other. The only I really need is "case u:", and some variants do indeed collapse the -d switch into just this case (NPPangband is the first example that springs to mind).

The usual purpose of the ANGBAND_PATH variable (still referred to as such in the main.c I apparently used last time) is specifying the lib folder and hence every subfolder not just the user folder. main_real in github's main.cc looks a lot like main in the main.c I have, but comes around 200 lines earlier.

Now I remember, I think I resorted to 2.3.6 before and then forgot that I had done so. That explains why kobold was complaining that there were still traps in the game.

I will need -duser=<path> or at least -d<path> command line switches to host it on live.
Gwarl is offline   Reply With Quote
Old August 9, 2018, 12:31   #39
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 961
Gwarl will become famous soon enough
for reference, this is NPP's far more concise handling of only the switch I need:

Quote:
/*
* Handle a "-d<what>=<path>" option
*
* The "<what>" can be any string starting with the same letter as the
* name of a subdirectory of the "lib" folder (i.e. "i" or "info").
*
* The "<path>" can be any legal path for the given system, and should
* not end in any special path separator (i.e. "/tmp" or "~/.ang-info").
*/
static void change_path(cptr info)
{
if (!info || !info[0])
quit_fmt("Try '-d<path>'.", info);

string_free(ANGBAND_DIR_USER);
ANGBAND_DIR_USER = string_make(info);
}
He didn't bother to update the comments
Gwarl is offline   Reply With Quote
Old August 11, 2018, 17:29   #40
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,393
AnonymousHero is on a distinguished road
Oh, yes, I see I did actually remove that -- it shouldn't be too much effort to bring it back, though.

Just curious... are you using the GCU/curses frontend or something else to handle the frontend for angband.live?

(I'm doing a... thing to the T2 codebase and if at all possible, I'd like to be able to remove curses. However, if angband.live needs it, then that might convince me to try harder to keep it. Still might get removed, obviously, but...)
AnonymousHero 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
ToME 2.3.5 Questions Sooty ToME 9 January 20, 2012 14:12
Why ToME 2.3.5? caruso ToME 4 August 28, 2011 16:48
New to Tome barna10 ToME 0 August 13, 2010 07:24
ToME - Genocide? Narvius Variants 4 December 27, 2007 21:09
ToME - Tik desmondch Variants 2 May 10, 2007 12:54


All times are GMT +1. The time now is 17:16.


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