Problem starting

Posted by Darknaj on Fri 30 Mar 2001 09:40 PM — 19 posts, 71,157 views.

#0
I'm trying to make a person a wiz so i do everything, i copy the char file into gods file and edit that one to lvl. 60. then i go in the game and it works but the next time i log in I can't do the immortal things. eg. edit mobiles, rooms, or anything. As well as i change the part using heit motd, but it never stays changed. I do save it. Almost done. How do i change the very first screen, the one that comes before the login. Last but not least could i get this to run of a site eg. yahoo geocities.



Thats all.
Australia Forum Administrator #1
I would just edit their character file and change their level (eg. to 65) but not put it anywhere else.

As for the Message of the Day, edit the file help.are and look for the help message: GREETING

I'm not sure about running it from Geocities - you would need to ask if they let you run MUD servers.

My SMAUG FAQ mentions how to find hosts for MUD games - that is probably the way to go.
#2
Yeah, i would goto a mud hosting site but so far there all expensive. if anyone know a place for free mud hosting email me, though i know it ain't going to happen.
USA #3
its not free but if you can scrounge up
20-30 bucks a month you should try here...

http://www.betterbox.net/accounts/index.html

i've heard good things about their service.
also... i plan on doing any major coding before
putting mine out to public eye, because i can't
get on to any account to fix it if there is
any kind of major problems....

hope that helps a little
#4
Yeah it does.
Well i found another site and was wondering how do i get it to work of the site. I most likly have to upload everything and then some how get the server to run it?

And how do you change the part before the login? where it says:


Smaug (then piscture)


(then lists coders)


If you want to start a new character type new:
login name:
Password:

^thats what i want to change^
USA #5
whats cool with betterbox is with an extra $10 bucks
with the first payment they actually help you set it
up and get it all running... which is pretty sweet..

and as far as editing the title screen what nick said
is correct, you would just go into help.are in the
area folder and do a find for greeting....
#6
Thanks!
Now all i have to do is set it up on the site.
I know i upload everything, then take the name of the site(i think) then type in port number.

Just a question, since i've seen this done, how could i get it to open in a java client, or should i just ask a web master who has one?


If you ever need a person to beta test an area editor or mud server, just ask me.
USA #7
in order to get it running from a site you
would need to have a shell to connect to to
start the mud whenever it crashes or has problems...
thats why the mud hostings have to have you pay
for their services... just going and putting
your mud on geocities more than likely wouldn't
work because if i'm correct they don't have shell
accounts for you to get into... but if they do
more power to you...

and for the java... no clue, do like you said...
#8
Oh yeah, stupid me forgot to ask.


How do you get a pipe to hold more?
How does the command cook work (can't get it to)?

what do these mean under diety

if i wanted to make a diety only
a certian class can join...say rangers.
what would i need to edit.

and what does everything mean below.
~
Alignment 0
Worshippers 1673
Flee -2
Flee_npcrace 0
Flee_npcfoe 0
Kill 10
Kill_npcrace 0
Kill_npcfoe 20
Kill_magic 1
Sac 2
Bury_corpse 0
Aid_spell 1
Aid 3
Steal 0
Backstab 0
Die -125
Die_npcrace 0
Die_npcfoe -65
Spell_aid 1
Dig_corpse -6
Scorpse 1425
Savatar 700
Sdeityobj 750
Srecall 900
Race -1
Class 4
Element 0
Sex -1
Affected 0
Npcrace 0
Npcfoe 90
Suscept 0
Race2 -1
Susceptnum 0
Elementnum 0
Affectednum 0
Objstat 4
End


sorry about all the questions
but i always want to know more :)
USA #9
don't know... i didn't bother screwing around with
deities... i'm more of a rom code guy now...

i'd wait and see if nick has any input on that...
#10
k, i guess i'll mess around with a new one until i figure it out
Australia Forum Administrator #11
You are taking me well out of my area of expertise here. :)

I ported the C code from Unix to Windows, however in the process I only really needed to change the TCP/IP code, it wasn't necessary to understand every last line of code.

I have no idea what all those fields mean in the deity file. You could post such a question onto another forum (if you can find one) which handles general SMAUG questions, alternatively browse through the source code and see what affect each of those keywords seems to have.

If you find out, please post the answer here for future reference.
#12
At least i'm asking challanging questions. I found a doc on it, part of the smaug download, and it lists what the main ones mean. But still how do you get the stupid cook command to work?? i have a fire and have food, but it won't cook.
USA #13
Just forget it and code a microwave man! :)
But like I said... I'm not really a smaug man,
i'm just trying to get a working swr for my
friend...

Australia Forum Administrator #14
You can usually work there things out by looking at the source.

Quote:

"Use the Source, Luke!"


Even if you are not an expert in reading C, you can usually get the gist by browsing the source code.

Most of the operations in SMAUG are in the source preceded by the word "do_", therefore I looked for a function called "do_cook".

Inside do_cook (in skills.c) I found what looked relevant, namely:



  if ( food->item_type != ITEM_COOK )
    {
    send_to_char("How can you cook that?\n\r", ch );
    return;
    }



It seems you need to cook things which are marked as item type "ITEM_COOK".

Now to get cooking to work I need to create such an item, so I used the Area Editor, but couldn't find a "cook" item type. OK, time to open the editor configuration file, and compare the item types to the ones listed in the SMAUG mud.h file...



/*
* Item types.
* Used in #OBJECTS.
*/
typedef enum
{
ITEM_NONE, ITEM_LIGHT, ITEM_SCROLL, ITEM_WAND, ITEM_STAFF, ITEM_WEAPON,
ITEM_FIREWEAPON, ITEM_MISSILE, ITEM_TREASURE, ITEM_ARMOR, ITEM_POTION,
ITEM_WORN, ITEM_FURNITURE, ITEM_TRASH, ITEM_OLDTRAP, ITEM_CONTAINER,
ITEM_NOTE, ITEM_DRINK_CON, ITEM_KEY, ITEM_FOOD, ITEM_MONEY, ITEM_PEN,
ITEM_BOAT, ITEM_CORPSE_NPC, ITEM_CORPSE_PC, ITEM_FOUNTAIN, ITEM_PILL,
ITEM_BLOOD, ITEM_BLOODSTAIN, ITEM_SCRAPS, ITEM_PIPE, ITEM_HERB_CON,
ITEM_HERB, ITEM_INCENSE, ITEM_FIRE, ITEM_BOOK, ITEM_SWITCH, ITEM_LEVER,
ITEM_PULLCHAIN, ITEM_BUTTON, ITEM_DIAL, ITEM_RUNE, ITEM_RUNEPOUCH,
ITEM_MATCH, ITEM_TRAP, ITEM_MAP, ITEM_PORTAL, ITEM_PAPER,
ITEM_TINDER, ITEM_LOCKPICK, ITEM_SPIKE, ITEM_DISEASE, ITEM_OIL, ITEM_FUEL,
ITEM_EMPTY1, ITEM_EMPTY2, ITEM_MISSILE_WEAPON, ITEM_PROJECTILE, ITEM_QUIVER,
ITEM_SHOVEL, ITEM_SALVE, ITEM_COOK, ITEM_KEYRING, ITEM_ODOR
} item_types;



Now, looking at the relevant section in the area editor configuration file:



#ITEM

(none)
Light
Scroll
Wand
Staff
Weapon
Fireweapon
Missile
Treasure
Armor
Potion
Worn
Furniture
Trash
Oldtrap
Container
Note
Drinkcon
Key
Food
Money
Pen
Boat
Corpse
Corpse_pc
Fountain
Pill
Blood
Bloodstain
Scraps
Pipe
Herbcon
Herb
Incense
Fire
Book
Switch
Lever
Pullchain
Button
Dial
Rune
Runepouch
Match
Trap
Map
Portal
Paper
Tinder
Lockpick
Spike
Disease
Oil
Fuel
Shortbow
Longbow
Crossbow
Projectile
Quiver
Shovel
Salve
End



My item type list ended at "Salve", but I could see from the mud.h file that there were three new ones, cook, keyring, and odor. Thus, they needed to be added to the end of the list, between the word "Salve" and "End".



Cook
Keyring
Odor



After reprocessing the configuration file in the area editor (by opening the preferences screen and then clicking OK) I was able to create a piece of meat of type "cook".

I put that into an area, along with a fire of type "fire", and restarted SMAUG.

Now I was able to cook something, but got this message:


A piece of steak catches on fire burning it to a crisp!


It seems my skill level wasn't high enough.

By giving myself the "cook" skill, like this:


sset self cook 100


I was able to cook the meat...


You roast a piece of steak.

Amended on Sun 01 Apr 2001 11:36 PM by Nick Gammon
#15
Okay, i get it. And found where it is....
but i don't have registered version of
area editor..is there a possible way to
change it in the mud, editing an object
to be cookable in game?
Australia Forum Administrator #16
Don't have a registered copy eh? Hmmm - well, it's very useful to own one. :)

Anyway, it seems the relevant type is 61, here is an excerpt from my area file for my piece of steak.

Just use Notepad or a similar editor to edit the area file, find the object in question, and change the number after the fourth tilde (~) to be 61, as in the example:


#21012
meat~
a piece of steak~
There is a nice piece of steak here.~
~
61 0 16385 0
0 0 0 0
1 0 0
Amended on Tue 03 Apr 2001 05:58 PM by Nick Gammon
#17
thanks :) i found the config file too.



This sites the best
#18
All of this can be done online in smaug1.4a (and most if before that).
For item types cook it is as simple as:

oset <item> type cook

For example:
oset steak type cook


For deitys checkout the smaughowto I wrote, I believe I did a section on deitys, and as always you can set those online too via the setdiety command.

(http://www.cs.utk.edu/~london/smaug/ for the howto)

have fun.