Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Thirst/hunger is gone
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Fri 20 Feb 2004 04:04 AM (UTC) |
Message
| it hasn't worked since i added new races and classes
i have tried changing hunger_mod 0, and thirst_mod 0, but no success
any ideas? |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #1 on Sat 21 Feb 2004 11:40 PM (UTC) |
Message
| hello
somebody help! |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #2 on Sun 22 Feb 2004 03:52 AM (UTC) |
Message
| no one responded because you didn't really supply enough information. What did you change? What have you done to try to fix it? Are there error messages? We need these things to help you. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #3 on Sun 22 Feb 2004 04:03 AM (UTC) |
Message
| no error messages, just your hungry and your thirsty never appears
and shops cant sell anything edible
i dont get it
i only added new races and classes |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #4 on Sun 22 Feb 2004 04:12 AM (UTC) |
Message
| That does make no sense at all. I would recommend reading Nick's GDB guide, adding a break point in do_list, and see why its not being displayed. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #5 on Sun 22 Feb 2004 09:49 AM (UTC) Amended on Sun 22 Feb 2004 09:50 AM (UTC) by Robert Powell
|
Message
| I havent gotten to making races and stuff yet but dont the race files have a hunger modifyer or something like that? if so you might have left it out and its defaulted to never hungry at all. Take a look at a standard race file and check those values. |
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #6 on Sun 22 Feb 2004 02:50 PM (UTC) |
Message
| as in my original message, i have tried changing hunger_mod 0, and thirst_mod 0, but no success |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #7 on Sun 22 Feb 2004 05:09 PM (UTC) |
Message
| perhaps try setting the modifiers at something other than 0? I don't know how smaug hunger works, but it may be that at 0 modifier, they don't need food. You can also check other races to confirm/disprove this idea. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #8 on Mon 23 Feb 2004 01:14 AM (UTC) |
Message
| i ran default smaug 1.4a again, and notice that thirst/hunger doesn't work with it either
what's the deal?
smaug had thirst/hunger didn't it? |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #9 on Mon 23 Feb 2004 02:32 AM (UTC) |
Message
| even on ROM, thirst and hunger arent working.. |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #10 on Mon 23 Feb 2004 03:26 AM (UTC) |
Message
| Hang on, slow down. Thirst and hunger are standard in SMAUG. You need to think about what you are doing here. Are you playing an immortal? You probably are, as you are building, making shops and so on. Immortals don't get hungry or thirsty. They *are* immortal, after all. :)
Here is how to find out for sure ...
One of the messages you get when you are hungry is:
You are a mite peckish.
Do a search for "peckish" and you find it in one place, update.c around line 546.
Now edit that file, find that line, and scroll backwards to the start of the function ...
void gain_condition( CHAR_DATA *ch, int iCond, int value )
{
int condition;
ch_ret retcode = rNONE;
if ( value == 0 || IS_NPC(ch) || ch->level >= LEVEL_IMMORTAL || NOT_AUTHED(ch))
return;
Aha! The following do not get hungry, thirsty etc...
- NPCs (mobs)
- Immortals
- Players who have not yet been authorised (there is no food for them to buy).
I suggest you make a "test" character that is not an immortal for testing things like this.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #11 on Mon 23 Feb 2004 05:07 AM (UTC) |
Message
| i think this is the solution!
pray thanks to Nick Gammon!!!!
it was AUTHORIZATION!
i dont know what it is, BUt thats why people cant buy food items, etc!!
how do i auth people?
and can i make it automatic |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #12 on Mon 23 Feb 2004 04:30 PM (UTC) |
Message
| ok i waitforauth was already at 0
so im trying to fix up the part of the code where it decides to place a player in school or start
so i am going to change
SET_BIT(ch->pcdata->flags, PCFLAG_UNAUTHED);
to
REMOVE_BIT(ch->pcdata->flags, PCFLAG_UNAUTHED);
and see if that works |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #13 on Mon 23 Feb 2004 04:51 PM (UTC) |
Message
| ive turned the waitforauth to 0
ive changed SET_BIT (auths) to REMOVE_BIT (auths)
ive commented out all the do_ commands that had if Notauth then
and still, my players cant get hungry/thirsty or buy food!
im gonna go insane |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
Posted by
| Taebryn
(58 posts) Bio
|
Date
| Reply #14 on Mon 23 Feb 2004 06:16 PM (UTC) |
Message
| ok well i am now seeing hunger messages
i just need to figure out why mobs cant sell edibles or drinkables |
Arthurian MUD in development.
Reign of Arthur
http://arthur.vze.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
51,513 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top