Product Chat / [SOLVED] Game Zone

Author
Message
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 8th Sep 2019 13:19
Hi, I'm new to GG and have a question.

To border the game zone I created a wall. So far so good.
But if I position an enemy outside the wall, he can apparently see me and shoot at me.
How can I avoid that?
This is my FPE setting:


The author of this post has marked a post as an answer.

Go to answer

Attachments

Login to view attachments
PM
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 8th Sep 2019 20:30
Hello fumar!

Try adding the line "forcesimpleobstacle = 3" to the model and place the enemy a few centimeters further back.

Now in your fpe I noticed that you used .jpg files as the texture. I recommend agains that, try using .tga or .dds files instead as you will eventually want to load in shaders as well and I think to remember GG not loading them if you use .jpg files. (Its also bad form as far as content creation goes, but thats not important here.)

If you add a normal and a specular map, you will also have a prettier model as it reacts to environment light in a more appealing way.
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 8th Sep 2019 20:54
Sure. Great question. I think there needs to be a global function to
check if there is a solid body (object) between an enemy and the player--
well to make sure it's a standard object (NOT enemy) at the same time.
In fact, perhaps I saw some discussion on this a few months earlier.

I think smallg might have come up with a detect object between player
and NPC? Looked... couldn't find it just yet...
PM
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 8th Sep 2019 22:37
Thanks for your answers...

I tried that with "forcesimpleobstacle". But this isn't really a good solution.
Let's assume a situation like in the appendix image 1. It's not necessarily controllable.
The enemy can see me, but I can't...

At the moment I have assigned the "invisible_wall.lua" to the wall in "Main". So it's no longer visible, but the playing area is still limited.
But this is also somehow stupid, because you can't see the border. Possibly mark the border with stones?...
I also tried a script of Corno_1, with which you can use a triggerzone to limit the game area.
Unfortunately the triggerzone is faulty, because I always found a place that didn't react to the script.

For my teleporters and the rocks I created, I also used .dds files. Looks better in any case, but each file is about 12 MB in size!
I'm also not sure if this is included correctly in the FPE:



I'll give it a try with .tga. Maybe the files aren't that big.
I'd like to do that with the huts I created, but I don't know how to handle the vertical and horizontal direction of the wood structure...

Attachments

Login to view attachments
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 8th Sep 2019 22:48
Welcome
Sorry 4 my question, but whitch sense it make 2 place a enemy outsite the "game zone"?
Are u going 2 make somethink like a "labirynth"? do u want later explore the room outside this walls or is the enemy just 4 decoration?
I would say the easiest way is to give the enemy the ai neutral script, unless u want later meet your enemy.
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th Sep 2019 01:10
@fumar
Any chance I can try the models fence.
Easier to see exactly what and why if you know what I mean. If so heres my email.
synchromesh62@gmail.com
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 9th Sep 2019 02:09
@synchromesh
No problem. I'm not a professional, so it isn't a big thing.
I uploaded it here as RAR file.
I can upload also the teleporter (or hut buildings) if someone's interested.

@osiem80
It was just a test scene.
The first attachments image in my second post shows another (real) situation in game.

Attachments

Login to view attachments
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th Sep 2019 12:39
Firstly not even sure how you managed to get Jpg files to show as textures … I couldn't
I had to change them to .png and edit the .fpe to even see the model in GG.

How did you make the model as it just seems to be random spots and although there are gaps it shouldn't be that bad ?
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 9th Sep 2019 13:03
@synchromesh, I loaded the object via "Import Model..." and assigned the texture there.
by the way I cannot use .tga files, @Wolf. ( > screenshot 1)

The boundary was created in Sketchup. It is only one object (and variations of it) that have been positioned along a path. ( > screenshot 2)

Attachments

Login to view attachments
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th Sep 2019 15:13 Edited at: 9th Sep 2019 15:15
This post has been marked by the post author as the answer.
I realised it was an importer job but even so the editor would not see the textures for me until i changed them to .png's. Strange
The scaling in the .fpe is set to
scale = 11000
I think this is the problem as in reality the model is very small and maybe GG doesn't allow for the artificial scale so the AI can still see you.
Try scaling the model bigger in Sketchup so its the actual size … Then try again.
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 9th Sep 2019 16:24 Edited at: 9th Sep 2019 16:25
Quote: " by the way I cannot use .tga files "

Nobody can, and paint also dont open it, everytime i have a tga file i have to convert it.
Another little "issue" that tgc should fix
PM
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 9th Sep 2019 16:33
@synchromesh, that's really strange. Because I always use the same basic template with length units (> screenshot) for my models in Sketchup.
But I have to set different scale factors for my huts (1100), the teleporter(1250) and the boundery (11000).
My newest model is a wooden tower that I converted with fragMotion to a dbo file. Here I have to use a scale factor of 4000.

Whatever. I'll scale the boundary once to see if it helps...

@osiem80, maybe, but Wolf recommended to try using tga files.

Attachments

Login to view attachments
PM
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 9th Sep 2019 17:46
Well, I scaled the boundery so I can use it in GG with scale factor 1100 (like my huts) but there's no difference.
The enemy doesn't visually accept the boundary and begins to fire at me. Bad boy...

So I had another attempt.
New Level, same boundary, same settings. Just the boundary, the player and some enemies. Aaand...
The enemies don't shoot at me. Strange.
So anything else in my project must be faulty. But I have no idea what it could be.

Attachments

Login to view attachments
PM
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 9th Sep 2019 21:31
If it is a scale problem You shourld not be scaling the model at all...
Stop being mediocre, be Yourself...
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Sep 2019 00:43 Edited at: 10th Sep 2019 01:32
I use sketchup all the time.
can you post the .skp file so I can load it up and take a look .
EDIT … Never mind sorted it below ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Sep 2019 01:29 Edited at: 10th Sep 2019 01:31
Ok so I got it in sketchup
Rescaled it to a much bigger size and exported it to .X
Remade an fpe and it seems to work .. Im guessing my scale theory was correct
Try this on a blank map ( I probably haven't scaled it the right size )
The only person ever to get all his work done by "Friday" was Robinson Crusoe..

Attachments

Login to view attachments
PM
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 10th Sep 2019 02:10
@synchromesh
Was my last post so unclear? (Sorry, I'm a German)
I've already tried it. In a new map it works perfectly. But not in the one I used. So I suspect that something else is disturbing there. But I have no idea what it is. I'm just a bloody beginner...
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 10th Sep 2019 03:36 Edited at: 10th Sep 2019 03:37
Es gibt auch ein deutsch-unterforum hier, und zum glueck auch genug deutschschprachige,
aber das nur so nebenbei.
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Sep 2019 09:05 Edited at: 10th Sep 2019 10:21
Quote: "Was my last post so unclear? (Sorry, I'm a German)
I've already tried it. In a new map it works perfectly. But not in the one I used. So I suspect that something else is disturbing there. But I have no idea what it is. I'm just a bloody beginner... "

Ok that's good news and still weird though because with the model you posted the enemy could see me as well ?
However as long you got it working that's great
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Sep 2019 18:22
did you delete the boundarys and then replace the boundary from the entity bank in the original map? (do not select them from the quick select) as GG will keep a temporary version of the model in the map unless you delete them it won't be the updated model
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 10th Sep 2019 22:52
Hey, guys.
It is a scaling problem! Today I tried it again and scaled up the boundary in Sketchup so high that it comes close to a factor of 100 in GG. (110 to be exact.)
And now there is silence. No enemy can see me. Nice!

@osiem80, yes, I know there's a german sub forum, but I think, mostly people can understand, what I mean.
And I don't forget the little bit of English I know.

A big thank you to everyone who helped me here and gave me more insight!
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 11th Sep 2019 01:51 Edited at: 11th Sep 2019 01:52
Quote: "It is a scaling problem! Today I tried it again and scaled up the boundary in Sketchup so high that it comes close to a factor of 100 in GG. (110 to be exact.)
And now there is silence. No enemy can see me. Nice! "

I remade and rescaled the model for you to try above … I thought you said you already sorted it though
Well glad it sorted now anyway ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
fumar
5
Years of Service
User Offline
Joined: 3rd Sep 2019
Location:
Posted: 14th Sep 2019 13:45
Oops. I guess I missed that. Sorry, @synchromesh...
PM

Login to post a reply

Server time is: 2024-11-23 21:23:01
Your offset time is: 2024-11-23 21:23:01