dmay 0 Posted April 12, 2003 A multiplayer problem during deathmatch with 2 players In a mission I am making. When I get into a scud launcher and launch the missile I have made a message appear warning my opponent, this appears at the bottom of the screen as a standard message under 'Titles' in the triggers 'Effects' dialogue. However this message does not appear on my opponents PC until I exit the vehicle. Likewise when I take his flag, the 'Hint' message in my script only appears on my PC and not my opponents. After exporting the mission to multiplayer I copied the directory for the mission in Users\MyName\Missions to my opponents PC. I'm playing over 100Mb LAN and other mulitplayer maps I've made work fine except this new one I've done. Share this post Link to post Share on other sites
benreeper 0 Posted April 13, 2003 All scripted chats are run locally, if you want them to appear on the other machines the script has to run there. What we mean is if you make a mission with scripts and such and everything works in the editor, when you export it to MP you will notice they only work on your machine (if you are the server) and on nobody's machine if you are using a dedicated server. Ben Share this post Link to post Share on other sites
bn880 5 Posted April 13, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">When I get into a scud launcher and launch the missile I have made a message appear warning my opponent,<span id='postcolor'> Make sure to properly detect this on all machines. Should be fine. Some people get a long delay from when they enter a vehicle and drive off and others can actually see it in OFP. That might be another problem. Share this post Link to post Share on other sites
dmay 0 Posted April 13, 2003 So how do I get the script to run on the other PC? Since it has all the scripts and everything alse as me (the server) surely the script would run there too. Does distance from one player to the other effect the delay? I average a ping of 1-4 over my LAN, messages in triggers do appear on the other PC if no one is in the scud launchers. I have a script set up to blow up my opponents base when the scud is launched If I stay in the vehicle when this happens the base is destroyed twice, once in real time on my PC the second when I exit the vehicle and the explosion happens again on the other PC only. Share this post Link to post Share on other sites
bn880 5 Posted April 13, 2003 MP mission making has a lot of complications which haave to be adressed. Some things should only be run on the server, and others only on clients, others everywhere. In theory, if you have a script that detects scud launch running on each network node, yes, everyhting should execute on every node (like your message). So I can't tell you right now what the specific problem is. Share this post Link to post Share on other sites
benreeper 0 Posted April 13, 2003 An MP problem when running same scripts on all clients are a loss of same game state. Say you walk up to a vehicle and perform some action on it, before you did that the vehicle was remote to you (assuming that you are not the server) but once you interact with it it becomes local and subject to scripts running on your pc. When all of these scripts are trying to perform the same action on the same thing, the results are not guaranteed. What has to be done is have that script that does to action to the thing stay with it and then have some way of broadcasting the results to all machines. Ben Share this post Link to post Share on other sites
dmay 0 Posted April 13, 2003 Hmm. I appear to have over complicated my mission I ought to read up on MP mission making a bit more before I continue. Share this post Link to post Share on other sites
-iCeMaN- 0 Posted April 14, 2003 This is more of a multiplayer topic question Suprised no mods have moved it yet -iCe- Share this post Link to post Share on other sites
iNeo 0 Posted April 14, 2003 So how do you control where a script is to be run? </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (|iCeMaN| @ April 14 2003,22:36)</td></tr><tr><td id="QUOTE">This is more of a multiplayer topic question Suprised no mods have moved it yet<span id='postcolor'> Nah, it's scripting. Scripting for multiplayer use, but still scripting. Share this post Link to post Share on other sites
HappyG 0 Posted April 14, 2003 You put an empty object somewhere on the map called server, than use ? (local server) : goto "server" goto "client" Share this post Link to post Share on other sites
nierop 0 Posted April 15, 2003 Ok, above messages have not been of much help. This tutorial by Tactician is... Tutorial on OFPEC I suggest you check on that site first before hitting the forums. Cya, Pimmelorus Share this post Link to post Share on other sites
-iCeMaN- 0 Posted April 15, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (iNeo @ April 14 2003,17:30)</td></tr><tr><td id="QUOTE">So how do you control where a script is to be run? </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (|iCeMaN| @ April 14 2003,22:36)</td></tr><tr><td id="QUOTE">This is more of a multiplayer topic question Suprised no mods have moved it yet<span id='postcolor'> Nah, it's scripting. Scripting for multiplayer use, but still scripting.<span id='postcolor'> OK I guess you're right.... -iCe- Share this post Link to post Share on other sites
dmay 0 Posted April 15, 2003 excellent this tutorial looks very interesting and what HappyG said may help. Share this post Link to post Share on other sites
dmay 0 Posted April 18, 2003 NOT! Alright the scoring script in Tactician's tutorial works on the sever and client but my scripts still don't. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">? (local server) : goto "server" goto "client"<span id='postcolor'> That doesn't work, or am I doing it wrong? Where do I put this code snippet? On it's own or in my script? I made a game logic run a script with just the above in it, is that wrong? My whole scud launching routine just get's more bizzare, occasionally I do an action and instantly it 'unhappens' and the game behaves like it never happended! Share this post Link to post Share on other sites
dmay 0 Posted April 18, 2003 screw this. I'm going to do another post in 'Troubleshooting' I think I know why my mission isn't working........FADE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Share this post Link to post Share on other sites