• LastStandv1.0 Can't get it working
    11 replies, posted
I found an old Gamemode which was awesome, however it does not work in Gmod13. It's called: Last Stand v1.0 Link: [url]http://www.garrysmod.org/downloads/?a=view&id=99916[/url] I've been trying to get this gamemode working for gmod13 but I have very limited knowledge of glua. I have changed the info.txt to the correct format I can get the actual gamemode running, the problem is when you join the game to select your class the "Accept" button does not work or remove the menu. I have also checked for deleted fonts which I have heard garry has removed a bunch but no luck searching for "fonts" in the code. If anyone has any info on why menu buttons or anything else is causing problems in gmod13 please feel free to post away. I do know lots of people love this mod and would play it so hopefully there is someone out there who can help thanks!
[QUOTE=Nazban;38292154]I have very limited knowledge of glua.[/QUOTE] how could you 'have very limited knowledge' of glua.me? ITS SUPPOSED TO HELP YOU!
[QUOTE=RonanZer0;38292365]how could you 'have very limited knowledge' of glua.me? ITS SUPPOSED TO HELP YOU![/QUOTE] I tried making a simple Gamemode, that gives a player a "pistol" on spawn it worked was great! I tried setting up a timer to regenerate ammo every 60 seconds to all players now when I start my gamemode I have no weapons and i get an error "failed to open shared.lua" So obviously smarty pants I have a library of glua but half of this stuff does not work anymore or you have to do it different, so if you had a brain you would understand I'm talking about my knowledge of putting code into play and not the library of code to use. But thanks for the help and get something to eat fatty, usually fatties get angry when hungry.
I think you two just had a misunderstanding... Do any errors appear in the console? That would narrow down the piece of broken coding a lot.
[QUOTE=Nazban;38292486]I tried making a simple Gamemode, that gives a player a "pistol" on spawn it worked was great! I tried setting up a timer to regenerate ammo every 60 seconds to all players now when I start my gamemode I have no weapons and i get an error "failed to open shared.lua" So obviously smarty pants I have a library of glua but half of this stuff does not work anymore or you have to do it different, so if you had a brain you would understand I'm talking about my knowledge of putting code into play and not the library of code to use. But thanks for the help and get something to eat fatty, usually fatties get angry when hungry.[/QUOTE] i was gonna make some lua tutorials for 13. i guess ill put one in this thread part 1 how to make a function [lua] function name(args) end [/lua] there you go SIR LUA_PATH was changed to LUA How to make tables! [LUA] -- tables will let you store information. tablename = {} -- there are two ways to do this, you can do it like this: tablename = {"table string 1", "table string 2", 5} -- or this tablename = {} tablename[1] = "hello im string 1" tablename[1] = "hello im string 2" tablename[1] = "hello im string 3" [/lua] btw I WASNT ANGRY. did you know i was making a joke about glua? i thought you did a typo and i just did that...
[QUOTE=natiscool;38292590]I think you two just had a misunderstanding... Do any errors appear in the console? That would narrow down the piece of broken coding a lot.[/QUOTE] Lots and lots of errors!: [code] [ERROR] gamemodes/laststand/entities/weapons/doc_armorc/shared.lua:20: bad argument #2 to 'CreateFont' (table expected, got number) 1. CreateFont - [C]:-1 2. unknown - gamemodes/laststand/entities/weapons/doc_armorc/shared.lua:20 [ERROR] gamemodes/laststand/entities/weapons/doc_medkit/shared.lua:20: bad argument #2 to 'CreateFont' (table expected, got number) 1. CreateFont - [C]:-1 2. unknown - gamemodes/laststand/entities/weapons/doc_medkit/shared.lua:20 [ERROR] ...des/laststand/entities/weapons/eng_barricades/shared.lua:110: attempt to call field 'Create' (a nil value) 1. unknown - ...des/laststand/entities/weapons/eng_barricades/shared.lua:110 [ERROR] gamemodes/laststand/entities/weapons/fn_base2/shared.lua:19: bad argument #2 to 'CreateFont' (table expected, got number) 1. CreateFont - [C]:-1 2. unknown - gamemodes/laststand/entities/weapons/fn_base2/shared.lua:19 3. include - [C]:-1 4. unknown - gamemodes/laststand/entities/weapons/fn_base2/cl_init.lua:1 [ERROR] ...modes/laststand/entities/weapons/kermite_base/shared.lua:471: ')' expected near '|' 1. unknown - gamemodes/laststand/entities/weapons/kermite_base/shared.lua:0 [ERROR] ...odes/laststand/entities/weapons/kermite_base2/shared.lua:433: ')' expected near '|' 1. unknown - gamemodes/laststand/entities/weapons/kermite_base2/shared.lua:0 [ERROR] ...stand/entities/weapons/kermite_base_burst_smg/shared.lua:185: ')' expected near '|' 1. unknown - gamemodes/laststand/entities/weapons/kermite_base_burst_smg/shared.lua:0 [ERROR] ...nd/entities/weapons/kermite_base_shotgun_pump/shared.lua:235: ')' expected near '|' 1. unknown - gamemodes/laststand/entities/weapons/kermite_base_shotgun_pump/shared.lua:0 [ERROR] gamemodes/laststand/entities/weapons/ls_crowbar/shared.lua:54: invalid escape sequence near '"physics' 1. unknown - gamemodes/laststand/entities/weapons/ls_crowbar/shared.lua:0 [ERROR] gamemodes/laststand/entities/weapons/ls_stimpack/shared.lua:20: bad argument #2 to 'CreateFont' (table expected, got number) 1. CreateFont - [C]:-1 2. unknown - gamemodes/laststand/entities/weapons/ls_stimpack/shared.lua:20 [ERROR] gamemodes/laststand/entities/weapons/rg_base/shared.lua:570: ')' expected near '|' 1. unknown - gamemodes/laststand/entities/weapons/rg_base/shared.lua:0 [/code] Im still currently looking over any lines of code that show an error but lots of it looks ok. I guess the first order of business is to find were the fonts are processed and change the code to print a working font, but I cannot find were that is handled in the code. Edit: Ok I have finally found were fonts are handled "idiot me" now does anyone know a standard font that is working currently?
Okay, here is a helpful thing called youtube, look at this! I searched "lua tut" and found these two amazing good videos! Learn! [url]http://www.youtube.com/watch?v=D-dvHFIyL5o[/url] ^ is for gmod12 but very informative [url]http://www.youtube.com/watch?v=xw56HhewI1A[/url] ^ is for GMod13, but they changed the file system and also(no matter what) will need the video below [url]http://www.youtube.com/watch?v=9qwsjIL7Npk[/url]
[QUOTE=MadkillerMax;38293310]Okay, here is a helpful thing called youtube, look at this! I searched "lua tut" and found these two amazing good videos! Learn! [url]http://www.youtube.com/watch?v=D-dvHFIyL5o[/url] [url]http://www.youtube.com/watch?v=xw56HhewI1A[/url] also, if you use the one above(since it is for gmod13) need to use this to update the codes [url]http://www.youtube.com/watch?v=9qwsjIL7Npk[/url][/QUOTE] Thanks madkiller, way to stay on topic and after I view these tuts I should be able to do anything I want with glua.... Oh wait I have already watched these and paid attention and understand them but I can't get a gamemode working thanks for the helpful info tho killer! Ok guys I have fixed the problem, I'm trying to just run the gamemode, I didn't know I even needed a game called garysmod or whatever it is thx for the help! trololol
[QUOTE=RonanZer0;38292365]how could you 'have very limited knowledge' of glua.me? ITS SUPPOSED TO HELP YOU![/QUOTE] glua.me is a website
[QUOTE="garrysmod.org"]Uploaded 886 days ago[/QUOTE] There's your problem. [editline]3rd November 2012[/editline] But yeah, gLUA.me is the website. You are referring to Garry's Mod's LUA
[QUOTE=DrJenkins;38300691]There's your problem. [editline]3rd November 2012[/editline] [/QUOTE] He is trying to get it to work for gmod 13, did you even read OP?
[QUOTE=ShadowHunter1;38304031]He is trying to get it to work for gmod 13, did you even read OP?[/QUOTE] Yay! Thanks for staying on topic! Does anyone know were I can find gmod13 fonts so I can change the fonts that don't work to ones that do work and are still with gmod13?
Sorry, you need to Log In to post a reply to this thread.