ViperZ8 / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 1 forks source link

Adding custom food #919

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the problem?
Adding custom food to hungermod

What steps will reproduce the problem?
Sorry I don't get this question.

Do you have any errors? serverside or clientside? If you do, which ones?
No errors

Are you using the downloaded version or an SVN revision (if SVN, which
revision number)?
SVN

Please provide any additional information below.

I've edited the following txt files hungermod.lua and cl_init.lua 
(DarkRP/gamemode/modules/HungerMod)are there any other files that I need to 
edit? or have I done something wrong? Also I removed;

AddFoodItem("banana", "models/props/cs_italy/bananna.mdl", 10)
AddFoodItem("bananabunch", "models/props/cs_italy/bananna_bunch.mdl", 20)
AddFoodItem("melon", "models/props_junk/watermelon01.mdl", 20)
AddFoodItem("glassbottle", "models/props_junk/GlassBottle01a.mdl", 20)
AddFoodItem("popcan", "models/props_junk/PopCan01a.mdl", 5)
AddFoodItem("plasticbottle", "models/props_junk/garbage_plasticbottle003a.mdl", 
15)
AddFoodItem("milk", "models/props_junk/garbage_milkcarton002a.mdl", 20)
AddFoodItem("bottle1", "models/props_junk/garbage_glassbottle001a.mdl", 10)
AddFoodItem("bottle2", "models/props_junk/garbage_glassbottle002a.mdl", 10)
AddFoodItem("bottle3", "models/props_junk/garbage_glassbottle003a.mdl", 10)
AddFoodItem("orange", "models/props/cs_italy/orange.mdl", 20)

And replaced it with

AddFoodItem("Lemonade", "models/props_junk/GlassBottle01a.mdl", 20)
AddFoodItem("Soft Drink", "models/props_junk/PopCan01a.mdl", 15)
AddFoodItem("Spaghetti", "models/bowlofspaghetti01/bowlofspaghetti01.mdl", 60)
AddFoodItem("Spaghetti and Meatballs", 
"models/spaghettiandmeatballs01/spaghettiandmeatballs01.mdl", 65)
AddFoodItem("Alfredo", "models/alfredo01/alfredo01.mdl", 40)
AddFoodItem("Mac and Cheese", "models/macncheese01/macncheese01.mdl", 35)
AddFoodItem("Penne Pasta", "models/pennepasta01/pennepasta01.mdl", 50)

I did this to both files. They are the only changes.

Original issue reported on code.google.com by snoopy12...@gmail.com on 8 Aug 2012 at 12:38

GoogleCodeExporter commented 9 years ago
Thanks for telling me about what you've done. Since you haven't reported a 
problem or asked a question, I'll get you a nice problem: I don't give a fuck 
about anyone's edits. This isn't a blog.

Original comment by fpeijnen...@gmail.com on 8 Aug 2012 at 1:47

GoogleCodeExporter commented 9 years ago
Well if you hadn't changed the gamemode so much then there would be no 
complaints because we could refer to the old darkrp wiki. I also don't see why 
you are swearing seems quite childish. If your going to get amped up about a 
problem then I suggest that you don't reply to them. That would seem to be the 
smart Idea.

Is there a darkrp blog, so I can go there for help (I don't like dealing with 
rude people)?

The question was am I editing the right files or are there more (If there are 
more can you please state)?

Original comment by snoopy12...@gmail.com on 9 Aug 2012 at 5:09

GoogleCodeExporter commented 9 years ago
I got angry because as a problem you said you did something. You didn't say it 
didn't work, you didn't say what you're expecting to happen and what you really 
see and you're basically just telling me what you've done with your DarkRP. so 
here it's my question to you:

Have you even tried to see if it works? 

Original comment by fpeijnen...@gmail.com on 9 Aug 2012 at 6:42

GoogleCodeExporter commented 9 years ago
Yes I have tried.
I want it to appear in the F4 menu and for it to be spawnable.
Sorry for not making it clear.

Original comment by snoopy12...@gmail.com on 9 Aug 2012 at 6:45

GoogleCodeExporter commented 9 years ago
If you've done that in both gamemodes/modules/Hungermod/cl_init.lua (on top) 
AND gamemodes/modules/Hungermod/sv_HungerMod.lua (line 48 and on), it should 
work. I can't see what you did wrong, sorry.

Original comment by fpeijnen...@gmail.com on 9 Aug 2012 at 9:30

GoogleCodeExporter commented 9 years ago
Ok thanks for your help, and sorry im difficult.

Original comment by snoopy12...@gmail.com on 9 Aug 2012 at 9:57

GoogleCodeExporter commented 9 years ago
Hmm appears there is an error. It only shows when joining the server, perhaps 
this could solve my problem. Only If I knew what it means.

ConVarRef hungermod doesn't point to an existing ConVar
SetConVar: No such cvar ( hungermod set to 0), skipping
ConVarRef hungerspeed doesn't point to an existing ConVar
SetConVar: No such cvar ( hungerspeed set to 2), skipping
ConVarRef foodcost doesn't point to an existing ConVar
SetConVar: No such cvar ( foodcost set to 15), skipping
ConVarRef starverate doesn't point to an existing ConVar
SetConVar: No such cvar ( starverate set to 3), skipping
ConVarRef hungermod doesn't point to an existing ConVar
SetConVar: No such cvar ( hungermod set to 1), skipping
ConVarRef hungerspeed doesn't point to an existing ConVar
SetConVar: No such cvar ( hungerspeed set to 0.3), skipping
ConVarRef foodcost doesn't point to an existing ConVar
SetConVar: No such cvar ( foodcost set to 20), skipping
ConVarRef starverate doesn't point to an existing ConVar
SetConVar: No such cvar ( starverate set to 2), skipping

Original comment by snoopy12...@gmail.com on 9 Aug 2012 at 5:49

GoogleCodeExporter commented 9 years ago
those are normal, sadly.

Original comment by fpeijnen...@gmail.com on 9 Aug 2012 at 8:41

GoogleCodeExporter commented 9 years ago
damn, this makes me feel stupid. However this wasn't appearing in my console 
when it was working.

Original comment by snoopy12...@gmail.com on 10 Aug 2012 at 4:21

GoogleCodeExporter commented 9 years ago
Ok this is wierd, now its showing up for the cook class however the food isn't 
spawnable. How would I fix this?
P.S I do have a coder but he is stumped aswell.
Thankyou for all your help

Original comment by snoopy12...@gmail.com on 10 Aug 2012 at 9:14

GoogleCodeExporter commented 9 years ago
I really don't know.

Original comment by fpeijnen...@gmail.com on 10 Aug 2012 at 9:18

GoogleCodeExporter commented 9 years ago
Well I give up, I guess I need to reinstall hungermod. What files are required?

Original comment by snoopy12...@gmail.com on 10 Aug 2012 at 10:08

GoogleCodeExporter commented 9 years ago
All the files that are in the svn repository.

Original comment by fpeijnen...@gmail.com on 10 Aug 2012 at 12:24

GoogleCodeExporter commented 9 years ago
All the files that are in the svn repository.

Original comment by fpeijnen...@gmail.com on 10 Aug 2012 at 12:24

GoogleCodeExporter commented 9 years ago
I'm aware of that, but what are the files called?

Original comment by snoopy12...@gmail.com on 10 Aug 2012 at 1:23

GoogleCodeExporter commented 9 years ago
http://darkrp.googlecode.com/svn/trunk/gamemode/modules/

You can see for yourself.

Original comment by fpeijnen...@gmail.com on 10 Aug 2012 at 7:38

GoogleCodeExporter commented 9 years ago
But I'm so noob, lol.
Ok thanks I check if this works :)

Original comment by snoopy12...@gmail.com on 11 Aug 2012 at 7:36