Forum Jump :

Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2013-06-19 20:19        
     
Hi everyone. I want to start by saying just how amazing this forum is. Less than a month ago I went from conceptualizing a multilayer idea in my head, having no video game design experience at all (maybe a little PHP web development experience) to figuring out almost all of my objectives for my multiplayer map idea!

There were a couple things I wasn't able to include but I figured out corner cutting workarounds that don't impact gaming much and I've included 90% of what I initially conceptualized in the finished product. This is thanks to you geniuses and the wealth of info on these forums in which I was able to search and find a solution to almost every problem.

However, I was beta testing my 80% done WIP on the multiplayer servers and I have a peculiar problem that I think actually derails my entire map. I don't know much about server scripting a multiplayer game and it still seems beyond me at this point. I am relying on client side scripts and init fields to get the work done.

The problem is

: When two or more players are in a vehicle and pass into a trigger the script runs but it dosen't trigger only "Once" as directed in the editor when I made the map. I was playing alongside someone in a vehicle and in parts of the map the trigger script was executed twice. For instance--one trigger spawns two F-35's on the runway taxing to take-off, but, because of this problem there are two sets of two F-35's spawning at the same time. They spawn on top of each other and blow up : \
And, I have scripted waypoints for a spawned Apache yet, the spawn script was executed twice (the next time the two players didn't even pass through the trigger area at the same time) so two apaches spawned but only one executed the whole way point script while the second just hovered not following all the points (but followed the first few to take off and move to first WP.)

This really puts finishing this MP map on hold because I can't have this happening when I want to play online. The scripts seemed to work fine the first couple times I played with multiple people but recently this started happening. I've put many many hours, (fun hours), into making this map a reality.

I've searched the forums to death and don't know exactly the problem or what to look for to fix it. Any help?

Thanks for your time. And glad to be a part of the community. I'll post the finished map to the forum if I get it fixed.


Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2013-07-16 00:05        
     
No one has at least a hint of what's happening with this map I'm trying to build?

This is my first attempt to build a map and am planning on getting very in depth into building maps for OA and Arma 3 when available.


Advertisement


Author Message


Posts: 3
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2013-07-25 04:19        
     
O.k. Last time trying. Anyone at all know what this problem is at least related to? I'm not asking for a step by step guide here, just a direction to look.


Author Message

Pirin  



Posts: 1547
Rank:


Level: Member

Country: us
Location: Atlanta, GA
Occupation: IT
Age: 43
In-game name: kylania

 
#4 Posted at 2013-07-25 05:02        
     
Triggers on the map from the editor will execute for all connected clients and the server. So if you have a ONCE trigger and there's two people playing you're gonna spawn three planes. One for your copy of the trigger, one for your friend's copy of the trigger and a third one for the server itself.

One way around this is to change your condition to this:

this && isServer

That way the trigger will only execute if it goes off but only for the server, not the players.

Feel free to post the mission here early to get some feedback and ideas for polish or more efficient ways of doing things maybe.