Scripts / lil car Script not working

Author
Message
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 2nd Jun 2016 11:06 Edited at: 2nd Jun 2016 11:11
Hi, I have been following this tutorial: https://www.youtube.com/watch?v=CC50B4jaP4Y

However when using it with a model I've made myself (A Panzer 1 tank) it does not work (no prompt appears and nothing happens upon pressing E).
Could someone please tell me whats wrong with this script:

PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 2nd Jun 2016 11:28
First things first, did you set your tank model as always active in it's editor properties (right click the tank and select properties set always active to yes)?

As to the script, there's a few minor errors in there, some -turnSpeed instead of turnSpeed, a few erroneous spaces and misspellings, nothing major.

Here's the actual script Ravey used:



Also make sure your tanks FPE is correct, here's the FPE RAvey used in his video:



I've also attached all the models and files, as well as the map that Ravey used, you may be able to look on there and see where you are going wrong.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.

Attachments

Login to view attachments
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 2nd Jun 2016 15:40
Thanks for the response, it now works! However one slight problem when using the script with my tank model is that the camera is not locked to the tank, I can control the tank and drive it round but the camera stays on the wizard charecter. Any idea why this is?
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 2nd Jun 2016 16:42
Is you character third person or first person? I think it only works with third person characters as it does that for me with first person characters.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Jun 2016 18:18
you need to put the name of the tank in the ifused field of the tank so the script knows to transport you inside it.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
SS slothman
9
Years of Service
User Offline
Joined: 5th Nov 2014
Location: UK
Posted: 3rd Jun 2016 12:08
@smallg

Thanks thats worked, I appreciate the help you and Belidos have given me.
PM
Bikay
User Banned
Posted: 6th Jun 2016 07:33
I have download the attachment and tried as given, but its not working.
When i pressed E key the wizard character get lock in the middle of the car but the car does not move why i dont know.I have set it always active and given the name in if used field also...can anyone tell me what i have to do to move the car.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Jun 2016 10:11
You should press WASD to move, can you get out by pressing E?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Bikay
User Banned
Posted: 7th Jun 2016 11:49
yeah i can get in and out by pressing key E but cant move wizard character and car by pressing key WASD.As i have seen in the tutorial they add g_keypressW = 0 in global lua script so i also did that but nothing happen same as before..so can you tell me what`s wrong am doing..
Am working in gameguru version 1.01,will it works it all version of gameguru..

thank you.
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 7th Jun 2016 12:10
Quote: "Am working in gameguru version 1.01"


That may be your issue then. 1.2 and 1.3 added a lot of new functionality to LUA, opening up a lot of the hard coded commands to us, the l'il car thing is quite recent, so it may be the commands used in it don't work. I don't know for sure without looking at the script and comparing it with the update notes.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Bikay
User Banned
Posted: 8th Jun 2016 10:26
okay i will try in GameGuru v1.2 and see whether it works or not.....and thanks belidos for your reply..

thank you
Bikay
User Banned
Posted: 12th Jun 2016 09:16
Hey guys,I have downloaded gameguru v1.121 to try the "lil car script" to test but its giving problem.I have install properly but when I try to run it says "steam_api.dll" is missing so what I have to do to run.I even uninstall twice and install again but same problem,where do I get steam_api.dll.please help me out to solve this problem.
My computer configure
Windows 10,Intel(R) core(TM) i3-4130,64-bit,8 gb ram.
Thank you.
Bikay
User Banned
Posted: 13th Jun 2016 18:13
I got this error..please help.

Below I have attach image have a look.
Bikay
User Banned
Posted: 13th Jun 2016 18:17
Sorry here it is..

Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Jun 2016 19:05
you need to have steam installed and GG installed via steam.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
str8savagem8
Reviewed GameGuru on Steam
8
Years of Service
User Offline
Joined: 17th Nov 2015
Location:
Posted: 13th Jun 2016 23:43 Edited at: 13th Jun 2016 23:44
I noticed when driving in the lil car map that you can drive through everything. I tried setting collisionmode to 1 in the FPE and it still goes through everything. Any way to fix?
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jun 2016 07:48
That's because the script turns off collision.

A non-character entity can only move while collision is turned off.

There is a couple of ways to give it the illusion of collision, bur neither are perfect.

1. You can set the LUA to turn collision on and off very fast, that way it can move and hit things, however your model will stutter and flicker.

2. You can increase the collision box for the character to encompass the whole model, but as far as I know you have to do that in the setup file so it's an all or none option and you won't be able to turn it down when you're not in the vehicle.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Bikay
User Banned
Posted: 14th Jun 2016 10:01
hey smallg i have already install GG ,from where i have to install steam.I have no idea so can you show me with some screenshots from where i can get and install steam.

thanks.
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jun 2016 11:08
How did you install GG without Steam? It's only available on Steam.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Jun 2016 18:41
well it runs without steam (as long as you have steam installed) so i expect it's fairly easy to pirate.
and a quick search shows v1.02 on torrent.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Bikay
User Banned
Posted: 15th Jun 2016 08:04
i found on google from there i have downloaded ,only steam_api.dll file is missing so can you share with me if you dont mind.I will be very thankfull to you guys.


thank you
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 15th Jun 2016 08:38
Firstly, if you have gotten a recent version of GameGuru from anywhere other than steam, then it is not a valid download and is not supported, I do hope that you originally purchased it from steam, or originally from TGC before it was on steam (in which case you should have been given a steam key when they moved over to steam).

Secondly, steam_api.dll Is part of the steam app, you would need to get it from them, primarily by installing steam.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Bikay
User Banned
Posted: 16th Jun 2016 09:45
I have steam_api.dll of GG version 1.01 will it work with GG version 1.121.
str8savagem8
Reviewed GameGuru on Steam
8
Years of Service
User Offline
Joined: 17th Nov 2015
Location:
Posted: 16th Jun 2016 16:07
Yeah, if you have steam installed.

Login to post a reply

Server time is: 2024-05-04 07:19:25
Your offset time is: 2024-05-04 07:19:25