|
| 1 | +<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> |
| 2 | +<object> |
| 3 | + <spriteName>sClients</spriteName> |
| 4 | + <solid>0</solid> |
| 5 | + <visible>-1</visible> |
| 6 | + <depth>0</depth> |
| 7 | + <persistent>0</persistent> |
| 8 | + <parentName><undefined></parentName> |
| 9 | + <maskName><undefined></maskName> |
| 10 | + <events> |
| 11 | + <event eventtype="2" enumb="0"> |
| 12 | + <action> |
| 13 | + <libid>1</libid> |
| 14 | + <id>603</id> |
| 15 | + <kind>7</kind> |
| 16 | + <userelative>0</userelative> |
| 17 | + <isquestion>0</isquestion> |
| 18 | + <useapplyto>-1</useapplyto> |
| 19 | + <exetype>2</exetype> |
| 20 | + <functionname></functionname> |
| 21 | + <codestring></codestring> |
| 22 | + <whoName>self</whoName> |
| 23 | + <relative>0</relative> |
| 24 | + <isnot>0</isnot> |
| 25 | + <arguments> |
| 26 | + <argument> |
| 27 | + <kind>1</kind> |
| 28 | + <string>if(!instance_exists(oServer)){ |
| 29 | + instance_create(0, 0, oServer); |
| 30 | +} |
| 31 | +</string> |
| 32 | + </argument> |
| 33 | + </arguments> |
| 34 | + </action> |
| 35 | + </event> |
| 36 | + <event eventtype="6" enumb="4"> |
| 37 | + <action> |
| 38 | + <libid>1</libid> |
| 39 | + <id>603</id> |
| 40 | + <kind>7</kind> |
| 41 | + <userelative>0</userelative> |
| 42 | + <isquestion>0</isquestion> |
| 43 | + <useapplyto>-1</useapplyto> |
| 44 | + <exetype>2</exetype> |
| 45 | + <functionname></functionname> |
| 46 | + <codestring></codestring> |
| 47 | + <whoName>self</whoName> |
| 48 | + <relative>0</relative> |
| 49 | + <isnot>0</isnot> |
| 50 | + <arguments> |
| 51 | + <argument> |
| 52 | + <kind>1</kind> |
| 53 | + <string>msg = get_integer_async("Type in the max number of clients you want to connect. The server will automatically restart.", 8); |
| 54 | +</string> |
| 55 | + </argument> |
| 56 | + </arguments> |
| 57 | + </action> |
| 58 | + </event> |
| 59 | + <event eventtype="7" enumb="63"> |
| 60 | + <action> |
| 61 | + <libid>1</libid> |
| 62 | + <id>603</id> |
| 63 | + <kind>7</kind> |
| 64 | + <userelative>0</userelative> |
| 65 | + <isquestion>0</isquestion> |
| 66 | + <useapplyto>-1</useapplyto> |
| 67 | + <exetype>2</exetype> |
| 68 | + <functionname></functionname> |
| 69 | + <codestring></codestring> |
| 70 | + <whoName>self</whoName> |
| 71 | + <relative>0</relative> |
| 72 | + <isnot>0</isnot> |
| 73 | + <arguments> |
| 74 | + <argument> |
| 75 | + <kind>1</kind> |
| 76 | + <string>var ID = ds_map_find_value(async_load, "id"); |
| 77 | + |
| 78 | +if(ID == msg){ |
| 79 | + if(ds_map_find_value(async_load, "status")){ |
| 80 | + var input = ds_map_find_value(async_load, "value"); |
| 81 | + if(is_real(input)){ |
| 82 | + ini_open(working_directory + "\settings.ini"); |
| 83 | + var maxClients = ini_read_real("Settings", "maxplayers", 8); |
| 84 | + ini_close(); |
| 85 | + |
| 86 | + if(input != maxClients){ |
| 87 | + if(instance_exists(oServer)){ |
| 88 | + with(oServer){ |
| 89 | + instance_destroy(); |
| 90 | + } |
| 91 | + ini_open(working_directory + "\settings.ini"); |
| 92 | + ini_write_real("Settings", "maxplayers", input); |
| 93 | + ini_close(); |
| 94 | + alarm[0] = 180; |
| 95 | + } |
| 96 | + } |
| 97 | + } |
| 98 | + } |
| 99 | +} |
| 100 | +</string> |
| 101 | + </argument> |
| 102 | + </arguments> |
| 103 | + </action> |
| 104 | + </event> |
| 105 | + <event eventtype="8" enumb="0"> |
| 106 | + <action> |
| 107 | + <libid>1</libid> |
| 108 | + <id>603</id> |
| 109 | + <kind>7</kind> |
| 110 | + <userelative>0</userelative> |
| 111 | + <isquestion>0</isquestion> |
| 112 | + <useapplyto>-1</useapplyto> |
| 113 | + <exetype>2</exetype> |
| 114 | + <functionname></functionname> |
| 115 | + <codestring></codestring> |
| 116 | + <whoName>self</whoName> |
| 117 | + <relative>0</relative> |
| 118 | + <isnot>0</isnot> |
| 119 | + <arguments> |
| 120 | + <argument> |
| 121 | + <kind>1</kind> |
| 122 | + <string>draw_self(); |
| 123 | +if(!instance_exists(oServer)){ |
| 124 | + draw_text(5, 5, "Server restarting..."); |
| 125 | +} |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | +</string> |
| 130 | + </argument> |
| 131 | + </arguments> |
| 132 | + </action> |
| 133 | + </event> |
| 134 | + </events> |
| 135 | + <PhysicsObject>0</PhysicsObject> |
| 136 | + <PhysicsObjectSensor>0</PhysicsObjectSensor> |
| 137 | + <PhysicsObjectShape>0</PhysicsObjectShape> |
| 138 | + <PhysicsObjectDensity>0.5</PhysicsObjectDensity> |
| 139 | + <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution> |
| 140 | + <PhysicsObjectGroup>0</PhysicsObjectGroup> |
| 141 | + <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping> |
| 142 | + <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping> |
| 143 | + <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction> |
| 144 | + <PhysicsObjectAwake>-1</PhysicsObjectAwake> |
| 145 | + <PhysicsObjectKinematic>0</PhysicsObjectKinematic> |
| 146 | + <PhysicsShapePoints/> |
| 147 | +</object> |
0 commit comments