Product Chat / Simple Lunar Launch Script and Video Demonstration

Author
Message
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 15th Jul 2019 13:45 Edited at: 16th Jul 2019 17:45
Hi everyone. Here's a quick video showing how to add your own ship launching system. As it is 50 years (or close enough) since the Moon Landings I thought I'd make it Moon themed

This is just a simple example and I will make a second video showing how you can get this to work with several objects. I thought it best to do it the easy way first though. That way you will see why the changes I make are needed.
Here is the code used.

Part 2 is now done.

Here's the code.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 15th Jul 2019 14:57
very good this, miss your video tuts.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 15th Jul 2019 15:07
Cool vid ,thank you

Dave
Windows 10 Pro 64 bit
GeForce RTX™ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 15th Jul 2019 17:27
@DVader : Always great to see a new video tutorial from you, especially showing a little scripting in there too! Who knows, maybe one day we can all stop using notepad for our GameGuru coding The best thing I have found is Notepad++ as it highlights LUA syntax and some snazzy add-on out there also lists GameGuru LUA commands too, though cannot remember where the link to that is at the moment.

PC SPECS: Windows 10 64-bit, Intel Core i7-8700K, NVIDIA Geforce GTX 1080 GPU, 16GB SYSTEM RAM

Attachments

Login to view attachments
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 16th Jul 2019 00:58
Quote: "he best thing I have found is Notepad++ as it highlights LUA syntax and some snazzy add-on out there also lists GameGuru LUA commands too, though cannot remember where the link to that is at the moment."

Here Ya go Lee … I made it a sticky some time back

https://forum.game-guru.com/thread/219215
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 16th Jul 2019 01:24 Edited at: 16th Jul 2019 04:00
This should not be an addendum. I should have said this from the beginning. Thanks, Dvader, I can see many uses for it other than the moon lander. I'm sure you already implied that or even mention it.


I am so sorry about my links for the extended command files (xml). I used my web site which is defunct now. I will provide them here. Watch this space!

Configuration and setup instructions
1. If you have not downloaded Notepad ++ then click here to download.

2. You will need to download the API for Lua. Click on the download link below. This is an updated version that takes it through all the "water" commands.

Lua API installation instructions:
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory

Attachments

Login to view attachments
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 16th Jul 2019 02:26
@ Flatlander
Ty mate, really useful addition.
I'm going to update.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 16th Jul 2019 02:29
@ DVader
Great travel to the moon.
Ty 4 share it.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 16th Jul 2019 08:26 Edited at: 16th Jul 2019 11:09
Thanks everyone. I hope it helps out either with a script that is useful or as a help to scripting your own variants.

I may download Notepad++ at some point lol, although I keep saying it and never do. At least using the basic built in version makes it super easy to get started As in right click script, open using... Still only one step extra (or 2 possibly) to add notepad++.

I'll be making part two when I can, showing some missile launches. The object I have used for it though is a little broken : The nuclear missile from the low poly items. It does the job to show the script working, but is looking odd now with PBR. Not sure the reflections work with it as it's both low poly and I assume a small texture size.

EDIT -Just tried notepad++. Not sure about the plug in to get GG commands in though. My notepad++ version does not have an api directory. I noticed it's a newer release than the one above. Does this only work on the older version?
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.

Attachments

Login to view attachments
Earthling45
8
Years of Service
User Offline
Joined: 3rd Sep 2016
Location: Zuid Holland Nederland
Posted: 16th Jul 2019 11:30
Same here, no api directory.

Attachments

Login to view attachments
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 16th Jul 2019 12:09
yeah, so guys, just create a folder named "APIs" under the plugins folder and copy the xml to that folder.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 16th Jul 2019 13:02
@Flatlander : May I include your instructions and LUA command file in a future update of GameGuru as it would mean everyone has instant access to it, and would certainly help users who are starting out with LUA?
PC SPECS: Windows 10 64-bit, Intel Core i7-8700K, NVIDIA Geforce GTX 1080 GPU, 16GB SYSTEM RAM

DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 16th Jul 2019 13:09
Tried making a directory called api and APIs, set preferences up and no change. Lua commands work, but they did at the start anyway. I have noticed a directory called autocompletion and it already has a default lua.xml file in there. I tried replacing it with the one supplied but again no difference.
I'll have a look later again, but this is one reason why I just stick with notepad, it just works. There's no temptation to waste time with addons

So no idea why it isn't playing ball, apart from it being a newer version. Perhaps getting the old version will sort it.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 16th Jul 2019 13:24
latest version is 7.7.1 which is the one I use both 32/64 bit. I have a folder APIs under plugins, I then copied over the xml file , checked the preference settings and viola , all working ok.... but yep nothing wrong with using notepad, although for LUA I use SCiTE as you can compile the code to check for syntax error and highlights keywords etc .
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 16th Jul 2019 13:34
UNDER plugins or in it? I took it as in plugins, but perhaps you meant in the root folder actually underneath plugins? That, or perhaps it's an admin thing. I might try installing it somewhere else.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 16th Jul 2019 13:49
see screenshot, hope it helps/clarifies:

Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.

Attachments

Login to view attachments
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 16th Jul 2019 14:12
Perhaps I am just thinking the GameGuru specific commands should highlight? They look the same, it does however seem to list commands as you type them, so it's working in that sense. My Notepad++ is in the normal programs files location as well rather than x86 as it's the 64bit version. All settings are as suggested above. Ah well, perhaps I'll get it working in the future. Going to go back to the important work of writing the code for now!
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 16th Jul 2019 20:58 Edited at: 16th Jul 2019 21:01
Just adding something else.
This is whave I've:









https://forum.game-guru.com/thread/219215

hth
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

Attachments

Login to view attachments
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 17th Jul 2019 07:48
Cheers 3com. I don't have the gameguru xml so that would probably be it. First I've heard of it. Although I found yesterday that files I save in notepad++ also seem to not be picking up in Gameguru, if I save them as a new name. I think I'll just go back to plain old reliable notepad. I knew there was another reason why I didn't use notepad++.

Part 2 is up by the way Now you can launch as many missiles as you like
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 17th Jul 2019 11:57
all works a charm, thanks Dvader
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 17th Jul 2019 13:07 Edited at: 17th Jul 2019 13:11
TBH I'm nor sure where I've got that gameguru xml file.
I have GG lua working on notepad times ago, I guess perhaps notepad++ create it once you setup all the needed settings?

Someone remember where to grab gameguru xml file?

Anyway love Notepad++

Edit: it seems such as not everybody think like me.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 17th Jul 2019 17:29
Quote: "Someone remember where to grab gameguru xml file?"


It's attached to a post in this thread.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 17th Jul 2019 19:09
maybe this link also: https://forum.game-guru.com/thread/213931#msg2534583
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 17th Jul 2019 19:10
Oh, miss that link, ty Belidos.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 17th Jul 2019 19:13
Hey BOTR, now it is very clear.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 18th Jul 2019 05:15 Edited at: 18th Jul 2019 05:19
First off, GameGuru.xml does not work. It needs to be lua.xml which is the same as the extension name for written Lua command files. This is because there is no such thing as a Gameguru programing language as you will need to choose your language to "lua" and then it will act on the file name that has "lua" for its name. Also, there seems to be a problem with the newest version of notepad++ (v7.7.1). I am still using v7.5.7. I tried the new version and just can't get it to recognize "Lua" xml files. With older version the xml file goes into "notepad++\plugins\apis\". I have no idea where to put it in the newest version. I tried it in "APIs" (need to create a folder) and then I just simply tried the "plugins" folder. No joy there either. I even found a list of the lua commands and added them. So now if I want to use them for just auto-insert I can. The help features didn't come with.
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th Jul 2019 06:39
Works fine on mine with 7.7.1, so not sure why you guys having problems. As said before I use Scite, which is a proper lua editor/ compiler. But use what ya comfy with.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 18th Jul 2019 07:38
Quote: "all works a charm, thanks Dvader"

Thanks. I hope it's useful.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 18th Jul 2019 09:31 Edited at: 18th Jul 2019 09:32
Quote: "Works fine on mine with 7.7.1, so not sure why you guys having problems. "


Not having any issues here as well, i literally just installed it on my new gaming laptop (8th gen i7, 16gb mem, 1080 gfx, 900gb ssd) today and added the updated LUA xml, works fine.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th Jul 2019 09:44
I dear this sounds like I.T. crowd , but have you tried turning it off and on again.... no, but seriously, please try uninstalling the versions you have of notepad ++ and clear residue folders/files and re-install. it should work.

Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 20th Jul 2019 23:33
don't mean to hijack this thread but would this be of interest as far as a LUA editor is concerned ?? https://forum.game-guru.com/thread/220822?page=4#msg2618270
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
Laptop - Helios 300 Predator - i7 7700HQ - 32GB - Nvidia GTX1060 6GB - 525GB M2 - 500 SSD - 17.3" IPS LED Panel - Windows 10 Pro x64
Various Tutorials by me
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 23rd Jul 2019 20:53
Looks cool Graphix. Great work! I really must try to get into VB some day! Using game making tools to do this sort of thing would be extremely laborious! VB is really good for this sort of thing I did get into VB 5, I think it was 5 anyway, many years ago and wrote a database for the shop I worked for. A PC sales database so we could keep detailed info easily at hand for each machine sold: Customer details, Parts, prices, suppliers, invoice numbers and dates etc. Not that every one who worked there could be arsed to enter the data The human element is an issue sometimes, lol. I got round it with a printed form, so they could use that and then I would add it into the database later.

Your getting into the coding addiction I see Isn't it just cool to write some code and get it all working? Nice work!
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.

Login to post a reply

Server time is: 2024-11-24 00:46:37
Your offset time is: 2024-11-24 00:46:37