• NutScript - Nutty name, serious framework
    2,778 replies, posted
I haven't tested SQLite lately, but the VC++ was a fallback error for MySQL. Maybe the tables are wrong or something.
[QUOTE=ReapDaWrapper;45680042]Awesome. I was thinking i'd be able to do something like that but I don't know the syntax yet. That code would be from your factions folder, (sh_survivor.lua) right?[/QUOTE] Yes this is straight out of the faction folder.
[QUOTE=thexant;45683000]Yes this is straight out of the faction folder.[/QUOTE] I had gotten a lot of lua errors when I added all the models I wanted to use, but I think it was related to something else in my faction file. I probably could have fixed it, but for now I'll just change a players model and set a custom rank, etc. When I make an actual faction, I'll also have to figure out a way to restrict normal citizen business items, and make those available only to CWU members.
[QUOTE=ReapDaWrapper;45686594]I had gotten a lot of lua errors when I added all the models I wanted to use, but I think it was related to something else in my faction file. I probably could have fixed it, but for now I'll just change a players model and set a custom rank, etc. When I make an actual faction, I'll also have to figure out a way to restrict normal citizen business items, and make those available only to CWU members.[/QUOTE] Flags can help you with that, if I remember correctly inside the item's lua file there's a thing called like Item.Flags or ITEM.Flag or whatever, you can create a custom flag for those items based on those flags, but I also believe the flag has to be 1 letter.
[QUOTE=Reyjr43;45688400]Flags can help you with that, if I remember correctly inside the item's lua file there's a thing called like Item.Flags or ITEM.Flag or whatever, you can create a custom flag for those items based on those flags, but I also believe the flag has to be 1 letter.[/QUOTE] Awesome, I will try this out. And no there isn't already a line called ITEM.Flag but i'm assuming you meant add it. edit: It didn't work.
[QUOTE=ReapDaWrapper;45689239]Awesome, I will try this out. And no there isn't already a line called ITEM.Flag but i'm assuming you meant add it. edit: It didn't work.[/QUOTE] No, I did not mean add it, if there isn't a line there then I cannot remember how to add flags, I know there is a way to do it though because I've done it...too bad I've forgotten.
[QUOTE=Reyjr43;45690438]No, I did not mean add it, if there isn't a line there then I cannot remember how to add flags, I know there is a way to do it though because I've done it...too bad I've forgotten.[/QUOTE] Ah alright then. Yeah there's no lines for item.flag in any of the items lua files. Would be useful if I can figure out a way to do it though. For things such as black market as well. Edit: I'm also getting a strange lua error in my console. The file that says is missing is actually there so I don't know what the deal is with that. [IMG]http://i.imgur.com/E58HN8h.png[/IMG] [code]//line 26// function nut.util.Include(fileName, state) //line 27// if (state == "shared" or string.find(fileName, "sh_")) then //line 28// AddCSLuaFile(fileName) //line 29// include(fileName)[/code] I don't really know whats going on here, but it hasn't really affected anything in-game afaik.
Does anyone by chance have a way to print how many attribute points you start with and how many you have left to use on the HL2RP character creation screen? Any help would be appreciated, even a function or variable for what the attribute points are under
Maybe I'm missing something, but there should be a central guide to all this. Things like: How do I activate Overwatch/Dispatch voices, or rank up the CPs in HL2RP? I want to know how to activate overwatch/dispatch voices in HL2RP, and I've seen on some servers they have a thing where you have rations and it's like "CPNAME checks the database". Is there something like that in Nutscript HL2RP where you can check a database to see if their ID is fake, is a rebel etc. Dunno how to rank up CPs either or have compatibility with the extra custom Metropolice Pack models. Not to mention setting up city scanners, whitelisting etc. Can't there be a help file for admins/owners?
It's the same as Clockwork HL2 RP.
[QUOTE=Chessnut;45694143]It's the same as Clockwork HL2 RP.[/QUOTE] The thing is, I don't know how they 'check' their CP database or rank up or use city scanners or do Overwatch voices on Clockwork xD. A little more help?
Have you looked at the commands in the help menu? Also by default you just change the context of the cp's character name to either RCT for recruit class, 05, 04, ,03, 02, 01 for Unit. OfC for Officer(still unit class), EpU, DvL, SeC, for elite class. For example, CP-OfC.51235. You can input any other text, it just looks for those specific tags, so you can do CP-JUDGE-DvL.21623 or CP-UNION-05.61235. City Scanners are activated if you change a units name to include SCN (ex: CP-SCN.00001) /objectives for a text space that can be edited by elite units, and viewed by all other units. The announcer voices and combine voices can be input into chat as commands or you can hold the context menu (c) and select quick voice. The dispatcher is only used by elite CP's, Administrators, or Overwatch. As for the "cp database" that's probably more in-depth with the role-play itself instead of the scripting. you just do /data (character name) So in essence, if someone was using a fake name, it wouldn't show up on the /data I believe. Not sure about that one.
Well, I changed their rank via name and it worked while they were spawned in. If they die, or reload their character, they go back to the default CP model, keeping their name though and I have to type something like !charsetname CP-SeC.99821 CP-SeC.99821 just to get their model to reset to the correct one. Oh, and just a side question: I see in the sh_config.lua things like walk and run speed, but where do I set respawn time? EDIT: I just noticed, a lot of Combine Overwatch soldier voices are missing that are in Crapwork, like "Overwatch, advise, we have heavy resistance, sector X!" ([url]https://www.youtube.com/watch?v=oVJMHuF8xPI[/url], 0:00) or "Bouncer, bouncer!" (a.k.a. grenade) EDIT2: 1 last thing I remember from Clockwork... your Overwatch pulse rifle, upon shooting, instead of playing the loud first-person thumping sounds it plays the NPC-style, lighter sounding ones. Can I do dis 2? :3
[QUOTE=RonanZer0;45697484]Well, I changed their rank via name and it worked while they were spawned in. If they die, or reload their character, they go back to the default CP model, keeping their name though and I have to type something like !charsetname CP-SeC.99821 CP-SeC.99821 just to get their model to reset to the correct one. Oh, and just a side question: I see in the sh_config.lua things like walk and run speed, but where do I set respawn time? EDIT: I just noticed, a lot of Combine Overwatch soldier voices are missing that are in Crapwork, like "Overwatch, advise, we have heavy resistance, sector X!" ([url]https://www.youtube.com/watch?v=oVJMHuF8xPI[/url], 0:00) or "Bouncer, bouncer!" (a.k.a. grenade) EDIT2: 1 last thing I remember from Clockwork... your Overwatch pulse rifle, upon shooting, instead of playing the loud first-person thumping sounds it plays the NPC-style, lighter sounding ones. Can I do dis 2? :3[/QUOTE] I found deathTime in the nutscript config, sv_config.lua it's on line 56 [code]nut.config.deathTime = 10 [/code] The custom voices can be added in manually if you just edit the sh_voices.lua i believe. You would probably have to make a custom swep of the ar2 and edit the code for the sounds, and then implement it as a custom weapon.
What about [b]City Scanners[/b] and [b]Dispatch[/b] voices (/dispatch in Clockwork) and does HL2RP gamemode have [b]Combine breaches?[/b] Don't see any; how do you breach?
[QUOTE=ReapDaWrapper;45694554]...[b]The announcer voices and combine voices can be input into chat as commands or you can hold the context menu (c) and select quick voice. The dispatcher is only used by elite CP's, Administrators, or Overwatch[/b]....[/QUOTE] [editline]15th August 2014[/editline] Give yourself a breach item and use the item when looking at doors.
[QUOTE=Chessnut;45704489][editline]15th August 2014[/editline] Give yourself a breach item and use the item when looking at doors.[/QUOTE] IIRC I tried using quick voice as both Overwatch Soldier, City Administrator and CP-SeC and they didn't appear. And since it's Chessnut answering, dude how do you use city scanners?
[QUOTE=RonanZer0;45704511]IIRC I tried using quick voice as both Overwatch Soldier, City Administrator and CP-SeC and they didn't appear. And since it's Chessnut answering, dude how do you use city scanners?[/QUOTE] [QUOTE=ReapDaWrapper;45694554]City Scanners are activated if you change a units name to include SCN (ex: CP-SCN.00001)[/QUOTE] I'm having issues with animations with the models from the metropolice pack. (I'm using the models rigged for the CP and not pm.) They are having issues with most of the animations, causing a T-Pose. I'm looking around in the files but I'm not seeing anything that is causing this to happen. The phoenix_police, and other models used in the schema by default are working fine. edit: I changed one of the CP rank models in sh_config.lua to another model in the metropolice pack, and now the animations work just fine. Now I'm just wondering why the animations won't work when the model is changed to another in-game.
[QUOTE=ReapDaWrapper;45704597]I'm having issues with animations with the models from the metropolice pack. (I'm using the models rigged for the CP and not pm.) They are having issues with most of the animations, causing a T-Pose. I'm looking around in the files but I'm not seeing anything that is causing this to happen. The phoenix_police, and other models used in the schema by default are working fine. edit: I changed one of the CP rank models in sh_config.lua to another model in the metropolice pack, and now the animations work just fine. Now I'm just wondering why the animations won't work when the model is changed to another in-game.[/QUOTE] Use nut.anim.SetModelClass("metrocop", "[Model Path Here]")
So I can just add all the models I wish to use, even if they aren't in use by the CP classes at the time, and be able to use them correctly if I do /charsetmodel?
[QUOTE=ReapDaWrapper;45706131]So I can just add all the models I wish to use, even if they aren't in use by the CP classes at the time, and be able to use them correctly if I do /charsetmodel?[/QUOTE] You should do, yes.
[QUOTE=RonanZer0;45704511]IIRC I tried using quick voice as both Overwatch Soldier, City Administrator and CP-SeC and they didn't appear. And since it's Chessnut answering, dude how do you use city scanners?[/QUOTE] Change your name to CP-SCN.12345
[QUOTE=imacc2009;45706203]You should do, yes.[/QUOTE] What anim group would the female CP belong to? I know it's from the assassin overwatch, but I don't know what the specific name for it is. But anyway, I got all the models working except for the female police. Thanks for the help.
[QUOTE=ReapDaWrapper;45709407]What anim group would the female CP belong to? I know it's from the assassin overwatch, but I don't know what the specific name for it is. But anyway, I got all the models working except for the female police. Thanks for the help.[/QUOTE] If it's the playermodel one, set it to the player anim class. If it's the metropolice pack, I'm not sure what you'd do.
[QUOTE=ReapDaWrapper;45709407]What anim group would the female CP belong to? I know it's from the assassin overwatch, but I don't know what the specific name for it is. But anyway, I got all the models working except for the female police. Thanks for the help.[/QUOTE] It uses Alyx's anims.
I cant access the wiki.
More questions, sorry if this is pretty much "spamming" at this point but hey, you gotta have info to have a good server. Anyway, how do I add ration dispensers and vending machines? I know about the /vendoradd command, but that isn't it, and I don't see ANY commands like /rationadd or /vendingmachineadd. Wat? EDIT Yes, I'm using SQLite. No, I'm not going to spend hours and dollars to switch to MySQL.
[QUOTE=RonanZer0;45714171]More questions, sorry if this is pretty much "spamming" at this point but hey, you gotta have info to have a good server. Anyway, how do I add ration dispensers and vending machines? I know about the /vendoradd command, but that isn't it, and I don't see ANY commands like /rationadd or /vendingmachineadd. Wat?[/QUOTE] You can find them on the entitys list or use help in the F1 menu.
[QUOTE=RonanZer0;45714171]More questions, sorry if this is pretty much "spamming" at this point but hey, you gotta have info to have a good server. Anyway, how do I add ration dispensers and vending machines? I know about the /vendoradd command, but that isn't it, and I don't see ANY commands like /rationadd or /vendingmachineadd. Wat?[/QUOTE] Or you can just access the spawn menu > Entities and spawn the vending machine and ration dispensers yourself and place them correctly.
OH MAN, THIS IS BAD... So I was just playing RP normally, I turned off the server with the "exit" command on srcds. Then I went to sleep, woke up, turned the server on, joined it and this was the start of the weird things. First of all, my characters are kept and fine, but now it says I'm in the 'user' group of the server. Note that I made NO changes whatsoever to the server between restarting it, just waiting some hours. OK, but wait, there's more. ALL of my doors that I spent hours using /doorsetunownable on are now OWNABLE!?!? Ugh... and all of my 3rd person plugin settings where reset, it probably has to do with this though seeing as a lot of things are glitching out. I did however do ONE thing before I restarted it. All I did was change the max characters from 4, to 6. NOTHING else. What the crap happened!? I AM getting one error, though, it's this, out of nowhere: [code] [ERROR] gamemodes/nutscript/gamemode/libs/external/sh_von.lua:131: vON: Malformed data... Can't find a proper type definition. Char#1: 1. error - [C]:-1 2. d_findVariable - gamemodes/nutscript/gamemode/libs/external/sh_von.lua:131 3. deserialize - gamemodes/nutscript/gamemode/libs/external/sh_von.lua:198 4. ReadTable - gamemodes/nutscript/gamemode/sh_util.lua:271 5. unknown - gamemodes/nutscript/plugins/3dtext.lua:35 6. Run - gamemodes/nutscript/gamemode/libs/sh_schema.lua:110 7. unknown - gamemodes/nutscript/gamemode/core/sv_hooks.lua:313 [/code] And just when my server was starting to get more players :( EDIT: Another bad problem with this, ever since this happened, everybody has to reconnect to switch characters, or else they have the delete-character style glitch except while trying to click the choose button. -_- NEED HELP!!!
Sorry, you need to Log In to post a reply to this thread.