• NutScript - Nutty name, serious framework
    2,778 replies, posted
[QUOTE=imacc2009;44770461]PlayX[/QUOTE] Oh, I just mean like a radio, but I guess your right I can probably find something on the workshop. :L By the way, I've been noticing that the female models are now T-posing for me with their fists down standing idle. :C
[QUOTE=Chessnut;44772825]There aren't running/walking raised animations for pistols though.[/QUOTE] Still. Everyone will get OCD. And if they know how, they'll set it manually.
Any idea what would corrupt a database? Only error around the time was; [QUOTE][ERROR] gamemodes/nutscript/gamemode/core/sv_hooks.lua:157: bad argument #1 to 'SetModel' (string expected, got nil) 1. SetModel - [C]:-1 2. unknown - gamemodes/nutscript/gamemode/core/sv_hooks.lua:157 3. Spawn - [C]:-1 4. callback - gamemodes/nutscript/gamemode/libs/sh_character.lua:649 5. callback - gamemodes/nutscript/gamemode/libs/sh_character.lua:435 6. Query - gamemodes/nutscript/gamemode/libs/sv_database.lua:222 7. FetchTable - gamemodes/nutscript/gamemode/libs/sv_database.lua:303 8. LoadID - gamemodes/nutscript/gamemode/libs/sh_character.lua:408 9. unknown - gamemodes/nutscript/gamemode/libs/sh_character.lua:644 10. func - gamemodes/nutscript/gamemode/libs/external/sh_netstream.lua:119 11. unknown - lua/includes/modules/net.lua:30[/QUOTE] then within a second all database tables apparently got dropped/corrupted. Attempting to dump it with sqlite3 didn't help and integrity check gives 'Page x is never used' (x= 2,3,1260,2868,2869,2960,2972,2977,3535). No charsetmodel command was run, the only thing that happened was a character 'John Doe' was loaded (Saved Char1 for Player1 at 01:26:25, Loaded 'John Doe' for Player1 at 01:26:25, lua error in the quote happened as the character was loaded then have a spam of Query Errors due to no such table: players and no such table: characters)
[url]https://github.com/Chessnut/NutScript/blob/master/gamemode/core/sv_hooks.lua#L157[/url] Doesn't match.
[QUOTE=Scottehh;44777677]Any idea what would corrupt a database? Only error around the time was; then within a second all database tables apparently got dropped/corrupted. Attempting to dump it with sqlite3 didn't help and integrity check gives 'Page x is never used' (x= 2,3,1260,2868,2869,2960,2972,2977,3535). No charsetmodel command was run, the only thing that happened was a character 'John Doe' was loaded (Saved Char1 for Player1 at 01:26:25, Loaded 'John Doe' for Player1 at 01:26:25, lua error in the quote happened as the character was loaded then have a spam of Query Errors due to no such table: players and no such table: characters)[/QUOTE] yep, happened to us too.
Running on previous version (github from last month) client:SetModel(client.character.model) being line 157. So in the latest version that would be line 162.
[IMG]http://i.imgur.com/Mnwv4Z7.png[/IMG] Is this an NS or Gmod error? I would assume its a Gmod error but I thought I should check here just in case.
It's GMOD error.
[QUOTE=rebel1324;44782137]It's GMOD error.[/QUOTE] Hrm, alright.
After updating to the newest framework, Ive been getting CTDs every time I delete a character. All I can see in the logs is something about the sh_currency not being able to find a character. Then it just says saving [character name], and that I timed out. Im not sure if its an SQL error (it shouldn't be), or what.
What's a CTD? Also post the errors.
[QUOTE=Chessnut;44786439]What's a CTD? Also post the errors.[/QUOTE] Crashing to Desktop.
[QUOTE=Legionary74;44785987]After updating to the newest framework, Ive been getting CTDs every time I delete a character. All I can see in the logs is something about the sh_currency not being able to find a character. Then it just says saving [character name], and that I timed out. Im not sure if its an SQL error (it shouldn't be), or what.[/QUOTE] upload the mdmp files
Here, Im deleting two characters and switching to another [QUOTE]Client "Your Greatest Ally" connected (24.44.18.98:27005). [ERROR] gamemodes/nutscript/gamemode/libs/sh_currency.lua:19: Attempt to get money in invalid character! 1. error - [C]:-1 2. GetMoney - gamemodes/nutscript/gamemode/libs/sh_currency.lua:19 3. unknown - gamemodes/nutscript/gamemode/libs/sh_character.lua:657 4. func - gamemodes/nutscript/gamemode/libs/external/sh_netstream.lua:119 5. unknown - lua/includes/modules/net.lua:30 [ERROR] gamemodes/nutscript/gamemode/libs/sh_currency.lua:19: Attempt to get money in invalid character! 1. error - [C]:-1 2. GetMoney - gamemodes/nutscript/gamemode/libs/sh_currency.lua:19 3. unknown - gamemodes/nutscript/gamemode/libs/sh_character.lua:657 4. func - gamemodes/nutscript/gamemode/libs/external/sh_netstream.lua:119 5. unknown - lua/includes/modules/net.lua:30 [Mon May 12 09:42:01 2014] Loaded character 'ggggggggggg' for Your Greatest Ally. Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Bad sequence (3 out of 1 max) in GetSequenceLinearMotion() for model 'error.mdl'! Your Greatest Ally<STEAM_0:1:18961659> changed their name to ggggggggggg[/QUOTE] EDIT: Just as I typed this, I crashed. The only lines added on to the above is [QUOTE][Mon May 12 09:44:05 2014] Saved 'ggggggggggg' for Your Greatest Ally. Dropped Your Greatest Ally from server (Your Greatest Ally timed out)[/QUOTE] MDMP file: [url]https://dl.dropboxusercontent.com/u/107846031/hl2_140419_crash_2014_5_12T13_43_44C0.mdmp[/url]
Some guy is selling the scanner plugin on coderhire for clockwork. [url]http://coderhire.com/scripts/view/1063[/url] Images (in case the page is changed) [url]http://i.imgur.com/oMMa05k.png[/url] [url]http://i.imgur.com/LtH17m6.jpg[/url]
Making money from someone elses script? Yeah... thats just pathetic.
[QUOTE=BayLife;44791318]Some guy is selling the scanner plugin on coderhire for clockwork. [url]http://coderhire.com/scripts/view/1063[/url] Images (in case the page is changed) [url]http://i.imgur.com/oMMa05k.png[/url] [url]http://i.imgur.com/LtH17m6.jpg[/url][/QUOTE] wow holy shit how low down must you be to literally take the content from X and call it your own
Is that even his port? It looks like the other port someone released: [url]http://forums.cloudsixteen.com/index.php?topic=5295.0[/url]
Apparently he's the same guy, and he said this. [quote]The advertisement for the Scanners shall be removed and taken from the list of things actually being sold, However it will still be in the bundle, for free.[/quote] [url]http://forums.cloudsixteen.com/index.php?topic=6913.0[/url] His reply is on page 2.
This is what we should not just walk away.
Just a note on the issue with the sh_currency, I had/have the same thing if you log on the character and delete it it'll work fine, but if you attempt to delete it from outwith the character it'll delete it client side, give lua error and still be there when you reconnect to the server next time.
I've been trying to get a salary working for classes instead of factions, so I more or less just copied the code in sh_factions, but when you change class the salary doesn't update. I think this has something to do with GetByID not updating when you change class, but I'm not sure. Would it be possible to just add CLASS.pay and CLASS.payTime to Nutscript by default?
Anyone have any idea what's causing the CTDs? Could it be my fault (I doubt it, I hardly changed anything), or a problem with the framework (although nobody else has had this issue afaik). I did 3 framework reinstalls and a new schema, and it still doesn't help it.
[QUOTE=Legionary74;44808200]Anyone have any idea what's causing the CTDs? Could it be my fault (I doubt it, I hardly changed anything), or a problem with the framework (although nobody else has had this issue afaik). I did 3 framework reinstalls and a new schema, and it still doesn't help it.[/QUOTE] Try verifying the integrity of your game cache. Open your steam library, right click Garry's Mod, then properties, local files then Verify integrity of game cache.
[QUOTE=Captain Spark;44808283]Try verifying the integrity of your game cache. Open your steam library, right click Garry's Mod, then properties, local files then Verify integrity of game cache.[/QUOTE] Did that twice, reinstalled gmod as well. Three people have tried and CTDd too.
Try recreating the db with nut_recreatedb in your server console(of course doing that will delete all the actual characters, etc etc)
Added a Vorti-Howl addon on the git. I know it was on the Coderhire page, but this is not the same one, just the same concept. EDIT: I added credits for his inspiration [editline]14th May 2014[/editline] I just found out that it doesnt even work properly. Gonna fix it now.
[QUOTE=Captain Spark;44808584]Try recreating the db with nut_recreatedb in your server console(of course doing that will delete all the actual characters, etc etc)[/QUOTE] Did that; [QUOTE]Client "Your Greatest Ally" connected (24.44.18.98:27005). [Wed May 14 21:06:02 2014] Created new character 'testttt' for Your Greatest Ally. [Wed May 14 21:06:04 2014] Loaded character 'testttt' for Your Greatest Ally. Your Greatest Ally<STEAM_0:1:18961659> changed their name to testttt You have made testttt an owner. [Wed May 14 21:06:31 2014] Saved 'testttt' for Your Greatest Ally. Bad SetLocalOrigin(-8781.540039,-20139.691406,-1.968750) on gmod_hands (350) Dropped Your Greatest Ally from server (Your Greatest Ally timed out)[/QUOTE] This has to be a framework problem.
Last solution, reinstall server and gmod.
[QUOTE=Captain Spark;44812140]Last solution, reinstall server and gmod.[/QUOTE] Did both twice. It doesn't do this with other gamemodes like Darkrp, just NS with the sample schema. I'm not sure what it can possibly be.
Sorry, you need to Log In to post a reply to this thread.