Quantcast

Jump to content

» «
Photo

[REL] GTAIV Hunger Mod

89 replies to this topic
CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#1

Posted 07 March 2009 - 09:57 AM Edited by CaptainDingo, 20 March 2009 - 08:35 PM.

It's finally done!

First off, big props go to Gangsta Killa whose beginner guide on coding inspired me to even do this in the first place (I'm kind of a fast learner, my first script mod just hours later lol.gif ). Also, thanks to HazardX for turning on the lightbulb over my head and giving me a clue on where to gather the resources I needed to make this mod work the way I wanted.

Thanks also to Vetra for helping me with his big huge daunting string replacement thingy! Even though I just spelled his name wrong in my .txt file, he'll find it in his heart to forgive me! moto_whistle.gif

This mod requires HazardX's .NET Scripthook.

The next major version is complete!
[Download Now!]

Then Click Here to download the quick fix to the "raising MAXHUNGER above 1,000 starts you out hungry" problem. Sorry, I'm busy right now so I don't have time to re-zip the archive and announce it as a new version or anything.


CHANGES
  • The speed at which you get hungry and the money it costs to deliver food to your refrigerators is edited via the .ini file
  • Yes, that's right, dial 555-FOOD and all your safehouses will be stocked with food for a fee!
  • Take food out of the refrigerators (or the cabinets for the west safehouse) by using the ; key (currently not configurable, sorry!)
  • Carry one food item with you at a time; it acts like a mobile hunger/health reliever when you eat it by pressing the ' key (currently not configurable, maybe next version!)
  • Eat it in the car!
  • New status bar replaces the barrage of messages about your state of hunger! As it widens, your hunger grows!
  • Just as before, you can go to Cluckin' Bell, Burger Shot, any nut/hotdog/Sprunk stand and any Sprunk machine to relieve your hunger, and you'll slowly starve to death when your hunger reaches its maximum!
HOW TO CHANGE THE .INI

The things under [SETTINGS] are the two things that have designed to be changed. MAXHUNGER is how many units of hunger must be burned through before you begin starving. So if you want it to take LONGER to get hungry, INCREASE this value. The default is 1,000 and is personally my favorite.

ORDERFOODCOST is the dollar amount required to stock your refrigerators. The default is $200.

Please do NOT change anything under [DONOTTOUCH] or the script may fail.

KNOWN ISSUES
None, except one graphical flaw, not a functional flaw (it doesn't affect the way the mod works):
  • Eating food taken out of the refrigerator while you're crouched makes Niko do some... interesting levitating trick. biggrin.gif If any of you scripters out there know how to design an if condition to work around whether Niko is crouching or not, send me a PM so I can fix it in the next version!
Possible goals/ideas for future versions:
* Implement a water bottle Niko carries with him at all times so he can regain his ability to sprint by taking a gulp?
* Dial a number to have a delivery guy deliver takeout to your location? DONE icon14.gif (Sort of, it took on a different incarnation)
* Be able to eat food from the refrigerators of your safehouses? DONE icon14.gif
* Other detriments to being extremely hungry, like poorer accuracy?
* A hunger status bar in place of messages? DONE icon14.gif
* Maybe even some sort of a buff for being fed? turn.gif

loczek47
  • loczek47

    They call me "Random Funny Guy".

  • BUSTED!
  • Joined: 22 May 2008

#2

Posted 07 March 2009 - 10:00 AM

Hehe, Awesome job on it! Downloadin' now.
EDIT: lol, didn't noticed link isn't available

smochina4000
  • smochina4000

    Player Hater

  • Members
  • Joined: 12 May 2008

#3

Posted 07 March 2009 - 11:29 AM

Good mod! smile.gif Can be added something like training? Just like "GTA S-A"...

a-k-t-w
  • a-k-t-w

    Wannabe GTA IV Dev

  • Members
  • Joined: 30 Sep 2008

#4

Posted 07 March 2009 - 03:44 PM Edited by a-k-t-w, 07 March 2009 - 03:49 PM.

QUOTE (smochina4000 @ Mar 7 2009, 20:29)
Good mod! smile.gif Can be added something like training? Just like "GTA S-A"...

No that isn't possible yet. (and I have high hopes that it won't ever be)

Can you upload it now? user posted image

Dvt-MedShot
  • Dvt-MedShot

    Mack Pimp

  • Members
  • Joined: 02 May 2007

#5

Posted 07 March 2009 - 04:16 PM

QUOTE (a-k-t-w @ Mar 7 2009, 15:44)
QUOTE (smochina4000 @ Mar 7 2009, 20:29)
Good mod! smile.gif Can be added something like training? Just like "GTA S-A"...

No that isn't possible yet. (and I have high hopes that it won't ever be)

Can you upload it now? user posted image

There are gym training models in \Grand Theft Auto IV\pc\data\maps\props\commercial\beauty.img:

user posted image
user posted image
user posted image
user posted image
user posted image

And there are files of barbers and jewelry...

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#6

Posted 07 March 2009 - 04:58 PM

Link's up! turn.gif

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#7

Posted 07 March 2009 - 06:46 PM

nice work... icon14.gif

reminded me of Oblivion for some reason turn.gif

smochina4000
  • smochina4000

    Player Hater

  • Members
  • Joined: 12 May 2008

#8

Posted 07 March 2009 - 10:18 PM

Can be done? smile.gif

Nikkola bellic,Belgrade,Serbia
  • Nikkola bellic,Belgrade,Serbia

    Peon

  • Members
  • Joined: 25 Feb 2009

#9

Posted 07 March 2009 - 10:42 PM

QUOTE (HippieCommunist @ Mar 7 2009, 18:46)
nice work... icon14.gif

reminded me of Oblivion for some reason turn.gif

lol happy.gif lol.gif lol.gif

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#10

Posted 07 March 2009 - 11:07 PM Edited by CaptainDingo, 07 March 2009 - 11:18 PM.

QUOTE (smochina4000 @ Mar 7 2009, 22:18)
Can be done? smile.gif

Sorry man, I don't think I'll be doing anything like exercise or training with this mod (but who knows... maybe...).

However, I already have a new feature that's about 75% done for the next release and I wanted to tell you guys about it.

In the next version you'll be able to go to the refrigerator of any safehouse and bring along one food item with you that can be eaten anywhere, anytime. turn.gif Across all safehouses, you can only access up to ~10 or so food items in this way before they become empty. When the refrigerators run out, you dial a grocery delivery service (Unsure of the phone number yet) and all your safehouses will be restocked within the next minute or so for a fee. You'll pay a little extra for food in this manner, but you'll basically have one portable food source that you can take with you into a mission or wherever to heal with and to make sure you don't starve (because I'm aware many missions are long and you might not have an opportunity to stop and eat somewhere turn.gif ).

Oh, and you can eat it in your car if you want!

So look forward to that! colgate.gif

smochina4000
  • smochina4000

    Player Hater

  • Members
  • Joined: 12 May 2008

#11

Posted 07 March 2009 - 11:12 PM

Wow! Verry nice add-on... smile.gif

TheRealPcGamer
  • TheRealPcGamer

    The Master of PC Games

  • Members
  • Joined: 22 Aug 2008
  • United-States

#12

Posted 08 March 2009 - 07:53 AM

Great for the upcoming updates, because Niko always get starving just less than 10 minutes IRL

Fischkopf
  • Fischkopf

    Admin

  • Members
  • Joined: 19 Jan 2009

#13

Posted 08 March 2009 - 10:01 AM

Can you add the feature to get fat? blush.gif

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#14

Posted 08 March 2009 - 11:26 AM Edited by CaptainDingo, 08 March 2009 - 11:29 AM.

QUOTE (TheRealPcGamer @ Mar 8 2009, 07:53)
Great for the upcoming updates, because Niko always get starving just less than 10 minutes IRL

I know, the speed at which Niko goes hungry is maybe a bit extreme right now when trying to keep story gameplay in mind. I personally play the game in short bursts on a complete save but I'm going to start a new game and play through the story again and see if I should make it take a bit longer for him to go hungry for all of you still doing missions or who just like playing new games.

However, the good news is the new feature is 100% implemented and works very well! After I replay some of the story and balance the numbers a bit I will upload the new version.

To be exact, the current time it takes to go from full to starving is 16.6 minutes. I may round that off to 20 minutes even, and with the new addition of one portable food source, you should notice greater eating options and less chance of starving on a long mission. And it's even better since you can eat it in the car, so you don't have to disturb what you're currently doing. turn.gif

QUOTE
Can you add the feature to get fat?


Niko already looks a little soggy around the edges though, doesn't he? lol.gif

Unfortunately I can't do this until we can alter models, and ultimately I don't know if I would add this feature even if I could, since it's more of a vanity thing and would require a ton of work.

TheRealPcGamer
  • TheRealPcGamer

    The Master of PC Games

  • Members
  • Joined: 22 Aug 2008
  • United-States

#15

Posted 08 March 2009 - 11:31 AM

CaptainDingo, how about you included an addition file .INI so we can edit as we like how much time from full to starving.

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#16

Posted 08 March 2009 - 11:33 AM

Because I don't know how. bored.gif lol

I think I saw Gangsta Killa post somewhere in a tutorial how to do it though, so I'll give it a try?

TheRealPcGamer
  • TheRealPcGamer

    The Master of PC Games

  • Members
  • Joined: 22 Aug 2008
  • United-States

#17

Posted 08 March 2009 - 11:39 AM

QUOTE (CaptainDingo @ Mar 8 2009, 18:33)
Because I don't know how. bored.gif lol

I think I saw Gangsta Killa post somewhere in a tutorial how to do it though, so I'll give it a try?

Great. Try it. I can't wait for the new update inlove.gif

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#18

Posted 08 March 2009 - 04:06 PM

Next version might not be for a little bit. sad.gif I'm currently undergoing some serious coaching to figure out writing to my .ini (which I need to do so the script can remember how much food you have in your safehouses).

Writing one little integer to a file may turn out to be more work than the entire mod itself. cryani.gif

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#19

Posted 08 March 2009 - 11:13 PM

New version is out! Gobble it up, children! lol.gif

smochina4000
  • smochina4000

    Player Hater

  • Members
  • Joined: 12 May 2008

#20

Posted 09 March 2009 - 04:02 PM

Wow ! Nice! smile.gif

polodave
  • polodave

    Player Hater

  • Members
  • Joined: 10 Dec 2008

#21

Posted 09 March 2009 - 08:26 PM

Wow nice !! thank you for this awesome modification !! biggrin.gif biggrin.gif

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#22

Posted 09 March 2009 - 08:53 PM

No problem. colgate.gif

It's feedback that keeps me wanting to make more stuff. lol.gif

TheRealPcGamer
  • TheRealPcGamer

    The Master of PC Games

  • Members
  • Joined: 22 Aug 2008
  • United-States

#23

Posted 10 March 2009 - 09:03 AM

Ow CaptainDingo, does the bar can be toggled appear/disappear?

Since the bar is a bit annoying when we want to use the phone smile.gif

gta-fixed
  • gta-fixed

    LOL

  • Members
  • Joined: 10 Dec 2008

#24

Posted 10 March 2009 - 09:09 AM

awesome mod! biggrin.gif

Rawmeat
  • Rawmeat

    Snitch

  • Members
  • Joined: 26 Oct 2004

#25

Posted 10 March 2009 - 01:21 PM

Hey!

I can't get this to work, when i call for food it says I was billed 200$. Then it says "error in script"

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#26

Posted 10 March 2009 - 10:10 PM

Are you sure you put the .ini file in the same folder as the .dll?

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#27

Posted 10 March 2009 - 10:12 PM

QUOTE (TheRealPcGamer @ Mar 10 2009, 09:03)
Ow CaptainDingo, does the bar can be toggled appear/disappear?

Since the bar is a bit annoying when we want to use the phone smile.gif

Sorry, I'll try to let you do that in the next version. :x

But, it doesn't obscure the phone (for me) when you're actually dialing a number, since the phone raises above the bar.

Rawmeat
  • Rawmeat

    Snitch

  • Members
  • Joined: 26 Oct 2004

#28

Posted 10 March 2009 - 11:06 PM

QUOTE (CaptainDingo @ Mar 10 2009, 22:10)
Are you sure you put the .ini file in the same folder as the .dll?

Yeah, when i open console it says something about unauthorized access amongst other things. Don't know how to copy the text from console else i would post it.

CaptainDingo
  • CaptainDingo

    Not actually a captain, or a dingo.

  • Members
  • Joined: 18 Jan 2009

#29

Posted 11 March 2009 - 01:59 AM

Kind of weird. tounge.gif

Right-click on both the mod and the .ini and make sure they're not read-only.

Rawmeat
  • Rawmeat

    Snitch

  • Members
  • Joined: 26 Oct 2004

#30

Posted 11 March 2009 - 09:04 PM

Argh! I hate vista sometimes... I ran GTAIV as administrator then it worked. Well good thing cause it's a cool mod. Looking forward to your drug mod smile.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users