• Zombie Overrun
    26 replies, posted
Im making my own gamemode but I still have a few problems. So I have a few questions: 1. How do I import like a zombie model I downloaded (And how can I give it new Anim and Sounds) 2. How do I have to Import textures? I have a skybox texture from the Valve site buy cant import it. 3. How do I make a spawner for zombies 4. Where can I find a good tutorial about lua scripting. Because I dont know how that works. 5. How do I strip my weapons, I want to start 6. can't import weapons because everthing I downloaded didnt have the lua/autorun/server file So how do I import weapons? Thanks for your time
Learning lua will take a few months stop getting ahead of your self [url]www.lua.org/pil/[/url]
1&2. Not sure what you mean. 3. Use [url=http://wiki.garrysmod.com/?title=Ents.Create]ents.Create[/url] in a [url=http://wiki.garrysmod.com/?title=Entity]SENT[/url]. 4. Completely read and understand [url]www.lua.org/pil/[/url] then do starter tutorials from [url]http://wiki.garrysmod.com/?title=Lua_Tutorial_Series[/url] then try to start scripting actual stuff, using examples, and the more advanced lua tutorials to help you. [editline]26th April 2011[/editline] 5. All you need to do is write [lua] function GM:PlayerLoadOut(ply) end [/lua] in init.lua. 6. What?
[QUOTE=Martin575;29441587]Im making my own gamemode but I still have a few problems. So I have a few questions: 1. How do I import like a zombie model I downloaded (And how can I give it new Anim and Sounds) 2. How do I have to Import textures? I have a skybox texture from the Valve site buy cant import it. 3. How do I make a spawner for zombies 4. Where can I find a good tutorial about lua scripting. Because I dont know how that works. 5. How do I strip my weapons, I want to start 6. can't import weapons because everthing I downloaded didnt have the lua/autorun/server file So how do I import weapons? Thanks for your time[/QUOTE] 1. [url]http://wiki.garrysmod.com/?title=Resource.AddFile[/url] 2. [url]http://wiki.garrysmod.com/?title=Resource.AddFile[/url] 3. [url]http://wiki.garrysmod.com/?title=Ents[/url] 4. [url]http://wiki.garrysmod.com/?title=Lua_Tutorial_Series[/url] 5. [url]http://wiki.garrysmod.com/?title=Player.StripWeapons[/url] 6. [url]http://wiki.garrysmod.com/?title=Resource.AddFile[/url] As for King Flawless, hes obviously not a programmer. Ignore him there is no set time limit to when you learn something. It doesn't have to take months if you work at it. Time spend != work done. Make a big list of small things. I.E Add swep. Make swep shoot. Make swep have effect. Rather than Make laser gun. If the task are small and approachable you will do fine.
Post a list of links the OP wont have any clue what do with are just going to lead to spam threads and I really don't want another idiot spamming this section asking "questions" where he just wants the code handed to him on a plate.
[QUOTE=King Flawless;29444807]Post a list of links the OP wont have any clue what do with are just going to lead to spam threads and I really don't want another idiot spamming this section asking "questions" where he just wants the code handed to him on a plate.[/QUOTE] [QUOTE=King Flawless;29444807]I really don't want another idiot spamming this section[/QUOTE] Anyone else see the irony. And you seem to think you are some one special but I fail to see that. Hes looking for help and has an idea. that's step one if he takes his time and works at it hell do just fine. Don't be discouraging cause it makes you feel better.
[QUOTE=King Flawless;29444807]Post a list of links the OP wont have any clue what do with are just going to lead to spam threads and I really don't want another idiot spamming this section asking "questions" where he just wants the code handed to him on a plate.[/QUOTE] When I first started I spammed this section and it did help, its good to ask questions and its his choice if he wants to try something that may be difficult, he can learn as he goes. This may help others who were thinking the same thing. If you really dont like his questions dont reply
It seems the idiots are over powering this section, Martin575 is now doomed to become one of them.
[QUOTE=King Flawless;29445170]It seems the idiots are over powering this section, Martin575 is now doomed to become one of them.[/QUOTE] you are one of the biggest fags i have ever seen just give the guy a break all he wants is some simple advise and you have to give him some of your nerd rage go help him or fuck off [highlight](User was banned for this post ("Flaming." - Seiteki))[/highlight]
I cant breath I loled so hard.
[QUOTE=jack ralph;29445573]you are one of the biggest fags i have ever seen just give the guy a break all he wants is some simple advise and you have to give him some of your nerd rage go help him or fuck off[/QUOTE] well hello there, you seem to be new here.
[QUOTE=kaukassus;29445769]well hello there, you seem to be new here.[/QUOTE] Fresh meat, Just the way I like it
[QUOTE=King Flawless;29445808]Fresh meat, Just the way I like it[/QUOTE] Your a creep.
[QUOTE=faceguydb;29444958]Anyone else see the irony. And you seem to think you are some one special but I fail to see that. Hes looking for help and has an idea. that's step one if he takes his time and works at it hell do just fine. Don't be discouraging cause it makes you feel better.[/QUOTE] You're a terrible person. Giving such false advice to someone who comes here with absolutely no idea about how to code in Lua is a terrible thing to do and you should feel terrible for doing that. You're even trying to turn him against people who are actually giving real advice, while giving him obscure irrelevant links to confuse him even more, why the hell are you even doing that man? The real advice here is: forget about the gamemode. A gamemode is like the last thing a Lua beginner should be doing as his first project. I guarantee that you will give up because it will be too hard for you. Seriously. Zombie gamemodes aren't a trivial thing to do, and they aren't even that original, there are tons of those around. Learning Lua first will certainly take you a while, possibly a few months if you're not familiar with programming at all, but in the end you will gain a lot of time because there are many concepts you will understand really quickly when applying your knowledge to Garry's Mod scripting. What you're basically doing here is improvising the construction of a skyscraper, with improvised materials and an improvised structure. It's just a terrible idea because it will eventually fall apart and you will be disgusted of coding forever, I kid you not. You will gain an enormous amount of time if you start with solid foundations and a bunch of blueprints detailing exactly what you want to do and how you are going to do it. I strongly recommend [url]www.lua.org/pil[/url], it is a very well explained document (as opposed to the utter garbage you can find on the GMod wiki) that presents you with many practical aspects of Lua. It's not related to Garry's Mod at all, but you can't really do anything properly if you don't know the language in the first place. You can use the live demo ([url]http://www.lua.org/demo.html[/url]) to experiment with small scripts as well, nothing graphical, just displaying text. Once you feel at ease with the language, start working on small things such as weapons (but please avoid weapons that shoot bullets, they are not special, they are shit and boring) or tools if you feel like doing any. If you don't know how something is done, you can always ask here, or look into the GMod wiki, or even better, look for an addon that does something similiar and peek at its code. There's nothing wrong with it, it's actually strongly encouraged as long as you don't just copy-paste the code without understanding what it does. Then once you have all of that done (which should take you quite a while, but if you're doing it right you're going to have fun and won't even notice it) maybe you can get to work on a good gamemode. Just have enough motivation, never work on something if you have no idea about how you're going to do it, and everything should be ok, your skills will slowly but surely increase. Be patient and don't run before you know how to walk.
How is he a terrible person, most people in this topic have not helped, linking to the pil and telling them to read, that is not a answer to the questions asked if you have read any other of king flawless' posts all he seems to do it either post a link to the pil or down on people who may not know as much lua. At least faceguy has helped by posting links that are relevant and they help answer the question and giving a idea of how to solve the problem. Most of the pil is only useful if you have no experience in any programming language as it explains what strings and booleans are. There no need to re learn that. Everyone learns differently don't have ago at people for giving there advice, you can give yours but he may learn better by doing things with a more hands on and trial and error approach. [QUOTE]never work on something if you have no idea about how you're going to do it[/QUOTE] I don't feel this is completely true, in fact I think this is the best way to learn. If you reach a problem think about it and look around and other peoples code until you find a good solution on how to deal with the problem. If you try to learn everything about lua before you even try you will always find a problem you dont know how to solve, I learn as I do things. I find making a simple gamemode is the best way to learn as it incorporates all the aspects of gmod such as sweps and sents. Completing a gamemode will give you much more self-satisfaction then completing a swep and will give you a goal to work to. Along with the satifaction of completing the gamemode, you will also face much more challenges and finding solutions to these will give you much more experience and knowledge then a swep or and sent might. I am not saying you are wrong or that you are giving false advice all I am saying is that others may learn differently and that they can give there thoughts on how they learned to the recipient. [editline]26th April 2011[/editline] This is the type of thing king flawless posts [url]http://www.facepunch.com/threads/1037158-I-need-advice[/url] either he is trolling or he needs to get outside, either way please dont keep doing it on here
I will be bolder then sweeneypaul. [QUOTE]never work on something if you have no idea about how you're going to do it[/QUOTE] If you know how to do it you wont learn anything. You might learn with a text book or a pil file but i learned with a text editor and other peoples gamemodes. Looking at how they do things and figuring out how to solve my own issues with the concepts of how they solved more. Some people might buy and read a book on how a clock works some much rather take a clock and go at it with a screw driver. Neither way is wrong. How ever saying there is only one way to learn and one solution is wrong. You are wrong. [QUOTE]forget about the gamemode[/QUOTE] How does this help him create his gamemode? Not doing it is not a solution its just giving up. Don't be a pussy work at it. Break down every task and figure it out as you go. [QUOTE]If you don't know how something is done, you can always ask here, or look into the GMod wiki[/QUOTE] [QUOTE]utter garbage you can find on the GMod wiki[/QUOTE] Contradiction Much? As for King Flawless iv been trying to be nice to you but really dude. What have you created that makes you in the position to judge is people can complete a project or not? I haven't seen your lua contributions, so someone asking for a point in the right direction seems to gotten more done then you. Well I wont be responding tonight because I'm off the the gf's and I'm not going to be bothered with all this egotistical nonsense. I suggest you do the same flawless... oh wait.
I don't think he should forget about the gamemode. Gamemodes can be a really good way to learn but you'll have to realize that you most likely will either never finish it or no one will bother with it. Also don't take to big of a bite. Start off small, like figuring out the syntax of Lua for starters. Read the links that have been posted above and if you have any questions come back here. I also think that people should be a bit less harsh on him, he could have spammed his 6 questions into 6 different threads like i see some people doing.
[QUOTE=faceguydb;29452651]If you know how to do it you wont learn anything.[/quote] Sure, if you know everything you have nothing to learn. However, if you know nothing, you have everything to learn. So you won't know where to start, which is the key factor. [quote]You might learn with a text book or a pil file but i learned with a text editor and other peoples gamemodes. Looking at how they do things and figuring out how to solve my own issues with the concepts of how they solved more. Some people might buy and read a book on how a clock works some much rather take a clock and go at it with a screw driver. Neither way is wrong.[/quote] I learned in a similar way, but by memorising and testing functions instead of reading other's code en-mass. [quote]How ever saying there is only one way to learn and one solution is wrong. You are wrong.[/quote] You do know you (Someone who's new on the scene and knows nearly nothing in comparison) just claimed one of the best here (_Kilburn) is wrong without providing any reasoning as to why? Sure, there's plenty of ways to learn. However, there's what we all find as the easiest ways for people to learn by, why would we all recommend ways that are harder than they need to be? [quote]How does this help him create his gamemode? Not doing it is not a solution its just giving up. Don't be a pussy work at it. Break down every task and figure it out as you go.[/quote] He doesn't know enough to even hope to complete it - so his time would be better spent learning lua and continuing his idea when he has the skill to do so. [quote]Contradiction Much?[/quote] The tutorials are generally shite. Function documentation (where it exists) is generally good. [quote]As for King Flawless iv been trying to be nice to you but really dude.[/quote] He's nice to people who actually listen to what we all tell them, and people who give good advice and not utter shite. [quote]What have you created that makes you in the position to judge is people can complete a project or not?[/quote] What have you made that places you in a position to judge someone who's been giving advice for a large number of months? [quote]I haven't seen your lua contributions,[/quote] I haven't seen yours either. [quote]so someone asking for a point in the right direction seems to gotten more done then you.[/quote] He hasn't released his works; however, he also has enough knowledge to not need to ask simple questions. This is a stupid statement you just made. [quote]Well I wont be responding tonight because I'm off the the gf's[/quote] "Hey look at me I have a girlfriend all of you don't NERDS"~~ [quote]and I'm not going to be bothered with all this egotistical nonsense.[/quote] Your self-righteous pretentious attitude is all I've seen of egoism so far. [quote]I suggest you do the same flawless... oh wait.[/QUOTE] Oh burn. Oh wait, you don't know a thing about him. You do know having and/or getting a girlfriend is no large feat. You shouldn't be as proud as you are. Get out, troll.
Can we just stop with the augments a just agree there is no best way to learn and that it depends on the person, dont have ago at people for contributing there input if its valid. If you dont have a valid contribution please dont post [QUOTE]Oh burn. Oh wait, you don't know a thing about him. You do know having and/or getting a girlfriend is no large feat. You shouldn't be as proud as you are. Get out, troll.[/QUOTE] I think he said that because of this [url]http://www.facepunch.com/threads/1037158-I-need-advice[/url]
[QUOTE=sweeneypaul;29453273]Can we just stop with the augments a just agree there is no best way to learn and that it depends on the person, dont have ago at people for contributing there input if its valid. If you dont have a valid contribution please dont post[/QUOTE] faceguydb was just being a twat; which needs pointed out. He isn't welcome here, nor was most of what he said was valid. [quote]I think he said that because of this [url]http://www.facepunch.com/threads/1037158-I-need-advice[/url][/QUOTE] Can you not see the sarcasm in that. "My dad makes me go to bed at 9 every night". No, he was just blowing his own trumpet - typical of a young kid who thinks it's a massive feat (Or something)
[QUOTE=sweeneypaul;29452347]How is he a terrible person, most people in this topic have not helped, linking to the pil and telling them to read, that is not a answer to the questions asked if you have read any other of king flawless' posts all he seems to do it either post a link to the pil or down on people who may not know as much lua.[/QUOTE] Directly answering a question isn't always a best way to help a person. If someone went up to you and said "hey dude I'm going to build an intelligent robot from scratch and I need help making this buzzer emit beeps, any idea?", are you seriously going to tell him even though he obviously doesn't know shit about electronics? Also Flawless might appear rude but I can assure you he knows a lot more about Lua than you might think. I guess he doesn't always post with much diplomacy but he usually has a valid point. :v: [QUOTE=sweeneypaul;29452347]At least faceguy has helped by posting links that are relevant and they help answer the question and giving a idea of how to solve the problem.[/QUOTE] Actually, they aren't relevant. He posted about resource.AddFile multiple times, even though it has no relation with "importing" models at all. I'd explain how to do it to OP but it seems like he ran away in fear or something. :saddowns: [QUOTE=sweeneypaul;29452347]Most of the pil is only useful if you have no experience in any programming language as it explains what strings and booleans are. There no need to re learn that.[/QUOTE] But he obviously doesn't know about programming at all. Plus, if you've actually read the pil, it has a lot more details about mechanics that are specific to Lua, such as tables, Lua tables can be quite confusing for a beginner. Or "for ... in" blocks, which are massively used in GMod. [QUOTE=sweeneypaul;29452347]I don't feel this is completely true, in fact I think this is the best way to learn. If you reach a problem think about it and look around and other peoples code until you find a good solution on how to deal with the problem. If you try to learn everything about lua before you even try you will always find a problem you dont know how to solve, I learn as I do things. I find making a simple gamemode is the best way to learn as it incorporates all the aspects of gmod such as sweps and sents.[/QUOTE] Learning as you do things is perfectly fine, actually you should be doing that. What I meant is that, with no solid foundations, you will get lost really easily. Learning to run before you even know how to walk is going to be a complete waste of time, even if it eventually works. I've seen a lot of beginners writing complete nonsense such as GetGlobalInteger("test") = GetGlobalInteger("test") + 1, and don't understand what's wrong with it because they don't even know about most basic programming concepts, and even less about Lua itself. [QUOTE=sweeneypaul;29452347]Completing a gamemode will give you much more self-satisfaction then completing a swep and will give you a goal to work to. Along with the satifaction of completing the gamemode, you will also face much more challenges and finding solutions to these will give you much more experience and knowledge then a swep or and sent might.[/QUOTE] Completing a gamemode provides a lot of self-satisfaction... if you actually complete it. Every beginner who wants to start making a gamemode ends up giving up, I haven't seen a single one succeed. I think the key to success is really to start with small things, finish them, eventually release them if you think they are special enough (that's helpful because you might get useful feedback), and start working on something more complex until you feel ready for making a full gamemode. [editline]27th April 2011[/editline] [QUOTE=faceguydb;29452651]How does this help him create his gamemode? Not doing it is not a solution its just giving up. Don't be a pussy work at it. Break down every task and figure it out as you go.[/QUOTE] Here, have a list of not-pussies. [url]http://www.facepunch.com/threads/1078747[/url] [url]http://www.facepunch.com/threads/1071684[/url] [url]http://www.facepunch.com/threads/1072346[/url] [url]http://www.facepunch.com/threads/1063370[/url] [url]http://www.facepunch.com/threads/1064024[/url] [url]http://www.facepunch.com/threads/988072[/url] They sure do look successful. [QUOTE=faceguydb;29452651]Some people might buy and read a book on how a clock works some much rather take a clock and go at it with a screw driver. Neither way is wrong.[/QUOTE] A good part of the population wouldn't even be able to reassemble the clock properly.
It seems to me like anyone who has a problem with my posts can't understand my teaching methods imagine me like this My son wants to learn to swim now I have two ways to teach him: Method 1: Hold his hand and teach him bit by bit until he can swim by him self Method 2: Throw him in the pool and let him to learn to swim to survive As you can imagine method 2 is the method I take and I feel its the best way to learn it forces him to do all the hard work him self and not to rely on someone else. Anyone who I have taught anything to (This list is actually quite long) can go one of two ways they will either hate me because I seem unhelpful from the answers I give and then give up or they will hate me to start with but then when they actually solve a problem for their self and look back at my advice they get the feeling of wow I did it by my self I mean sure I got a little push but I think that's all I needed and in the future I wont need that push again. All of the people who hate me fit the first group the are doomed to fail everyone else congratulations you are going to go far in life. FYI 9 out of 10 people who I teach fail but that 10% are good enough to make up for that. [editline]27th April 2011[/editline] [QUOTE=sweeneypaul;29453273][url]http://www.facepunch.com/threads/1037158-I-need-advice[/url][/QUOTE] I am so glad I posted this thread now, I did it to fuck with someone else but it seems to be brought up enough against me to make it actually laughable I mean hell did you actually read that thread because its a good read. FYI I am a homosexual so why would I have a girl friend?
[QUOTE=King Flawless;29445170]It seems the idiots are over powering this section, Martin575 is now doomed to become one of them.[/QUOTE] It all actually helped I just dont like your method, I would like some help and a team is always better then alone
[QUOTE=Martin575;29467772]a team is always better then alone[/QUOTE] That's what most people tend to think. It's rarely correct when it involves beginners. Managing a team requires a lot more work than it seems. Start with basic things. Zombie gamemodes are neither easy nor original and you'll be wasting your time in the end.
[QUOTE=_Kilburn;29470818]Managing a team requires a lot more work than it seems.[/QUOTE] Agreed, 100%. There's only two people so far that I've successfully worked with - Chrisaster and ColdFusion.
[QUOTE=_Kilburn;29470818]That's what most people tend to think. It's rarely correct when it involves beginners. Managing a team requires a lot more work than it seems. Start with basic things. Zombie gamemodes are neither easy nor original and you'll be wasting your time in the end.[/QUOTE] Im actually not doing this for some goal, Im doing this for having fun with my friends and maybe new friends. But it will also be nice to finish it. And I like Zombie gamemodes for Gmod but too bad it requires Counter Strike, thats why Im making one with HL2 stuff :p
[QUOTE=King Flawless;29462321]It seems to me like anyone who has a problem with my posts can't understand my teaching methods imagine me like this My son wants to learn to swim now I have two ways to teach him: Method 1: Hold his hand and teach him bit by bit until he can swim by him self Method 2: Throw him in the pool and let him to learn to swim to survive As you can imagine method 2 is the method I take and I feel its the best way to learn it forces him to do all the hard work him self and not to rely on someone else. Anyone who I have taught anything to (This list is actually quite long) can go one of two ways they will either hate me because I seem unhelpful from the answers I give and then give up or they will hate me to start with but then when they actually solve a problem for their self and look back at my advice they get the feeling of wow I did it by my self I mean sure I got a little push but I think that's all I needed and in the future I wont need that push again. All of the people who hate me fit the first group the are doomed to fail everyone else congratulations you are going to go far in life. FYI 9 out of 10 people who I teach fail but that 10% are good enough to make up for that. [/QUOTE] I like your method of teaching but not everyone can learn that way. Some people need a little example sometimes and that's okay. People in this thread have said this before but I'm going to say it anyways: You won't learn anything if someone does the work for you. Your gamemode or script will die if you continue to rely on the same person who fixed your code every time. Mainly because that person who was fixing your code might be unavailable for a week and you'll have no one to fix your code. Those new coders who flame you probably have never experienced that "Wow I did it myself!" feeling. Instead they post a request in the question section to get their code fixed. I am not the best at coding and I like a little example before doing something but reading that LUA site will most likely help you. Now onto the topic of the nine out of ten people who fail to learn. Five out of nine probably never even read that site. Three out of nine probably lack the motivation to continue his/her script. Finally, one out of ten probably like learning a different way. Now onto the topic: 1. I don't have enough modeling/animating experience so I can't tell you this. 2. Have you tried turning it into a .vtf and importing it into Source SDK? VTF Edit should work for that. 3. Last time I used hammer it's something like npc_spawner. This can be done with LUA also but I never have done that myself. 4. [url]www.lua.org/pil/[/url] 5. You can make your survivor team have no weapons on start up. [url]http://wiki.garrysmod.com/?title=Simple_Gamemode[/url] That link eventually shows how to set up team weapons. 6. You might want to take a look at some kind of existing SWEP and learn from it. I don't really know what you mean by importing weapons. Most of this stuff can be done outside of LUA. However, it is possible to make NPCs spawn via LUA but I've never really done that myself. Please correct me if I am wrong on anything here.
Sorry, you need to Log In to post a reply to this thread.