Scripts / Small video showing off my latest Lua experiment

Author
Message
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 8th Aug 2016 19:06 Edited at: 8th Aug 2016 19:07
https://vimeo.com/178053915

I've been on holiday in my caravan for the past two weeks with no internet connection so I had a play around and came up with this nifty little (actually it's quite big) script.

The uninitiated may view this and say "so what', others may say "wow".

It is a work in progress and has got to the point that most of my scripts reach, i.e. I now want to re-write the whole thing to simplify some parts and make it more generic.

In addition, whilst developing this I have uncovered a few GG bugs and some other strange behaviour that I'll have to pass on to Lee when he gets back off holiday.
Been there, done that, got all the T-Shirts!
PM
MChapman
8
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 9th Aug 2016 02:59
That's quite amazing,it would be good for puzzles and player house decorating.
Markchapman10 is my Skype let's have some dev talk.
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 9th Aug 2016 20:37
i want this!!!!!!!!!!!!!! supercool
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
Mr Xela
8
Years of Service
User Offline
Joined: 27th Dec 2015
Location:
Posted: 9th Aug 2016 20:41
I want this!! When will it be released? Will it be free? Or will we have to buy it?

I'd so buy this honestly can be handy.
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 9th Aug 2016 21:13
I'm not quite happy with it enough to put it in the store, as I said there are a few issues with GG that mean it doesn't work quite as well as I'd like and there are a few areas I would like to polish a bit.

When Lee gets back of holiday I'll email him about the, um, strange behaviour I've discovered (can't really call them all bugs yet as Lee may have a very good reason why they are there) and take it from there.

In the mean time a few teasers, entities can be picked up, rotated, and dropped. If you place an entity on top of another that is level (i.e. not rotated in x or z planes) in such a way that it won't topple off then it is 'stacked', this means that if you pick up the entity it is stacked on then they both move as one.

Any number of entities can be stacked and carried, I'd really like some way of reading the physics characteristics from within Lua and controlling the movement speed of the player based on the total 'weight' of the objects but that is probably a long way off.

Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 9th Aug 2016 21:18
Oh, and I'd like some way of 'throwing' objects, but again that would probably need some engine changes from Lee.
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Aug 2016 23:25
Question for the people interested in this script:

I have another set of scripts which allow the player to pick up and run around with 'lit' objects, i.e. torches or candles. These scripts currently are distinct but I was thinking that it might be useful to merge them into a more generic script, for example the player could start off with a tray, two candle sticks, pot of tea, plate, biscuits, cup and saucer. Then by carefully placing each item end up with a breakfast in bed style affair, complete with lit candles, which can then be picked up and carried upstairs (or in the lift if using my lift scripts) to be placed on the bedside table.

Am I over-thinking things her or would this be something people would be interested in having?



Been there, done that, got all the T-Shirts!
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 14th Aug 2016 17:20

a torch script?
Moses put all these great stuffs on the store or where you want so we can buy them....holy god
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 14th Aug 2016 18:21
Very cool AmenMoses .

Dave
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 14th Aug 2016 20:17 Edited at: 14th Aug 2016 20:17
Yeah, this:

https://vimeo.com/175301646
Been there, done that, got all the T-Shirts!
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Aug 2016 21:11
I'd just be happy to have a torch to carry around

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.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 14th Aug 2016 21:37
Here you go, have a play around with these.

If you use different entities to the ones in the video you will have to tweak the Y offset constants.

The flame script should be attached to a flame decal, there are a few dotted around in the entity bank (why aren't all the decals in one place?) just pick the one that looks good and scale it to the right size, the scripts handle the positioning of the flames
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Wolf
Forum Support
16
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 15th Aug 2016 03:15
Now this! This is cool!!

So many ways to use this for puzzles and general interaction.



-Wolf
"When I contradict myself, I am telling the truth"
"absurdity has become necessity"
Mortt
7
Years of Service
User Offline
Joined: 16th May 2016
Location:
Posted: 16th Aug 2016 20:24
Oh so nice.
How do you manage to turn it.
The one I was working on sticks to mouse. But I haven't fathomed out how to turn it yet.

That is so handy for using in my WIP.
(Custom) Intel i7 3.3 Mhz. 16 GB fast ram. EVGA Nvidia 560 Ti 4GB. Dell US27 2560 x 1440. AOC 24 1920 x 1080. Awesome.
Next G. Card EVGA GeForce GTX 970 Superclocked ACX 2.0 Gaming 4GB GDDR5 PCIe3.0 Graphics Card.
Would Like EVGA NVIDIA GeForce GTX 1080 8GB GDDR5X PCIe3.0 Graphics Card
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 16th Aug 2016 23:49
Actually the rotation is where the GG 'bugs' are. For some reason 'x' rotation of an entity is not related to the 'x' axis in the game but 'z' rotation is. Also 'y' rotation is a bit weird as it seems to go from -90 .. 0 .. + 90 when reporting the value but 0-360 when setting it. Makes the math a wee bit difficult to say the least.

I'm going to have to ask Lee if it possible to make all the rotations the same and (possibly configurable with a command so existing scripts will still work) make them all 0-360 (or even make radian versions so I don't have to keep converting back and forth).

Been there, done that, got all the T-Shirts!
PM
Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 17th Aug 2016 09:34
that looks awesome!!! Can't wait for it to reach the store!
TazMan
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 20th Jan 2011
Location: Worldwide Web
Posted: 17th Aug 2016 11:59
This will be perfect in my adventure game, thanks.
Alienware M15x I7 720QM (1.60Ghz 8mb), 8GB Memory, 1GB NVIDIA GForce GTX 260m, 15.6", 64 Bit Operating System (Windows 10), 1 TB Hard Drive.

I've got something to say - It's better to burn out than fade away.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 18th Aug 2016 02:21 Edited at: 18th Aug 2016 02:38
So either I'm in a very giving mood or maybe the tremendous success of the British team in the Olympics has effected me or maybe I've just had too much to drink but here is the Lua script, for free.

It isn't 'finished' to the extent I would like and I reserve the right to polish the turd further and put it on the store at some later date but feel free to take it as is for whatever use you may have for it in your games. All I ask is 1) Credit me somewhere in your game credits ("Thanks to some bloke on the forums" or similar) and 2) Please don't stick it on the store and claim it as your own!

If you can't figure out how to use it or have any questions about how it works just post them on this thread.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 18th Aug 2016 02:42 Edited at: 18th Aug 2016 02:42
Btw, if you want to say thank you and don't have them yet go buy my compasses from the store.
Been there, done that, got all the T-Shirts!
PM
Isagabe
9
Years of Service
User Offline
Joined: 12th Sep 2014
Location:
Posted: 18th Aug 2016 08:08 Edited at: 18th Aug 2016 08:14
@AmenMoses thank you for the complex scripts and your generosity.
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 19th Aug 2016 00:02
many thanks...

purchased your compasses many time ago..
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM

Login to post a reply

Server time is: 2024-05-04 00:07:47
Your offset time is: 2024-05-04 00:07:47