Skip to content

Commit 6a426cc

Browse files
committed
Moved 1.4 changes from private repo
1 parent f78a5b7 commit 6a426cc

33 files changed

+2393
-220
lines changed

AM2R Server.project.gmx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
<sprite>sprites\sGenerateSeed</sprite>
5959
<sprite>sprites\sCycleRando</sprite>
6060
<sprite>sprites\sCustomSeed</sprite>
61+
<sprite>sprites\sSAXMode</sprite>
62+
<sprite>sprites\sSAXModeToggle</sprite>
63+
<sprite>sprites\sLockLobby</sprite>
64+
<sprite>sprites\sModPassword</sprite>
6165
</sprites>
6266
<backgrounds name="background"/>
6367
<paths name="paths"/>
@@ -208,6 +212,11 @@
208212
<object>objects\oGenerateSeed</object>
209213
<object>objects\oCustomSeed</object>
210214
<object>objects\oCycleRando</object>
215+
<object>objects\oSAXMode</object>
216+
<object>objects\oSAXModeButton</object>
217+
<object>objects\oSAXModeToggle</object>
218+
<object>objects\oLockLobby</object>
219+
<object>objects\oModPassword</object>
211220
</objects>
212221
<rooms name="rooms">
213222
<room>rooms\room0</room>

Configs/Default.config.gmx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
<option_changeresolution>false</option_changeresolution>
212212
<option_closeesc>true</option_closeesc>
213213
<option_colordepth>0</option_colordepth>
214-
<option_display_name>AM2R Server 1.3</option_display_name>
214+
<option_display_name>AM2R Server 1.4</option_display_name>
215215
<option_displayerrors>True</option_displayerrors>
216216
<option_ecma>0</option_ecma>
217217
<option_facebook_app_display_name></option_facebook_app_display_name>
@@ -351,7 +351,7 @@
351351
<option_ios_texture_page>1024</option_ios_texture_page>
352352
<option_ios_use_test_ads>false</option_ios_use_test_ads>
353353
<option_lastchanged></option_lastchanged>
354-
<option_linux_display_name>AM2R Server 1.3</option_linux_display_name>
354+
<option_linux_display_name>AM2R Server 1.4</option_linux_display_name>
355355
<option_linux_enable_steam>0</option_linux_enable_steam>
356356
<option_linux_fullscreen>0</option_linux_fullscreen>
357357
<option_linux_homepage></option_linux_homepage>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# AM2R Server
22
String compression scripts are by Homunculus: https://marketplace.yoyogames.com/assets/4560/strict
33

4-
Server icon and Linux splash made by ShirtyScarab554.
4+
Server icon made by ShirtyScarab554.
55

66
Runs on port 64198 by default but can be changed within the server.
77

objects/oAmmoSync.object.gmx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ image_speed = 0;
5252
<string>if(global.ammoSync){
5353
image_index = 0;
5454
} else image_index = 1;
55+
56+
if(global.saxmode) global.ammoSync = false;
5557
</string>
5658
</argument>
5759
</arguments>
@@ -74,7 +76,7 @@ image_speed = 0;
7476
<arguments>
7577
<argument>
7678
<kind>1</kind>
77-
<string>global.ammoSync = !global.ammoSync;
79+
<string>if(!global.saxmode) global.ammoSync = !global.ammoSync;
7880
</string>
7981
</argument>
8082
</arguments>

objects/oControl.object.gmx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ oItemIBeam = undefined;
4343
oItemWBeam = undefined;
4444
oItemSBeam = undefined;
4545
oItemPBeam = undefined;
46+
47+
global.readyMap = ds_map_create();
4648
</string>
4749
</argument>
4850
</arguments>

objects/oCustomSeed.object.gmx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,26 @@ if(ID == msg){
7979
if(is_real(input)){
8080
random_set_seed(input);
8181
global.seed = input;
82-
with(oGenerateSeed) event_user(0);
82+
if(global.seed == 0){
83+
scr_default_global_items();
84+
} else {
85+
switch(global.rando){
86+
case 0:
87+
scr_randomizer();
88+
break;
89+
case 1:
90+
scr_randomizer_pure();
91+
break;
92+
case 2:
93+
scr_rand_split_powerups();
94+
break;
95+
case 3:
96+
scr_randomizer_split_items();
97+
break;
98+
}
99+
100+
oServer.alarm[10] = 30;
101+
}
83102
}
84103
}
85104
}

objects/oEventSync.object.gmx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ image_speed = 0;
5252
<string>if(global.eventSync){
5353
image_index = 0;
5454
} else image_index = 1;
55+
56+
if(global.saxmode) global.eventSync = true;
5557
</string>
5658
</argument>
5759
</arguments>
@@ -74,7 +76,7 @@ image_speed = 0;
7476
<arguments>
7577
<argument>
7678
<kind>1</kind>
77-
<string>global.eventSync = !global.eventSync;
79+
<string>if(!global.saxmode) global.eventSync = !global.eventSync;
7880
</string>
7981
</argument>
8082
</arguments>

objects/oGenerateSeed.object.gmx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ event_user(0);
9292

9393
oServer.alarm[10] = 30;
9494
}
95+
9596
</string>
9697
</argument>
9798
</arguments>

objects/oHealthSync.object.gmx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ image_speed = 0;
5252
<string>if(global.healthSync){
5353
image_index = 0;
5454
} else image_index = 1;
55+
56+
if(global.saxmode) global.healthSync = false;
5557
</string>
5658
</argument>
5759
</arguments>
@@ -74,7 +76,7 @@ image_speed = 0;
7476
<arguments>
7577
<argument>
7678
<kind>1</kind>
77-
<string>global.healthSync = !global.healthSync;
79+
<string>if(!global.saxmode) global.healthSync = !global.healthSync;
7880
</string>
7981
</argument>
8082
</arguments>

objects/oItemSync.object.gmx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ image_speed = 0;
5252
<string>if(global.itemSync){
5353
image_index = 0;
5454
} else image_index = 1;
55+
56+
if(global.saxmode) global.itemSync = true;
5557
</string>
5658
</argument>
5759
</arguments>
@@ -74,7 +76,7 @@ image_speed = 0;
7476
<arguments>
7577
<argument>
7678
<kind>1</kind>
77-
<string>global.itemSync = !global.itemSync;
79+
<string>if(!global.saxmode) global.itemSync = !global.itemSync;
7880
</string>
7981
</argument>
8082
</arguments>

0 commit comments

Comments
 (0)