[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Thirst/hunger is gone

Thirst/hunger is gone

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1 2  

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by Robert Powell   Australia  (367 posts)  [Biography] 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.
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] top

Posted by Taebryn   (58 posts)  [Biography] 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
[Go to top] 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.


43,498 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]