SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

<html>
<body>
<center><b> Mudsbuilder - gereacreator help</b></center>

This document is designed to be a brief help for those who seek it:) <pre>
<br>
<u>Table of contents:</u>
* <a href="installation">Configuration/Installation</a> * <a href="configfiles">Config files</a>

  • gereacreator.conf
  • merentha.mlt
  • nannymud.mlt * <a href="creatingarea">Creating area</a> * <a href="templates">Templates</a> * <a href="templatevariables">Template variables</a> * <a href="editingsource">Editing Source</a> * <a href="#keybindings">Key bindings</a>

</pre>
<br><br><br><br><br>
<a name="installation">
<u>Configuration:</u><br>
as usual run<br>
./configure --prefix=/dir/to/installto/<br> make<br>
su <i>(optional)</i><br>
make install<br>

<hr noshade><br><br><br>
<a name="configfiles">
<b><center>Config Files</center></b><br><br> Once installation is complete and upon the first run of the program config files will be copied into .mudsbuilder/ directory in your home dir. <br>
Those files are:<br>
gereacreator.conf<br>
merentha.mlt<br>
nannymud.mlt<br>
<br><br>

<center><b>gereacreator.conf</b> </center> <br>
Contains configuration for gereacreator. All entries are of type VARIABLE=VALUE, i.e MUDLIB_TEMPLATE=merentha.mlt <br>
Modifications will take place upon next run of program.<br> <br>
<center><b>merentha.mlt</b></center>
<br>
Contains mudlib template (in my case merentha mudlib template).<br> This template is used to generate code for mudlib your mud is using.<br> To learn more about this please read below in Templates section<br> <br>
<center><b>nannymud.mlt</b></center>
<br>
Contains mudlib template for NannyMud. Special thanks to Brom@NannyMud<br> <br>
<br><br><br><br>
<hr noshade><br><br><br>

<a name="creatingarea">
<center><b>Creating area</b></center>
<br>
In order to start creating area you first have to select starting point. This is done by clicking anywhere on the grid. After that you are able to click anywhere else on grid or use controls on the top/right of the form. <br>

Once you have completed your dungeon, you probably want to generate actual lpc code now:).<br>
Pressing "Generate Area" button will ask you few options, including (IMPORTANT!) which ROOM TEMPLATE to use. By default it is set to merentha.mlt<br>

<br>
<br><br><br><br>
<hr noshade><br><br><br>

<a name="templates">
<center><b>Templates</b></center>
Room Template (aka mudlib template) is used to generate rooms from your map. gereacreator will search template for special variables, and replace them with an appropriate code. <br>
All variables start with % sign. Currently there are not that many variables, but should be enough to generate most simple area for most of mudlibs<br> <br>
Variables:<br>
%exits: is replaced with string that has following format:<br> <i>
"name of the exit" : ROOM_PREFIX "AREA_NAME ROOM_NUMBER FILE_EXT" ROOM_POSTFIX,<br> "another exit" : ... and so on<br>
</i>

<br><br>
for example:<br>
"south" : MYROOMS "havart_forest1.c",<br> "up" : MYROOMS "havart_forest5.c",<br> etc...<br>
<br>
Since in merentha mudlib in order to set exits one has to call<br> <br>
set_exits(([<br>
"south" : MYROOM "havart_forest4.c",<br> blah blah<br>
]));<br>
<br>
i simply create merentha.mlt template and put in there<br> <br>
set_exits(([<br>
%exits<br>
]));<br>
<br>
<br>
This way all appropriate exits will be filled in (based on map you draw).<br>

<br><br>
<br><br><br>
<hr noshade><br><br><br>

<a name="templatevariables">
<center><b>List of all variables</b></center><br> <li> %exits: replaces it with all exits in mapping format (see above)<br> <li> %oexits: same as %exits , but doesnt include misc exits<br> <li> %mexits: same as %exits, includes only misc exits<br> <li> %sexits: comma separated list of all exit names<br> i.e south, north, west, down, my house, enter<br> <li> %smexits: comma separated list of misc exit names<br> <li> %soexits: comma separated list of all non-misc exit names<br> <li> %room_id: id of room as shown on map created<br> <br>
<i>NEW (experimental)</i><br>
<li> %for_exits: replaced in following way:<br>

        Assuming template contains<br>
        add_exit(%for_exits);<br>
        and current room has exits to north (room1), south (room2) and out (room5)<br><br>

        following code will be generated <br>
<br>
        add_exit("north", ROOM_PREFIX "room1.c" ROOM_POSTFIX);<br>
        add_exit("south", ROOM_PREFIX "room2.c" ROOM_POSTFIX);<br>
        add_exit("out", ROOM_RREFIX "room5.c");<br>

<li> %for_mexits: same as %for_exits , except only misc exits are used <li> %for_oexits: same as %for_exits , except only non-misc exits are used <br>
<li> %area_name: replaced by AREA_NAME
<li> %creator_name: replaced by CREATOR_NAME <li> %comment: replaced by COMMENT
<li> (new) %date : replaced by current date+time <br>
<br><br><br>
<hr noshade><br><br><br>
<a name="editingsource">
<center><b>Editing source</b></center><br> gereacreator allows you to edit rooms source before its been generated<br> In order to do that you must save you area first, then select room you want to edit, and press "Edit Room" button<br> Once you saved your room, rooms color should change from default one<br> In order to save edited room with area you need to save area again<br>
<b>NOTICE:</b> edited rooms obey a bit different rules than all others. For instance if edited room gains or looses exit it wont reflect in rooms code. You can however press Edit Room and Re-generate, but it will erase changes you made to it<br>
<br>
Once you generate code, edited rooms will be created in the codition you left them at<br> All other rooms will be generated according to template chosen<br>

<br>
<hr noshade><br><br><br>

<a name="keybindings">
<center><b>Key Bindings</b></center>
<pre>
Following keys are bound:

"Enter"         : Opens Generate Area Dialog
"/"             : Opens Add Misc Exit Dialog
"*"             : Opens Edit Source Dialog
"Page Up"       : Zoom In
"Page Down"     : Zoom Out
"Home"          : Reset Zoom to default one
"Del"           : Delete room
"0"             : Remove Exits Dialog

<i><b>Movements</b></i><br>
In order to create area with num-pad NumLock has to be enabled

"1"             : southwest
"2"             : south
"3"             : southeast
"4"             : west
"6"             : east
"7"             : northwest
"8"             : north
"9"             : northeast
"+"             : up
"-"             : down

</pre>
<br>
<hr noshade><br><br><br>
<br>
If you have questions/comments/bug reports/feature requests either mail me (frostedcmos [at] yahoo [dot] com) or go to mudsbuilder.sourceforge.net and leave your message in one of forums<br> (Email is prefered)<br>
<br>
<br>
Feel free to send your muds template and i will include it with mudsbuilder<br> <br>
<hr noshade><br><br><br>

[Last udpated August 24, 2003]<br>

</body>
</html>


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.