Author Topic: Terrain assistance  (Read 2734 times)

Offline crayenne

  • Acquaintance
  • *
  • Posts: 4
    • View Profile
Terrain assistance
« on: June 02, 2009, 08:23:42 PM »
Hi.

All the rooms on the discworld MUD (indoor, in a city, the countryside)
have text maps.

I can't work out, from the documentation, how I provide my own maps
for areas in my MUD (just a hobbiest thing, using the discworld bundle).
I think I need to set "terrains" for each area.

What I've done so far:

Code: [Select]
goto /d/admin/room/terrain.c
terrain wastes
add fixed /d/test/reception.c 998 1000 0
add fixed /d/test/common.c 999 1000 0
add fixed /d/test/kitchen.c 1000 1000 0

Then, in /d/test/reception.c, for example:

Code: [Select]
#include <config.h>

inherit "/std/room/basic_room";
inherit "/std/room/inherit/terrain_map_room";

object counter;
object sink;
object towel;

void
init()
{
  basic_room::init();
  terrain_map_room::init();
}

void
create()
{
  basic_room::create();
  terrain_map_room::create();
}

void
setup()
{
  set_light (60);
  set_short ("The kitchen.");
  set_long ("This is a grubby looking kitchen area.\n");
  set_terrain ("wastes");
  set_coords (1000, 1000);
...

This doesn't work:

Code: [Select]
goto /d/rainbow/room/kitchen
map
You can only do this in a terrain.

Clearly I need to do something more but don't know what. Most of
the documentation links on the actual discworld.atuin.net site are
broken:

Code: [Select]
http://discworld.atuin.net/external/autodoc/std.room.basic_room_new.c.shtml#set_terrain

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
discworld.atuin.net
Wed Jun 3 02:22:23 2009
Apache/2.2.4 (Unix)

Offline sojan

  • Acquaintance
  • *
  • Posts: 35
    • View Profile
Re: Terrain assistance
« Reply #1 on: June 12, 2009, 03:23:39 PM »
Just to confirm, are you referring to the lookmap capability ?

If you are this actually requires a mysql backend amongst other things in order to function - theres a python script which handles this interface and it's all a bit messy.

J