• CityScript
    183 replies, posted
Since a lot of people thought DarkerRP was just DarkRP and skipped it, I have renamed it and fixed a few bugs in the process. Here is a list of some of the features: - Cakescript G2 based - Built-in Warn/Kick/Ban system - Banking system with interest - Buyable storage boxes with space for 16 items - More than one faction to join - Guns, but you can just remove the Gun Dealer role if you don't want those - Car sales - Zombies - Meteors - Black Market dealer (moneyprinter, toxic substance labs) - Nuclear scientists - Percentage of total players team limits rather than fixed limits. - Fires - Earthquakes (these are very very rare and not meant to be deactivated) - Random meteor strike (also very rare and not meant to be deactivated) - Arrest system - Custom player spawns - Wide variety of items available from Grocery Store - Medics, Police, City Mayor, etc - Flag system from CakeScript to allow people to become Mayor INSTALLATION REQUIREMENTS: EXTRACT THE ENTIRE ZIP TO GARRYSMOD FOLDER! This will install the gamemode and the Addon Required Addon: Simple RP Prop Protection by Spacetech + philxyz (included) Required Addon: Counter-Strike: Source Content (in your orangebox/cstrike folder on dedicated server) Required Addon: CSS Realistic Weapons 4.0 addon by Worshipper - [URL]http://www.garrysmod.org/downloads/?a=view&id=62657[/URL] Required Addon: Roleplaying Vehicles 1.0 by NastDye required - [URL]http://www.garrysmod.org/downloads/?a=view&id=74216[/URL] Required Addon: Nuke 4 by T.Bonita - [URL]http://www.garrysmod.org/downloads/?a=view&id=42571[/URL] BE AWARE: The Police Vehicles inside the zip are NOT addons and need to go directly into the garrysmod folder structure Optional Addon: Vehicle Upgrade addon by DarkNovaClan - [URL]http://www.garrysmod.org/downloads/?a=view&id=37419[/URL] Optional Addon: Skinswitcher by Mihara - [URL]http://www.garrysmod.org/downloads/?a=view&id=32752[/URL] Optional Addon: Sickness Vehicles for CityScript - [URL]http://www.garrysmod.org/downloads/?a=view&id=91119[/URL] CREDITS: Nori for Cakescript G2 SB Spy for Combo Fists Feihc for Fire Extinguisher Rick Dark, Botman, thenoman for NPC model animations Download Link for 1.0.0: [url]http://www.megaupload.com/?d=DIQP3FK5[/url] [U] More Mirrors Much appreciated! :D [/U]
Downloading. Why do we need Nuke though? =/
It's for the nuclear scientist job. You can remove that job if you don't want nukes :) They cost so much anyway that it would be hard for a noob to set one off.
I'm still getting the CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) errors. I know you said they were because of that fast download thing, but I still can't find anything relating to that in any of my cfg files.
DrStealth, several people who have had this problem seem to have got rid of it by removing addons one by one until the problem goes away. Except... nobody has ever told me which addon it was. I'll try joining your server if it is up now...
I'll be putting this on my server, I'll get back to you if I have any errors, and I'll post the IP once it's completely setup.
I'll wipe my addons folder then, add them one by one. And I'll remember to tell you which it was =P Edit: I wiped my addons folder and it still isn't working, the only things in the folder it are: counter-strike Day-of-defeat Default_sent_pack derma fueled mod vehicle pack hl2_ep2 LeeModel MW Vehicles NFSMW Cars Nuke4_fix Police Cars portal sickness Simple RP Prop Protection tf2 zeno_clash I added a info.txt for the Police and NFSMW cars, so they are set to addons now, that isn't the problem. Everything here is either files from the source games, or stuff required by the gamemode. Should I get rid of the TF2, dod, portal, etc? Double edit: I'm also getting this error when I hit tab: ERROR: GAMEMODE:'ScoreboardShow' Failed: CityScript\gamemode\cl_binds.lua:38: attempt to index global 'HiddenButton' (a nil value) ERROR: GAMEMODE:'ScoreboardHide' Failed: CityScript\gamemode\cl_binds.lua:46: attempt to index global 'HiddenButton' (a nil value) Triple edit: I removed the source game addons, so I'm left with: counter-strike default_sent_pack derma Fueled Mod Vehicle Pack LeeModel MW Vehicles NFSMW Cars Nuke4_fix Police Cars sickness Simple RP Prop Protection It still doesn't work, so...
Whenever I have my server start (via Commandline) on Cityscript, the server never shows up on the server browser. I have to start the Gamemode on Sandbox and then switch it over w/ ULX to Cityscript. Then I get bombarded with errors :c [code] CityScript\gamemode\cl_playermenu.lua:426: attempt to index global 'TEXT' (a nil value) ERROR: GAMEMODE:'HUDPaint' Failed: CityScript\gamemode\cl_hud.lua:81: attempt to index global 'TEXT' (a nil value) [/code]I also get the same as the above user when trying to open the scoreboard [code] ERROR: GAMEMODE:'ScoreboardShow' Failed: CityScript\gamemode\cl_binds.lua:38: attempt to index global 'HiddenButton' (a nil value) ERROR: GAMEMODE:'ScoreboardHide' Failed: CityScript\gamemode\cl_binds.lua:46: attempt to index global 'HiddenButton' (a nil value) [/code]And then there is this huge box in the middle of my screen. I can't close it either. [IMG]http://img718.imageshack.us/img718/4561/gmflatgrass0001x.jpg[/IMG] No GUI, no weapons, ect ect My Addons: (i'm going to include every detail of every useless thing) counter-strike CSS Realistic Weapons 4.0 daf (DOS Attack fix) day-of-defeat default_sent_pack derma Fueled Mod Vehicle Pack hl2_ep2 LeeModel MW Vehicles NFSMW Cars Nuke4_fix Police Cars Portal Simple RP Prop Protection skinswitcher tf2 ulib ulx VehicleUpgrade zeno_clash
Aha! Try it without ULX! :P Basic admin is built-in. I'll upload it somewhere else since garrysmod.org seems to hate me.
[QUOTE=sam6420;20213600]ULX doesn't seem to like cakescript...[/QUOTE] If I can figure out why, I might be able to fix it. That said, ULX is not really necessary with this mod unless you want to use !goto
I removed ULX (n' Ulib) and I still cannot start Cityscript via Commandline. Just never shows up on the server browser.
Mine still isn't working, even with the addons I have in the post above. Would the clientside addons matter?
[QUOTE=sam6420;20213795]Just add sv_defaultgamemode CityScript to the autoexec.cfg and it'll start the gamemode[/QUOTE] Thank you, now it will start w/ Cityscript. Although I'm still getting the exact same error messages as last time. (ULX and Ulib uninstalled still) (btw I forgot to mention earlier, I'm stuck in my place, and cannot move, but I can swivel around)
[QUOTE=sam6420;20213953]Did you try uninstalling the other addons?[/QUOTE] All the other addons? All the other addons I have are base or come with/are needed for the gamemode.
And now begins the long, tedious task of troubleshooting.
I got rid of everything except the stuff required by the gamemode. Sam, do you have it working/could post up the list of addons you have? Also, would the clientside addons have any effect on this? My server's addon folder is empty except for the required stuff, but my gmod addons folder has god knows how many things in it >_>
I made a clean Garrysmod folder, installed CityScript, then put the required addons in. Didn't work. So I went and removed ALL addons except counter-strike and derma, it still doesn't work. Next up, removing the counter-strike folder -.- Edit: Philly is on my server, we figured out that the error is a conflicting addon clientside, not server side. Time to test >_> Double edit: Philly, could you post what addons you have installed so we know what DOESN'T conflict?
It's working fine for me - I can join DrStealth's server. I have neither ULX/Ulib nor Assmod on my machine.
I cleaned out my addons folder, except for derma and default sents, it still wasn't working. I'm doing a clean install of gmod, gonna see if that works. Edit: Also, my server is staying up as it apparently isn't an issue with the server, but with the client. Its under the list as Aro's CityScript server or something similar, feel free to join. The server has only the necessary addons and the source game stuff.
Mmmm. I just loaded it up with a clean install of gmod, I'm still having the error. I dunno what to try now... [editline]02:53PM[/editline] I FIGURED IT OUT! The client is missing files or something, because I decided to try it in singleplayer, copied the CityScript folder over to my singleplayer Gamemodes folder and it works fine on the server now! [editline]03:00PM[/editline] Ok. So now that I've got it working, how would I add myself as an admin?
Nice! I'll see if it's anything to do with AddCSLuaFile [editline]08:08PM[/editline] [QUOTE=DrStealth;20214969] Ok. So now that I've got it working, how would I add myself as an admin?[/QUOTE] You are by default. Otherwise, there is a file called admins.lua to put steam IDs into.
It didn't add me as an admin automatically. I went and looked at the Admin.Lua, I'm not quite sure where I would put my steam ID. I'm assuming in the Admin = {}; up top, but how would you do this? Using a table? Also, in my server console I'm getting the error Lua Error: Timer Error: CityScript\gamemode\player_data.lua:259: attempt to index field '?' <a nil value> I took a look at it, here is the code its from [code] function CAKE.GetPlayerField( ply, fieldname ) local SteamID = CAKE.FormatSteamID( ply:SteamID() ); -- Check to see if this is a valid field if( CAKE.PlayerDataFields[ fieldname ] ) then return CAKE.NilFix(CAKE.PlayerData[ SteamID ][ fieldname ], ""); else return ""; [U][B]<---- Line 259[/B][/U] end end [/code]
Admins = { "STEAM_0:1_349988948etc", "STEAM_0:074554545" }
I may have fixed it but I'll test it out. Files included in wrong order.
Yeah. Thanks guys. My server is up now, on either RP_Downtown_V2 or on rp_cscdesert (I love this map =P), and I have a few extra addons too. Server name is still Aro's CityScript server, if anyone wants to join. -SERVER DOWN-
Cool! I can't join for a while but I will definitely do so. keep the server up and watch out for version 1.0.0 :P
Hold on. The other addons I put in might be conflicting, I'm getting more errors. I'll update this post with an IP when I get it working. OK! The server is up and running, IP is: -SERVER DOWN- Phil, I made the change to the init.lua, but have no way of testing it until my brother stops playing AoE and tries to join the server. Oh, and the addons I added weren't the ones conflicting, it was actually something I went and changed. So addons aren't conflicting, which is good.
Stealth try editing init.lua change the lines shown here only [code] DB = {} -- Add Client Side files AddCSLuaFile( "shared.lua" ); AddCSLuaFile( "cl_playermenu.lua" ); AddCSLuaFile( "cl_binds.lua" ); AddCSLuaFile( "player_shared.lua" ); AddCSLuaFile( "cl_hud.lua" ); AddCSLuaFile( "cl_charactercreate.lua" ); AddCSLuaFile( "cl_init.lua" ); -- Server Includes include( "shared.lua" ); -- Shared Functions include( "log.lua" ); -- Logging functions include( "error_handling.lua" ); -- Error handling functions include( "util.lua" ); -- Functions include( "hooks.lua" ); -- CakeScript Hook System include( "configuration.lua" ); -- Configuration data include( "player_data.lua" ); -- Player data functions include( "data.lua" ); -- SQLite functionality (police-related bits from DarkRP - uses DarkRP jail positions) include( "player_shared.lua" ); -- Shared player functions include( "player_util.lua" ); -- Player functions include( "admin.lua" ); -- Admin functions include( "admin_cc.lua" ); -- Admin commands include( "chat.lua" ); -- Chat Commands include( "daynight.lua" ); -- Day/Night and Cloc include( "concmd.lua" ); -- Concommands include( "charactercreate.lua" ); -- Character Creation functions include( "items.lua" ); -- Items system include( "schema.lua" ); -- Schema system include( "plugins.lua" ); -- Plugin system include( "teams.lua" ); -- Teams system include( "client_resources.lua" ); -- Sends files to the client include( "animations.lua" ); -- Animations include( "doors.lua" ); -- Doors AntiCopy = {"atm", "storage_box", "sent_nuke_detpack", "sent_nuke_radiation", "item_prop", "token_bundle", "token_printer", "spawned_shipment", "toxic_lab", "toxic", "sent_nuke_part", "sent_nuke", "door_ram", "lockpick", "med_kit", "gmod_tool"} NotAllowedToPickup = {} DB.Init() [/code]
Odd. It just says "Disconnect by user", are there any error messages?
I've never used cakescript before, how do you give yourself money (I'd just like to know so I can test, not ruin shit >.>). Also how do you 'flag' people? Can't wait for 1.0 :P Also: How long does it take for the ragdolls to disappear (once you kill someone) and can I disable people dropping money on death to prevent players from Killing others for money >.>
Sorry, you need to Log In to post a reply to this thread.