Home
Tutorial & Documentation WSAG 4.x by
Contents
1. Link Sel FAROS State 1 PlayerBlue Add Empty ShootBlue Add _ Empty ShootBlue daa lala Stat BCU CELE lini M i er PlayerBlue Property Ping PlayerBlue dd EHE FEFEFE 0 O O W Stat u A nij The 1 ModeSetup py Script This Script contains the fallowing Modules def SetLocation def AddMode def SetPlayer The 1 SetMenuProp py Script The 2 MouseMove py Script This Script contains the fallowing Modules def OnOff def MouseY def MouseX The 2 Move py Script The 2 OriPos py Script This Script contains the fallowing Modules def Main def YourOriPosShoot def SetOriPosShoot def YourOriPos def SetOriPos The 3 WSAG py Script This Script contains the fallowing Modules def Main def IPLAN def Shoot def IPWeb def Port def Receive def Send def SetIP def AppendIP def ConnetMe def YourConnection def SetData def SyncTime def Disconnect def ServerConnect def ClientConnect def ServerSet def ClientSet
2. and End of the Body Player Tels the Script 1 SetMenuProp py what Property should be set Marks the Middle of the Body BME Tels the Script 1 SetMenuProp py what Value should be assigned to the above defined Property So where in the example above the value Bi is set you put the unique name of your Player control element HE R 5R 2 work x S sces Player x J E Player ior Blue Player press pr kor Red Player press R Fir Green Player press G 15 GE Flayer EE onem _ 1 a 3 Mo ara FA a 3 gt CM pele lt tx1 moaesetunpy1X Esika 1 gt a 4ctor Ghost Invisible Advanced el FES STA State Sel Ae Sel ESTO State GE Player ade GE Player Add GE Player gap 4000 ea Message aGetModce Oon e xl f asetfec asetGreen J Jer lot het keller As a last step we have to make sure that the Player Type you selected will be transmitted over the network so that it can be created as your external Client on the server and the other client Computers more information about this can be found n the Chapter Spawn as external Client For this to happen you simply need to add the Name of the Player Element to it s Property PlayerTyp See picture below BEI Le sr 2 work X 5cE 0 Levelcontrol x JE xX Y Transform Properties FJ El ejere jeejee ct Object tg Object mode 4 C Pele elms wsacpy x Screen Li ble Advanced Se ESOS state Controllers Sel Art
3. NG O re 13 GEF BED ee ee ee ini dt M 14 A iss 14 CEA DPCP I Sue nee ee 14 ELECO ee ein oa eee 14 de EY OU OTC CO ee ee 14 O A a e Tu eee TT rer 14 ICE VC PAGING ee o EE A 14 ICE DISCO A ee ee eh t 14 def ServerConnect cccccccceeccccccscccenassssssesessceeeceeeccccecenecenaaaaasssessseeseeceeeeecceeesennenaassssesseeenass 14 0121 CTC COE ee 14 LE Mo 45189118 E EEE A ON E A eee nn 14 SS EN eae ee oz E t 14 About WSAG The goal of WSAG 1s to make it possible for everyone to make a A Solid Multi Player Online Network Game This Document tries to give everybody the Information that 1s needed to work whit the WSAG Setup It aims at beginners and pros It contains How to Use A section that will give you a simple Step by Step guide on how to integrate WSAG n to your own Game How it Works This section will explain every Logic Brick and Line of Code and how the work together inside of the WSAG setup Hope you enjoy this documentation and It helps you to get started whit WSAG If any Questions come up feel free to ask over at http www gameblender org viewtopic php f 22 amp t 906 And if you have an suggestions how to improve this Documentation or the WSAG setup itself please post it at http www gameblender org viewtopic php f 22 amp t 626 How to setup your Router for WSAG to work Your firewall is like a row of ninja assassins just waiting to kill unauthorized messengers and spies I will try to vis
4. Tutorial amp Documentation WSAG Multi Player Online Network WSAG 4 x wwwW oldjim ch WSAG INDEX A ee palat saaleala 3 How to setup your Router for WSAG to work uueeeessesssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnenennnnnnnnnsnnnennnnnnnn 3 WSAGHROuler Se uns ee matti 4 Player sep Seinen eee ee ee leeres 5 DMG bay CLS PIMEN ee een ee ehe 5 A eNO PSR ee eee ee 5 Player net E cee net arr EE pee ee eer ea eee mente ne ee eee 5 DP See A SO Tae Co CN E See Tae ae ee T ev 5 HUD een ee 5 PP e eisen 5 ole 01011 6 bey are CR RON LE e A 6 BN MIN RAE PEO O ECON E A EE 6 The Players Logic ISIC KG see I COMMU ONCE een Er ee ee 7 A A ee ee er 8 Camera es enabled 9 HD see se ee seele 9 OO ee ee ee 9 Soo CIE N ee ee ee ee 11 By ID nenne ee ee ee ns 11 TG A A 12 Spawn as Explorer or Your Controlled Cuenta a 12 Spantas p lt 0 011240 14004 Ho daa 12 15 1 Modesetuppv A O A 12 dei SIEH AU ee ee elemente 12 der Add ModE aa di li o 12 dr donas 12 The 1 SctMenubrop py SEP di 12 ThE Z Mouse Move PY CUP id 12 A Nee re 12 AEE MOUSE T AAA enter eher 12 IMSS iS 12 The 2 Move PY SCHIDE ans ee eek ir Easnn 13 The 2 OHPOSPYSCHPL e ee ee ee eee 13 Y A ssp series isaac A A A 13 det YOU POS SOON a A A alea i 13 il A A a One A tel ne eR 13 del out nose 13 Sy A ON OO CREA E PO TEO er ee 13 MA ee ee 13 A N ET A E N E 13 GELIPEAND said energie 13 ds ESOO ei BE 13 NEN er E T re REN 13 GER POT area ee ee Nee esse 13 STI
5. ameblender org viewtopic php f 22 amp t 7 p530 WSAG Router settings Port range 5000 7000 Protocol UDP Player Setup syncTime ShootClient Ssynclime gt hootClien 880 7COl ler Camera The players Elements Controller Keyinputs that effect the Player run over this element This Element contains the physics of the Player The Bounding Box of this Element is set to the size of the Player Player Is a Child of the Controller Its property s are the Data that will be send over the network Camera Is a Child of the Controller It gives you the First Person View Mouse movement controls its View angle The Mouse move control can be turned on off whit the Tab Key HUD Is a Child of the Camera Shows the Game Point count Shoot Is a Child of the Camera When triggered it shoots the Object Bullet in the direction that its pointed The Object Bullet is on a different Layer ShootClient Is a Child of the Player Same as Object Shoot but it will be destroyed if Object Shoot is also Created It only remains if the Player is created as a client not the one your controlling SyncTime Is a Child of the Player In Client Mode it sends a Ping Signal if the P Key is pressed This Signal is used to calculate the SyncTime The SyncTime s the time it takes to send data to the server and receive it back The Players LogicBricks Controller PSS Ghostinvisibl Advanced Sensors Sel PES stat Control
6. enter the routers Login name and Password you will find these informations in the user manual of your Router Now find the menu where you can forward port and enter the same information you entered for the computer firewall Whit the addition that you will have to define the Computers IP This 1s because a router can have more then one PC connected to it Now your Router looks like this DIODODIODIDI router firewall penguin of absolute control DIODIODODIDMD ompuo firewall Now any message that comes over these ports will be forwarded by our penguin of absolute control Like this DIDODODIDW router firewall penguin of absolute control DIDIODDODIBD omputer firewall 4 You like to send a balloon to a friend The Port you opened lets the balloon trough to the penguin of absolute control The penguin of absolute control pases it trough the Port you opened in the Router The balloon is on its way The same process works if a friend sends a balloon to you Note this balloon needs tho have the exact information of Its destination and how to get there Only if the Information of Port and IP are correct it the penguin of absolute control will pass it on the penguin of absolute control will never let a balloon that has port 105 in its information trough port 106 even if Port 105 is closed and 106 is open All the Information has to match Thanx nijineko for the base of this tutorial that you made available at http www g
7. g This Actuator is triggered by controller cPing and Sensors sPing of the controller element of this player setup The SyncTime element then uses this property to trigger the calculation of your Synctime using the Python Module 3 WSAG SyncTime The Property Shoot is set to True or False in the Python Module 3 WSAG Shoot and will trigger the Sensor sShoot if true The Property OriShoot This Value is set by the Python Module 2 OriPos YourOriPosShoot and will be used to set Orientation the ShootClient on your external clients using the Python Module 2 OriPos SetOriPosShoot The Property PosShoot This Value is set by the Python Module 2 OriPos YourOriPosShoot and will be used to set Position the ShootClient on your external clients using the Python Module 2 OriPos SetOriPosShoot Camera Sensors Controllers Actuators EOF Act Link Ei ISOTROPIC Add 16 MT Set Camera al Add Proper O Tafa th el Tal Del int Mmeo 1 TD E E Mm UL 11 m ate Level Tal Tab All kei The Sensor sSetCam is triggered onetime at Startup It will activate the Controller cSetCam The Controller cSetCam will run the Actuator aSetCam The aSetCam Actuator will Set the Camera to be the Active Camera The Sensor sMouseY is Triggered by any Mouse movement If Triggered it will Activate the Python Module 2 MouseMove MouseY which is attached to the Actuator aMouseY The Sensor sMouseOnOff is triggered if yo
8. iggered if the P Key is pressed This Sensor will activate the Controller cPing The cPing Controller will activate the Actuator aPing that is a LogicBrick of the Player This actuator will then add the Value 1 to the property Ping The Property OnOff will be used in the Python Module 2 MouseMove OnOff Player Sensors STETS Controllers EE Empty ShootRed Add AM aA sEnd Shad le O LLL OOO KIE E Always Ouror Posch Bl a Allin Actuators BEIN Act Link Bigg AMD cEnd Shootcli Eli a Phon cYourdnPoss 31 oe TE Add Property x AND cshont Fir Del Shin Jame Playertop PlaverBed O gt Mal Aa Add Shin Mameon oo Hei ed Cast emos m StH ESE Del int Mame Ping Oo 0 E Pethon cSet0rPos 1 0 Del Bool Mame Shoot True PE o Prop Shoot n JAND cShoot s al Del Stin ame Dish O Valie TF dd Del Shin me Posshoot O EF EF EF F F Modul 2 OnPos voy O nn BEER do Message aBulletHi Bj Motion above E Ed Moton ahtouses aj M M psetnPos 0 1 Ju tr Level Tay nej Red 2 keyboard sShootkey W Mouse sShootmouse Dj Collision sBulletHit Di E keyboard skeymput al e Touch sTouch st HA HH AMD g hause Shouse s al AAA A Keyboard smouseOnoff ooo t z A Keyboard sPing ENE Python chiouses 31 a Python ehloseonoff 1 al AND cPing EE The Sensor cShoot is Triggered if the Property Shoot i
9. k rate This controller will run the Python Module 2 OriPos SetOriPosShoot Sensors _ Sel PESA Controllers WEBER Act Link SS me Sic Time Red SuncTime Red SyncTime The Always Sensor sSyncTime triggers the Controller cSyncTime every tick rate The Controller cSyncTime will run the Python Module 3 WSAG SyncTime The Property PlayTime is used in the Python Module 3 WSAG SyncTime The Property ReceivedPacks is used in the Python Module 3 WSAG ClientSet and 3 WSAG SyncTime The Property PackCheck is used in the Python Module 3 WSAG SyncTime The Property CsyncTime s used in the Python Module 3 WSAG SyncTime The Property AsyncTime s used in the Python Module 3 WSAG SyncTime The Property WsyncTime is used in the Python Module 3 WSAG SyncTime The Property ID is used in the Python Module 3 WSAG ClientSet The Property Ping is used in the Python Module 3 WSAG ClientSet and 3 WSAG SyncTime The Property PingCheck is used in the Python Module 3 WSAG SyncTime The players in Action Spawn as Explorer or Your Controlled Client Spawn as external Client What Information will be send over the Network The new WSAG4x Setup makes it very easy for you to define what Information should be send over the network Simply any property value of the Player Element will be send over the network and the receiver will set you your external clients property whit these values meaning that your Controlled Client and external clients propertys
10. lers EERE ink Emp ShootRed Ado Ade Empty ShootRed Empte ShoothedClient Add Plater Red T FTTT ITTTTT ICTTTTT rT ll Im FI Set TA e SS je FTTTTIETTT TII A 4 The Sensors sShootKey and sShootMouse are triggered if you Press the left Alt Key or the LMB They activate the Controller cShoot that 1s a LogicBrick of the Player The Controller cShoot runs the Python Module 3 WSAG Shoot The Sensor sBulletHit is triggered if you collide with a Object that has the property Bullet Via the controller cBulletHit it activates the Actuator aBulletHit which Sends a Message with the Subject Bullet This Message is received by the HUD Sensor sBulletHit Any Key will Trigger the Sensor sKeyinput The Sensor sTouch 1s positive if the the bounding box of this Object is touching a other Object Both Senors will activate the Python Scrit 2 Move py The Controller cMove that runs the Python Script 2 Move py is connected to the Actuator aMove The sMouseX Sensor reacts if the Mouse is moved The Sensor sTouch is positive if the the bounding box of this Object is touching a other Object Both Senors will activate the Python Module 2 MouseMove MouseX The Controller cMouseX that runs the Python Script 2 MouseMove MouseX is connected to the Actuator aMouseX The sMouseOnOff Sensor is triggered if the Tab Key is pressed and will activate the Controller cMouseOnOff that will run the Python Module 2 MouseMove OnOff The sPing Senor is tr
11. s True If this sensor is triggered it will activate the cShoot Controller of Shoot and ShootClient These Controllers then make the Actuator aShoot add a Bullet This will ably to Shoot or ShootClient for only one of them will be active at a time but this will be shown later see here By the way the Bullet that will be added is on a different Layer the the Players Elements and its Name is defined in the LogicBrick Actuator aShoot The Always Sensor YourOriPos will trigger the Python Module 2 OriPos YourOriPos The Always Sensor SetOriPos will trigger the Python Module 2 OriPos SetOriPos The Players Property s These Propertys are used to set your external clients so that they stay in Syne whit your Controlled Client more about this can be found in the Chapter What Information will be send over the Network The Propery PlayerTyp has to be equal to the name of the Player For it is used to define what should be creaded on the server and the other client Computers more information about this can be found in the Chapter Spawn as external Client The Property Ori This value is set by the Python Module 2 OriPos YourOriPos and will be used to set the external clients Orientation with the Python Module 2 OriPos SetOriPos The Property Pos This value is set by the Python Module 2 OriPos YourOriPos and will be used to set the external clients Position with the Python Module 2 OriPos SetOriPos The Property Ping its value is set the Actuator aPin
12. u press the Tab Key If Triggered it will run the Python Module 2 MouseMove OnOff The Property OnOff will be used in the Python Module 2 MouseMove OnOff red Sel ct Link Sel Act Link GPC Red Add GPC Red Anisotropic AIM bullet hal If Triggered it will activate the Controller cBulletHit The Controller cBulletHit will then activate the Actuator aBulletHit The Actuator aBulletHit will change the Value of the Property Text by 5 Shoot the Actor Ghosfinvisibl Advanced Se Act Link Bio Controllers BE Empty ShootRed Bounds sel Act Link Act Link GPC Red Property jaBuletit i EmphishootFed Plier Red Fed The Sensor sEndShootClient will run onetime at start up and trigger the Controller cEndShootClient The Controller will then activate the Actuator aEndShootClient which is a LogicBrick from ShootClient This Actuator will End The Object ShootClient More Infos about why and wen the Object ShootClient 1s ended can be found n the Chapter Spawn as Explorer or Your Controlled Client The Controller cYourOriPosShoot is triggered every tick rate by the Always Sensor sYourOriPosShoot and will run the Python Module 2 OriPos YourOriPosShoot ShootClient Sahe JActor GhostInasibl Advanced Sensors Act Link o Sel ACT Link Acwators Act Link e Emp Shoothed After a delay of one tick rate the sensor sSetOriPos will trigger the Controller cSetOriPos every tic
13. ualize this using smilies You may now ask your self why there are 2 rows of ninjas A Network that runs over a Router has one Firewall on the Computer and a Second one on the Router Between these these 2 firewalls is the hardworking router penguin of absolute control like SO DDD DDD DDD firewall J penguin of absolute control DRDDDDDDDD ompute firewall To open a port of your computer fire wall you need to go in to the control panel of your computer and find the fire wall settings There you add the port or port range that you like to open up and assign the Titel to 1t and what Protocol it uses TCP or UDP or both Afther you have done this your firewall setup will look like this Router firewall B penguin of absolute control DOIDIODDODIBD lt omputer firewall Note an the side There some Computer are setup so that you don t have to deal with 1ts Firewall or the firewall 1s even deactivated If you have a computer like that the setting above will not be needed but your computer will be at a bigger risk on your everyday Internet use So you should consider to setup a firewall that you have the control over to optimize your security not because of WSAG but because of your normal Internet consumption Whit this said lets move on and configure the router firewall To login to your router your open a Web browser and enter the Routers IP in to the address field Usually thats 192 168 1 1 Now you will need to
14. will always be in Sync So the trick to that you setup the Player Element so that if it s Spawn as external Client it will use its property s to stay in Sync whit the Player that you control meaning the Player that was Spawn as Your Controlled Client How to use the Player setup for your Own Game Now if you plan an using this setup for your own Game you will most likely what to replace my Player with yours This is pretty easy as long as you remember some things Your Player will need all the Elements described above for every element is needed for it to work in Multi player mode You can have more elements added to your player just make sure you understand how to parent them logical So that the elements can be clearly separated from deepening if the player is Spawn as a external Client as Explorer or Your Controlled Client Se Chapter The player in Action for more information about this As a ext steep you have to make sure that the Player is correctly bound in to the setup Menu Every Player needs to have a unique Name given to its control Element See picture below XxX Y Transform Properties 15 Blue That Unique name will have to be implanted in to the Player selection Menu You do that by simply Opening the SCE 5 Player There every player needs a message actuator that is triggered when the given Player is selected That message actuator has to have a body that is build up like this Player Blie Marks the Beginning
Download Pdf Manuals
Related Search
Related Contents
Descargar - Ximor Morteros importantes advertencias y instrucciones de seguridad 1 manuel d`instructions compteur electronique mt-02/2 GF 15 - Johnson Sencor SLR 33 Presentation-2012-user-manual Pak Lx™ Assay - Immucor, Inc. Dell E550mm User's Manual dossier de diffusion. - Collectif des Esprits Solubles Copyright © All rights reserved.
Failed to retrieve file