• Runner - Unfinished ME Gamemode - free to use
    19 replies, posted
[url=http://www.garrysmod.org/downloads/?a=view&id=122487][img]http://www.garrysmod.org/img/?t=dll&id=122487[/img][/url] I made this gamemode some weeks ago, but now, when I start a server with the gamemode, it crashes... You are free to modify the gamemode, just give me some credits... Concept: The gamemode should be running on the gm_bigcity map. It uses the perfectet climpswep (yes I have asked for license and goted a yes...) The idea is a mirrors edge styled teamdeathmatch, capture the flag, search and destroy etc. Originaly, there should be 2 teams, the Blues (cops) and the Runners. The Blues starts with a pistol and some armour, but the runners have unlimited sprint. There are two traders, one for each team. There is three kinds of weapons, one for each team and a "shared" group. I had some other ideas and if you wan to help me fix the crash you can do so, or you can just use it yourself, but just give me some credit;) Well, you can look at the code yourself, and yes, some of the snippets is from the wiki... Any questions? [editline]26th June 2011[/editline] Oh, btw, the Blue's trader isn't updated, delete it, and copy-paste the runner trader, and edit as you wan...
Please give me some critique?
No
I crashed when I tried to start a game with it. :frown:
[QUOTE=.\\Shadow};30730992]I crashed when I tried to start a game with it. :frown:[/QUOTE] That's my problem...
Uhm... are you still working on it?
It's crashing because you're producing an error in Initialize, in your timers to be exact, you're using minimoderandom() you don't need to put () when using timers, you're also passing the 'ply' variable when ply does not exists, nor does the function 'minimoderandom' need a player variable to begin with, so it should be: timer.Create( "StartUpTimer", 1, 1, minimoderandom) Same with your other timers that call a named function and use parenthesis "()" There could be more causing the crash, I never tested it I just skimmed over the code and that's what I noticed right away.
Alright, I'll try to give this a fair review. From what I saw when looking through the code, it appears as if you are still very new to Lua. You use a lot of networked ints, which would make any server laggy, and the gamemode itself is horribly coded. The code is messy and all over the place, and for whatever reason you have a shit ton of unnecessary spaces in several places (unintended rhyme). And Averice already covered the mistakes you made in Initialize, so I won't have to cover that. Final score: 0.5/10 for the effort. My suggestion would be to study the wiki some more and not copy and paste wiki snippets before trying to release any gamemodes. Keep working on a gamemode until you feel as if you're done with it and have done a good job at it, especially if it's your first.
Well I thought this gamemode would be nice but since the biggest part of the gamemode(or the most important one) is a swep that's not made by you then I have to agree with Jocken's score. Also Jocken, from what I see you are a good coder. Can you help me resolve the same issue? My problem is that I use too much NW vars. Can I replecae them with DTVars or I need to store things in tables?
[QUOTE=KatNotDinner;32457479]Well I thought this gamemode would be nice but since the biggest part of the gamemode(or the most important one) is a swep that's not made by you then I have to agree with Jocken's score. Also Jocken, from what I see you are a good coder. Can you help me resolve the same issue? My problem is that I use too much NW vars. Can I replecae them with DTVars or I need to store things in tables?[/QUOTE] NWVars get sent to EVERY client, so say you have something personal, like your players 'credit card number' not every player needs to know that, so you'd use a usermessage to send it to one player. People have this idea that NWVars are evil things, they aren't. It's just inexperienced coders just tend to use them for a lot of things because they are 'easy'.
-snip- Averice beat me to it
What's a "ME Gamemode"
[QUOTE=_NewBee;32469937]What's a "ME Gamemode"[/QUOTE] Mirror's Edge, I believe
This looks exactly like [url]http://www.garrysmod.org/downloads/?a=view&id=81666[/url] but a little modifed
I wouldn't really recommend you to release this. This is definitely a hackjob and jut a massive compendium of copypasted code and generally bad code done by someone who doesn't really know what he's doing.
[QUOTE=Big Bang;32489824]I wouldn't really recommend you to release this. This is definitely a hackjob and jut a massive compendium of copypasted code and generally bad code done by someone who doesn't really know what he's doing.[/QUOTE] Yep, and above that, I have no idea who he is, never seen him before. But i've never seen you eigther so I'll just listen to myself.
[QUOTE=Jocken300;32456407]Alright, I'll try to give this a fair review. From what I saw when looking through the code, it appears as if you are still very new to Lua. You use a lot of networked ints, which would make any server laggy, and the gamemode itself is horribly coded. The code is messy and all over the place, and for whatever reason you have a shit ton of unnecessary spaces in several places (unintended rhyme). And Averice already covered the mistakes you made in Initialize, so I won't have to cover that. Final score: 0.5/10 for the effort. My suggestion would be to study the wiki some more and not copy and paste wiki snippets before trying to release any gamemodes. Keep working on a gamemode until you feel as if you're done with it and have done a good job at it, especially if it's your first.[/QUOTE] Yes, I am new to lua, but I can't find any really good tuts on the wiki... It would be a big help if we could get some more advanced coding in the wiki... The most things on the wiki doesn't teach you how to code your own scripts. I had to look at pro coders work, but I didn't understand everything. It would be nice if some of you lua experts made some tuturials about how to make more advanced stuff, maybe a gamemode, maybe a swep-base, something that can make it easier to learn advanced lua.
There is excellent tutorials on the wiki what are you talking about. I learned Lua there, and from steam friends.
[QUOTE=LauScript;32565829]There is excellent tutorials on the wiki what are you talking about. I learned Lua there, and from steam friends.[/QUOTE] It's the "and steam friends" part that is the problem... Non of my friends know lua...
You gotta look for them. When I was first learning lua, I went to various people on facepunch and asked them if they could give me some tips. Having others be able to guide you is extremely helpful. I'm positive you can find a few people that can provide some help.
Sorry, you need to Log In to post a reply to this thread.