• SCars 2.0
    368 replies, posted
Finally, an addon where 5 year olds can feel like they built something without doing anything!
I have downloaded that pack and it spams my console with that clientside error all the time while I am not in a vehicle: [CODE] [SCars Slim] lua/autorun/client/scarradio.lua:457: Tried to use a NULL entity! 1. GetNetworkedEntity - [C]:-1 2. v - lua/autorun/client/scarradio.lua:457 3. unknown - lua/includes/modules/hook.lua:84 [/CODE] It seem's somebody forgot an IsValid(ent) check. :v: My GMod is clean and its version is 15.31.01. [del]Edit: The car radios doesn't seem to play neither.[/del]
So uh...what happened to all the tanks?
How can I get the wireframe+ shiny particles effect when I spawn an SCar/SBike? (Images below). I heared it needs a good graphic card maybe? [IMG]https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t34.0-12/11005792_1586589474921035_1710194625_n.jpg?oh=4ed7562c2b7645dbc539ae6c89624c3f&oe=54EFCBD4&__gda__=1425073952_be81052e085f3d94d37dd0268b3aa3ba[/IMG] [IMG]https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t34.0-12/11022906_1586589481587701_510844409_n.jpg?oh=a6d7e0b14860dc41cc09110dc168cc6c&oe=54F0F6C1&__gda__=1425078225_e0e8f8774876f14adc1c78a6f0f2afb8[/IMG] [IMG]https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t35.0-12/11028647_1586589484921034_1818707309_o.jpg?oh=62f9630c9ac12e94a1b0fd12656d3656&oe=54F0BF2D&__gda__=1425071257_bf97026aae0fff1d639626360e98e59b[/IMG]
[QUOTE=Grocel;47053506]I have downloaded that pack and it spams my console with that clientside error all the time while I am not in a vehicle: [CODE] [SCars Slim] lua/autorun/client/scarradio.lua:457: Tried to use a NULL entity! 1. GetNetworkedEntity - [C]:-1 2. v - lua/autorun/client/scarradio.lua:457 3. unknown - lua/includes/modules/hook.lua:84 [/CODE] [B]It seem's somebody forgot an IsValid(ent) check. :v:[/B] [...][/QUOTE] I fixed it myself, because the progress seems to a bit slow/dead here. In case you want the fixed script, you can get it here: [URL]https://dl.dropboxusercontent.com/u/16654098/gmod/scar/scarradio.lua[/URL] I added that messing IsValid() check (it was relay messing) and everything is fine now. It seems a bit strange to me that Sakarias88 has not noticed it yet. Maybe ent:GetNetworkedEntity() has changed its behavior to error on NULL entities in the dev version. To replace it, put it in lua/autorun/client/scarradio.lua. Im not sure if the workshop overrides the script, so you may have to extract the addon and replace it there.
[QUOTE=Grocel;47226706]I fixed it myself, because the progress seems to a bit slow/dead here. In case you want the fixed script, you can get it here: [URL]https://dl.dropboxusercontent.com/u/16654098/gmod/scar/scarradio.lua[/URL] I added that messing IsValid() check (it was relay messing) and everything is fine now. It seems a bit strange to me that Sakarias88 has not noticed it yet. Maybe ent:GetNetworkedEntity() has changed its behavior to error on NULL entities in the dev version. To replace it, put it in lua/autorun/client/scarradio.lua. Im not sure if the workshop overrides the script, so you may have to extract the addon and replace it there.[/QUOTE] Hello. Will have a look at it soonish.
Should be fixed now I hope.
It's fine now, thanks. Have you thought about refactoring the radio to use sound.PlayURL() instead of a HTML panel, yet?
[QUOTE=Grocel;47244864]It's fine now, thanks. Have you thought about refactoring the radio to use sound.PlayURL() instead of a HTML panel, yet?[/QUOTE] No, I haven't. Didn't even know sound.PlayURL() existed. Do you think it will work better?
The [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sound/PlayURL]sound.PlayURL[/url] and [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sound/PlayFile]sound.PlayFile[/url] functions are bindings to the [URL="http://www.un4seen.com/bass.html"]Bass library[/URL] which got added in the GMod 13 Update. They allow you to play radio streams and mp3 files. However the URL must be leading to the actual mp3 stream, not just to a HTML page that plays a sound. Which will cause problems with Youtube URLs or Online streams which offers just a webplayer or flash. The most interesting stuff about these functions is that you can play the streams as 3D sound and that you can do some fancy visualizing with the [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/IGModAudioChannel/FFT]IGModAudioChannel:FFT[/url] method. These function supports all formats the Bass library does.
[QUOTE=Sakarias88;47247903]No, I haven't. Didn't even know sound.PlayURL() existed. Do you think it will work better?[/QUOTE] Have you looked at the latest update. Scars may be the culprit in recent server crashes. My server seems to crash on occasion when people spawn scars although I haven't been able to pin point the issue. Have you received any other reports claiming this? It verywell could be a problem with prop protection or Evolve but at this point, I am unsure.
Hi i have Scards 2.0 Slim and Bike in my DarkRP server but : it say : Health not registered and when i turn at left, right, it's slow.. do you know why ?
[QUOTE=Xonos;47303985]Have you looked at the latest update. Scars may be the culprit in recent server crashes. My server seems to crash on occasion when people spawn scars although I haven't been able to pin point the issue. Have you received any other reports claiming this? It verywell could be a problem with prop protection or Evolve but at this point, I am unsure.[/QUOTE] GMod shouldn't crash unless it's something that's impossible to prevent. Would surprise me if it's impossible to prevent. [QUOTE=Nipola;47649705]Hi i have Scards 2.0 Slim and Bike in my DarkRP server but : it say : Health not registered and when i turn at left, right, it's slow.. do you know why ?[/QUOTE] Don't know. The SCars scripts doesn't contain the string "Health not registered". Or at least not the ones I'm responsible of. [QUOTE=Grocel;47249487]The [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sound/PlayURL]sound.PlayURL[/url] and [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sound/PlayFile]sound.PlayFile[/url] functions are bindings to the [URL="http://www.un4seen.com/bass.html"]Bass library[/URL] which got added in the GMod 13 Update. They allow you to play radio streams and mp3 files. However the URL must be leading to the actual mp3 stream, not just to a HTML page that plays a sound. Which will cause problems with Youtube URLs or Online streams which offers just a webplayer or flash. The most interesting stuff about these functions is that you can play the streams as 3D sound and that you can do some fancy visualizing with the [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/IGModAudioChannel/FFT]IGModAudioChannel:FFT[/url] method. These function supports all formats the Bass library does.[/QUOTE] Sounds awesome! I should really make a git repo or something since I rarely have time to work on my addon projects nowdays.
Is there any ways to set the engine sounds back to their original pitch? Because it seems the SCars tends to produce their engine sound in a higher pitch than normal. Plus how do I write the directory of the advanced engine sounds into the SCar lua? I tried to direct it to the folder but it doesn't work.
[QUOTE=KD007;39814287]Some people have a lot of addons installed like Wire and CAP that use a lot of SetNWInt and SetNWString an such. If SCars is mounted after them, and there is no more room in the net table, invisible cars from STool and empty premade car list are both symptoms. We need to take this up with Garry, so he could add a CVar that allows one to expand the networked variable table..[/QUOTE] Yes i agree also my scars tab show up with cars BUT when i click on the car i want it dosent show up so i agree because of wiremod and its useless!
@Sakarias88 There is a glitch if SCars are integrated into items and spawned, (not recommended for server owners unless you have a nice coder) it messes the scar contraints up, and if the vehicle is blown up it crashes the clients (not the server). Took us forever to figure this one out. (Tested on Nutscript and our developing script) Still love the addon, I wish the vehicle packs that people create didn't have such huge size differences. Either way, I loved the TDMScars! Need more packs like that one.
[QUOTE=SentySent;47697308]Is there any ways to set the engine sounds back to their original pitch? Because it seems the SCars tends to produce their engine sound in a higher pitch than normal. Plus how do I write the directory of the advanced engine sounds into the SCar lua? I tried to direct it to the folder but it doesn't work.[/QUOTE] The pitch depends on the sound type. You got the simple engine sounds (one sound) and advanced engine sounds (combination of multiple sounds). If i remember it correctly it pitches the sound from 100 to 200 where 200 is max rev and twice the speed. If you are trying to create an advanced engine sound it works a bit different. I'm sure I posted a pic at some point explaining how it worked. If you need more info I recommend you check the docs. Mirror 1: [url]http://www.filedropper.com/savedscarcontent[/url] Mirror 2: [url]http://www.megafileupload.com/4Lcv/Saved_SCar_content.zip[/url] [QUOTE=MatureGamersNetwork;48094532]@Sakarias88 There is a glitch if SCars are integrated into items and spawned, (not recommended for server owners unless you have a nice coder) it messes the scar contraints up, and if the vehicle is blown up it crashes the clients (not the server). Took us forever to figure this one out. (Tested on Nutscript and our developing script) Still love the addon, I wish the vehicle packs that people create didn't have such huge size differences. Either way, I loved the TDMScars! Need more packs like that one.[/QUOTE] So far the intended way to spawn vehicles is through the SCar tab. How do you integrate vehicles into items? If you need additional information I recommend you check how the spawn function works for SCar vehicles. You can use gmad to unpack workshop addons and look at the source code. I think that what you want to look at is a function called MakeVehicle in s_scarconsole.lua. It will create the vehicles properly. Use that function if possible. That function is connected to a console command called gm_spawnscar which triggers the function CCSpawnSCar in s_scarconsole.lua which in turn will call MakeVehicle. Use this console command if possible. If not try to make your spawn function similar to avoid issues. About that crash. Gmod shouldn't crash. Send crash logs to Garry. I'm certain he will be able to fix it unless I'm doing something weird which he cannot prevent (for whatever reason). Do you get any specific error before the crash occurs?
I cant drive my cars straight for more than five seconds before eventually having my wheels sink into the ground. Why? EDIT: It only happens when travelling above 80 MPH, if that is more specific.
[QUOTE=TheRazor918;48402857]I cant drive my cars straight for more than five seconds before eventually having my wheels sink into the ground. Why?[/QUOTE] Here is a story for you. Once upon a time a larger GMod update was released. This updated changed the default physics settings. The effect was that fast spinning objects (wheels) sunk through the ground. A patch to SCars was released to adress this issue which changed the settings back to the old default values. This SCar update solved the particular issue you are experiencing. I cannot reproduce your issue so I would assume that you got another addon installed that override the values that SCars applies. Don't remember exactly what addon was causing this issue (thought the conflicting addon had the settings fixed). Think it was some bomb or fireworks addon but I'm not entirely sure. Have you installed any new addons lately? Try disabling it and see if it solves the issue. If you find out which one it is please post it here. Maybe I could work something out with the author.
I've just noticed the air control option after using this addon for a year, do you mind explaining what it does?
[QUOTE=SentySent;48444727]I've just noticed the air control option after using this addon for a year, do you mind explaining what it does?[/QUOTE] It allows you to control your vehicle in the air, sorta like GTA 5.
You know the AI option for scars? like make a car follow you and stuff? none of it is working for me, except for wander. i spawn an AI in a car, the car will turn on, and nothing will happen. please help.
how do you mean by cleaning up gmod, is it uninstalling mods, or what?
[QUOTE=The Fyre;48861174]how do you mean by cleaning up gmod, is it uninstalling mods, or what?[/QUOTE] Yes and no. A cleanup used to mean that you just delete your gmod folder which will wipe all addons and all the state. This is not entirely true anymore since even if you do a cleanup gmod will start downloading all workshop addons again once you start gmod. If a workshop addon is causing some kind of conflict you will have to disable it. The bad part is that it's hard to say which addon it might be. You can just guess. What kind of issue are you experiencing? Depending on the issue a cleanup may or may not help. If you want to try a cleanup you can follow these steps. 1. Rename your gmod folder to something like "garrysmod backup" to keep it as backup in case you change your mind. 2. Download gmod through steam. 3. Start gmod and let it download all your workshop addons. 4. Disable all workshop addons. 5. Restart gmod. 6. Enable the SCar addons. You need to enable at least Slim. You can enable Basic and Extra as well. 7. Start a single player game and ensure SCar works. You actually have to do this before joining multiplayer for some reason. I've experienced missing textures and models if I joined a multiplayer server directly. Not sure why.
I've noticed an inconveniant bug with the checkpoints and saves. The checkpoint system is really cool and perfect for my purposes, it even works with most of the other vehicles in the workshop (currently using this with a lot of the Lonewolfie cars). There is one major problem however; when you setup the checkpoints in a nice circuit and then save, upon loading the save it messes the whole thing up with errors over everything. It looks like it's completely loosing the checkpoint order and spawning duplicate checkpoints and a duplicate race starter gizmo. It works perfectly before you save, which is a shame as it takes time to setup a good circuit, especially on big maps (I'm testing with both the variations of the GM_Highway map). I'm just using the Scars slim for my purposes, and I've tried this with all addons disabled and just the Scar's enabled with the same results. It even messes up all the checkpoints on the community saves on the GM_Highway192000 map. Maybe it's to do with a new update of Gmod? I'm just clutching at straws there :D Also, is there a way to replace the race music with randomly selected MP3's? (The files are all on my hard drive). Additionally, is there a way to make maps with the checkpoints added during map making? Hopefully this can be fixed as I have plans to make nice scenic race tracks :D
[QUOTE=Lexus_Alyus;49467335]I've noticed an inconveniant bug with the checkpoints and saves. The checkpoint system is really cool and perfect for my purposes, it even works with most of the other vehicles in the workshop (currently using this with a lot of the Lonewolfie cars). There is one major problem however; when you setup the checkpoints in a nice circuit and then save, upon loading the save it messes the whole thing up with errors over everything. It looks like it's completely loosing the checkpoint order and spawning duplicate checkpoints and a duplicate race starter gizmo. It works perfectly before you save, which is a shame as it takes time to setup a good circuit, especially on big maps (I'm testing with both the variations of the GM_Highway map). I'm just using the Scars slim for my purposes, and I've tried this with all addons disabled and just the Scar's enabled with the same results. It even messes up all the checkpoints on the community saves on the GM_Highway192000 map. Maybe it's to do with a new update of Gmod? I'm just clutching at straws there :D Also, is there a way to replace the race music with randomly selected MP3's? (The files are all on my hard drive). Additionally, is there a way to make maps with the checkpoints added during map making? Hopefully this can be fixed as I have plans to make nice scenic race tracks :D[/QUOTE] Don't remember if saving the checkpoints ever worked. I know I have poked around a lot with the saving and loading stuff when it comes to the scar entities at least and if i remember it correctly it was rather bothersome. I think in its current state saving a SCar works in some special cases. I will take a look at it again to see if it's still that bothersome and try to fix it for both the SCars and the checkpoints. About the race music. You can use your own music by creating a folder called "racemusic" in your sound folder. Example: "D:\Games\Steam\steamapps\common\GarrysMod\garrysmod\sound\racemusic". Think it only supports wav and mp3. Next time you start a race it will select a random track for you.
SCars seems to be broken, wheels start spazzing out and delete themselves. Is this a bug or my game?
[QUOTE=CMPunkBITW;49964275]SCars seems to be broken, wheels start spazzing out and delete themselves. Is this a bug or my game?[/QUOTE] Just tried SCars. Didn't experience anything like that. Could be some addon causing it. Could also be that you join a server and then start singleplayer you may carry over some of the configuration for that server. If it changes physics settings that could cause issues. A game restart might help.
I am having strange things with wheels too. If you make the wheel fall off in one hit (like shooting it with a crossbow), the car flies away at mad speed. If you just try to shoot the tire, the car freaks out and constraints itself with world. Verifying game files and disabling all the addons didn't help.
[QUOTE=iCRASH;49967050]I am having strange things with wheels too. If you make the wheel fall off in one hit (like shooting it with a crossbow), the car flies away at mad speed. If you just try to shoot the tire, the car freaks out and constraints itself with world. Verifying game files and disabling all the addons didn't help.[/QUOTE] When you tried disabling all addons did you do it like in the order below? 1. Start Gmod 2. Disable All addons 3. Enable SCars Slim only 4. Exit gmod 5. Start Gmod again 6. Start single player If you don't do it in that order there may still be state left from disabled addons. If that still doesn't work you could clean up GMod. Before you follow the steps in the video below I would do a backup of the Garrysmod folder. Just copy paste it and name it "GarrysMod Backup" or something. [video=youtube;5VM5Zpo4qLA]https://www.youtube.com/watch?v=5VM5Zpo4qLA[/video]
Sorry, you need to Log In to post a reply to this thread.